diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-04-08 15:24:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 15:24:55 -0500 |
commit | 24357fea07bf1eb6b1156a8e455c58faee96b604 (patch) | |
tree | e89418fb98887c62d6d4f4e8d81d39829d61c1c7 /test | |
parent | 98a78889a4c4168f9c6632a0e19e1b8f422c4a9d (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.txt | 1 | ||||
-rw-r--r-- | test/regress/regress0/simple-dump-model.smt2 | 13 |
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) |