File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
tests/regression/13-privatized Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -385,6 +385,7 @@ struct
385385 fold_flow_insensitive_as_location ~inv (fun ~location ~inv acc ->
386386 let invariant = Entry. invariant (CilType.Exp. show inv) in
387387 let entry = Entry. location_invariant ~task ~location ~invariant in
388+ incr cnt_location_invariant;
388389 entry :: acc
389390 ) acc
390391 | `Lifted _, _
@@ -605,6 +606,7 @@ struct
605606 fold_flow_insensitive_as_location ~inv (fun ~location ~inv acc ->
606607 let invariant = CilType.Exp. show inv in
607608 let invariant = Entry. location_invariant' ~location ~invariant in
609+ incr cnt_location_invariant;
608610 invariant :: acc
609611 ) acc
610612 | `Bot | `Top -> (* global bot might only be possible for alloc variables, if at all, so emit nothing *)
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ Flow-insensitive invariants as location invariants.
215215 [Warning][Deadcode][CWE-571] condition ' 1' (possibly inserted by CIL) is always true (04 -priv_multi. c: 45 : 10 -45: 11 )
216216 [Warning][Deadcode][CWE-571] condition ' B > 0' is always true (04 -priv_multi. c: 47 : 9 -47: 14 )
217217 [Info][Witness] witness generation summary:
218- location invariants: 0
218+ location invariants: 9
219219 loop invariants: 0
220220 flow-insensitive invariants: 0
221221 total generation entries: 10
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ Flow-insensitive invariants as location invariants.
108108 total lines : 15
109109 [Warning][Deadcode][CWE-571] condition ' 1' (possibly inserted by CIL) is always true (74 -mutex. c: 19 : 10 -19: 11 )
110110 [Info][Witness] witness generation summary:
111- location invariants: 0
111+ location invariants: 2
112112 loop invariants: 0
113113 flow-insensitive invariants: 0
114114 total generation entries: 3
@@ -177,7 +177,7 @@ Same with ghost_instrumentation and invariant_set entries.
177177 total lines : 15
178178 [Warning][Deadcode][CWE-571] condition ' 1' (possibly inserted by CIL) is always true (74 -mutex. c: 19 : 10 -19: 11 )
179179 [Info][Witness] witness generation summary:
180- location invariants: 0
180+ location invariants: 2
181181 loop invariants: 0
182182 flow-insensitive invariants: 0
183183 total generation entries: 2
You can’t perform that action at this time.
0 commit comments