@@ -1773,13 +1773,8 @@ struct
1773
1773
include (Lattice. Reverse (Base ) : Lattice. S with type t := Base. t)
1774
1774
end
1775
1775
1776
- module BigInt = struct
1777
- include IntOps. BigIntOps
1778
- let arbitrary () = QCheck. map ~rev: Z. to_int64 Z. of_int64 QCheck. int64
1779
- end
1780
-
1781
1776
module BISet = struct
1782
- include SetDomain. Make (BigInt )
1777
+ include SetDomain. Make (IntOps. BigIntOps )
1783
1778
let is_singleton s = cardinal s = 1
1784
1779
end
1785
1780
@@ -2062,7 +2057,7 @@ struct
2062
2057
let of_bool = of_bool_cmp
2063
2058
let to_bool x =
2064
2059
match x with
2065
- | `Definite x -> Some (BigInt . to_bool x)
2060
+ | `Definite x -> Some (IntOps.BigIntOps . to_bool x)
2066
2061
| `Excluded (s ,r ) when S. mem Z. zero s -> Some true
2067
2062
| _ -> None
2068
2063
let top_bool = `Excluded (S. empty () , R. of_interval range_ikind (0L , 1L ))
@@ -2257,14 +2252,14 @@ struct
2257
2252
| _ , Some false ->
2258
2253
of_bool ik false
2259
2254
| _ , _ ->
2260
- lift2 BigInt . logand ik x y
2255
+ lift2 IntOps.BigIntOps . logand ik x y
2261
2256
let logor ik x y =
2262
2257
match to_bool x, to_bool y with
2263
2258
| Some true , _
2264
2259
| _ , Some true ->
2265
2260
of_bool ik true
2266
2261
| _ , _ ->
2267
- lift2 BigInt . logor ik x y
2262
+ lift2 IntOps.BigIntOps . logor ik x y
2268
2263
let lognot ik = eq ik (of_int ik Z. zero)
2269
2264
2270
2265
let invariant_ikind e ik (x :t ) =
@@ -2297,12 +2292,12 @@ struct
2297
2292
let definite x = of_int ik x in
2298
2293
let shrink = function
2299
2294
| `Excluded (s , _ ) -> GobQCheck. shrink (S. arbitrary () ) s > |= excluded (* S TODO: possibly shrink excluded to definite *)
2300
- | `Definite x -> (return `Bot ) < +> (GobQCheck. shrink (BigInt . arbitrary () ) x > |= definite)
2295
+ | `Definite x -> (return `Bot ) < +> (GobQCheck. shrink (IntOps.BigIntOps . arbitrary () ) x > |= definite)
2301
2296
| `Bot -> empty
2302
2297
in
2303
2298
QCheck. frequency ~shrink ~print: show [
2304
2299
20 , QCheck. map excluded (S. arbitrary () );
2305
- 10 , QCheck. map definite (BigInt . arbitrary () );
2300
+ 10 , QCheck. map definite (IntOps.BigIntOps . arbitrary () );
2306
2301
1 , QCheck. always `Bot
2307
2302
] (* S TODO: decide frequencies *)
2308
2303
@@ -2630,8 +2625,8 @@ module Enums : S with type int_t = Z.t = struct
2630
2625
| Some b -> of_bool ik (not b)
2631
2626
| None -> top_bool
2632
2627
2633
- let logand = lift2 BigInt . logand
2634
- let logor = lift2 BigInt . logor
2628
+ let logand = lift2 IntOps.BigIntOps . logand
2629
+ let logor = lift2 IntOps.BigIntOps . logor
2635
2630
let maximal = function
2636
2631
| Inc xs when not (BISet. is_empty xs) -> Some (BISet. max_elt xs)
2637
2632
| Exc (excl ,r ) ->
0 commit comments