Skip to content

Commit

Permalink
Undo whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Feb 12, 2025
1 parent 06e6e03 commit a76946d
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/solver/td3.ml
Original file line number Diff line number Diff line change
Expand Up @@ -350,18 +350,15 @@ module Base =

let wpd = (* d after widen/narrow (if wp) *)
if not wp then eqd
else (
if term then
match phase with
| Widen -> S.Dom.widen old (S.Dom.join old eqd)
| Narrow when GobConfig.get_bool "exp.no-narrow" -> old (* no narrow *)
| Narrow ->
(* assert S.Dom.(leq eqd old || not (leq old eqd)); (* https://github.com/goblint/analyzer/pull/490#discussion_r875554284 *) *)
S.Dom.narrow old eqd
else (
box old eqd
)
)
else if term then
match phase with
| Widen -> S.Dom.widen old (S.Dom.join old eqd)
| Narrow when GobConfig.get_bool "exp.no-narrow" -> old (* no narrow *)
| Narrow ->
(* assert S.Dom.(leq eqd old || not (leq old eqd)); (* https://github.com/goblint/analyzer/pull/490#discussion_r875554284 *) *)
S.Dom.narrow old eqd
else
box old eqd
in
if tracing then trace "sol" "Var: %a (wp: %b)\nOld value: %a\nEqd: %a\nNew value: %a" S.Var.pretty_trace x wp S.Dom.pretty old S.Dom.pretty eqd S.Dom.pretty wpd;
if cache then (
Expand All @@ -370,7 +367,7 @@ module Base =
);
if not (Timing.wrap "S.Dom.equal" (fun () -> S.Dom.equal old wpd) ()) then ( (* value changed *)
if tracing then trace "sol" "Changed";
(* if tracing && not (S.Dom.is_bot old) && wp then trace "solchange" "%a (wpx: %s): %a -> %a" S.Var.pretty_trace x (format_wpoint x) S.Dom.pretty old S.Dom.pretty wpd; *)
(* if tracing && not (S.Dom.is_bot old) && wp then trace "solchange" "%a (wpx: %a): %a -> %a" S.Var.pretty_trace x pretty_wpoint x S.Dom.pretty old S.Dom.pretty wpd; *)
if tracing && not (S.Dom.is_bot old) && wp then trace "solchange" "%a (wpx: %a): %a" S.Var.pretty_trace x pretty_wpoint x S.Dom.pretty_diff (wpd, old);
update_var_event x old wpd;
HM.replace rho x wpd;
Expand Down

0 comments on commit a76946d

Please sign in to comment.