summaryrefslogtreecommitdiff
path: root/test/regress/regress0
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2016-01-20 16:55:02 -0600
committerajreynol <andrew.j.reynolds@gmail.com>2016-01-20 16:55:02 -0600
commit7006d5ba2f68c01638a2ab2c98a86b41dcf4467c (patch)
treeecb2f69f3cbe1a2cabde21a9e9e4e08691c2b734 /test/regress/regress0
parentbbcf8ccc012caf6ad54b7ec2b91a9886fb6021e6 (diff)
Fix bug in fmc mbqi where modelscomputed for mbqi could involve non-constant values. Add regression.
Diffstat (limited to 'test/regress/regress0')
-rw-r--r--test/regress/regress0/fmf/Makefile.am3
-rw-r--r--test/regress/regress0/fmf/fmc_unsound_model.smt227
2 files changed, 29 insertions, 1 deletions
diff --git a/test/regress/regress0/fmf/Makefile.am b/test/regress/regress0/fmf/Makefile.am
index d262d624f..8b7202906 100644
--- a/test/regress/regress0/fmf/Makefile.am
+++ b/test/regress/regress0/fmf/Makefile.am
@@ -47,7 +47,8 @@ TESTS = \
fd-false.smt2 \
tail_rec.smt2 \
jasmin-cdt-crash.smt2 \
- loopy_coda.smt2
+ loopy_coda.smt2 \
+ fmc_unsound_model.smt2
EXTRA_DIST = $(TESTS)
diff --git a/test/regress/regress0/fmf/fmc_unsound_model.smt2 b/test/regress/regress0/fmf/fmc_unsound_model.smt2
new file mode 100644
index 000000000..813f89732
--- /dev/null
+++ b/test/regress/regress0/fmf/fmc_unsound_model.smt2
@@ -0,0 +1,27 @@
+; COMMAND-LINE: --finite-model-find
+; EXPECT: sat
+; this problem produced a model where incorrectly card(a)=1 due to --mbqi=fmc
+(set-logic ALL_SUPPORTED)
+
+(declare-sort a 0)
+(declare-datatypes () ((tree (Leaf (lab a)))))
+
+(declare-sort alpha 0)
+(declare-fun alphabet (tree a) Bool)
+(declare-fun g1 (alpha) tree)
+(declare-fun g2 (alpha) a)
+
+(assert
+ (forall ((x alpha))
+ (=>
+ (= (lab (g1 x)) (g2 x))
+ (alphabet (g1 x) (g2 x)))))
+
+(declare-fun x () a)
+(declare-fun y () a)
+; (assert (= x y))
+(assert
+ (and
+ (exists ((b alpha)) (and (= (Leaf y) (g1 b)) (= x (g2 b))))
+ (not (alphabet (Leaf y) x))))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback