diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-02-15 15:31:48 -0600 |
---|---|---|
committer | Aina Niemetz <aina.niemetz@gmail.com> | 2018-02-15 13:31:48 -0800 |
commit | 55037e0bcef45c795f28ff3fcf6c1055af465c70 (patch) | |
tree | 397d89bd10e541e1206c5dafdb8cf731feb34730 /test/regress/regress1/push-pop/quant-fun-proc-unmacro.smt2 | |
parent | 52a39aca19b7238d08c3cebcfa46436a73194008 (diff) |
Refactor regressions (#1581)
Diffstat (limited to 'test/regress/regress1/push-pop/quant-fun-proc-unmacro.smt2')
-rw-r--r-- | test/regress/regress1/push-pop/quant-fun-proc-unmacro.smt2 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/regress/regress1/push-pop/quant-fun-proc-unmacro.smt2 b/test/regress/regress1/push-pop/quant-fun-proc-unmacro.smt2 new file mode 100644 index 000000000..7cacfca98 --- /dev/null +++ b/test/regress/regress1/push-pop/quant-fun-proc-unmacro.smt2 @@ -0,0 +1,34 @@ +; COMMAND-LINE: --incremental --fmf-fun --macros-quant --no-check-models +(set-logic UFLIA) + + +(define-fun f ((x Int)) Int x) + +(define-fun-rec g ((x Int)) Int (ite (<= x 0) 0 (+ (g x) x))) + +; EXPECT: sat +(declare-fun h (Int) Int) +(push 1) +(assert (forall ((x Int)) (= (h x) 0))) +(check-sat) +(pop 1) + + +; EXPECT: unsat +(push 1) +(assert (= (f 1) 2)) +(check-sat) +(pop 1) + +; EXPECT: unsat +(push 1) +(assert (= (g 1) 5)) +(check-sat) +(pop 1) + +; EXPECT: sat +(push 1) +(assert (= (h 1) 5)) +(check-sat) +(pop 1) + |