about summary refs log tree commit diff stats
path: root/miasm2/ir
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--miasm2/ir/ir.py4
-rw-r--r--miasm2/ir/symbexec.py2
-rw-r--r--miasm2/ir/translators/miasm.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/miasm2/ir/ir.py b/miasm2/ir/ir.py
index cd512e34..ca5100e2 100644
--- a/miasm2/ir/ir.py
+++ b/miasm2/ir/ir.py
@@ -326,7 +326,7 @@ class ir(object):
                 isinstance(ad.name, asm_label)):
             ad = ad.name
         if isinstance(ad, m2_expr.ExprInt):
-            ad = int(ad.arg)
+            ad = int(ad)
         if type(ad) in [int, long]:
             ad = self.symbol_pool.getby_offset_create(ad)
         elif isinstance(ad, asm_label):
@@ -514,7 +514,7 @@ class ir(object):
             for d in dst:
                 if isinstance(d, m2_expr.ExprInt):
                     d = m2_expr.ExprId(
-                        self.symbol_pool.getby_offset_create(int(d.arg)))
+                        self.symbol_pool.getby_offset_create(int(d)))
                 if expr_is_label(d):
                     self._graph.add_edge(lbl, d.name)
 
diff --git a/miasm2/ir/symbexec.py b/miasm2/ir/symbexec.py
index 1dc8dde1..4c133c4c 100644
--- a/miasm2/ir/symbexec.py
+++ b/miasm2/ir/symbexec.py
@@ -295,7 +295,7 @@ class symbexec(object):
         ex = self.expr_simp(self.eval_expr(ex, {}))
         if not isinstance(ex, m2_expr.ExprInt):
             return None
-        ptr_diff = int(int32(ex.arg))
+        ptr_diff = int(int32(ex))
         out = []
         if ptr_diff < 0:
             #    [a     ]
diff --git a/miasm2/ir/translators/miasm.py b/miasm2/ir/translators/miasm.py
index f1e4c5ae..ef91cfb1 100644
--- a/miasm2/ir/translators/miasm.py
+++ b/miasm2/ir/translators/miasm.py
@@ -10,7 +10,7 @@ class TranslatorMiasm(Translator):
         return "ExprId(%s, size=%d)" % (repr(expr.name), expr.size)
 
     def from_ExprInt(self, expr):
-        return "ExprInt(0x%x, %d)" % (int(expr.arg), expr.size)
+        return "ExprInt(0x%x, %d)" % (int(expr), expr.size)
 
     def from_ExprCond(self, expr):
         return "ExprCond(%s, %s, %s)" % (self.from_expr(expr.cond),