Skip to content

Commit

Permalink
Update and add comments about log* functions
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Jan 29, 2024
1 parent 3d99978 commit 67320d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cdomain/value/cdomains/intDomain.mli
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ sig
(** Not equal to: [x != y] *)


(** {b Bit operators} *)
(** {b Bitwise logical operators} *)

val lognot: t -> t
(** Bitwise not (one's complement): [~x] *)
(** Bitwise logical not (one's complement): [~x] *)

val logand: t -> t -> t
(** Bitwise and: [x & y] *)
(** Bitwise logical and: [x & y] *)

val logor : t -> t -> t
(** Bitwise or: [x | y] *)
(** Bitwise logical or: [x | y] *)

val logxor: t -> t -> t
(** Bitwise exclusive or: [x ^ y] *)
(** Bitwise logical exclusive or: [x ^ y] *)

val shift_left : t -> t -> t
(** Shifting bits left: [x << y] *)
Expand Down
6 changes: 6 additions & 0 deletions src/common/util/intOps.ml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,17 @@ sig

(* Bitwise *)
val shift_left : t -> int -> t
(* shift_left x y shifts x to the left by y bits. *)
val shift_right : t -> int -> t
(* shift_right x y shifts x to the right by y bits. *)
val logand : t -> t -> t
(* Bitwise logical and. *)
val logor : t -> t -> t
(* Bitwise logical or. *)
val logxor : t -> t -> t
(* Bitwise logical exclusive or. *)
val lognot : t -> t
(* Bitwise logical negation. *)

(* Comparison *)
val compare : t -> t -> int
Expand Down

0 comments on commit 67320d4

Please sign in to comment.