summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2015-09-15 10:39:29 +0200
committerajreynol <andrew.j.reynolds@gmail.com>2015-09-15 10:39:29 +0200
commitbad7f4fe4dca4c6511c2862bf81b6791640ac78f (patch)
tree0be31a9300766d39ae36c9efba02e2c5a68dd156 /test
parentace360b4da1edef06088a366dc21b58f9431efc2 (diff)
Fix bug related to quantifiers + incremental, thanks John Backes for the bug report. Other minor cleanup.
Diffstat (limited to 'test')
-rw-r--r--test/regress/regress0/push-pop/Makefile.am3
-rw-r--r--test/regress/regress0/push-pop/bug-fmf-fun-skolem.smt225
2 files changed, 27 insertions, 1 deletions
diff --git a/test/regress/regress0/push-pop/Makefile.am b/test/regress/regress0/push-pop/Makefile.am
index bcd8da228..501e7b2c6 100644
--- a/test/regress/regress0/push-pop/Makefile.am
+++ b/test/regress/regress0/push-pop/Makefile.am
@@ -40,7 +40,8 @@ BUG_TESTS = \
quant-fun-proc.smt2 \
quant-fun-proc-unmacro.smt2 \
quant-fun-proc-unfd.smt2 \
- bug654-dd.smt2
+ bug654-dd.smt2 \
+ bug-fmf-fun-skolem.smt2
TESTS = $(SMT_TESTS) $(SMT2_TESTS) $(CVC_TESTS) $(BUG_TESTS)
diff --git a/test/regress/regress0/push-pop/bug-fmf-fun-skolem.smt2 b/test/regress/regress0/push-pop/bug-fmf-fun-skolem.smt2
new file mode 100644
index 000000000..d5effc083
--- /dev/null
+++ b/test/regress/regress0/push-pop/bug-fmf-fun-skolem.smt2
@@ -0,0 +1,25 @@
+; COMMAND-LINE: --incremental --fmf-fun
+(set-logic ALL_SUPPORTED)
+(declare-datatypes () ((Lst (cons (head Int) (tail Lst)) (nil))))
+(define-fun-rec sum ((l Lst)) Int (ite (is-nil l) 0 (+ (head l) (sum (tail l)))))
+
+(declare-fun input () Int)
+(declare-fun p () Bool)
+(declare-fun acc () Lst)
+(assert (and (= acc (ite (>= input 0) (cons input nil) nil))
+ (= p (>= (sum acc) 0))))
+
+
+; EXPECT: unsat
+(push 1)
+(assert (not p))
+(check-sat)
+(pop 1)
+
+; EXPECT: unsat
+(push 1)
+(assert (not p))
+(check-sat)
+(pop 1)
+
+
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback