Skip to content

Commit a716017

Browse files
46/{95,96}: Use only location_invariant
1 parent ef51516 commit a716017

File tree

3 files changed

+10
-182
lines changed

3 files changed

+10
-182
lines changed

tests/regression/46-apron2/95-witness-mm-escape.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
[Success][Witness] invariant confirmed: g != 0 (95-witness-mm-escape.c:19:1)
2020
[Success][Witness] invariant confirmed: *b != 0 (95-witness-mm-escape.c:19:1)
2121
[Info][Witness] witness validation summary:
22-
confirmed: 30
22+
confirmed: 15
2323
unconfirmed: 0
2424
refuted: 0
2525
error: 0
2626
unchecked: 0
2727
unsupported: 0
2828
disabled: 0
29-
total validation entries: 30
29+
total validation entries: 15

tests/regression/46-apron2/95-witness-mm-escape.yml

Lines changed: 0 additions & 171 deletions
Original file line numberDiff line numberDiff line change
@@ -448,174 +448,3 @@
448448
string: '*b != 0'
449449
type: assertion
450450
format: C
451-
- entry_type: invariant_set
452-
metadata:
453-
format_version: "0.1"
454-
uuid: 5f4a70a3-8b30-4b5a-a260-56bb341a6283
455-
creation_time: 2024-07-16T16:36:39Z
456-
producer:
457-
name: Goblint
458-
version: heads/check_overflow_convert-0-gc35fd8620-dirty
459-
command_line: '''../../../goblint'' ''95-witness-mm-escape.c'' ''--set'' ''ana.activated[+]''
460-
''apron'' ''--set'' ''ana.path_sens[+]'' ''threadflag'' ''--set'' ''ana.relation.privatization''
461-
''mutex-meet-tid-cluster12'' ''--enable'' ''witness.yaml.enabled'' ''--disable''
462-
''witness.invariant.other'' ''--enable'' ''ana.relation.invariant.one-var''
463-
''--set'' ''witness.yaml.path'' ''95-witness-mm-escape.yml'''
464-
task:
465-
input_files:
466-
- 95-witness-mm-escape.c
467-
input_file_hashes:
468-
95-witness-mm-escape.c: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
469-
data_model: LP64
470-
language: C
471-
content:
472-
- invariant:
473-
type: location_invariant
474-
location:
475-
file_name: 95-witness-mm-escape.c
476-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
477-
line: 19
478-
column: 1
479-
function: main
480-
value: 0 <= g
481-
format: c_expression
482-
- invariant:
483-
type: location_invariant
484-
location:
485-
file_name: 95-witness-mm-escape.c
486-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
487-
line: 19
488-
column: 1
489-
function: main
490-
value: 0 <= *b
491-
format: c_expression
492-
- invariant:
493-
type: location_invariant
494-
location:
495-
file_name: 95-witness-mm-escape.c
496-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
497-
line: 19
498-
column: 1
499-
function: main
500-
value: g <= 127
501-
format: c_expression
502-
- invariant:
503-
type: location_invariant
504-
location:
505-
file_name: 95-witness-mm-escape.c
506-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
507-
line: 19
508-
column: 1
509-
function: main
510-
value: '*b <= 127'
511-
format: c_expression
512-
- invariant:
513-
type: location_invariant
514-
location:
515-
file_name: 95-witness-mm-escape.c
516-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
517-
line: 19
518-
column: 1
519-
function: main
520-
value: -8LL + (long long )g >= 0LL
521-
format: c_expression
522-
- invariant:
523-
type: location_invariant
524-
location:
525-
file_name: 95-witness-mm-escape.c
526-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
527-
line: 19
528-
column: 1
529-
function: main
530-
value: 2147483648LL + (long long )a >= 0LL
531-
format: c_expression
532-
- invariant:
533-
type: location_invariant
534-
location:
535-
file_name: 95-witness-mm-escape.c
536-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
537-
line: 19
538-
column: 1
539-
function: main
540-
value: (2147483638LL + (long long )a) + (long long )g >= 0LL
541-
format: c_expression
542-
- invariant:
543-
type: location_invariant
544-
location:
545-
file_name: 95-witness-mm-escape.c
546-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
547-
line: 19
548-
column: 1
549-
function: main
550-
value: (2147483637LL - (long long )a) + (long long )g >= 0LL
551-
format: c_expression
552-
- invariant:
553-
type: location_invariant
554-
location:
555-
file_name: 95-witness-mm-escape.c
556-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
557-
line: 19
558-
column: 1
559-
function: main
560-
value: 10LL - (long long )g >= 0LL
561-
format: c_expression
562-
- invariant:
563-
type: location_invariant
564-
location:
565-
file_name: 95-witness-mm-escape.c
566-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
567-
line: 19
568-
column: 1
569-
function: main
570-
value: 2147483647LL - (long long )a >= 0LL
571-
format: c_expression
572-
- invariant:
573-
type: location_invariant
574-
location:
575-
file_name: 95-witness-mm-escape.c
576-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
577-
line: 19
578-
column: 1
579-
function: main
580-
value: (2147483658LL + (long long )a) - (long long )g >= 0LL
581-
format: c_expression
582-
- invariant:
583-
type: location_invariant
584-
location:
585-
file_name: 95-witness-mm-escape.c
586-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
587-
line: 19
588-
column: 1
589-
function: main
590-
value: (2147483657LL - (long long )a) - (long long )g >= 0LL
591-
format: c_expression
592-
- invariant:
593-
type: location_invariant
594-
location:
595-
file_name: 95-witness-mm-escape.c
596-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
597-
line: 19
598-
column: 1
599-
function: main
600-
value: b == & g
601-
format: c_expression
602-
- invariant:
603-
type: location_invariant
604-
location:
605-
file_name: 95-witness-mm-escape.c
606-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
607-
line: 19
608-
column: 1
609-
function: main
610-
value: g != 0
611-
format: c_expression
612-
- invariant:
613-
type: location_invariant
614-
location:
615-
file_name: 95-witness-mm-escape.c
616-
file_hash: bc9de79e9c6aebc20f4284c088f10093ed99a05b0758005a17a5f39a9cc1b7e8
617-
line: 19
618-
column: 1
619-
function: main
620-
value: '*b != 0'
621-
format: c_expression

tests/regression/46-apron2/96-witness-mm-escape2.t

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
$ goblint --disable ana.dead-code.lines --disable warn.race --enable warn.deterministic --disable warn.behavior --set ana.activated[+] apron --set ana.path_sens[+] threadflag --set ana.relation.privatization mutex-meet-tid-cluster12 --enable witness.yaml.enabled --disable witness.invariant.other --disable witness.invariant.loop-head 96-witness-mm-escape2.c --set witness.yaml.path 96-witness-mm-escape2.yml
1+
$ goblint --disable ana.dead-code.lines --disable warn.race --enable warn.deterministic --disable warn.behavior --set witness.yaml.entry-types '["location_invariant"]' --set ana.activated[+] apron --set ana.path_sens[+] threadflag --set ana.relation.privatization mutex-meet-tid-cluster12 --enable witness.yaml.enabled --disable witness.invariant.other --disable witness.invariant.loop-head 96-witness-mm-escape2.c --set witness.yaml.path 96-witness-mm-escape2.yml
22
[Info][Witness] witness generation summary:
3-
location invariants: 8
3+
location invariants: 4
44
loop invariants: 0
5-
flow-insensitive invariants: 1
6-
total generation entries: 6
5+
flow-insensitive invariants: 0
6+
total generation entries: 4
77

8-
$ goblint --disable ana.dead-code.lines --disable warn.race --enable warn.deterministic --disable warn.behavior --set ana.activated[+] apron --set ana.path_sens[+] threadflag --set ana.relation.privatization mutex-meet-tid-cluster12 --set witness.yaml.validate 96-witness-mm-escape2.yml 96-witness-mm-escape2.c
9-
[Warning][Witness] cannot validate entry of type flow_insensitive_invariant
8+
$ goblint --disable ana.dead-code.lines --disable warn.race --enable warn.deterministic --disable warn.behavior --set witness.yaml.entry-types '["location_invariant"]' --set ana.activated[+] apron --set ana.path_sens[+] threadflag --set ana.relation.privatization mutex-meet-tid-cluster12 --set witness.yaml.validate 96-witness-mm-escape2.yml 96-witness-mm-escape2.c
109
[Info][Witness] witness validation summary:
11-
confirmed: 8
10+
confirmed: 4
1211
unconfirmed: 0
1312
refuted: 0
1413
error: 0
1514
unchecked: 0
16-
unsupported: 1
15+
unsupported: 0
1716
disabled: 0
18-
total validation entries: 9
17+
total validation entries: 4
1918
[Success][Witness] invariant confirmed: (unsigned long )arg == 0UL (96-witness-mm-escape2.c:8:5)
2019
[Success][Witness] invariant confirmed: -128 <= g (96-witness-mm-escape2.c:22:1)
2120
[Success][Witness] invariant confirmed: g != 0 (96-witness-mm-escape2.c:22:1)

0 commit comments

Comments
 (0)