From f7dcb4875bba33b7712732a874581639681926f8 Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Tue, 13 Apr 2021 15:38:36 -0500 Subject: Refactor quantifiers macros (#6348) This does some refactoring of quantifiers macros preprocessing pass to use up-to-date utility methods, including lambdas, substitutions, methods for getting free variables. This is work towards adding proofs for macros. --- test/regress/CMakeLists.txt | 1 + test/regress/regress0/quantifiers/macro-back-subs-sat.smt2 | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 test/regress/regress0/quantifiers/macro-back-subs-sat.smt2 (limited to 'test') diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt index e84281a0d..5c3ceec21 100644 --- a/test/regress/CMakeLists.txt +++ b/test/regress/CMakeLists.txt @@ -851,6 +851,7 @@ set(regress_0_tests regress0/quantifiers/issue5645-dt-cm-spurious.smt2 regress0/quantifiers/issue5693-prenex.smt2 regress0/quantifiers/lra-triv-gn.smt2 + regress0/quantifiers/macro-back-subs-sat.smt2 regress0/quantifiers/macros-int-real.smt2 regress0/quantifiers/macros-real-arg.smt2 regress0/quantifiers/matching-lia-1arg.smt2 diff --git a/test/regress/regress0/quantifiers/macro-back-subs-sat.smt2 b/test/regress/regress0/quantifiers/macro-back-subs-sat.smt2 new file mode 100644 index 000000000..34b7422a5 --- /dev/null +++ b/test/regress/regress0/quantifiers/macro-back-subs-sat.smt2 @@ -0,0 +1,13 @@ +; COMMAND-LINE: --macros-quant +; EXPECT: sat +(set-logic UFLIA) +(declare-fun A (Int) Int) +(declare-fun B (Int) Int) +(declare-fun C (Int) Int) + +(assert (forall ((x Int)) (= (A x) (C (B x))))) +(assert (forall ((x Int)) (= (B x) 0))) + +(assert (= (A 3) (B 4))) + +(check-sat) -- cgit v1.2.3