blob: 31800a36f406657c409056a034eb6f5d8b851572 (
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
26
27
|
; EXPECT: unsat
; COMMAND-LINE: --sygus-out=status
(set-logic LIA)
(synth-fun eq1 ( (x Int) (y Int) ) Int
((Start Int (x
y
0
(+ Start Start)
(- Start Start)
(ite StartBool Start Start)))
(StartBool Bool ((and StartBool StartBool)
(<= Start Start)
(= Start Start)))))
(define-fun iteB (( b1 Bool ) (b2 Bool ) (b3 Bool )) Bool (or (and b1 b2) (and (not b1) b3)))
(declare-var x Int)
(declare-var y Int)
(constraint (iteB (>= x 0)
(= (eq1 x y) (+ x x))
(= (eq1 x y) x)
))
(check-synth)
|