Skip to content

Commit d155e9e

Browse files
committed
Convert unassume precision YAML witnesses to invariant_set
1 parent c23d804 commit d155e9e

22 files changed

+143
-143
lines changed

tests/regression/56-witness/26-mine-tutorial-ex4.6.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// PARAM: --enable ana.int.interval --set witness.yaml.entry-types[*] loop_invariant --set ana.activated[+] unassume --set witness.yaml.unassume 26-mine-tutorial-ex4.6.yml
1+
// PARAM: --enable ana.int.interval --set ana.activated[+] unassume --set witness.yaml.unassume 26-mine-tutorial-ex4.6.yml
22
#include <goblint.h>
33
int main() {
44
int x = 40;
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
- entry_type: loop_invariant
1+
- entry_type: invariant_set
22
metadata:
3-
format_version: "0.1"
3+
format_version: "2.0"
44
uuid: 0e84a9de-b9f6-44dd-ab8d-ebdeca941482
55
creation_time: 2022-10-07T09:14:31Z
66
producer:
@@ -13,13 +13,13 @@
1313
26-mine-tutorial-ex4.6.c: e119cc77f5ce2a60d7c2b65c5dfbe8037f877b5621deab62b9580c5bbdebd97b
1414
data_model: LP64
1515
language: C
16-
location:
17-
file_name: 26-mine-tutorial-ex4.6.c
18-
file_hash: e119cc77f5ce2a60d7c2b65c5dfbe8037f877b5621deab62b9580c5bbdebd97b
19-
line: 5
20-
column: 3
21-
function: main
22-
loop_invariant:
23-
string: 0 <= x && x <= 40
24-
type: assertion
25-
format: C
16+
content:
17+
- invariant:
18+
type: loop_invariant
19+
location:
20+
file_name: 26-mine-tutorial-ex4.6.c
21+
line: 5
22+
column: 3
23+
function: main
24+
value: 0 <= x && x <= 40
25+
format: c_expression

tests/regression/56-witness/27-mine-tutorial-ex4.7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// PARAM: --enable ana.int.interval --enable ana.sv-comp.functions --set witness.yaml.entry-types[*] loop_invariant --set ana.activated[+] unassume --set witness.yaml.unassume 27-mine-tutorial-ex4.7.yml
1+
// PARAM: --enable ana.int.interval --enable ana.sv-comp.functions --set ana.activated[+] unassume --set witness.yaml.unassume 27-mine-tutorial-ex4.7.yml
22
#include <goblint.h>
33
extern _Bool __VERIFIER_nondet_bool();
44
int main() {
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
- entry_type: loop_invariant
1+
- entry_type: invariant_set
22
metadata:
3-
format_version: "0.1"
3+
format_version: "2.0"
44
uuid: e17f9860-95af-4213-a767-ab4876ead27e
55
creation_time: 2022-10-07T10:33:01Z
66
producer:
@@ -13,13 +13,13 @@
1313
27-mine-tutorial-ex4.7.c: 4d06e38718d405171bd503e630f6c7a247bb3b0d3c1c6c951466e4989883b43c
1414
data_model: LP64
1515
language: C
16-
location:
17-
file_name: 27-mine-tutorial-ex4.7.c
18-
file_hash: 4d06e38718d405171bd503e630f6c7a247bb3b0d3c1c6c951466e4989883b43c
19-
line: 6
20-
column: 3
21-
function: main
22-
loop_invariant:
23-
string: 0 <= x && x <= 40
24-
type: assertion
25-
format: C
16+
content:
17+
- invariant:
18+
type: loop_invariant
19+
location:
20+
file_name: 27-mine-tutorial-ex4.7.c
21+
line: 6
22+
column: 3
23+
function: main
24+
value: 0 <= x && x <= 40
25+
format: c_expression

tests/regression/56-witness/28-mine-tutorial-ex4.8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// PARAM: --disable ana.int.def_exc --enable ana.int.interval --enable ana.sv-comp.functions --set witness.yaml.entry-types[*] loop_invariant --set ana.activated[+] unassume --set witness.yaml.unassume 28-mine-tutorial-ex4.8.yml
1+
// PARAM: --disable ana.int.def_exc --enable ana.int.interval --enable ana.sv-comp.functions --set ana.activated[+] unassume --set witness.yaml.unassume 28-mine-tutorial-ex4.8.yml
22
#include <goblint.h>
33
extern _Bool __VERIFIER_nondet_bool();
44
int main() {
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
- entry_type: loop_invariant
1+
- entry_type: invariant_set
22
metadata:
3-
format_version: "0.1"
3+
format_version: "2.0"
44
uuid: 299c2080-fb13-4879-be2b-5d2758465577
55
creation_time: 2022-10-07T10:36:41Z
66
producer:
@@ -13,13 +13,13 @@
1313
28-mine-tutorial-ex4.8.c: bd5b719b0d268dd7669edc1dd21b55a2bacab3187f26f112839093b910c91347
1414
data_model: LP64
1515
language: C
16-
location:
17-
file_name: 28-mine-tutorial-ex4.8.c
18-
file_hash: bd5b719b0d268dd7669edc1dd21b55a2bacab3187f26f112839093b910c91347
19-
line: 6
20-
column: 3
21-
function: main
22-
loop_invariant:
23-
string: 0 <= v && v <= 1
24-
type: assertion
25-
format: C
16+
content:
17+
- invariant:
18+
type: loop_invariant
19+
location:
20+
file_name: 28-mine-tutorial-ex4.8.c
21+
line: 6
22+
column: 3
23+
function: main
24+
value: 0 <= v && v <= 1
25+
format: c_expression

tests/regression/56-witness/29-mine-tutorial-ex4.10.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SKIP PARAM: --set ana.activated[+] apron --set ana.apron.domain polyhedra --set witness.yaml.entry-types[*] loop_invariant --set ana.activated[+] unassume --set witness.yaml.unassume 29-mine-tutorial-ex4.10.yml
1+
// SKIP PARAM: --set ana.activated[+] apron --set ana.apron.domain polyhedra --set ana.activated[+] unassume --set witness.yaml.unassume 29-mine-tutorial-ex4.10.yml
22
// Using Apron polyhedra to have no narrowing.
33
#include <goblint.h>
44
int main() {
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
- entry_type: loop_invariant
1+
- entry_type: invariant_set
22
metadata:
3-
format_version: "0.1"
3+
format_version: "2.0"
44
uuid: f04fe372-3d6e-4a80-9567-80c64bd7fd03
55
creation_time: 2022-10-07T10:47:08Z
66
producer:
@@ -13,13 +13,13 @@
1313
29-mine-tutorial-ex4.10.c: e0399cba2a1ab555c14e500606561777d5f029de891ea5bf3cfd8bda880a7ac8
1414
data_model: LP64
1515
language: C
16-
location:
17-
file_name: 29-mine-tutorial-ex4.10.c
18-
file_hash: e0399cba2a1ab555c14e500606561777d5f029de891ea5bf3cfd8bda880a7ac8
19-
line: 6
20-
column: 3
21-
function: main
22-
loop_invariant:
23-
string: 1 <= v && v <= 52
24-
type: assertion
25-
format: C
16+
content:
17+
- invariant:
18+
type: loop_invariant
19+
location:
20+
file_name: 29-mine-tutorial-ex4.10.c
21+
line: 6
22+
column: 3
23+
function: main
24+
value: 1 <= v && v <= 52
25+
format: c_expression

tests/regression/56-witness/35-hh-ex1b.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// PARAM: --enable ana.int.interval --disable solvers.td3.remove-wpoint --set witness.yaml.entry-types[*] loop_invariant --set ana.activated[+] unassume --set witness.yaml.unassume 35-hh-ex1b.yml
1+
// PARAM: --enable ana.int.interval --disable solvers.td3.remove-wpoint --set ana.activated[+] unassume --set witness.yaml.unassume 35-hh-ex1b.yml
22
#include <goblint.h>
33
int main() {
44
int i = 0;
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
- entry_type: loop_invariant
1+
- entry_type: invariant_set
22
metadata:
3-
format_version: "0.1"
3+
format_version: "2.0"
44
uuid: 1a354f1e-76e8-40e9-808a-8d5efbe35496
55
creation_time: 2022-10-12T10:45:49Z
66
producer:
@@ -13,13 +13,13 @@
1313
35-hh-ex1b.c: 9fe07d5f950140350848bae4342d9d1b7c6c9f625f6985746089a36a37243600
1414
data_model: LP64
1515
language: C
16-
location:
17-
file_name: 35-hh-ex1b.c
18-
file_hash: 9fe07d5f950140350848bae4342d9d1b7c6c9f625f6985746089a36a37243600
19-
line: 7
20-
column: 5
21-
function: main
22-
loop_invariant:
23-
string: 0 <= i && i <= 99
24-
type: assertion
25-
format: C
16+
content:
17+
- invariant:
18+
type: loop_invariant
19+
location:
20+
file_name: 35-hh-ex1b.c
21+
line: 7
22+
column: 5
23+
function: main
24+
value: 0 <= i && i <= 99
25+
format: c_expression

0 commit comments

Comments
 (0)