All Classes Namespaces Files Functions Variables Typedefs Properties Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Attributes | List of all members
miasm2.analysis.depgraph.FollowExpr Class Reference
+ Inheritance diagram for miasm2.analysis.depgraph.FollowExpr:
+ Collaboration diagram for miasm2.analysis.depgraph.FollowExpr:

Public Member Functions

def __init__

Static Public Member Functions

def to_depnodes
def extract_depnodes

Public Attributes


Static Private Attributes

list __slots__ = ["follow", "element"]

Detailed Description

Definition at line 638 of file depgraph.py.

Constructor & Destructor Documentation

def miasm2.analysis.depgraph.FollowExpr.__init__ (   self,

Definition at line 643 of file depgraph.py.

644  def __init__(self, follow, element):
645  self.follow = follow
646  self.element = element

Member Function Documentation

def miasm2.analysis.depgraph.FollowExpr.extract_depnodes (   follow_exprs,
  only_follow = False 
Extract depnodes from a set of FollowExpr(Depnodes)
@only_follow: (optional) extract only elements to follow

Definition at line 668 of file depgraph.py.

669  def extract_depnodes(follow_exprs, only_follow=False):
670  """Extract depnodes from a set of FollowExpr(Depnodes)
671  @only_follow: (optional) extract only elements to follow"""
672  return set(follow_expr.element
673  for follow_expr in follow_exprs
674  if not(only_follow) or follow_expr.follow)
def miasm2.analysis.depgraph.FollowExpr.to_depnodes (   follow_exprs,
Build a set of FollowExpr(DependencyNode) from the @follow_exprs set
of FollowExpr
@follow_exprs: set of FollowExpr
@label: asm_label instance
@line: integer
@modifier: boolean
@step: integer

Definition at line 648 of file depgraph.py.

649  def to_depnodes(follow_exprs, label, line, modifier, step):
650  """Build a set of FollowExpr(DependencyNode) from the @follow_exprs set
651  of FollowExpr
652  @follow_exprs: set of FollowExpr
653  @label: asm_label instance
654  @line: integer
655  @modifier: boolean
656  @step: integer
657  """
658  dependencies = set()
659  for follow_expr in follow_exprs:
660  dependencies.add(FollowExpr(follow_expr.follow,
661  DependencyNode(label,
662  follow_expr.element,
663  line,
664  step,
665  modifier=modifier)))
666  return dependencies

Member Data Documentation

list miasm2.analysis.depgraph.FollowExpr.__slots__ = ["follow", "element"]

Definition at line 641 of file depgraph.py.


Definition at line 645 of file depgraph.py.


Definition at line 644 of file depgraph.py.

The documentation for this class was generated from the following file: