syntax error;
% EXIT: 1
+[Outdated: please also see edit below as an addendum.]
Use of % gestures in CVC format is natural, as these are comments and ignored
by the CVC presentation language lexer. In SMT and SMT2 formats, you can do the
same, putting % gestures in the file. However, the run_regression script
run_regression script.
-- Morgan Deters <mdeters@cs.nyu.edu> Thu, 01 Jul 2010 13:36:53 -0400
+
+[Edit 2014/03/14: No support for '%' in .smt2 files any
+longer. Please use ';' or create separate .expect files. Very few test
+were using this "feature" and was causing issues because temp file
+name changed the expected error output string. '%' works for .smt files
+--Kshitij]
if [ -z "$expected_exit_status" ]; then
expected_exit_status=0
fi
- elif grep '^\(%\|;\) \(EXPECT\|EXPECT-ERROR\|EXIT\|COMMAND-LINE\): ' "$benchmark" "$benchmark" &>/dev/null; then
- expected_output=`grep '^[%;] EXPECT: ' "$benchmark" | sed 's,^[%;] EXPECT: ,,'`
- expected_error=`grep '^[%;] EXPECT-ERROR: ' "$benchmark" | sed 's,^[%;] EXPECT-ERROR: ,,'`
- expected_exit_status=`grep -m 1 '^[%;] EXIT: ' "$benchmark" | perl -pe 's,^[%;] EXIT: ,,;s,\r,,'`
- command_line=`grep '^[%;] COMMAND-LINE: ' "$benchmark" | sed 's,^[%;] COMMAND-LINE: ,,'`
- # old mktemp from coreutils 7.x is broken, can't do XXXX in the middle
- # this frustrates our auto-language-detection
- gettemp tmpbenchmark cvc4_benchmark.smt2.$$.XXXXXXXXXX
- grep -v '^% \(EXPECT\|EXPECT-ERROR\|EXIT\|COMMAND-LINE\): ' "$benchmark" >"$tmpbenchmark"
+ elif grep '^; \(EXPECT\|EXPECT-ERROR\|EXIT\|COMMAND-LINE\): ' "$benchmark" "$benchmark" &>/dev/null; then
+ expected_output=`grep '^; EXPECT: ' "$benchmark" | sed 's,^; EXPECT: ,,'`
+ expected_error=`grep '^; EXPECT-ERROR: ' "$benchmark" | sed 's,^; EXPECT-ERROR: ,,'`
+ expected_exit_status=`grep -m 1 '^; EXIT: ' "$benchmark" | perl -pe 's,^; EXIT: ,,;s,\r,,'`
+ command_line=`grep '^; COMMAND-LINE: ' "$benchmark" | sed 's,^; COMMAND-LINE: ,,'`
if [ -z "$expected_exit_status" ]; then
expected_exit_status=0
fi
- benchmark=$tmpbenchmark
elif grep '^ *( *set-info *:status *sat' "$benchmark" &>/dev/null; then
expected_output=sat
expected_exit_status=0