about summary refs log tree commit diff stats
path: root/miasm2/analysis/depgraph.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2015-03-19 13:55:21 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2015-03-20 12:43:39 +0100
commit1ed5b67a56360e92b45b11fb6134903d2b9a5574 (patch)
treeef979d84419ddcb9e0e7d3cfc354f2f5b4356650 /miasm2/analysis/depgraph.py
parent0f559212d30b58a4b9ee15491f7d0a684e59b257 (diff)
downloadmiasm-1ed5b67a56360e92b45b11fb6134903d2b9a5574.tar.gz
miasm-1ed5b67a56360e92b45b11fb6134903d2b9a5574.zip
degraph: remove useless ira creation
Diffstat (limited to 'miasm2/analysis/depgraph.py')
-rw-r--r--miasm2/analysis/depgraph.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/miasm2/analysis/depgraph.py b/miasm2/analysis/depgraph.py
index bb827c00..ead5c8a9 100644
--- a/miasm2/analysis/depgraph.py
+++ b/miasm2/analysis/depgraph.py
@@ -353,7 +353,6 @@ class DependencyResult(object):
         /!\ The emulation is not safe if there is a loop in the relevant labels
         """
         # Init
-        new_ira = (self._ira.__class__)()
         depnodes = self.relevant_nodes
         affects = []
 
@@ -367,7 +366,7 @@ class DependencyResult(object):
 
         # Eval the block
         temp_label = asm_label("Temp")
-        sb = symbexec(new_ira, new_ira.arch.regs.regs_init)
+        sb = symbexec(self._ira, self._ira.arch.regs.regs_init)
         sb.emulbloc(irbloc(temp_label, affects), step=step)
 
         # Return only inputs values (others could be wrongs)