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"then lower_or_upper elseWideningThresholds.thresholds in
560
+
ResettableLazy.force ts
561
+
563
562
letupper_thresholdumax_ik=
564
-
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
|>WideningThresholds.Thresholds.find_first_opt (funx -> Z.compare u x <=0)
567
+
|>BatOption.filter (funx -> Z.compare x max_ik' <=0)
568
+
|>BatOption.map_default Ints_t.of_bigint max_ik
569
569
letlower_thresholdlmin_ik=
570
-
let ts =if get_interval_threshold_widening_constants ()="comparisons"thenWideningThresholds.lower_thresholds ()elseResettableLazy.force widening_thresholds_desc in
571
570
let l =Ints_t.to_bigint l in
572
571
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
574
-
BatOption.map_default Ints_t.of_bigint min_ik t
575
-
letis_upper_thresholdu=
576
-
let ts =if get_interval_threshold_widening_constants ()="comparisons"thenWideningThresholds.upper_thresholds ()elseResettableLazy.force widening_thresholds in
577
-
let u =Ints_t.to_bigint u in
578
-
List.exists (Z.equal u) ts
579
-
letis_lower_thresholdl=
580
-
let ts =if get_interval_threshold_widening_constants ()="comparisons"thenWideningThresholds.lower_thresholds ()elseResettableLazy.force widening_thresholds_desc in
let widening_thresholds_apron =ResettableLazy.from_fun (fun() ->
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
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 (WideningThresholds.Thresholds.elements (ResettableLazy.force t))in
0 commit comments