Skip to content

Commit

Permalink
Use HM.exists instead of HM.fold in td3 (closes #1618)
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Nov 4, 2024
1 parent 750f1ee commit 39d0a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solver/td3.ml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module Base =
open SolverBox.Warrow (S.Dom)
include Generic.SolverStats (S) (HM)
module VS = Set.Make (S.Var)
let exists_key f hm = HM.fold (fun k _ a -> a || f k) hm false
let exists_key f hm = HM.exists (fun k _ -> f k) hm

type solver_data = {
st: (S.Var.t * S.Dom.t) list; (* needed to destabilize start functions if their start state changed because of some changed global initializer *)
Expand Down

0 comments on commit 39d0a8a

Please sign in to comment.