Skip to content

Commit 0476a9c

Browse files
committed
Add comment on IntervalSets elements
See discussion: goblint#966 (comment)
1 parent 323803d commit 0476a9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cdomains/intDomain.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,10 @@ struct
930930

931931
type int_t = Ints_t.t
932932

933+
(*
934+
Each domain's element is guaranteed to be in canonical form. That is, each interval contained
935+
inside the set does not overlap with each other and they are not adjecent.
936+
*)
933937
type t = (Ints_t.t * Ints_t.t) list [@@deriving eq, hash, ord]
934938

935939
let range ik = BatTuple.Tuple2.mapn Ints_t.of_bigint (Size.range ik)

0 commit comments

Comments
 (0)