Skip to content

Commit a76946d

Browse files
Undo whitespace changes
1 parent 06e6e03 commit a76946d

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

src/solver/td3.ml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -350,18 +350,15 @@ module Base =
350350

351351
let wpd = (* d after widen/narrow (if wp) *)
352352
if not wp then eqd
353-
else (
354-
if term then
355-
match phase with
356-
| Widen -> S.Dom.widen old (S.Dom.join old eqd)
357-
| Narrow when GobConfig.get_bool "exp.no-narrow" -> old (* no narrow *)
358-
| Narrow ->
359-
(* assert S.Dom.(leq eqd old || not (leq old eqd)); (* https://github.com/goblint/analyzer/pull/490#discussion_r875554284 *) *)
360-
S.Dom.narrow old eqd
361-
else (
362-
box old eqd
363-
)
364-
)
353+
else if term then
354+
match phase with
355+
| Widen -> S.Dom.widen old (S.Dom.join old eqd)
356+
| Narrow when GobConfig.get_bool "exp.no-narrow" -> old (* no narrow *)
357+
| Narrow ->
358+
(* assert S.Dom.(leq eqd old || not (leq old eqd)); (* https://github.com/goblint/analyzer/pull/490#discussion_r875554284 *) *)
359+
S.Dom.narrow old eqd
360+
else
361+
box old eqd
365362
in
366363
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;
367364
if cache then (
@@ -370,7 +367,7 @@ module Base =
370367
);
371368
if not (Timing.wrap "S.Dom.equal" (fun () -> S.Dom.equal old wpd) ()) then ( (* value changed *)
372369
if tracing then trace "sol" "Changed";
373-
(* 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; *)
370+
(* 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; *)
374371
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);
375372
update_var_event x old wpd;
376373
HM.replace rho x wpd;

0 commit comments

Comments
 (0)