Skip to content

Commit

Permalink
Cherry-pick AddressDomain.filter from 224615f
Browse files Browse the repository at this point in the history
Required to fix Promela extraction tests.
  • Loading branch information
sim642 committed Sep 11, 2023
1 parent 7edb312 commit 3e01426
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cdomains/addressDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -440,4 +440,6 @@ struct
let r = narrow x y in
if M.tracing then M.traceu "ad" "-> %a\n" pretty r;
r

let filter f ad = fold (fun addr ad -> if f addr then add addr ad else ad) ad (empty ())
end

0 comments on commit 3e01426

Please sign in to comment.