summaryrefslogtreecommitdiff
path: root/test/regress/regress0/sygus/const-var-test.sy
blob: 78029cbc8e3aa730fe411158f49aedde53a339f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
; EXPECT: unsat
; COMMAND-LINE: --lang=sygus2 --sygus-si=all --sygus-out=status

(set-logic LIA)

(synth-fun max2 ((x Int) (y Int)) Int
    ((Start Int) (StartBool Bool))
    ((Start Int ((Variable Int)
                 (Constant Int)
                 (+ Start Start)
                 (- Start Start)
                 (ite StartBool Start Start)))
     (StartBool Bool ((and StartBool StartBool)
                      (or  StartBool StartBool)
                      (not StartBool)
                      (<=  Start Start)
                      (=   Start Start)
                      (>=  Start Start)))))

(declare-var x Int)
(declare-var y Int)

(constraint (= (max2 x y) (+ x y 500)))

(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback