diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-06-04 11:31:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 11:31:55 -0500 |
commit | 8c467723be3746ed711c609fa6dafb19a5a49e8b (patch) | |
tree | bd68e5503cef07eb76a3f4c2aee52abb044ceda3 /test | |
parent | a3670b55e0ef3d4c8e31800aa943688065ca029c (diff) |
Fix abduction with datatypes (#4566)
Previously we were treating constructor/selector/tester symbols as arguments to the abduct-to-synthesize.
Diffstat (limited to 'test')
-rw-r--r-- | test/regress/CMakeLists.txt | 1 | ||||
-rw-r--r-- | test/regress/regress1/abduct-dt.smt2 | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt index 801f38b29..290fca6bc 100644 --- a/test/regress/CMakeLists.txt +++ b/test/regress/CMakeLists.txt @@ -1200,6 +1200,7 @@ set(regress_0_tests # Regression level 1 tests set(regress_1_tests + regress1/abduct-dt.smt2 regress1/arith/arith-int-004.cvc regress1/arith/arith-int-011.cvc regress1/arith/arith-int-012.cvc diff --git a/test/regress/regress1/abduct-dt.smt2 b/test/regress/regress1/abduct-dt.smt2 new file mode 100644 index 000000000..d72d15a21 --- /dev/null +++ b/test/regress/regress1/abduct-dt.smt2 @@ -0,0 +1,8 @@ +; COMMAND-LINE: --produce-abducts +; SCRUBBER: grep -v -E '(\(define-fun)' +; EXIT: 0 +(set-logic ALL) +(declare-datatypes ((List 0)) (((nil) (cons (head Int) (tail List))))) +(declare-fun x () List) +(assert (distinct x nil)) +(get-abduct A (= x (cons (head x) (tail x)))) |