diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-04-13 15:38:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-13 20:38:36 +0000 |
commit | f7dcb4875bba33b7712732a874581639681926f8 (patch) | |
tree | a9591152675088a259d0c6ebb7c832df62246a99 /test/regress | |
parent | 7bc8ebe940cf092d66265040db48c1e4b486c73f (diff) |
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.
Diffstat (limited to 'test/regress')
-rw-r--r-- | test/regress/CMakeLists.txt | 1 | ||||
-rw-r--r-- | test/regress/regress0/quantifiers/macro-back-subs-sat.smt2 | 13 |
2 files changed, 14 insertions, 0 deletions
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) |