about summary refs log tree commit diff stats
path: root/example/expression/graph_dataflow.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-04-30 17:39:30 +0200
committerAjax <commial@gmail.com>2015-04-30 19:12:25 +0200
commitb853add3ef50a2e30dca6c62dcd9f206113d1a38 (patch)
tree14b3bd8ffc96b15038561847d9e3ef1e1d69f78b /example/expression/graph_dataflow.py
parent7e9ad339a9a439b083044cbc9c744d50414f35c2 (diff)
downloadmiasm-b853add3ef50a2e30dca6c62dcd9f206113d1a38.tar.gz
miasm-b853add3ef50a2e30dca6c62dcd9f206113d1a38.zip
GraphDataflow: update API
Diffstat (limited to 'example/expression/graph_dataflow.py')
-rw-r--r--example/expression/graph_dataflow.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/example/expression/graph_dataflow.py b/example/expression/graph_dataflow.py
index bbf721f7..5a8e5d25 100644
--- a/example/expression/graph_dataflow.py
+++ b/example/expression/graph_dataflow.py
@@ -54,10 +54,11 @@ def get_modified_symbols(sb):
     ids = sb.symbols.symbols_id.keys()
     ids.sort()
     out = {}
+    regs_init = sb.ir_arch.arch.regs.regs_init
     for i in ids:
-        if i in sb.arch.regs.regs_init and \
+        if i in regs_init and \
                 i in sb.symbols.symbols_id and \
-                sb.symbols.symbols_id[i] == sb.arch.regs.regs_init[i]:
+                sb.symbols.symbols_id[i] == regs_init[i]:
             continue
         # print i, sb.symbols.symbols_id[i]
         out[i] = sb.symbols.symbols_id[i]