Debian Codegraph @

test/regress/cli/regress0/sygus/print-grammar.sy

raw
1 ; REQUIRES: no-competition
2 ; COMMAND-LINE: -o sygus-grammar
3 ; SCRUBBER: sed -E 's/_[0-9]+/_N/g'
4 ; EXPECT: (sygus-grammar f ((A_Int_N Int) (A_Bool_N Bool) )((A_Int_N Int (x y 0 1 (+ A_Int_N A_Int_N) (- A_Int_N A_Int_N) (ite A_Bool_N A_Int_N A_Int_N)))(A_Bool_N Bool (true false (= A_Int_N A_Int_N) (<= A_Int_N A_Int_N) (not A_Bool_N) (and A_Bool_N A_Bool_N) (or A_Bool_N A_Bool_N)))))
5 ; EXPECT: (
6 ; EXPECT: (define-fun f ((x Int) (y Int)) Int 0)
7 ; EXPECT: )
8
9 (set-logic LIA)
10
11 (synth-fun f ((x Int) (y Int)) Int)
12
13 (declare-var x Int)
14 (declare-var y Int)
15 (constraint (= (f x y) 0))
16 (check-synth)