#!/bin/sh | |
[ "$1" = "-h" ] && { echo "$0 <compiler>(=gcc) [<options to csmith>] [<...>]"; exit 255; } | |
CODER=csmith64 | |
[ -z $CC ] && [ ! -z "$1" ] && CC=$1 && shift || CC=gcc | |
CFLAGS="-Iruntime -O1 -w" | |
unlink test.c > /dev/null 2>&1 | |
set -e | |
while true | |
do | |
# $CODER | $CC $CFLAGS -xc - -o /dev/null; | |
# $CODER > test.c | |
$CODER "$@" > test.c | |
$CC $CFLAGS test.c | |
done |