-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy path12-traces-min-rpb1.t
178 lines (174 loc) · 6.56 KB
/
12-traces-min-rpb1.t
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
$ goblint --enable witness.yaml.enabled --set witness.yaml.entry-types '["location_invariant"]' --disable witness.invariant.other --disable ana.base.invariant.enabled --set ana.relation.privatization mutex-meet --set ana.activated[+] apron --enable ana.sv-comp.functions --set ana.apron.domain polyhedra 12-traces-min-rpb1.c
[Success][Assert] Assertion "g == h" will succeed (12-traces-min-rpb1.c:16:3-16:26)
[Warning][Assert] Assertion "g == h" is unknown. (12-traces-min-rpb1.c:27:3-27:26)
[Success][Assert] Assertion "g == h" will succeed (12-traces-min-rpb1.c:29:3-29:26)
[Info][Deadcode] Logical lines of code (LLoC) summary:
live: 18
dead: 0
total lines: 18
[Warning][Race] Memory location h (race with conf. 110): (12-traces-min-rpb1.c:8:5-8:10)
write with [lock:{A}, thread:[main, t_fun@12-traces-min-rpb1.c:25:3-25:40]] (conf. 110) (exp: & h) (12-traces-min-rpb1.c:15:3-15:8)
read with [mhp:{created={[main, t_fun@12-traces-min-rpb1.c:25:3-25:40]}}, thread:[main]] (conf. 110) (exp: & h) (12-traces-min-rpb1.c:27:3-27:26)
[Warning][Race] Memory location g (race with conf. 110): (12-traces-min-rpb1.c:7:5-7:10)
write with [lock:{A}, thread:[main, t_fun@12-traces-min-rpb1.c:25:3-25:40]] (conf. 110) (exp: & g) (12-traces-min-rpb1.c:14:3-14:8)
read with [mhp:{created={[main, t_fun@12-traces-min-rpb1.c:25:3-25:40]}}, thread:[main]] (conf. 110) (exp: & g) (12-traces-min-rpb1.c:27:3-27:26)
[Info][Witness] witness generation summary:
location invariants: 3
loop invariants: 0
flow-insensitive invariants: 0
total generation entries: 3
[Info][Race] Memory locations race summary:
safe: 0
vulnerable: 0
unsafe: 2
total memory locations: 2
$ yamlWitnessStrip < witness.yml
- entry_type: location_invariant
location:
file_name: 12-traces-min-rpb1.c
file_hash: $FILE_HASH
line: 29
column: 3
function: main
location_invariant:
string: (long long )h == (long long )g
type: assertion
format: C
- entry_type: location_invariant
location:
file_name: 12-traces-min-rpb1.c
file_hash: $FILE_HASH
line: 19
column: 3
function: t_fun
location_invariant:
string: (long long )h == (long long )g
type: assertion
format: C
- entry_type: location_invariant
location:
file_name: 12-traces-min-rpb1.c
file_hash: $FILE_HASH
line: 14
column: 3
function: t_fun
location_invariant:
string: (long long )h == (long long )g
type: assertion
format: C
$ goblint --enable warn.deterministic --set ana.activated[+] apron --set ana.path_sens[+] threadflag --enable ana.sv-comp.functions --enable witness.yaml.enabled --set ana.activated[+] mutexGhosts --set witness.yaml.entry-types '["flow_insensitive_invariant", "ghost_instrumentation"]' 12-traces-min-rpb1.c --enable ana.apron.invariant.diff-box
[Warning][Assert] Assertion "g == h" is unknown. (12-traces-min-rpb1.c:27:3-27:26)
[Success][Assert] Assertion "g == h" will succeed (12-traces-min-rpb1.c:16:3-16:26)
[Success][Assert] Assertion "g == h" will succeed (12-traces-min-rpb1.c:29:3-29:26)
[Warning][Race] Memory location g (race with conf. 110): (12-traces-min-rpb1.c:7:5-7:10)
write with [lock:{A}, thread:[main, t_fun@12-traces-min-rpb1.c:25:3-25:40]] (conf. 110) (exp: & g) (12-traces-min-rpb1.c:14:3-14:8)
read with [mhp:{created={[main, t_fun@12-traces-min-rpb1.c:25:3-25:40]}}, thread:[main]] (conf. 110) (exp: & g) (12-traces-min-rpb1.c:27:3-27:26)
[Warning][Race] Memory location h (race with conf. 110): (12-traces-min-rpb1.c:8:5-8:10)
write with [lock:{A}, thread:[main, t_fun@12-traces-min-rpb1.c:25:3-25:40]] (conf. 110) (exp: & h) (12-traces-min-rpb1.c:15:3-15:8)
read with [mhp:{created={[main, t_fun@12-traces-min-rpb1.c:25:3-25:40]}}, thread:[main]] (conf. 110) (exp: & h) (12-traces-min-rpb1.c:27:3-27:26)
[Info][Race] Memory locations race summary:
safe: 0
vulnerable: 0
unsafe: 2
total memory locations: 2
[Info][Deadcode] Logical lines of code (LLoC) summary:
live: 18
dead: 0
total lines: 18
[Info][Witness] witness generation summary:
location invariants: 0
loop invariants: 0
flow-insensitive invariants: 1
total generation entries: 2
$ yamlWitnessStrip < witness.yml
- entry_type: ghost_instrumentation
content:
ghost_variables:
- name: A_locked
scope: global
type: int
initial:
value: "0"
format: c_expression
- name: multithreaded
scope: global
type: int
initial:
value: "0"
format: c_expression
ghost_updates:
- location:
file_name: 12-traces-min-rpb1.c
file_hash: $FILE_HASH
line: 13
column: 3
function: t_fun
updates:
- variable: A_locked
value: "1"
format: c_expression
- location:
file_name: 12-traces-min-rpb1.c
file_hash: $FILE_HASH
line: 17
column: 3
function: t_fun
updates:
- variable: A_locked
value: "0"
format: c_expression
- location:
file_name: 12-traces-min-rpb1.c
file_hash: $FILE_HASH
line: 18
column: 3
function: t_fun
updates:
- variable: A_locked
value: "1"
format: c_expression
- location:
file_name: 12-traces-min-rpb1.c
file_hash: $FILE_HASH
line: 19
column: 3
function: t_fun
updates:
- variable: A_locked
value: "0"
format: c_expression
- location:
file_name: 12-traces-min-rpb1.c
file_hash: $FILE_HASH
line: 25
column: 3
function: main
updates:
- variable: multithreaded
value: "1"
format: c_expression
- location:
file_name: 12-traces-min-rpb1.c
file_hash: $FILE_HASH
line: 28
column: 3
function: main
updates:
- variable: A_locked
value: "1"
format: c_expression
- location:
file_name: 12-traces-min-rpb1.c
file_hash: $FILE_HASH
line: 30
column: 3
function: main
updates:
- variable: A_locked
value: "0"
format: c_expression
- entry_type: flow_insensitive_invariant
flow_insensitive_invariant:
string: '! multithreaded || (A_locked || (long long )g == (long long )h)'
type: assertion
format: C