Debian Codegraph @

test/regress/cli/regress0/sygus/ccp16.lus.sy

raw
1 ; EXPECT: feasible
2 ; COMMAND-LINE: --lang=sygus2 --sygus-out=status
3 (set-logic SAT)
4
5 (define-fun
6 __node_init_top_0 (
7 (top.usr.OK_a_0 Bool)
8 (top.res.init_flag_a_0 Bool)
9 ) Bool
10
11 (and (= top.usr.OK_a_0 true) top.res.init_flag_a_0)
12 )
13
14 (define-fun
15 __node_trans_top_0 (
16 (top.usr.OK_a_1 Bool)
17 (top.res.init_flag_a_1 Bool)
18 (top.usr.OK_a_0 Bool)
19 (top.res.init_flag_a_0 Bool)
20 ) Bool
21
22 (and (= top.usr.OK_a_1 true) (not top.res.init_flag_a_1))
23 )
24
25
26
27 (synth-inv str_invariant(
28 (top.usr.OK Bool)
29 (top.res.init_flag Bool)
30 ))
31
32
33 (define-fun
34 init (
35 (top.usr.OK Bool)
36 (top.res.init_flag Bool)
37 ) Bool
38
39 (and (= top.usr.OK true) top.res.init_flag)
40 )
41
42 (define-fun
43 trans (
44
45 ;; Current state.
46 (top.usr.OK Bool)
47 (top.res.init_flag Bool)
48
49 ;; Next state.
50 (top.usr.OK! Bool)
51 (top.res.init_flag! Bool)
52
53 ) Bool
54
55 (and (= top.usr.OK! true) (not top.res.init_flag!))
56 )
57
58 (define-fun
59 prop (
60 (top.usr.OK Bool)
61 (top.res.init_flag Bool)
62 ) Bool
63
64 top.usr.OK
65 )
66
67 (inv-constraint str_invariant init trans prop)
68
69 (check-synth)