summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2017-04-28 11:46:53 -0500
committerajreynol <andrew.j.reynolds@gmail.com>2017-04-28 11:46:53 -0500
commit24385c4c5f9c17610f10ed2f8d44c10a16c1567f (patch)
tree801876270012b2f3541b363f4f1cc881c432ebd2 /test
parent21ac21a2ff3ba3eeac4deabf0c4b79ca4cc8df77 (diff)
Do not eliminate non-standard arithmetic operators in recursive function definitions, add regression.
Diffstat (limited to 'test')
-rw-r--r--test/regress/regress0/fmf/Makefile.am3
-rw-r--r--test/regress/regress0/fmf/fmf-fun-no-elim-ext-arith.smt218
2 files changed, 20 insertions, 1 deletions
diff --git a/test/regress/regress0/fmf/Makefile.am b/test/regress/regress0/fmf/Makefile.am
index a91499a6c..593cdfa8b 100644
--- a/test/regress/regress0/fmf/Makefile.am
+++ b/test/regress/regress0/fmf/Makefile.am
@@ -72,7 +72,8 @@ TESTS = \
quant_real_univ.cvc \
constr-ground-to.smt2 \
bug-041417-set-options.cvc \
- alg202+1.smt2
+ alg202+1.smt2 \
+ fmf-fun-no-elim-ext-arith.smt2
EXTRA_DIST = $(TESTS)
diff --git a/test/regress/regress0/fmf/fmf-fun-no-elim-ext-arith.smt2 b/test/regress/regress0/fmf/fmf-fun-no-elim-ext-arith.smt2
new file mode 100644
index 000000000..dd9cb6886
--- /dev/null
+++ b/test/regress/regress0/fmf/fmf-fun-no-elim-ext-arith.smt2
@@ -0,0 +1,18 @@
+; COMMAND-LINE: --fmf-fun --no-check-models
+; EXPECT: sat
+(set-logic UFLIA)
+(set-info :status sat)
+(define-fun-rec int-and ((n Int) (n1 Int) (n2 Int)) Bool (
+ or
+ (= n1 n 0)
+ (= n2 n 0)
+ (
+ and
+ (> n1 0)
+ (> n2 0)
+ (>= n 0)
+ (= (not (= (mod n 2 ) 0)) (and (not (= (mod n1 2 ) 0)) (not (= (mod n2 2) 0))))
+ (int-and (div n 2) (div n1 2) (div n2 2))
+ )
+))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback