Debian Codegraph @

test/regress/cli/regress1/sygus/int2bv.sy

raw
1 ; EXPECT: feasible
2 ; COMMAND-LINE: --sygus-out=status
3 (set-logic ALL)
4 (synth-fun f ((x Int)) (_ BitVec 4)
5 ((Start (_ BitVec 4)) (StartInt Int))
6 (
7 (Start (_ BitVec 4) (#b0000 #b0001 ((_ int_to_bv 4) StartInt)))
8 (StartInt Int (0 1 x (+ StartInt StartInt)))
9 )
10 )
11
12
13 (constraint (= (f 3) #b0011))
14 (constraint (= (f 2) #b0010))
15 (constraint (= (f 1) #b0001))
16 (constraint (= (f 11) #b1011))
17
18 (check-synth)