diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-01-07 11:39:27 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-07 11:39:27 -0600 |
commit | 53dc40ec71344d6cc8df9f009cbbba4dbefccb64 (patch) | |
tree | c005676b3c59786652b3f816fe02b42f892316b9 /test/regress/regress1/sygus | |
parent | e3e6f0dc62f0bb9d3fb8d752c5eb4600872fd806 (diff) |
Update any-constant and normalization policies for sygus grammars (#3583)
Diffstat (limited to 'test/regress/regress1/sygus')
-rw-r--r-- | test/regress/regress1/sygus/coeff-solve-inv.sy | 2 | ||||
-rw-r--r-- | test/regress/regress1/sygus/issue3580.sy | 24 |
2 files changed, 25 insertions, 1 deletions
diff --git a/test/regress/regress1/sygus/coeff-solve-inv.sy b/test/regress/regress1/sygus/coeff-solve-inv.sy index edfcd6089..ed4689fe9 100644 --- a/test/regress/regress1/sygus/coeff-solve-inv.sy +++ b/test/regress/regress1/sygus/coeff-solve-inv.sy @@ -1,5 +1,5 @@ ; EXPECT: unsat -; COMMAND-LINE: --sygus-out=status --sygus-repair-const --lang=sygus2 +; COMMAND-LINE: --sygus-out=status --sygus-repair-const --lang=sygus2 --sygus-grammar-cons=any-const (set-logic LIA) (synth-inv inv-f ((x Int) (y Int)) ) diff --git a/test/regress/regress1/sygus/issue3580.sy b/test/regress/regress1/sygus/issue3580.sy new file mode 100644 index 000000000..9da07407a --- /dev/null +++ b/test/regress/regress1/sygus/issue3580.sy @@ -0,0 +1,24 @@ +; EXPECT: unsat +; COMMAND-LINE: --sygus-out=status --sygus-active-gen=none --lang=sygus2 +(set-logic ALL) +(synth-fun f + () Bool + ((B Bool)) + ( + (B Bool (true)) + ) +) +(synth-fun g + ((r Int)) Bool + ((B Bool) (I Int) (IConst Int)) + ( + (B Bool ((= I I) (=> B B))) + (I Int (r 0 (mod I IConst))) + (IConst Int ((Constant Int))) + ) +) +(constraint (g 0)) +(constraint (not (g 1))) +(constraint (g 2)) +(constraint f) +(check-synth) |