|
1 | | - $ goblint --conf svcomp25.json --disable ana.autotune.enabled --set ana.specification "CHECK( init(main()), LTL(G ! call(reach_error())) )"} callfpointer.c --enable exp.arg.stack --enable exp.arg.enabled --set exp.arg.dot.path arg.dot --set exp.arg.dot.node-label empty --enable ana.wp --set witness.yaml.entry-types[+] violation_sequence --enable witness.yaml.sv-comp-true-only --enable witness.invariant.other |
| 1 | + $ goblint --conf svcomp25.json --disable ana.autotune.enabled --set ana.specification "CHECK( init(main()), LTL(G ! call(reach_error())) )"} nec11.c --enable exp.arg.enabled --enable ana.wp --set witness.yaml.entry-types[+] violation_sequence --enable witness.yaml.sv-comp-true-only --enable witness.invariant.other |
2 | 2 | [Info] SV-COMP specification: CHECK( init(main()), LTL(G ! call(reach_error())) ) |
3 | | - [Warning][Deadcode] Function 'main' does not return |
4 | | - [Warning][Deadcode] Function 'f' has dead code: |
5 | | - on line 8 (callfpointer.c:8-8) |
6 | | - [Warning][Deadcode] Function 'h' has dead code: |
7 | | - on line 16 (callfpointer.c:16-16) |
8 | | - [Warning][Deadcode] Function 'main' has dead code: |
9 | | - on line 20 (callfpointer.c:20-20) |
10 | | - [Warning][Deadcode] Logical lines of code (LLoC) summary: |
11 | | - live: 8 |
12 | | - dead: 3 |
13 | | - total lines: 11 |
14 | | - [Warning][Deadcode][CWE-571] condition 'i == 1' is always true (callfpointer.c:11:5-11:9) |
| 3 | + [Warning][Integer > Overflow][CWE-190] Signed integer overflow (nec11.c:28:7-28:12) |
| 4 | + [Info][Deadcode] Logical lines of code (LLoC) summary: |
| 5 | + live: 16 |
| 6 | + dead: 0 |
| 7 | + total lines: 16 |
15 | 8 | SV-COMP result: unknown |
16 | 9 |
|
17 | | - $ graph-easy --as=boxart arg.dot |
18 | | - ┌──────────────────────┐ |
19 | | - │ _ │ |
20 | | - └──────────────────────┘ |
21 | | - │ |
22 | | - │ Entry main |
23 | | - ▼ |
24 | | - ┌──────────────────────┐ |
25 | | - │ _ │ |
26 | | - └──────────────────────┘ |
27 | | - │ |
28 | | - │ InlineEntry '(& h)' |
29 | | - ▼ |
30 | | - ┌──────────────────────┐ |
31 | | - │ _ │ |
32 | | - └──────────────────────┘ |
33 | | - │ |
34 | | - │ Entry f |
35 | | - ▼ |
36 | | - ┌──────────────────────┐ |
37 | | - │ _ │ |
38 | | - └──────────────────────┘ |
39 | | - │ |
40 | | - │ InlineEntry '(1)' |
41 | | - ▼ |
42 | | - ┌──────────────────────┐ |
43 | | - │ _ │ |
44 | | - └──────────────────────┘ |
45 | | - │ |
46 | | - │ Entry h |
47 | | - ▼ |
48 | | - ┌──────────────────────┐ |
49 | | - │ _ │ |
50 | | - └──────────────────────┘ |
51 | | - │ |
52 | | - │ Test (i == 1,true) |
53 | | - ▼ |
54 | | - ┌──────────────────────┐ |
55 | | - │ _ │ |
56 | | - └──────────────────────┘ |
57 | | - │ |
58 | | - │ InlineEntry '()' |
59 | | - ▼ |
60 | | - ┌──────────────────────┐ |
61 | | - │ _ │ |
62 | | - └──────────────────────┘ |
63 | | - │ |
64 | | - │ Entry reach_error |
65 | | - ▼ |
66 | | - ┌──────────────────────┐ |
67 | | - │ _ │ |
68 | | - └──────────────────────┘ |
69 | | - |
70 | 10 | $ yamlWitnessStrip < witness.yml |
71 | 11 | - entry_type: violation_sequence |
72 | 12 | content: |
73 | 13 | - segment: |
74 | 14 | - waypoint: |
75 | 15 | type: assumption |
76 | 16 | location: |
77 | | - file_name: callfpointer.c |
78 | | - line: 18 |
79 | | - column: 2 |
| 17 | + file_name: nec11.c |
| 18 | + line: 16 |
| 19 | + column: 4 |
80 | 20 | function: main |
81 | 21 | action: follow |
82 | 22 | constraint: |
|
86 | 26 | - waypoint: |
87 | 27 | type: assumption |
88 | 28 | location: |
89 | | - file_name: callfpointer.c |
90 | | - line: 7 |
91 | | - column: 2 |
92 | | - function: f |
| 29 | + file_name: nec11.c |
| 30 | + line: 17 |
| 31 | + column: 4 |
| 32 | + function: main |
93 | 33 | action: follow |
94 | 34 | constraint: |
95 | 35 | value: "1" |
|
98 | 38 | - waypoint: |
99 | 39 | type: branching |
100 | 40 | location: |
101 | | - file_name: callfpointer.c |
102 | | - line: 11 |
103 | | - column: 2 |
104 | | - function: h |
| 41 | + file_name: nec11.c |
| 42 | + line: 21 |
| 43 | + column: 4 |
| 44 | + function: main |
| 45 | + action: follow |
| 46 | + constraint: |
| 47 | + value: "false" |
| 48 | + format: c_expression |
| 49 | + - segment: |
| 50 | + - waypoint: |
| 51 | + type: assumption |
| 52 | + location: |
| 53 | + file_name: nec11.c |
| 54 | + line: 30 |
| 55 | + column: 4 |
| 56 | + function: main |
| 57 | + action: follow |
| 58 | + constraint: |
| 59 | + value: "1" |
| 60 | + format: c_expression |
| 61 | + - segment: |
| 62 | + - waypoint: |
| 63 | + type: branching |
| 64 | + location: |
| 65 | + file_name: nec11.c |
| 66 | + line: 6 |
| 67 | + column: 3 |
| 68 | + function: __VERIFIER_assert |
105 | 69 | action: follow |
106 | 70 | constraint: |
107 | 71 | value: "true" |
|
110 | 74 | - waypoint: |
111 | 75 | type: target |
112 | 76 | location: |
113 | | - file_name: callfpointer.c |
114 | | - line: 12 |
115 | | - column: 11 |
116 | | - function: h |
| 77 | + file_name: nec11.c |
| 78 | + line: 7 |
| 79 | + column: 13 |
| 80 | + function: __VERIFIER_assert |
117 | 81 | action: follow |
0 commit comments