about summary refs log tree commit diff stats
path: root/miasm2/core/graph.py
diff options
context:
space:
mode:
authorTim Blazytko <tim.blazytko@rub.de>2015-05-16 03:45:50 +0200
committerTim Blazytko <tim.blazytko@rub.de>2015-06-02 15:04:04 +0200
commit5fc740de493c80731de0d0767c54fb6c9516b617 (patch)
tree20528df8dd1d87723a09fd43a84f65bb41a80a2e /miasm2/core/graph.py
parent9af5b22b6daaefbae6caadc8943a12baee785329 (diff)
downloadmiasm-5fc740de493c80731de0d0767c54fb6c9516b617.tar.gz
miasm-5fc740de493c80731de0d0767c54fb6c9516b617.zip
DiGraph: fixed order in dominance_frontier
Diffstat (limited to 'miasm2/core/graph.py')
-rw-r--r--miasm2/core/graph.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm2/core/graph.py b/miasm2/core/graph.py
index b0dc70d6..00c30d62 100644
--- a/miasm2/core/graph.py
+++ b/miasm2/core/graph.py
@@ -338,9 +338,9 @@ shape = "box"
                     if runner not in idoms:
                         continue
                     while runner != idoms[node]:
-                        if node not in frontier:
-                            frontier[node] = set()
+                        if runner not in frontier:
+                            frontier[runner] = set()
 
-                        frontier[node].add(runner)
+                        frontier[runner].add(node)
                         runner = idoms[runner]
         return frontier