unnecessary ^ in regular expression; warning produced on smt-exec
authorMorgan Deters <mdeters@gmail.com>
Mon, 18 Jun 2012 21:55:25 +0000 (21:55 +0000)
committerMorgan Deters <mdeters@gmail.com>
Mon, 18 Jun 2012 21:55:25 +0000 (21:55 +0000)
contrib/run-script-smtcomp2012

index 2183df8ce3922508d038073a0490a3730373f25d..bb4a9305f2a5448adb084db37de5c151a070da4f 100755 (executable)
@@ -3,7 +3,7 @@
 cat >bench-$$.smt2
 trap 'rm bench-$$.smt2' EXIT
 
-logic=$(expr "$(head -n 1 bench-$$.smt2)" : '^ *(set-logic  *\([A-Z_]*\) *) *$')
+logic=$(expr "$(head -n 1 bench-$$.smt2)" : ' *(set-logic  *\([A-Z_]*\) *) *$')
 
 # use: trywith [params..]
 # to attempt a run.  Only thing printed on stdout is "sat" or "unsat", in