Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makes BIL smart constructors smart #1499

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions lib/bap_types/bap_common.ml
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,27 @@ module Size = struct
| `r64
| `r128
| `r256
] [@@deriving bin_io, compare, sexp, variants]
] [@@deriving bin_io, compare, sexp, equal, variants]

type 'a p = 'a constraint 'a = [< all]
[@@deriving bin_io, compare, sexp]
[@@deriving bin_io, compare, equal, sexp]

type t = all p
[@@deriving bin_io, compare, sexp]
[@@deriving bin_io, compare, equal, sexp]


end

(** size of operand *)
type size = Size.t
[@@deriving bin_io, compare, sexp]
[@@deriving bin_io, compare, equal, sexp]

(** size of address *)
type addr_size = [ `r32 | `r64 ] Size.p
[@@deriving bin_io, compare, sexp]
[@@deriving bin_io, compare, equal, sexp]

type nat1 = int
[@@deriving bin_io, compare, sexp]
[@@deriving bin_io, compare, equal, sexp]

(** The IR type of a BIL expression *)
module Type = struct
Expand All @@ -63,11 +63,11 @@ module Type = struct
(** [Mem (a,t)]memory with a specified addr_size *)
| Mem of addr_size * size
| Unk
[@@deriving bin_io, compare, sexp, variants]
[@@deriving bin_io, compare, equal, sexp, variants]
end

type typ = Type.t
[@@deriving bin_io, compare, sexp]
[@@deriving bin_io, compare, equal, sexp]


(** Supported architectures *)
Expand Down
Loading