summaryrefslogtreecommitdiff
path: root/test/regress/regress1/sygus/cube-nia.sy
blob: ef57840fee49f0c2bcc8279b643dcc97766f3f18 (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
; EXPECT: unsat
; COMMAND-LINE: --lang=sygus2 --sygus-out=status

(set-logic NIA)

(synth-fun cube ((x Int)) Int
  ((ntInt Int) (ntBool Bool))
  (
    (ntInt Int
      (1 x
        (* ntInt ntInt)
        (ite ntBool ntInt ntInt)
      )
    )
    (ntBool Bool
      ( 
        (> ntInt ntInt)
        (= ntInt ntInt)
      )
    )
  )
)

(constraint (= (cube 1) 1))
(constraint (= (cube 2) 8))
(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback