#!/bin/sh
#
# Trivial debug script, display test case, compile and run, and display
# testcase again

TESTFILE=${1-../tests/simple/correct1.p0}
PROG="./comp"
make all
if [ $? -eq 0 ]; then
	cat -n $TESTFILE
	ARGS=" -w -O0 "
	echo "===BEGIN Command: $PROG $ARGS < $TESTFILE==="
	$PROG $ARGS < $TESTFILE
	echo "===END Command: $PROG $ARGS < $TESTFILE==="
	cat ./out.s
fi
