summaryrefslogtreecommitdiff
path: root/test/regress/regress1/sygus/commutative-stream.sy
blob: 7b96a2bf32bd997c6d5078b95ecea4dea39889a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; EXPECT: (define-fun comm ((x Int) (y Int)) Int (+ x y))
; EXPECT: (define-fun comm ((x Int) (y Int)) Int (- x x))
; EXPECT: (error "Maximum term size (2) for enumerative SyGuS exceeded.")
; EXIT: 1

; COMMAND-LINE: --sygus-stream --sygus-abort-size=2 --decision=justification

(set-logic LIA)

(synth-fun comm ((x Int) (y Int)) Int
    ((Start Int (x
                 y
                 (+ Start Start)
                 (- Start Start)
                 ))
          ))

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

(constraint (= (comm x y) (comm y x)))

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