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
let ts =if get_interval_threshold_widening_constants ()="comparisons"thenWideningThresholds.upper_thresholds ()elseResettableLazy.force widening_thresholds in
565
563
let u =Ints_t.to_bigint u in
566
564
let max_ik' =Ints_t.to_bigint max_ik in
567
-
let t =List.find_opt (funx -> Z.compare u x <=0&&Z.compare x max_ik' <=0) ts in
565
+
let t =WideningThresholds.Thresholds.find_first_opt (funx -> Z.compare u x <=0&&Z.compare x max_ik' <=0) ts in
568
566
BatOption.map_default Ints_t.of_bigint max_ik t
569
567
letlower_thresholdlmin_ik=
570
-
let ts =if get_interval_threshold_widening_constants ()="comparisons"thenWideningThresholds.lower_thresholds ()elseResettableLazy.force widening_thresholds_descin
568
+
let ts =if get_interval_threshold_widening_constants ()="comparisons"thenWideningThresholds.lower_thresholds ()elseResettableLazy.force widening_thresholdsin
571
569
let l =Ints_t.to_bigint l in
572
570
let min_ik' =Ints_t.to_bigint min_ik in
573
-
let t =List.find_opt (funx -> Z.compare l x >=0&&Z.compare x min_ik' >=0) ts in
571
+
let t =WideningThresholds.Thresholds.find_last_opt (funx -> Z.compare l x >=0&&Z.compare x min_ik' >=0) ts in
574
572
BatOption.map_default Ints_t.of_bigint min_ik t
575
573
letis_upper_thresholdu=
576
574
let ts =if get_interval_threshold_widening_constants ()="comparisons"thenWideningThresholds.upper_thresholds ()elseResettableLazy.force widening_thresholds in
Copy file name to clipboardExpand all lines: src/cdomains/apron/apronDomain.apron.ml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ module M = Messages
19
19
20
20
let widening_thresholds_apron =ResettableLazy.from_fun (fun() ->
21
21
let t =ifGobConfig.get_string "ana.apron.threshold_widening_constants"="comparisons"thenWideningThresholds.octagon_thresholds ()elseWideningThresholds.thresholds_incl_mul2 ()in
22
-
let r =List.map Scalar.of_z tin
22
+
let r =List.map Scalar.of_z (WideningThresholds.Thresholds.elements t)in
0 commit comments