Skip to content

Commit 66746b0

Browse files
authored
Merge pull request #1812 from goblint/yaml-witness-convert
Convert some old YAML witnesses to version 2.0
2 parents 26ef1f8 + ece91c3 commit 66746b0

File tree

87 files changed

+902
-1344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+902
-1344
lines changed

tests/regression/56-witness/01-base-lor-enums.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// PARAM: --enable ana.int.enums --set witness.yaml.entry-types[*] location_invariant --set witness.yaml.validate 01-base-lor-enums.yml
1+
// PARAM: --enable ana.int.enums --set witness.yaml.validate 01-base-lor-enums.yml
22

33
int main() {
44
int r; // rand
Lines changed: 48 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
- entry_type: location_invariant
1+
- entry_type: invariant_set
22
metadata:
3-
format_version: "0.1"
3+
format_version: "2.0"
44
uuid: e5802c77-d0ac-4f91-a0ac-c97ba97697d5
55
creation_time: 2022-06-16T06:37:52Z
66
producer:
@@ -13,113 +13,49 @@
1313
01-base-lor-enums.c: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
1414
data_model: LP64
1515
language: C
16-
location:
17-
file_name: 01-base-lor-enums.c
18-
file_hash: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
19-
line: 17
20-
column: 3
21-
function: main
22-
location_invariant:
23-
string: (x == 1 || x == 3) || x == 6
24-
type: assertion
25-
format: C
26-
- entry_type: location_invariant
27-
metadata:
28-
format_version: "0.1"
29-
uuid: e5802c77-d0ac-4f91-a0ac-c97ba97697d5
30-
creation_time: 2022-06-16T06:37:52Z
31-
producer:
32-
name: Simmo Saan
33-
version: n/a
34-
task:
35-
input_files:
36-
- 01-base-lor-enums.c
37-
input_file_hashes:
38-
01-base-lor-enums.c: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
39-
data_model: LP64
40-
language: C
41-
location:
42-
file_name: 01-base-lor-enums.c
43-
file_hash: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
44-
line: 18
45-
column: 3
46-
function: main
47-
location_invariant:
48-
string: (x == 1 || x == 3) || x == 7
49-
type: assertion
50-
format: C
51-
- entry_type: location_invariant
52-
metadata:
53-
format_version: "0.1"
54-
uuid: e5802c77-d0ac-4f91-a0ac-c97ba97697d5
55-
creation_time: 2022-06-16T06:37:52Z
56-
producer:
57-
name: Simmo Saan
58-
version: n/a
59-
task:
60-
input_files:
61-
- 01-base-lor-enums.c
62-
input_file_hashes:
63-
01-base-lor-enums.c: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
64-
data_model: LP64
65-
language: C
66-
location:
67-
file_name: 01-base-lor-enums.c
68-
file_hash: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
69-
line: 29
70-
column: 3
71-
function: main
72-
location_invariant:
73-
string: y == 11 || y == x
74-
type: assertion
75-
format: C
76-
- entry_type: location_invariant
77-
metadata:
78-
format_version: "0.1"
79-
uuid: e5802c77-d0ac-4f91-a0ac-c97ba97697d5
80-
creation_time: 2022-06-16T06:37:52Z
81-
producer:
82-
name: Simmo Saan
83-
version: n/a
84-
task:
85-
input_files:
86-
- 01-base-lor-enums.c
87-
input_file_hashes:
88-
01-base-lor-enums.c: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
89-
data_model: LP64
90-
language: C
91-
location:
92-
file_name: 01-base-lor-enums.c
93-
file_hash: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
94-
line: 30
95-
column: 3
96-
function: main
97-
location_invariant:
98-
string: (y == 1 || y == 3) || y == 6 || y == 11
99-
type: assertion
100-
format: C
101-
- entry_type: location_invariant
102-
metadata:
103-
format_version: "0.1"
104-
uuid: e5802c77-d0ac-4f91-a0ac-c97ba97697d5
105-
creation_time: 2022-06-16T06:37:52Z
106-
producer:
107-
name: Simmo Saan
108-
version: n/a
109-
task:
110-
input_files:
111-
- 01-base-lor-enums.c
112-
input_file_hashes:
113-
01-base-lor-enums.c: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
114-
data_model: LP64
115-
language: C
116-
location:
117-
file_name: 01-base-lor-enums.c
118-
file_hash: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
119-
line: 31
120-
column: 3
121-
function: main
122-
location_invariant:
123-
string: y == 42 || y == x
124-
type: assertion
125-
format: C
16+
content:
17+
- invariant:
18+
type: location_invariant
19+
location:
20+
file_name: 01-base-lor-enums.c
21+
line: 17
22+
column: 3
23+
function: main
24+
value: (x == 1 || x == 3) || x == 6
25+
format: c_expression
26+
- invariant:
27+
type: location_invariant
28+
location:
29+
file_name: 01-base-lor-enums.c
30+
line: 18
31+
column: 3
32+
function: main
33+
value: (x == 1 || x == 3) || x == 7
34+
format: c_expression
35+
- invariant:
36+
type: location_invariant
37+
location:
38+
file_name: 01-base-lor-enums.c
39+
line: 29
40+
column: 3
41+
function: main
42+
value: y == 11 || y == x
43+
format: c_expression
44+
- invariant:
45+
type: location_invariant
46+
location:
47+
file_name: 01-base-lor-enums.c
48+
line: 30
49+
column: 3
50+
function: main
51+
value: (y == 1 || y == 3) || y == 6 || y == 11
52+
format: c_expression
53+
- invariant:
54+
type: location_invariant
55+
location:
56+
file_name: 01-base-lor-enums.c
57+
line: 31
58+
column: 3
59+
function: main
60+
value: y == 42 || y == x
61+
format: c_expression

tests/regression/56-witness/02-base-lor-addr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// PARAM: --set witness.yaml.entry-types[*] location_invariant --set witness.yaml.validate 02-base-lor-addr.yml
1+
// PARAM: --set witness.yaml.validate 02-base-lor-addr.yml
22

33
int main() {
44
int r; // rand
Lines changed: 48 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
- entry_type: location_invariant
1+
- entry_type: invariant_set
22
metadata:
3-
format_version: "0.1"
3+
format_version: "2.0"
44
uuid: e5802c77-d0ac-4f91-a0ac-c97ba97697d5
55
creation_time: 2022-06-16T06:37:52Z
66
producer:
@@ -13,113 +13,49 @@
1313
02-base-lor-addr.c: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
1414
data_model: LP64
1515
language: C
16-
location:
17-
file_name: 02-base-lor-addr.c
18-
file_hash: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
19-
line: 17
20-
column: 3
21-
function: main
22-
location_invariant:
23-
string: (x == &a || x == &b) || x == &c
24-
type: assertion
25-
format: C
26-
- entry_type: location_invariant
27-
metadata:
28-
format_version: "0.1"
29-
uuid: e5802c77-d0ac-4f91-a0ac-c97ba97697d5
30-
creation_time: 2022-06-16T06:37:52Z
31-
producer:
32-
name: Simmo Saan
33-
version: n/a
34-
task:
35-
input_files:
36-
- 02-base-lor-addr.c
37-
input_file_hashes:
38-
02-base-lor-addr.c: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
39-
data_model: LP64
40-
language: C
41-
location:
42-
file_name: 02-base-lor-addr.c
43-
file_hash: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
44-
line: 18
45-
column: 3
46-
function: main
47-
location_invariant:
48-
string: (x == &a || x == &b) || x == &d
49-
type: assertion
50-
format: C
51-
- entry_type: location_invariant
52-
metadata:
53-
format_version: "0.1"
54-
uuid: e5802c77-d0ac-4f91-a0ac-c97ba97697d5
55-
creation_time: 2022-06-16T06:37:52Z
56-
producer:
57-
name: Simmo Saan
58-
version: n/a
59-
task:
60-
input_files:
61-
- 02-base-lor-addr.c
62-
input_file_hashes:
63-
02-base-lor-addr.c: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
64-
data_model: LP64
65-
language: C
66-
location:
67-
file_name: 02-base-lor-addr.c
68-
file_hash: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
69-
line: 29
70-
column: 3
71-
function: main
72-
location_invariant:
73-
string: y == &e || y == x
74-
type: assertion
75-
format: C
76-
- entry_type: location_invariant
77-
metadata:
78-
format_version: "0.1"
79-
uuid: e5802c77-d0ac-4f91-a0ac-c97ba97697d5
80-
creation_time: 2022-06-16T06:37:52Z
81-
producer:
82-
name: Simmo Saan
83-
version: n/a
84-
task:
85-
input_files:
86-
- 02-base-lor-addr.c
87-
input_file_hashes:
88-
02-base-lor-addr.c: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
89-
data_model: LP64
90-
language: C
91-
location:
92-
file_name: 02-base-lor-addr.c
93-
file_hash: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
94-
line: 30
95-
column: 3
96-
function: main
97-
location_invariant:
98-
string: (y == &a || y == &b) || y == &c || y == &e
99-
type: assertion
100-
format: C
101-
- entry_type: location_invariant
102-
metadata:
103-
format_version: "0.1"
104-
uuid: e5802c77-d0ac-4f91-a0ac-c97ba97697d5
105-
creation_time: 2022-06-16T06:37:52Z
106-
producer:
107-
name: Simmo Saan
108-
version: n/a
109-
task:
110-
input_files:
111-
- 02-base-lor-addr.c
112-
input_file_hashes:
113-
02-base-lor-addr.c: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
114-
data_model: LP64
115-
language: C
116-
location:
117-
file_name: 02-base-lor-addr.c
118-
file_hash: 5f686f726d140fbb7f3052f778e99aa09e3807cc6972a4d4905df2f6ed0c3e01
119-
line: 31
120-
column: 3
121-
function: main
122-
location_invariant:
123-
string: y == &d || y == x
124-
type: assertion
125-
format: C
16+
content:
17+
- invariant:
18+
type: location_invariant
19+
location:
20+
file_name: 02-base-lor-addr.c
21+
line: 17
22+
column: 3
23+
function: main
24+
value: (x == &a || x == &b) || x == &c
25+
format: c_expression
26+
- invariant:
27+
type: location_invariant
28+
location:
29+
file_name: 02-base-lor-addr.c
30+
line: 18
31+
column: 3
32+
function: main
33+
value: (x == &a || x == &b) || x == &d
34+
format: c_expression
35+
- invariant:
36+
type: location_invariant
37+
location:
38+
file_name: 02-base-lor-addr.c
39+
line: 29
40+
column: 3
41+
function: main
42+
value: y == &e || y == x
43+
format: c_expression
44+
- invariant:
45+
type: location_invariant
46+
location:
47+
file_name: 02-base-lor-addr.c
48+
line: 30
49+
column: 3
50+
function: main
51+
value: (y == &a || y == &b) || y == &c || y == &e
52+
format: c_expression
53+
- invariant:
54+
type: location_invariant
55+
location:
56+
file_name: 02-base-lor-addr.c
57+
line: 31
58+
column: 3
59+
function: main
60+
value: y == &d || y == x
61+
format: c_expression

tests/regression/56-witness/03-int-log-short.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// PARAM: --set witness.yaml.entry-types[*] location_invariant --set witness.yaml.validate 03-int-log-short.yml
1+
// PARAM: --set witness.yaml.validate 03-int-log-short.yml
22

33
int main() {
44
int r;

0 commit comments

Comments
 (0)