about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--miasm2/ir/ir.py14
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):