diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-10-14 15:01:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-14 15:01:05 -0500 |
commit | d31b7cb6e695d6489134956408858a94d2308178 (patch) | |
tree | d5c2315fd4c12395b9380795e6bd4b213d40a12a /test/regress/regress1 | |
parent | ae4be031cf818ccb69f79a588de0837d8e97897e (diff) |
Support UF in default sygus grammars (#3319)
Diffstat (limited to 'test/regress/regress1')
-rw-r--r-- | test/regress/regress1/sygus/ho-sygus.sy | 8 | ||||
-rw-r--r-- | test/regress/regress1/sygus/uf-abduct.smt2 | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/regress/regress1/sygus/ho-sygus.sy b/test/regress/regress1/sygus/ho-sygus.sy new file mode 100644 index 000000000..c66485817 --- /dev/null +++ b/test/regress/regress1/sygus/ho-sygus.sy @@ -0,0 +1,8 @@ +; EXPECT: unsat +; COMMAND-LINE: --sygus-out=status --uf-ho +(set-logic ALL) +(synth-fun f ((y (-> Int Int)) (z Int)) Int) +(declare-var z (-> Int Int)) +(constraint (= (f z 0) (z 1))) +(constraint (= (f z 1) (z 2))) +(check-synth) diff --git a/test/regress/regress1/sygus/uf-abduct.smt2 b/test/regress/regress1/sygus/uf-abduct.smt2 new file mode 100644 index 000000000..690e57290 --- /dev/null +++ b/test/regress/regress1/sygus/uf-abduct.smt2 @@ -0,0 +1,8 @@ +; COMMAND-LINE: --produce-abducts --uf-ho +; SCRUBBER: grep -v -E '(\(define-fun)' +; EXIT: 0 +(set-logic UFLIA) +(declare-fun f (Int) Int) +(declare-fun a () Int) +(assert (and (<= 0 a) (< a 4))) +(get-abduct ensureF (or (> (f 0) 0) (> (f 1) 0) (> (f 2) 0) (> (f 3) 0))) |