package bap-std
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
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.
val label : 
  ?package:string ->
  t ->
  Bap_core_theory.Theory.Label.t Bap_core_theory.KB.tlabel seqnum returns the program label that corresponds to seqnum.
val slot : (Bap_core_theory.Theory.program, t option) Bap_core_theory.KB.slotslot for accessing the sequence number of a subinstruction.
val fresh : tid Bap_knowledge.knowledgefresh evaluates to a freshly generated sequence number.