Debian Codegraph @

test/regress/cli/regress1/sygus/cube-nia.sy

raw
1 ; EXPECT: feasible
2 ; COMMAND-LINE: --lang=sygus2 --sygus-out=status
3
4 (set-logic NIA)
5
6 (synth-fun cube ((x Int)) Int
7 ((ntInt Int) (ntBool Bool))
8 (
9 (ntInt Int
10 (1 x
11 (* ntInt ntInt)
12 (ite ntBool ntInt ntInt)
13 )
14 )
15 (ntBool Bool
16 (
17 (> ntInt ntInt)
18 (= ntInt ntInt)
19 )
20 )
21 )
22 )
23
24 (constraint (= (cube 1) 1))
25 (constraint (= (cube 2) 8))
26 (check-synth)