Skip to content

Commit

Permalink
Add comment on IntervalSets elements
Browse files Browse the repository at this point in the history
See discussion: goblint#966 (comment)
  • Loading branch information
gabryon99 committed Jan 23, 2023
1 parent 323803d commit 0476a9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cdomains/intDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,10 @@ struct

type int_t = Ints_t.t

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

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

0 comments on commit 0476a9c

Please sign in to comment.