summaryrefslogtreecommitdiff
path: root/test/regress/regress1/sygus/enum-test.sy
blob: 7364747fc36042af577a87b213a7dd7d6978b5e2 (plain)
1
2
3
4
5
6
7
8
9
; EXPECT: unsat
; COMMAND-LINE: --cegqi-si=all --sygus-out=status
(set-logic LIA)
;; this is the custom enumeration datatype syntax from an early proposal of the sygus standard
(define-sort D (Enum (a b)))
(define-fun f ((x D)) Int (ite (= x D::a) 3 7))
(synth-fun g () D ((Start D (D::a D::b))))
(constraint (= (f g) 7))
(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback