Skip to content

Commit

Permalink
make_callee_rel: Introduce filter_map
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Dec 4, 2023
1 parent 1473d6e commit d983113
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/analyses/apron/relationAnalysis.apron.ml
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,7 @@ struct
let st = ctx.local in
let arg_assigns =
GobList.combine_short f.sformals args (* TODO: is it right to ignore missing formals/args? *)
|> List.filter (fun (x, _) -> RD.Tracked.varinfo_tracked x)
|> List.map (Tuple2.map1 RV.arg)
|> List.filter_map (fun (x, e) -> if RD.Tracked.varinfo_tracked x then Some (RV.arg x, e) else None)
in
let arg_vars = List.map fst arg_assigns in
let new_rel = RD.add_vars st.rel arg_vars in
Expand Down

0 comments on commit d983113

Please sign in to comment.