Debian Codegraph @

test/regress/cli/regress1/sygus/commutative-stream.sy

raw
1 ; EXPECT: (define-fun comm ((x Int) (y Int)) Int (+ y x))
2 ; EXPECT: (define-fun comm ((x Int) (y Int)) Int (- x x))
3 ; EXPECT: (error "Maximum term size (2) for enumerative SyGuS exceeded.")
4 ; EXIT: 1
5
6 ; COMMAND-LINE: --lang=sygus2 --sygus-stream --sygus-abort-size=2 --sygus-enum=smart --decision=justification
7
8 (set-logic LIA)
9
10 (synth-fun comm ((x Int) (y Int)) Int
11 ((Start Int))
12 ((Start Int (x
13 y
14 (+ Start Start)
15 (- Start Start)
16 ))
17 ))
18
19 (declare-var x Int)
20 (declare-var y Int)
21
22 (constraint (= (comm x y) (comm y x)))
23
24 (check-synth)