You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/solver/td3.ml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -666,7 +666,7 @@ module Base =
666
666
else
667
667
destabilize_normal;
668
668
669
-
let sys_change =S.sys_change (funv -> HM.find_default rho v (S.Dom.bot ())) in
669
+
let sys_change =S.sys_change (funv -> tryHM.find rho v withNot_found ->S.Dom.bot ()) in
670
670
671
671
let old_ret =HM.create 103in
672
672
if reluctant then (
@@ -861,7 +861,7 @@ module Base =
861
861
letcheck_sidexyd=
862
862
HM.replace visited y ();
863
863
let mem =HM.mem rho y in
864
-
let d' =HM.find_default rho y (S.Dom.bot ()) in
864
+
let d' =tryHM.find rho y withNot_found ->S.Dom.bot ()in
865
865
ifnot (S.Dom.leq d d') thenLogs.error "TDFP Fixpoint not reached in restore step at side-effected variable (mem: %b) %a from %a: %a not leq %a" mem S.Var.pretty_trace y S.Var.pretty_trace x S.Dom.pretty d S.Dom.pretty d'
866
866
in
867
867
letrec eqcheckx=
@@ -1049,7 +1049,7 @@ module Base =
1049
1049
if incr_verify then (
1050
1050
HM.iter (funxw ->
1051
1051
HM.iter (funyd ->
1052
-
let old_d =HM.find_default rho y (S.Dom.bot ()) in
1052
+
let old_d =tryHM.find rho y withNot_found ->S.Dom.bot ()in
1053
1053
(* Logs.debug "rho_write retrigger %a %a %a %a" S.Var.pretty_trace x S.Var.pretty_trace y S.Dom.pretty old_d S.Dom.pretty d; *)
Copy file name to clipboardExpand all lines: src/solver/topDown_space_cache_term.ml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ module WP =
45
45
let old =HM.find rho x in
46
46
let l =HM.create 10in
47
47
let tmp = eq x (eval l x) (side l) in
48
-
let tmp =S.Dom.join tmp (HM.find_default rho' x (S.Dom.bot ())) in
48
+
let tmp =S.Dom.join tmp (tryHM.find rho' x withNot_found ->S.Dom.bot ()) in
49
49
if tracing then trace "sol""Var: %a"S.Var.pretty_trace x ;
50
50
if tracing then trace "sol""Contrib:%a"S.Dom.pretty tmp;
51
51
HM.remove called x;
@@ -94,7 +94,7 @@ module WP =
94
94
tmp
95
95
andsidelyd=
96
96
if tracing then trace "sol2""side to %a (wpx: %b) ## value: %a"S.Var.pretty_trace y (HM.mem rho y) S.Dom.pretty d;
97
-
let old =HM.find_default rho' y (S.Dom.bot ()) in
97
+
let old =tryHM.find rho' y withNot_found ->S.Dom.bot ()in
98
98
ifnot (S.Dom.leq d old) then (
99
99
HM.replace rho' y (S.Dom.join old d);
100
100
HM.remove l y;
@@ -148,7 +148,7 @@ module WP =
148
148
) else (
149
149
HM.replace visited x ();
150
150
letcheck_sideyd=
151
-
let d' =HM.find_default rho y (S.Dom.bot ()) in
151
+
let d' =tryHM.find rho y withNot_found ->S.Dom.bot ()in
152
152
ifnot (S.Dom.leq d d') thenLogs.error "Fixpoint not reached in restore step at side-effected variable %a: %a not leq %a"S.Var.pretty_trace y S.Dom.pretty d S.Dom.pretty d'
0 commit comments