Binsec_kernel_dba.DhunkSourceDBA hunks, aka dhunk
A DBA block represents a set of DBA instructions with explicit links to the next one. The first instruction of the block always has id 0. Typically, DBA a block is the translation of one binary/assembly instruction.
A simple dhunk of one instruction jumping to the virtual address.
of_list l assumes the list is sorted in increasing order inside the block
of_list l assumes the list is sorted in increasing order inside the block, i.e. the labels are contiguous starting from 0.
unlink dh i skips the ith instruction. Its predecessors go to its successor.
view dh Visualize dot-rendered DBA hunk dh using cmd.
Default value for cmd is firefox.
optimize dh Performs some "compiler" optimizations and return the simplified block.
include Binsec_base.Sigs.PRINTABLE with type t := touter_jumps b computes the set of jumps to external addresses in hunk b. Due to dynamic jumps, this represents a syntactic under-approximation of the possible jumps from this block.
callees b computes the set of addresses this block may call
has_indirect_jump d returns true if the hunk contains an indirect jump instruction
type conditional = {condition : Dba.Expr.t;consequent : Binsec_base.Virtual_address.t;alternative : Binsec_base.Virtual_address.t;}