From 6edc4fac0e5c868b6c6bad13ffc9112b16c1d5f5 Mon Sep 17 00:00:00 2001 From: ajreynol Date: Wed, 1 Jun 2016 15:51:39 -0500 Subject: Initial infrastructure for bounded set quantification (disabled). Refactoring and fixes for --fmf-bound-int. Fix simple memory leaks in strings and bounded integers. --- test/regress/regress0/fmf/Makefile.am | 3 ++- test/regress/regress0/fmf/bound-int-alt.smt2 | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 test/regress/regress0/fmf/bound-int-alt.smt2 (limited to 'test/regress') diff --git a/test/regress/regress0/fmf/Makefile.am b/test/regress/regress0/fmf/Makefile.am index 6e1c6e918..b7daadfd1 100644 --- a/test/regress/regress0/fmf/Makefile.am +++ b/test/regress/regress0/fmf/Makefile.am @@ -56,7 +56,8 @@ TESTS = \ ForElimination-scala-9.smt2 \ agree466.smt2 \ LeftistHeap.scala-8-ncm.smt2 \ - sc-crash-052316.smt2 + sc-crash-052316.smt2 \ + bound-int-alt.smt2 EXTRA_DIST = $(TESTS) diff --git a/test/regress/regress0/fmf/bound-int-alt.smt2 b/test/regress/regress0/fmf/bound-int-alt.smt2 new file mode 100644 index 000000000..146487925 --- /dev/null +++ b/test/regress/regress0/fmf/bound-int-alt.smt2 @@ -0,0 +1,18 @@ +; COMMAND-LINE: --fmf-bound-int +; EXPECT: sat +(set-logic UFLIA) +(set-info :status sat) +(declare-sort U 0) +(declare-sort V 0) +(declare-fun P (U Int V Int U Int) Bool) + +(assert (forall ((x U) (y Int) (z V) (w Int) (v U) (d Int)) (=> (and (<= 0 d 1) (<= 2 y 6) (<= 40 w (+ 37 y))) (P x y z w v d)))) + +(declare-fun a () U) +(declare-fun b () V) + +(assert (not (P a 2 b 40 a 0))) +(assert (not (P a 6 b 39 a 0))) +(assert (not (P a 6 b 44 a 0))) + +(check-sat) -- cgit v1.2.3