#!/bin/sh

set -e
CODER=csmith64
[ -z $CC ] && [ ! -z $1 ] && CC=$1 || CC=gcc
CFLAGS="-Iruntime -O1 -w"

while true
do
	#csmith > test.c;
	$CODER | $CC $CFLAGS -xc - -o /dev/null;
done
