Skip to content

Commit

Permalink
Merge pull request #1434 from Red-Panda64/cleanup-destabilize-vs
Browse files Browse the repository at this point in the history
Clean up `destabilize_vs`
  • Loading branch information
sim642 authored Jun 3, 2024
2 parents 487412c + 1082f1c commit 06a2fa7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/solver/td3.ml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,11 @@ module Base =
let was_stable = HM.mem stable y in
HM.remove stable y;
HM.remove superstable y;
HM.mem called y || destabilize_vs y || b || was_stable && List.mem_cmp S.Var.compare y vs
Hooks.stable_remove y;
if not (HM.mem called y) then
destabilize_vs y || b || was_stable && List.mem_cmp S.Var.compare y vs
else
true
) w false
and solve ?reuse_eq x phase =
if tracing then trace "sol2" "solve %a, phase: %s, called: %b, stable: %b, wpoint: %b" S.Var.pretty_trace x (show_phase phase) (HM.mem called x) (HM.mem stable x) (HM.mem wpoint x);
Expand Down

0 comments on commit 06a2fa7

Please sign in to comment.