summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-04-08 15:24:55 -0500
committerGitHub <noreply@github.com>2020-04-08 15:24:55 -0500
commit24357fea07bf1eb6b1156a8e455c58faee96b604 (patch)
treee89418fb98887c62d6d4f4e8d81d39829d61c1c7 /test
parent98a78889a4c4168f9c6632a0e19e1b8f422c4a9d (diff)
Fix dump models and dump proofs (#4230)
A recent commit (45e489e) made it so that dump-models did not automatically enable produce-models in the global options object, but instead the SmtEngine enabled produce-models internally. The code for dump-models and dump-proofs was (perhaps out of paranoia) checking produce-models and produce-proofs. This removes this check, which is the correct thing to do since SmtEngine internally ensures produce-models is set.
Diffstat (limited to 'test')
-rw-r--r--test/regress/CMakeLists.txt1
-rw-r--r--test/regress/regress0/simple-dump-model.smt213
2 files changed, 14 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt
index 37776388b..1f3d4f623 100644
--- a/test/regress/CMakeLists.txt
+++ b/test/regress/CMakeLists.txt
@@ -463,6 +463,7 @@ set(regress_0_tests
regress0/declare-funs.smt2
regress0/define-fun-model.smt2
regress0/distinct.smtv1.smt2
+ regress0/simple-dump-model.smt2
regress0/expect/scrub.01.smtv1.smt2
regress0/expect/scrub.03.smt2
regress0/expect/scrub.06.cvc
diff --git a/test/regress/regress0/simple-dump-model.smt2 b/test/regress/regress0/simple-dump-model.smt2
new file mode 100644
index 000000000..6849b63a8
--- /dev/null
+++ b/test/regress/regress0/simple-dump-model.smt2
@@ -0,0 +1,13 @@
+; COMMAND-LINE: --dump-models
+; EXPECT: sat
+; EXPECT: (model
+; EXPECT: (define-fun x () Int 1)
+; EXPECT: (define-fun y () Int 1)
+; EXPECT: )
+(set-logic QF_LIA)
+(set-info :status sat)
+(declare-fun x () Int)
+(declare-fun y () Int)
+(assert (and (<= x y) (> x 0)))
+(assert (= y 1))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback