File tree 2 files changed +3
-10
lines changed
tests/regression/06-symbeq
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -491,15 +491,8 @@ struct
491
491
match reachables (Analyses. ask_of_ctx ctx) es with
492
492
| None -> D. top ()
493
493
| Some rs ->
494
- let remove_reachable1 es st =
495
- let remove_reachable2 e st =
496
- if reachable_from rs e && not (isConstant e) then remove_exp (Analyses. ask_of_ctx ctx) e st else st
497
- in
498
- D.B. fold remove_reachable2 es st
499
- in
500
- (* TODO: do something like this instead to be sound? *)
501
- (* List.fold_left (fun st e -> remove_exp (Analyses.ask_of_ctx ctx) e st) ctx.local (Queries.LS.fold (fun lval acc -> mkAddrOf (Lval.CilLval.to_lval lval) :: acc) rs []) *)
502
- D. fold remove_reachable1 ctx.local ctx.local
494
+ (* TODO: avoid intermediate list *)
495
+ List. fold_left (fun st e -> remove_exp (Analyses. ask_of_ctx ctx) e st) ctx.local (Queries.LS. fold (fun lval acc -> mkAddrOf (Lval.CilLval. to_lval lval) :: acc) rs [] )
503
496
504
497
let unknown_fn ctx lval f args =
505
498
let args =
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ int main() {
19
19
if (res == (struct resource * )0 )
20
20
assert (1 ); // reachable
21
21
else
22
- assert (1 ); // TODO reachable
22
+ assert (1 ); // reachable
23
23
24
24
return 0 ;
25
25
}
You can’t perform that action at this time.
0 commit comments