|
1 | 1 | $ goblint --enable warn.deterministic --enable ana.race.direct-arithmetic --enable allglobs 49-type-invariants.c 2>&1 | tee default-output-1.txt |
2 | 2 | [Warning][Behavior > Undefined > NullPointerDereference][CWE-476] May dereference NULL pointer (49-type-invariants.c:21:3-21:21) |
3 | 3 | [Warning][Race] Memory location s.field (race with conf. 110): (49-type-invariants.c:8:10-8:11) |
4 | | - write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
5 | | - read with thread:[main, t_fun@49-type-invariants.c:20:3-20:40] (conf. 110) (exp: & s.field) (49-type-invariants.c:11:3-11:23) |
| 4 | + write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, threadflag:(MT mode:Multithreaded (main), bool:true), thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
| 5 | + read with [threadflag:(MT mode:Multithreaded (other), bool:true), thread:[main, t_fun@49-type-invariants.c:20:3-20:40]] (conf. 110) (exp: & s.field) (49-type-invariants.c:11:3-11:23) |
6 | 6 | [Info][Race] Memory locations race summary: |
7 | 7 | safe: 1 |
8 | 8 | vulnerable: 0 |
9 | 9 | unsafe: 1 |
10 | 10 | total memory locations: 2 |
11 | 11 | [Success][Race] Memory location (struct S).field (safe): |
12 | | - write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
| 12 | + write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, threadflag:(MT mode:Multithreaded (main), bool:true), thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
13 | 13 | [Info][Deadcode] Logical lines of code (LLoC) summary: |
14 | 14 | live: 7 |
15 | 15 | dead: 0 |
|
24 | 24 | $ goblint --enable warn.deterministic --disable ana.race.direct-arithmetic --enable allglobs 49-type-invariants.c 2>&1 | tee default-output-2.txt |
25 | 25 | [Warning][Behavior > Undefined > NullPointerDereference][CWE-476] May dereference NULL pointer (49-type-invariants.c:21:3-21:21) |
26 | 26 | [Warning][Race] Memory location s.field (race with conf. 110): (49-type-invariants.c:8:10-8:11) |
27 | | - write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
28 | | - read with thread:[main, t_fun@49-type-invariants.c:20:3-20:40] (conf. 110) (exp: & s.field) (49-type-invariants.c:11:3-11:23) |
| 27 | + write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, threadflag:(MT mode:Multithreaded (main), bool:true), thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
| 28 | + read with [threadflag:(MT mode:Multithreaded (other), bool:true), thread:[main, t_fun@49-type-invariants.c:20:3-20:40]] (conf. 110) (exp: & s.field) (49-type-invariants.c:11:3-11:23) |
29 | 29 | [Info][Race] Memory locations race summary: |
30 | 30 | safe: 1 |
31 | 31 | vulnerable: 0 |
32 | 32 | unsafe: 1 |
33 | 33 | total memory locations: 2 |
34 | 34 | [Success][Race] Memory location (struct S).field (safe): |
35 | | - write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
| 35 | + write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, threadflag:(MT mode:Multithreaded (main), bool:true), thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
36 | 36 | [Info][Deadcode] Logical lines of code (LLoC) summary: |
37 | 37 | live: 7 |
38 | 38 | dead: 0 |
|
48 | 48 |
|
49 | 49 | $ diff default-output-1.txt full-output-1.txt |
50 | 50 | 3,4c3,4 |
51 | | - < write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
52 | | - < read with thread:[main, t_fun@49-type-invariants.c:20:3-20:40] (conf. 110) (exp: & s.field) (49-type-invariants.c:11:3-11:23) |
| 51 | + < write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, threadflag:(MT mode:Multithreaded (main), bool:true), thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
| 52 | + < read with [threadflag:(MT mode:Multithreaded (other), bool:true), thread:[main, t_fun@49-type-invariants.c:20:3-20:40]] (conf. 110) (exp: & s.field) (49-type-invariants.c:11:3-11:23) |
53 | 53 | --- |
54 | | - > write with [mhp:{tid=[main]; created={[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]}}, thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
55 | | - > read with [mhp:{tid=[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]}, thread:[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]] (conf. 110) (exp: & s.field) (49-type-invariants.c:11:3-11:23) |
| 54 | + > write with [mhp:{tid=[main]; created={[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]}}, threadflag:(MT mode:Multithreaded (main), bool:true), thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
| 55 | + > read with [mhp:{tid=[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]}, threadflag:(MT mode:Multithreaded (other), bool:true), thread:[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]] (conf. 110) (exp: & s.field) (49-type-invariants.c:11:3-11:23) |
56 | 56 | 11c11 |
57 | | - < write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
| 57 | + < write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, threadflag:(MT mode:Multithreaded (main), bool:true), thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
58 | 58 | --- |
59 | | - > write with [mhp:{tid=[main]; created={[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]}}, thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
| 59 | + > write with [mhp:{tid=[main]; created={[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]}}, threadflag:(MT mode:Multithreaded (main), bool:true), thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
60 | 60 | [1] |
61 | 61 |
|
62 | 62 | $ goblint --enable warn.deterministic --disable ana.race.direct-arithmetic --enable allglobs --enable dbg.full-output 49-type-invariants.c > full-output-2.txt 2>&1 |
63 | 63 |
|
64 | 64 | $ diff default-output-2.txt full-output-2.txt |
65 | 65 | 3,4c3,4 |
66 | | - < write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
67 | | - < read with thread:[main, t_fun@49-type-invariants.c:20:3-20:40] (conf. 110) (exp: & s.field) (49-type-invariants.c:11:3-11:23) |
| 66 | + < write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, threadflag:(MT mode:Multithreaded (main), bool:true), thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
| 67 | + < read with [threadflag:(MT mode:Multithreaded (other), bool:true), thread:[main, t_fun@49-type-invariants.c:20:3-20:40]] (conf. 110) (exp: & s.field) (49-type-invariants.c:11:3-11:23) |
68 | 68 | --- |
69 | | - > write with [mhp:{tid=[main]; created={[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]}}, thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
70 | | - > read with [mhp:{tid=[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]}, thread:[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]] (conf. 110) (exp: & s.field) (49-type-invariants.c:11:3-11:23) |
| 69 | + > write with [mhp:{tid=[main]; created={[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]}}, threadflag:(MT mode:Multithreaded (main), bool:true), thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
| 70 | + > read with [mhp:{tid=[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]}, threadflag:(MT mode:Multithreaded (other), bool:true), thread:[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]] (conf. 110) (exp: & s.field) (49-type-invariants.c:11:3-11:23) |
71 | 71 | 11c11 |
72 | | - < write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
| 72 | + < write with [mhp:{created={[main, t_fun@49-type-invariants.c:20:3-20:40]}}, threadflag:(MT mode:Multithreaded (main), bool:true), thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
73 | 73 | --- |
74 | | - > write with [mhp:{tid=[main]; created={[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]}}, thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
| 74 | + > write with [mhp:{tid=[main]; created={[main, t_fun@49-type-invariants.c:20:3-20:40#⊤]}}, threadflag:(MT mode:Multithreaded (main), bool:true), thread:[main]] (conf. 100) (exp: & tmp->field) (49-type-invariants.c:21:3-21:21) |
75 | 75 | [1] |
0 commit comments