summaryrefslogtreecommitdiff
path: root/test/regress/regress1/sygus/complex-rewrite-in-db.sy
blob: e3e017cec0772d68650a2399cdbb2d11615ffd04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
; COMMAND-LINE: --sygus-si=all  --sygus-out=status
; EXPECT: unsat

(set-logic LIA)

(synth-fun f ((x Int) (y Int)) Int
  ((Start Int) (StartBool Bool))
  ((Start Int (0 1 x y
               (+ Start Start)
               (- Start Start)
               (ite StartBool Start Start)))
   (StartBool Bool ((and StartBool StartBool)
                    (not StartBool)
                    (<= Start Start)))))

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

(constraint (= (f x y) (ite (<= (+ y 3) x) x (+ x y))))

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