summaryrefslogtreecommitdiff
path: root/test/regress/regress0/smtlib
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-08-13 18:03:54 -0700
committerGitHub <noreply@github.com>2018-08-13 18:03:54 -0700
commit94e3d283a58684118e06f9a698606e58574fa26f (patch)
tree0c9003984f65bf7f16f0a2b6d5cecfd7d531ed0d /test/regress/regress0/smtlib
parent957b02e415f60e725da569f1d7c0e2d1276cb3fa (diff)
Fix get-unsat-assumptions output (#2301)
Fixes #2298. The `get-unsat-assumptions` command was printing the result with square brackets and commas instead of parentheses and spaces between the assumptions.
Diffstat (limited to 'test/regress/regress0/smtlib')
-rw-r--r--test/regress/regress0/smtlib/get-unsat-assumptions.smt212
1 files changed, 12 insertions, 0 deletions
diff --git a/test/regress/regress0/smtlib/get-unsat-assumptions.smt2 b/test/regress/regress0/smtlib/get-unsat-assumptions.smt2
new file mode 100644
index 000000000..7a8113d8f
--- /dev/null
+++ b/test/regress/regress0/smtlib/get-unsat-assumptions.smt2
@@ -0,0 +1,12 @@
+; EXPECT: unsat
+; EXPECT: (x x)
+; SCRUBBER: sed -e 's/a[1-2]/x/g'
+(set-option :produce-unsat-assumptions true)
+(set-logic QF_LIA)
+(declare-const a1 Bool)
+(declare-const a2 Bool)
+(declare-const x Int)
+(assert (= a1 (= x 5)))
+(assert (= a2 (not (= x 5))))
+(check-sat-assuming (a1 a2))
+(get-unsat-assumptions)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback