File tree Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ module Witnesses = struct
34
34
type t = unit
35
35
36
36
let join _ _ = ()
37
+ let lessequal _ _ = true
37
38
let meet _ _ = ()
38
39
let print _ _ = ()
39
40
let empty = ()
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ module Witnesses : sig
15
15
16
16
val join : t -> t -> t
17
17
val meet : t -> t -> t
18
+ val lessequal : t -> t -> bool
18
19
val print : Format .formatter -> t -> unit
19
20
val compare : t -> t -> int
20
21
end
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ module type WS = sig
5
5
6
6
val meet : t -> t -> t
7
7
8
+ val lessequal : t -> t -> bool
9
+
8
10
val print : Format .formatter -> t -> unit
9
11
10
12
val compare : t -> t -> int
@@ -39,7 +41,7 @@ module Make (Witnesses : WS) = struct
39
41
match v1, v2 with
40
42
| Bot , Bot -> true
41
43
| Safe , Safe -> true
42
- | Top _ , Top _ -> true
44
+ | Top w1 , Top w2 -> Witnesses. lessequal w1 w2
43
45
| Bot , Safe -> true
44
46
| Bot , Top _ -> true
45
47
| Safe , Top _ -> true
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ module type WS = sig
10
10
11
11
val meet : t -> t -> t
12
12
13
+ val lessequal : t -> t -> bool
14
+
13
15
val print : Format .formatter -> t -> unit
14
16
15
17
val compare : t -> t -> int
You can’t perform that action at this time.
0 commit comments