diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-07-23 13:36:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-23 13:36:53 -0500 |
commit | 416f6d2d55fb24fea63bd13537b24a6a88509344 (patch) | |
tree | 331e8d703214c77431c6c51c34b86dfeb0059566 /test/regress/regress0 | |
parent | 52a7602c529108c6e56868c427ac691fe472ff7c (diff) |
sygusComp2018: add regressions (#2191)
Diffstat (limited to 'test/regress/regress0')
-rw-r--r-- | test/regress/regress0/sygus/aig-si.sy | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/regress/regress0/sygus/aig-si.sy b/test/regress/regress0/sygus/aig-si.sy new file mode 100644 index 000000000..ef12e3c0e --- /dev/null +++ b/test/regress/regress0/sygus/aig-si.sy @@ -0,0 +1,30 @@ +; EXPECT: unsat +; COMMAND-LINE: --cegqi-si=all --cegqi-si-abort --decision=internal --cbqi --cbqi-prereg-inst --sygus-out=status +(set-logic BV) + +(define-fun parity ((a Bool) (b Bool) (c Bool) (d Bool)) Bool + (xor (not (xor a b)) (not (xor c d)))) + +(synth-fun AIG ((a Bool) (b Bool) (c Bool) (d Bool)) Bool + ((Start Bool ((and Start Start) (not Start) a b c d)))) + +(declare-var a Bool) +(declare-var b Bool) +(declare-var c Bool) +(declare-var d Bool) + +(constraint + (= (parity a b c d) + (and (AIG a b c d) + (not (and (and (not (and a b)) (not (and (not a) (not b)))) + (and (not (and (not c) (not d))) (not (and c d)))))))) + + +(check-synth) + +; Solution: +;(define-fun AIG ((a Bool) (b Bool) (c Bool) (d Bool)) Bool +;(not +; (and +; (and (not (and (not a) b)) (not (and d (not c)))) +; (and (not (and (not b) a)) (not (and (not d) c)))))) |