summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-02-29 10:28:27 -0600
committerGitHub <noreply@github.com>2020-02-29 10:28:27 -0600
commitee75ebf00e1aa463656cd192e52d3aec224345c0 (patch)
tree5b34e2133c6d19f2264e4994379f5dc81209239e /test
parent31efb570a9d5811fd88a34d4915d7d08c81d13fa (diff)
Throw warning instead of error for non-constant values in check-model stages (#3844)
Fixes #3729 and fixes #3720. This updates two more stages of check-model (checking whether values assigned to terms are constants and internally checking whether assertions belonging to theories) to only throw warnings when a term/assertion has a non-constant value in the model. This is to accommodate cases where check-model is infeasible.
Diffstat (limited to 'test')
-rw-r--r--test/regress/CMakeLists.txt2
-rw-r--r--test/regress/regress0/nl/issue3729-cm-solved-tf.smt27
-rw-r--r--test/regress/regress0/sep/issue3720-check-model.smt25
3 files changed, 14 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt
index 3cbc2953f..34f7a8713 100644
--- a/test/regress/CMakeLists.txt
+++ b/test/regress/CMakeLists.txt
@@ -573,6 +573,7 @@ set(regress_0_tests
regress0/nl/issue3652.smt2
regress0/nl/issue3718.smt2
regress0/nl/issue3719.smt2
+ regress0/nl/issue3729-cm-solved-tf.smt2
regress0/nl/magnitude-wrong-1020-m.smt2
regress0/nl/mult-po.smt2
regress0/nl/nia-wrong-tl.smt2
@@ -811,6 +812,7 @@ set(regress_0_tests
regress0/reset-assertions.smt2
regress0/sep/dispose-1.smt2
regress0/sep/dup-nemp.smt2
+ regress0/sep/issue3720-check-model.smt2
regress0/sep/nemp.smt2
regress0/sep/nil-no-elim.smt2
regress0/sep/nspatial-simp.smt2
diff --git a/test/regress/regress0/nl/issue3729-cm-solved-tf.smt2 b/test/regress/regress0/nl/issue3729-cm-solved-tf.smt2
new file mode 100644
index 000000000..69bb74e84
--- /dev/null
+++ b/test/regress/regress0/nl/issue3729-cm-solved-tf.smt2
@@ -0,0 +1,7 @@
+; COMMAND-LINE: --quiet
+; EXPECT: sat
+(set-logic QF_NRAT)
+(set-info :status sat)
+(declare-fun a () Real)
+(assert (= a (sin 1.0)))
+(check-sat)
diff --git a/test/regress/regress0/sep/issue3720-check-model.smt2 b/test/regress/regress0/sep/issue3720-check-model.smt2
new file mode 100644
index 000000000..6130c0ca8
--- /dev/null
+++ b/test/regress/regress0/sep/issue3720-check-model.smt2
@@ -0,0 +1,5 @@
+; COMMAND-LINE: --quiet
+; EXPECT: sat
+(set-logic ALL)
+(assert (_ emp Int Int))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback