[absint] Use none_if_top_opt

Reviewed By: skcho

Differential Revision: D27880610

fbshipit-source-id: 671fa5864
master
Ezgi Çiçek 4 years ago committed by Facebook GitHub Bot
parent d17cbfc155
commit df9bb5dc37

@ -607,11 +607,7 @@ module SafeInvertedMap (Key : PrettyPrintable.PrintableOrderedType) (ValueDomain
let filter = M.filter
let filter_map f x =
M.filter_map
(fun k v -> match f k v with Some v when ValueDomain.is_top v -> None | v_opt -> v_opt)
x
let filter_map f x = M.filter_map (fun k v -> f k v |> none_if_top_opt) x
let partition = M.partition

Loading…
Cancel
Save