Skip to content

Commit

Permalink
Bring back Expr.Bool.v
Browse files Browse the repository at this point in the history
  • Loading branch information
filipeom committed Jun 24, 2024
1 parent b4ac590 commit 0c8b071
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/expr.ml
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ module Bool = struct

let to_val b = if b then true_ else false_

let v b = to_val b [@@inline]

let not_ (b : t) =
let bexpr = view b in
match of_val bexpr with
Expand Down
2 changes: 2 additions & 0 deletions lib/expr.mli
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ module Bool : sig

val false_ : t

val v : bool -> t

val not_ : t -> t

val equal : t -> t -> t
Expand Down

0 comments on commit 0c8b071

Please sign in to comment.