Skip to content

Commit ff6563c

Browse files
Reduce passes in forget_reachable
1 parent 3c4f6cc commit ff6563c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/analyses/apron/relationAnalysis.apron.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,8 @@ struct
482482
match reachables ask es with
483483
| None ->
484484
(* top reachable, so try to invalidate everything *)
485-
RD.vars st.rel
486-
|> List.filter_map RV.to_cil_varinfo
487-
|> List.map Cil.var
485+
let to_cil_lval x = Option.map Cil.var @@ RV.to_cil_varinfo x in
486+
RD.vars st.rel |> List.filter_map to_cil_lval
488487
| Some ad ->
489488
let to_cil addr rs =
490489
match addr with

0 commit comments

Comments
 (0)