package bap-std

  1. Overview
  2. Docs
The Binary Analysis Platform Standard Library

Install

Dune Dependency

Authors

Maintainers

Sources

v2.5.0.tar.gz
sha256=9c126781385d2fa9b8edab22e62b25c70bf2f99f6ec78abb7e5e36d63cfa4174
md5=5abd9b3628b43f797326034f31ca574f

doc/bap/Bap/Std/Insn/Seqnum/index.html

Module Insn.Seqnum

Subinstruction Sequence Number.

A subinstruction sequence number plays the role of an address for sub-instruction (which otherwise share the same physical address).

Each subinstruction is having a unique address across the whole program (not only unique across to other subinstructions of the same instruction) and much like Theory.Label.for_addr it is possible to get a label that corresponds to an instruction with the given sequence number using Seqnum.label.

The sequence number is represented with an integer to enable address arithemetics. A subinstruction that follows a subinstruction with the sequence number N has the sequence number N+1.

  • since 2.4.0
type t = int
val label : ?package:string -> t -> Bap_core_theory.Theory.Label.t Bap_core_theory.KB.t

label seqnum returns the program label that corresponds to seqnum.

slot for accessing the sequence number of a subinstruction.

fresh evaluates to a freshly generated sequence number.

  • since 2.5.0
OCaml

Innovation. Community. Security.