|
1 | 1 | `protection` privatization: |
2 | 2 |
|
3 | | - $ goblint --enable witness.yaml.enabled --set witness.yaml.entry-types '["location_invariant"]' --disable witness.invariant.other --set ana.base.privatization protection 01-priv_nr.c |
| 3 | + $ goblint --enable witness.yaml.enabled --set witness.yaml.invariant-types '["location_invariant"]' --disable witness.invariant.other --set ana.base.privatization protection 01-priv_nr.c |
4 | 4 | [Success][Assert] Assertion "glob1 == 5" will succeed (01-priv_nr.c:22:3-22:30) |
5 | 5 | [Success][Assert] Assertion "t == 5" will succeed (01-priv_nr.c:12:3-12:26) |
6 | 6 | [Success][Assert] Assertion "glob1 == -10" will succeed (01-priv_nr.c:14:3-14:32) |
|
13 | 13 | location invariants: 3 |
14 | 14 | loop invariants: 0 |
15 | 15 | flow-insensitive invariants: 0 |
16 | | - total generation entries: 3 |
| 16 | + total generation entries: 1 |
17 | 17 | [Info][Race] Memory locations race summary: |
18 | 18 | safe: 1 |
19 | 19 | vulnerable: 0 |
20 | 20 | unsafe: 0 |
21 | 21 | total memory locations: 1 |
22 | 22 |
|
23 | 23 | $ yamlWitnessStrip < witness.yml |
24 | | - - entry_type: location_invariant |
25 | | - location: |
26 | | - file_name: 01-priv_nr.c |
27 | | - line: 25 |
28 | | - column: 3 |
29 | | - function: main |
30 | | - location_invariant: |
31 | | - string: glob1 == 5 |
32 | | - type: assertion |
33 | | - format: C |
34 | | - - entry_type: location_invariant |
35 | | - location: |
36 | | - file_name: 01-priv_nr.c |
37 | | - line: 11 |
38 | | - column: 3 |
39 | | - function: t_fun |
40 | | - location_invariant: |
41 | | - string: glob1 == 5 |
42 | | - type: assertion |
43 | | - format: C |
44 | | - - entry_type: location_invariant |
45 | | - location: |
46 | | - file_name: 01-priv_nr.c |
47 | | - line: 11 |
48 | | - column: 3 |
49 | | - function: t_fun |
50 | | - location_invariant: |
51 | | - string: (unsigned long )arg == 0UL |
52 | | - type: assertion |
53 | | - format: C |
| 24 | + - entry_type: invariant_set |
| 25 | + content: |
| 26 | + - invariant: |
| 27 | + type: location_invariant |
| 28 | + location: |
| 29 | + file_name: 01-priv_nr.c |
| 30 | + line: 11 |
| 31 | + column: 3 |
| 32 | + function: t_fun |
| 33 | + value: (unsigned long )arg == 0UL |
| 34 | + format: c_expression |
| 35 | + - invariant: |
| 36 | + type: location_invariant |
| 37 | + location: |
| 38 | + file_name: 01-priv_nr.c |
| 39 | + line: 11 |
| 40 | + column: 3 |
| 41 | + function: t_fun |
| 42 | + value: glob1 == 5 |
| 43 | + format: c_expression |
| 44 | + - invariant: |
| 45 | + type: location_invariant |
| 46 | + location: |
| 47 | + file_name: 01-priv_nr.c |
| 48 | + line: 25 |
| 49 | + column: 3 |
| 50 | + function: main |
| 51 | + value: glob1 == 5 |
| 52 | + format: c_expression |
54 | 53 |
|
55 | 54 | `vojdani` privatization: |
56 | 55 |
|
57 | | - $ goblint --enable witness.yaml.enabled --set witness.yaml.entry-types '["location_invariant"]' --disable witness.invariant.other --set ana.base.privatization vojdani 01-priv_nr.c |
| 56 | + $ goblint --enable witness.yaml.enabled --set witness.yaml.invariant-types '["location_invariant"]' --disable witness.invariant.other --set ana.base.privatization vojdani 01-priv_nr.c |
58 | 57 | [Success][Assert] Assertion "glob1 == 5" will succeed (01-priv_nr.c:22:3-22:30) |
59 | 58 | [Success][Assert] Assertion "t == 5" will succeed (01-priv_nr.c:12:3-12:26) |
60 | 59 | [Success][Assert] Assertion "glob1 == -10" will succeed (01-priv_nr.c:14:3-14:32) |
|
67 | 66 | location invariants: 3 |
68 | 67 | loop invariants: 0 |
69 | 68 | flow-insensitive invariants: 0 |
70 | | - total generation entries: 3 |
| 69 | + total generation entries: 1 |
71 | 70 | [Info][Race] Memory locations race summary: |
72 | 71 | safe: 1 |
73 | 72 | vulnerable: 0 |
74 | 73 | unsafe: 0 |
75 | 74 | total memory locations: 1 |
76 | 75 |
|
77 | 76 | $ yamlWitnessStrip < witness.yml |
78 | | - - entry_type: location_invariant |
79 | | - location: |
80 | | - file_name: 01-priv_nr.c |
81 | | - line: 25 |
82 | | - column: 3 |
83 | | - function: main |
84 | | - location_invariant: |
85 | | - string: glob1 == 5 |
86 | | - type: assertion |
87 | | - format: C |
88 | | - - entry_type: location_invariant |
89 | | - location: |
90 | | - file_name: 01-priv_nr.c |
91 | | - line: 11 |
92 | | - column: 3 |
93 | | - function: t_fun |
94 | | - location_invariant: |
95 | | - string: glob1 == 5 |
96 | | - type: assertion |
97 | | - format: C |
98 | | - - entry_type: location_invariant |
99 | | - location: |
100 | | - file_name: 01-priv_nr.c |
101 | | - line: 11 |
102 | | - column: 3 |
103 | | - function: t_fun |
104 | | - location_invariant: |
105 | | - string: (unsigned long )arg == 0UL |
106 | | - type: assertion |
107 | | - format: C |
| 77 | + - entry_type: invariant_set |
| 78 | + content: |
| 79 | + - invariant: |
| 80 | + type: location_invariant |
| 81 | + location: |
| 82 | + file_name: 01-priv_nr.c |
| 83 | + line: 11 |
| 84 | + column: 3 |
| 85 | + function: t_fun |
| 86 | + value: (unsigned long )arg == 0UL |
| 87 | + format: c_expression |
| 88 | + - invariant: |
| 89 | + type: location_invariant |
| 90 | + location: |
| 91 | + file_name: 01-priv_nr.c |
| 92 | + line: 11 |
| 93 | + column: 3 |
| 94 | + function: t_fun |
| 95 | + value: glob1 == 5 |
| 96 | + format: c_expression |
| 97 | + - invariant: |
| 98 | + type: location_invariant |
| 99 | + location: |
| 100 | + file_name: 01-priv_nr.c |
| 101 | + line: 25 |
| 102 | + column: 3 |
| 103 | + function: main |
| 104 | + value: glob1 == 5 |
| 105 | + format: c_expression |
108 | 106 |
|
109 | 107 | `mutex-meet` privatization: |
110 | 108 |
|
111 | | - $ goblint --enable witness.yaml.enabled --set witness.yaml.entry-types '["location_invariant"]' --disable witness.invariant.other --set ana.base.privatization mutex-meet 01-priv_nr.c |
| 109 | + $ goblint --enable witness.yaml.enabled --set witness.yaml.invariant-types '["location_invariant"]' --disable witness.invariant.other --set ana.base.privatization mutex-meet 01-priv_nr.c |
112 | 110 | [Success][Assert] Assertion "glob1 == 5" will succeed (01-priv_nr.c:22:3-22:30) |
113 | 111 | [Success][Assert] Assertion "t == 5" will succeed (01-priv_nr.c:12:3-12:26) |
114 | 112 | [Success][Assert] Assertion "glob1 == -10" will succeed (01-priv_nr.c:14:3-14:32) |
|
121 | 119 | location invariants: 3 |
122 | 120 | loop invariants: 0 |
123 | 121 | flow-insensitive invariants: 0 |
124 | | - total generation entries: 3 |
| 122 | + total generation entries: 1 |
125 | 123 | [Info][Race] Memory locations race summary: |
126 | 124 | safe: 1 |
127 | 125 | vulnerable: 0 |
128 | 126 | unsafe: 0 |
129 | 127 | total memory locations: 1 |
130 | 128 |
|
131 | 129 | $ yamlWitnessStrip < witness.yml |
132 | | - - entry_type: location_invariant |
133 | | - location: |
134 | | - file_name: 01-priv_nr.c |
135 | | - line: 25 |
136 | | - column: 3 |
137 | | - function: main |
138 | | - location_invariant: |
139 | | - string: glob1 == 5 |
140 | | - type: assertion |
141 | | - format: C |
142 | | - - entry_type: location_invariant |
143 | | - location: |
144 | | - file_name: 01-priv_nr.c |
145 | | - line: 11 |
146 | | - column: 3 |
147 | | - function: t_fun |
148 | | - location_invariant: |
149 | | - string: glob1 == 5 |
150 | | - type: assertion |
151 | | - format: C |
152 | | - - entry_type: location_invariant |
153 | | - location: |
154 | | - file_name: 01-priv_nr.c |
155 | | - line: 11 |
156 | | - column: 3 |
157 | | - function: t_fun |
158 | | - location_invariant: |
159 | | - string: (unsigned long )arg == 0UL |
160 | | - type: assertion |
161 | | - format: C |
| 130 | + - entry_type: invariant_set |
| 131 | + content: |
| 132 | + - invariant: |
| 133 | + type: location_invariant |
| 134 | + location: |
| 135 | + file_name: 01-priv_nr.c |
| 136 | + line: 11 |
| 137 | + column: 3 |
| 138 | + function: t_fun |
| 139 | + value: (unsigned long )arg == 0UL |
| 140 | + format: c_expression |
| 141 | + - invariant: |
| 142 | + type: location_invariant |
| 143 | + location: |
| 144 | + file_name: 01-priv_nr.c |
| 145 | + line: 11 |
| 146 | + column: 3 |
| 147 | + function: t_fun |
| 148 | + value: glob1 == 5 |
| 149 | + format: c_expression |
| 150 | + - invariant: |
| 151 | + type: location_invariant |
| 152 | + location: |
| 153 | + file_name: 01-priv_nr.c |
| 154 | + line: 25 |
| 155 | + column: 3 |
| 156 | + function: main |
| 157 | + value: glob1 == 5 |
| 158 | + format: c_expression |
162 | 159 |
|
163 | 160 | `write+lock` privatization: |
164 | 161 |
|
165 | | - $ goblint --enable witness.yaml.enabled --set witness.yaml.entry-types '["location_invariant"]' --disable witness.invariant.other --set ana.base.privatization write+lock 01-priv_nr.c |
| 162 | + $ goblint --enable witness.yaml.enabled --set witness.yaml.invariant-types '["location_invariant"]' --disable witness.invariant.other --set ana.base.privatization write+lock 01-priv_nr.c |
166 | 163 | [Success][Assert] Assertion "glob1 == 5" will succeed (01-priv_nr.c:22:3-22:30) |
167 | 164 | [Success][Assert] Assertion "t == 5" will succeed (01-priv_nr.c:12:3-12:26) |
168 | 165 | [Success][Assert] Assertion "glob1 == -10" will succeed (01-priv_nr.c:14:3-14:32) |
|
175 | 172 | location invariants: 3 |
176 | 173 | loop invariants: 0 |
177 | 174 | flow-insensitive invariants: 0 |
178 | | - total generation entries: 3 |
| 175 | + total generation entries: 1 |
179 | 176 | [Info][Race] Memory locations race summary: |
180 | 177 | safe: 1 |
181 | 178 | vulnerable: 0 |
182 | 179 | unsafe: 0 |
183 | 180 | total memory locations: 1 |
184 | 181 |
|
185 | 182 | $ yamlWitnessStrip < witness.yml |
186 | | - - entry_type: location_invariant |
187 | | - location: |
188 | | - file_name: 01-priv_nr.c |
189 | | - line: 25 |
190 | | - column: 3 |
191 | | - function: main |
192 | | - location_invariant: |
193 | | - string: glob1 == 5 |
194 | | - type: assertion |
195 | | - format: C |
196 | | - - entry_type: location_invariant |
197 | | - location: |
198 | | - file_name: 01-priv_nr.c |
199 | | - line: 11 |
200 | | - column: 3 |
201 | | - function: t_fun |
202 | | - location_invariant: |
203 | | - string: glob1 == 5 |
204 | | - type: assertion |
205 | | - format: C |
206 | | - - entry_type: location_invariant |
207 | | - location: |
208 | | - file_name: 01-priv_nr.c |
209 | | - line: 11 |
210 | | - column: 3 |
211 | | - function: t_fun |
212 | | - location_invariant: |
213 | | - string: (unsigned long )arg == 0UL |
214 | | - type: assertion |
215 | | - format: C |
| 183 | + - entry_type: invariant_set |
| 184 | + content: |
| 185 | + - invariant: |
| 186 | + type: location_invariant |
| 187 | + location: |
| 188 | + file_name: 01-priv_nr.c |
| 189 | + line: 11 |
| 190 | + column: 3 |
| 191 | + function: t_fun |
| 192 | + value: (unsigned long )arg == 0UL |
| 193 | + format: c_expression |
| 194 | + - invariant: |
| 195 | + type: location_invariant |
| 196 | + location: |
| 197 | + file_name: 01-priv_nr.c |
| 198 | + line: 11 |
| 199 | + column: 3 |
| 200 | + function: t_fun |
| 201 | + value: glob1 == 5 |
| 202 | + format: c_expression |
| 203 | + - invariant: |
| 204 | + type: location_invariant |
| 205 | + location: |
| 206 | + file_name: 01-priv_nr.c |
| 207 | + line: 25 |
| 208 | + column: 3 |
| 209 | + function: main |
| 210 | + value: glob1 == 5 |
| 211 | + format: c_expression |
0 commit comments