microprobe.passes.structure.SimpleBuildingBlockPass

class SimpleBuildingBlockPass(bblsize, threshold=0.1)[source]

Bases: microprobe.passes.Pass

SimpleBuildingBlockPass Class.

This Pass adds a single building block of a given instruction size to the given building block. The pass fails if the buiding block size differs in ratio more than the threshold provided.

__init__(bblsize, threshold=0.1)[source]

Create a SimpleBuildingBlockPass object.

Parameters:
  • bblsize (int) – Size of the building block to add
  • threshold (float) – Allowed deviation from the size provided (Default value = 0.1)
Returns:

A new SimpleBuildingBlockPass object.

Return type:

SimpleBuildingBlockPass

Methods

__init__(bblsize[, threshold]) Create a SimpleBuildingBlockPass object.
check(building_block, dummy_target)
param building_block:
 



check(building_block, dummy_target)[source]
Parameters:
  • building_block
  • dummy_target
info()

Te

report()
requires()