summaryrefslogtreecommitdiff
path: root/test/regress/regress0/bug421b.smt2
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-10-11 21:17:12 +0000
committerMorgan Deters <mdeters@gmail.com>2012-10-11 21:17:12 +0000
commit22c270963b48dae4e306972026c8accf7c9a6765 (patch)
treebdea5da5abc889ff9c053efa6a508a7ca77f6c4d /test/regress/regress0/bug421b.smt2
parent1ddacacb1a002fa38292f523f30df50b9e3d70fe (diff)
Fix bug 421, again, and add a second, independent test case for the same
with --check-models (which caused the same bug, for a different reason, due to some unintended interaction between the checkModel() function and the UserContext, which rolled back the Model object. (Groan...) (this commit was certified error- and warning-free by the test-and-commit script.)
Diffstat (limited to 'test/regress/regress0/bug421b.smt2')
-rw-r--r--test/regress/regress0/bug421b.smt215
1 files changed, 15 insertions, 0 deletions
diff --git a/test/regress/regress0/bug421b.smt2 b/test/regress/regress0/bug421b.smt2
new file mode 100644
index 000000000..a47efb6fb
--- /dev/null
+++ b/test/regress/regress0/bug421b.smt2
@@ -0,0 +1,15 @@
+; same as bug421.smt2 but adds --check-models on command line:
+; this actually caused the same bug for a different reason, so
+; we check them both independently in regressions
+;
+; COMMAND-LINE: --incremental --abstract-values --check-models
+; EXPECT: sat
+; EXPECT: ((a @1) (b @2))
+; EXIT: 10
+(set-logic QF_AUFLIA)
+(set-option :produce-models true)
+(declare-fun a () (Array Int Int))
+(declare-fun b () (Array Int Int))
+(assert (not (= a b)))
+(check-sat)
+(get-value (a b))
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback