Debian Codegraph @

test/regress/cli/regress1/sygus/fast-enum-backtrack.sy

raw
1 ; EXPECT: feasible
2 ; COMMAND-LINE: --sygus-out=status --lang=sygus2 --sygus-enum=fast
3
4 (set-logic ALL)
5
6 (declare-datatype Formula (
7 (P (Id Int))
8 (Op1 (op1 Int) (f Formula))
9 (Op2 (op2 Int) (f1 Formula) (f2 Formula))
10 )
11 )
12
13 (synth-fun phi () Formula
14 ((<F> Formula) (<O2> Int))
15 ((<F> Formula (
16 (P <O2>)
17 (Op1 <O2> <F>)
18 (Op2 <O2> <F> <F>)
19 )
20 )
21 (<O2> Int (0 1))
22 )
23 )
24 (define-fun holds ((f Formula)) Bool
25 (and ((_ is Op2) f) (= (op2 f) 1))
26 )
27 (define-fun holds2 ((f Formula)) Bool
28 (and ((_ is Op2) f) (= (op1 (f1 f)) 1))
29 )
30 (constraint (holds phi))
31 (check-synth)
32