package bap-std
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=7c6d0dfe2640e800829617dd150ffe748493fe3f317ed41be44312b2821deb46
md5=5dbc6677d646bec59fd7414f23e88cf8
doc/bap/Bap/Std/Disasm_expert/Basic/Insn/index.html
Module Basic.Insn
Basic instruction. This instruction is an opaque pointer into C-backend, thus it is protected with phantom types.
type ('a, 'k) t = ('a, 'k) insn
val slot :
(Bap_core_theory.Theory.program, full_insn option)
Bap_knowledge.Knowledge.slot
a decoded representa
val sexp_of_t : ('a, 'k) t -> Core_kernel.Sexp.t
sexp_of_t insn
returns a sexp representation of insn
val code : ('a, 'k) t -> int
code insn
returns an integer code, that is bijective with instruction opcode. It might not be the actual opcode, it may also change between different backends, and different versions of the same backend.
val name : ('a, 'k) t -> string
name insn
returns a textual representation of the instruction name. It might be the mnemonics, or a name, specific to a backend. The name is guaranteed to biject with the opcode (and thus to code
).
val encoding : ('a, 'k) t -> string
returns the name of the backend that encoded this instruction.
kinds insn
returns a high-level semantic information about the instruction. See Kind
for the description of semantic codes.
is insn kind
checks whether instruction insn
belongs to the semantic kind