File tree Expand file tree Collapse file tree 10 files changed +14
-31
lines changed Expand file tree Collapse file tree 10 files changed +14
-31
lines changed Original file line number Diff line number Diff line change @@ -2132,7 +2132,7 @@ struct
21322132 let invalidate_ret_lv st = match lv with
21332133 | Some lv ->
21342134 if M. tracing then M. tracel " invalidate" " Invalidating lhs %a for function call %s\n " d_plainlval lv f.vname;
2135- invalidate ~ctx (Analyses. ask_of_ctx ctx) ctx.global st [Cil. mkAddrOrStartOf lv]
2135+ invalidate ~deep: false ~ ctx (Analyses. ask_of_ctx ctx) ctx.global st [Cil. mkAddrOrStartOf lv]
21362136 | None -> st
21372137 in
21382138 let addr_type_of_exp exp =
Original file line number Diff line number Diff line change 1+ // Making sure special function lval is not invalidated recursively
2+ #include <goblint.h>
3+
4+ extern int * anIntPlease ();
5+ int main () {
6+ int x = 0 ;
7+ int * p = & x ;
8+ p = anIntPlease ();
9+
10+ __goblint_check (x == 0 );
11+
12+ return 0 ;
13+ }
Original file line number Diff line number Diff line change 1414 live: 7
1515 dead: 0
1616 total lines: 7
17- [Info][Unsound] Unknown address in {&tmp} has escaped. (49-type-invariants.c:21:3-21:21)
18- [Info][Unsound] Unknown value in {?} could be an escaped pointer address! (49-type-invariants.c:21:3-21:21)
1917 [Info][Unsound] Write to unknown address: privatization is unsound. (49-type-invariants.c:21:3-21:21)
2018 [Info][Imprecise] INVALIDATING ALL GLOBALS! (49-type-invariants.c:21:3-21:21)
2119 [Info][Imprecise] Invalidating expressions: AddrOf(Var(s , NoOffset)) (49-type-invariants.c:21:3-21:21)
3937 live: 7
4038 dead: 0
4139 total lines: 7
42- [Info][Unsound] Unknown address in {&tmp} has escaped. (49-type-invariants.c:21:3-21:21)
43- [Info][Unsound] Unknown value in {?} could be an escaped pointer address! (49-type-invariants.c:21:3-21:21)
4440 [Info][Unsound] Write to unknown address: privatization is unsound. (49-type-invariants.c:21:3-21:21)
4541 [Info][Imprecise] INVALIDATING ALL GLOBALS! (49-type-invariants.c:21:3-21:21)
4642 [Info][Imprecise] Invalidating expressions: AddrOf(Var(s , NoOffset)) (49-type-invariants.c:21:3-21:21)
Original file line number Diff line number Diff line change 1515 live: 7
1616 dead: 0
1717 total lines: 7
18- [Info][Unsound] Unknown address in {&tmp} has escaped. (77-type-nested-fields.c:31:3-31:20)
19- [Info][Unsound] Unknown value in {?} could be an escaped pointer address! (77-type-nested-fields.c:31:3-31:20)
2018 [Info][Unsound] Write to unknown address: privatization is unsound. (77-type-nested-fields.c:31:3-31:20)
21- [Info][Unsound] Unknown address in {&tmp} has escaped. (77-type-nested-fields.c:38:3-38:22)
22- [Info][Unsound] Unknown value in {?} could be an escaped pointer address! (77-type-nested-fields.c:38:3-38:22)
2319 [Info][Unsound] Write to unknown address: privatization is unsound. (77-type-nested-fields.c:38:3-38:22)
2420 [Info][Imprecise] INVALIDATING ALL GLOBALS! (77-type-nested-fields.c:31:3-31:20)
2521 [Info][Imprecise] Invalidating expressions: AddrOf(Var(tmp, NoOffset)) (77-type-nested-fields.c:31:3-31:20)
Original file line number Diff line number Diff line change 1515 live: 7
1616 dead: 0
1717 total lines: 7
18- [Info][Unsound] Unknown address in {&tmp} has escaped. (79-type-nested-fields-deep1.c:36:3-36:20)
19- [Info][Unsound] Unknown value in {?} could be an escaped pointer address! (79-type-nested-fields-deep1.c:36:3-36:20)
2018 [Info][Unsound] Write to unknown address: privatization is unsound. (79-type-nested-fields-deep1.c:36:3-36:20)
21- [Info][Unsound] Unknown address in {&tmp} has escaped. (79-type-nested-fields-deep1.c:43:3-43:24)
22- [Info][Unsound] Unknown value in {?} could be an escaped pointer address! (79-type-nested-fields-deep1.c:43:3-43:24)
2319 [Info][Unsound] Write to unknown address: privatization is unsound. (79-type-nested-fields-deep1.c:43:3-43:24)
2420 [Info][Imprecise] INVALIDATING ALL GLOBALS! (79-type-nested-fields-deep1.c:36:3-36:20)
2521 [Info][Imprecise] Invalidating expressions: AddrOf(Var(tmp, NoOffset)) (79-type-nested-fields-deep1.c:36:3-36:20)
Original file line number Diff line number Diff line change 1515 live: 7
1616 dead: 0
1717 total lines: 7
18- [Info][Unsound] Unknown address in {&tmp} has escaped. (80-type-nested-fields-deep2.c:36:3-36:22)
19- [Info][Unsound] Unknown value in {?} could be an escaped pointer address! (80-type-nested-fields-deep2.c:36:3-36:22)
2018 [Info][Unsound] Write to unknown address: privatization is unsound. (80-type-nested-fields-deep2.c:36:3-36:22)
21- [Info][Unsound] Unknown address in {&tmp} has escaped. (80-type-nested-fields-deep2.c:43:3-43:24)
22- [Info][Unsound] Unknown value in {?} could be an escaped pointer address! (80-type-nested-fields-deep2.c:43:3-43:24)
2319 [Info][Unsound] Write to unknown address: privatization is unsound. (80-type-nested-fields-deep2.c:43:3-43:24)
2420 [Info][Imprecise] INVALIDATING ALL GLOBALS! (80-type-nested-fields-deep2.c:36:3-36:22)
2521 [Info][Imprecise] Invalidating expressions: AddrOf(Var(tmp, NoOffset)) (80-type-nested-fields-deep2.c:36:3-36:22)
Original file line number Diff line number Diff line change 1717 live: 7
1818 dead: 0
1919 total lines: 7
20- [Info][Unsound] Unknown address in {&tmp} has escaped. (90-distribute-fields-type-1.c:31:3-31:20)
21- [Info][Unsound] Unknown value in {?} could be an escaped pointer address! (90-distribute-fields-type-1.c:31:3-31:20)
2220 [Info][Unsound] Write to unknown address: privatization is unsound. (90-distribute-fields-type-1.c:31:3-31:20)
23- [Info][Unsound] Unknown address in {&tmp} has escaped. (90-distribute-fields-type-1.c:39:3-39:17)
24- [Info][Unsound] Unknown value in {?} could be an escaped pointer address! (90-distribute-fields-type-1.c:39:3-39:17)
2521 [Info][Unsound] Write to unknown address: privatization is unsound. (90-distribute-fields-type-1.c:39:3-39:17)
2622 [Info][Imprecise] INVALIDATING ALL GLOBALS! (90-distribute-fields-type-1.c:31:3-31:20)
2723 [Info][Imprecise] Invalidating expressions: AddrOf(Var(tmp, NoOffset)) ( 90-distribute-fields-type-1.c:31:3-31:20)
Original file line number Diff line number Diff line change 1717 live: 7
1818 dead: 0
1919 total lines : 7
20- [Info][Unsound] Unknown address in {& tmp } has escaped. (91 -distribute-fields-type-2. c: 32 : 3 -32: 17 )
21- [Info][Unsound] Unknown value in {? } could be an escaped pointer address! (91 -distribute-fields-type-2. c: 32 : 3 -32: 17 )
2220 [Info][Unsound] Write to unknown address: privatization is unsound. (91 -distribute-fields-type-2. c: 32 : 3 -32: 17 )
23- [Info][Unsound] Unknown address in {& tmp } has escaped. (91 -distribute-fields-type-2. c: 40 : 3 -40: 17 )
24- [Info][Unsound] Unknown value in {? } could be an escaped pointer address! (91 -distribute-fields-type-2. c: 40 : 3 -40: 17 )
2521 [Info][Unsound] Write to unknown address: privatization is unsound. (91 -distribute-fields-type-2. c: 40 : 3 -40: 17 )
2622 [Info][Imprecise] INVALIDATING ALL GLOBALS! (91 -distribute-fields-type-2. c: 32 : 3 -32: 17 )
2723 [Info][Imprecise] Invalidating expressions: AddrOf(Var(tmp, NoOffset)) (91 -distribute-fields-type-2. c: 32 : 3 -32: 17 )
Original file line number Diff line number Diff line change 1717 live: 7
1818 dead: 0
1919 total lines: 7
20- [Info][Unsound] Unknown address in {&tmp} has escaped. (92-distribute-fields-type-deep.c:36:3-36:20)
21- [Info][Unsound] Unknown value in {?} could be an escaped pointer address! (92-distribute-fields-type-deep.c:36:3-36:20)
2220 [Info][Unsound] Write to unknown address: privatization is unsound. (92-distribute-fields-type-deep.c:36:3-36:20)
23- [Info][Unsound] Unknown address in {&tmp} has escaped. (92-distribute-fields-type-deep.c:44:3-44:17)
24- [Info][Unsound] Unknown value in {?} could be an escaped pointer address! (92-distribute-fields-type-deep.c:44:3-44:17)
2521 [Info][Unsound] Write to unknown address: privatization is unsound. (92-distribute-fields-type-deep.c:44:3-44:17)
2622 [Info][Imprecise] INVALIDATING ALL GLOBALS! (92-distribute-fields-type-deep.c:36:3-36:20)
2723 [Info][Imprecise] Invalidating expressions: AddrOf(Var(tmp, NoOffset)) (92-distribute-fields-type-deep.c:36:3-36:20)
Original file line number Diff line number Diff line change 1616 live: 7
1717 dead: 0
1818 total lines: 7
19- [Info][Unsound] Unknown address in {&tmp} has escaped. (93-distribute-fields-type-global.c:13:3-13:29)
20- [Info][Unsound] Unknown value in {?} could be an escaped pointer address! (93-distribute-fields-type-global.c:13:3-13:29)
2119 [Info][Unsound] Write to unknown address: privatization is unsound. (93-distribute-fields-type-global.c:13:3-13:29)
2220 [Info][Imprecise] INVALIDATING ALL GLOBALS! (93-distribute-fields-type-global.c:13:3-13:29)
2321 [Info][Imprecise] Invalidating expressions: AddrOf(Var(s , NoOffset)) (93-distribute-fields-type-global.c:13:3-13:29)
You can’t perform that action at this time.
0 commit comments