summaryrefslogtreecommitdiff
path: root/test/regress/regress1/sygus/enum-test.sy
blob: b5fbe4306a3c3b7ec6a1b1624d409e35766dab24 (plain)
1
2
3
4
5
6
7
8
9
; EXPECT: unsat
; COMMAND-LINE: --lang=sygus2 --sygus-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)) ((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