diff options
| author | Ajax <commial@gmail.com> | 2017-04-20 11:23:07 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2017-04-20 13:01:56 +0200 |
| commit | 00d100be01d666096f407c502b256d555acc8f04 (patch) | |
| tree | 0c7491dbea24a2ba13b2c6338f885c45431f0de6 /miasm2/ir/ir.py | |
| parent | 4f5206dd8774a82ed2c864f4e6fe2d512f9d4408 (diff) | |
| download | miasm-00d100be01d666096f407c502b256d555acc8f04.tar.gz miasm-00d100be01d666096f407c502b256d555acc8f04.zip | |
AssignBlock: add a few comment
Diffstat (limited to '')
| -rw-r--r-- | miasm2/ir/ir.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/miasm2/ir/ir.py b/miasm2/ir/ir.py index 0995b86a..aeb6cbbe 100644 --- a/miasm2/ir/ir.py +++ b/miasm2/ir/ir.py @@ -30,10 +30,21 @@ from miasm2.core.graph import DiGraph class AssignBlock(object): + """Represent parallel IR assignment, such as: + EAX = EBX + EBX = EAX + + Also provides common manipulation on this assignments + """ __slots__ = ["_assigns", "_instr"] def __init__(self, irs=None, instr=None): - """@irs seq""" + """Create a new AssignBlock + @irs: (optional) sequence of ExprAff, or dictionnary dst (Expr) -> src + (Expr) + @instr: (optional) associate an instruction with this AssignBlock + + """ if irs is None: irs = [] self._instr = instr @@ -49,6 +60,7 @@ class AssignBlock(object): @property def instr(self): + """Return the associated instruction, if any""" return self._instr def _set(self, dst, src): |