From fd64516dccb0f5fe7051343f7d5ccd7b46d99ec0 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Sat, 15 Sep 2012 22:27:23 +0000 Subject: [PATCH] bug testcase for model generation --- test/regress/regress0/Makefile.am | 3 ++- test/regress/regress0/bug382.smt2 | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 test/regress/regress0/bug382.smt2 diff --git a/test/regress/regress0/Makefile.am b/test/regress/regress0/Makefile.am index b8c2a2f48..973285b55 100644 --- a/test/regress/regress0/Makefile.am +++ b/test/regress/regress0/Makefile.am @@ -132,7 +132,8 @@ TESTS = $(SMT_TESTS) $(SMT2_TESTS) $(CVC_TESTS) $(TPTP_TESTS) $(BUG_TESTS) EXTRA_DIST = $(TESTS) \ simplification_bug4.smt2.expect \ - bug216.smt2.expect + bug216.smt2.expect \ + bug382.smt2 if CVC4_BUILD_PROFILE_COMPETITION else diff --git a/test/regress/regress0/bug382.smt2 b/test/regress/regress0/bug382.smt2 new file mode 100644 index 000000000..d92682d35 --- /dev/null +++ b/test/regress/regress0/bug382.smt2 @@ -0,0 +1,15 @@ +; EXPECT: sat +; EXPECT: ((x 0)) +; EXPECT: ((x 0)) +; EXPECT: (((f x) 1)) +; EXPECT: (((f x) 1)) +; EXIT: 10 +(set-option :produce-models true) +(set-logic QF_UFLIA) +(declare-fun f (Int) Int) +(declare-fun x () Int) +(check-sat) +(get-value (x)); returns 0 +(get-value (x)); returns 1 ?! +(get-value ((f x))); assert-fails in EqualityEngine +(get-value ((f x))) -- 2.30.2