about summary refs log tree commit diff stats
path: root/test/analysis/depgraph.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2016-03-10 09:38:58 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2016-03-21 15:09:22 +0100
commit752d7fb00c46aefc87f8a1c8f3aab450e7dc1b44 (patch)
treef4a975cb33317a5e447e7e2e0270c1f06f560c7b /test/analysis/depgraph.py
parent28335f53f75f8404d6a5432e3a860531e2903f71 (diff)
downloadmiasm-752d7fb00c46aefc87f8a1c8f3aab450e7dc1b44.tar.gz
miasm-752d7fb00c46aefc87f8a1c8f3aab450e7dc1b44.zip
Depgraph: updt api
Diffstat (limited to 'test/analysis/depgraph.py')
-rw-r--r--test/analysis/depgraph.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/analysis/depgraph.py b/test/analysis/depgraph.py
index d488d995..f1d9151c 100644
--- a/test/analysis/depgraph.py
+++ b/test/analysis/depgraph.py
@@ -134,13 +134,13 @@ def bloc2graph(irgraph, label=False, lines=True):
             label_attr, label_name)
         block_html_lines = []
         if lines and irblock is not None:
-            for exprs in irblock.irs:
-                for expr in exprs:
+            for assignblk in irblock.irs:
+                for dst, src in assignblk.iteritems():
                     if False:
                         out_render = "%.8X</td><td %s> " % (0, td_attr)
                     else:
                         out_render = ""
-                    out_render += escape_chars.sub(fix_chars, str(expr))
+                    out_render += escape_chars.sub(fix_chars, "%s = %s" % (dst, src))
                     block_html_lines.append(out_render)
                 block_html_lines.append(" ")
             block_html_lines.pop()