@@ -466,7 +466,7 @@ struct
466466 | `Excluded (s , ((min , max ) as r )) ->
467467 let s' = S. map Z. lognot s in
468468 let r' =
469- if Int. compare ( - max) 0 < = 0 && Int. compare ( - min) 0 > 0 then
469+ if - max < = 0 && - min > 0 then
470470 (- max, - min)
471471 else
472472 apply_range Z. lognot r
@@ -483,7 +483,7 @@ struct
483483 else if Z. equal i Z. one then
484484 of_interval IBool (Z. zero, Z. one)
485485 else (
486- match Z. compare i Z. zero > = 0 , Int. compare r1 0 > = 0 with
486+ match Z. compare i Z. zero > = 0 , r1 > = 0 with
487487 | true , true -> `Excluded (S. empty () , (0 , Int. min r2 (Z. numbits i)))
488488 | true , _ -> `Excluded (S. empty () , (0 , Z. numbits i))
489489 | _ , true -> `Excluded (S. empty () , (0 , r2))
@@ -492,7 +492,7 @@ struct
492492 `Excluded (S. empty () , (- b, b))
493493 )
494494 | `Excluded (_ , ((p1 , p2 ) as p )), `Excluded (_ , ((r1 , r2 ) as r )) ->
495- begin match Int. compare p1 0 > = 0 , Int. compare r1 0 > = 0 with
495+ begin match p1 > = 0 , r1 > = 0 with
496496 | true , true -> `Excluded (S. empty () , (0 , Int. min p2 r2))
497497 | true , _ -> `Excluded (S. empty () , (0 , p2))
498498 | _ , true -> `Excluded (S. empty () , (0 , r2))
@@ -527,12 +527,12 @@ struct
527527 | `Definite i, `Excluded (_, (r1, r2))
528528 | `Excluded (_ , (r1 , r2 )), `Definite i ->
529529 let b = Int. max (Z. numbits i) (Int. max (Int. abs r1) (Int. abs r2)) in
530- if Int. compare r1 0 > = 0 && Z. compare i Z. zero > = 0 then
530+ if r1 > = 0 && Z. compare i Z. zero > = 0 then
531531 `Excluded (S. empty () , (0 , b))
532532 else
533533 `Excluded (S. empty () , (- b, b))
534534 | `Excluded (_ , (p1 , p2 )), `Excluded (_ , (r1 , r2 )) ->
535- if Int. compare p1 0 > = 0 && Int. compare r1 0 > = 0 then
535+ if p1 > = 0 && r1 > = 0 then
536536 `Excluded (S. empty () , (0 , Int. max p2 r2))
537537 else (
538538 let b = List. fold_left Int. max 0 (List. map Int. abs [p1; p2; r1; r2]) in
0 commit comments