Skip to content

Commit

Permalink
add Basic_bv.pp
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Aug 20, 2024
1 parent 6425816 commit 647eac5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/core/basic_bv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ let to_list self : _ list =
let l = ref [] in
iter self (fun x -> l := x :: !l);
!l

let show self = spf "<bitvec len=%d>" (length self)
let pp out (self : t) = Fmt.string out (show self)
2 changes: 1 addition & 1 deletion src/core/basic_bv.mli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(** A really basic bitvector *)

type t [@@deriving twine]
type t [@@deriving twine, pp]

val create : int -> t
val get : t -> int -> bool
Expand Down

0 comments on commit 647eac5

Please sign in to comment.