diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-10-25 22:18:54 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-10-25 22:18:54 (GMT) |
commit | 3e6c0fb01710f61e8dc9383de6be4db1188b3ee6 (patch) | |
tree | 93fdd0762a28f500eae89e0f7903b24ad8dc5df3 /src/analysis | |
parent | 4ff85e315f540efbf3510c1e7456000787601d91 (diff) |
Noted that even the first basic block can have a loop to itself.
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/disass/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analysis/disass/loop.c b/src/analysis/disass/loop.c index 89a4bc9..01fca07 100644 --- a/src/analysis/disass/loop.c +++ b/src/analysis/disass/loop.c @@ -56,7 +56,7 @@ static void detect_back_edges(dragon_node *nodes, size_t count) dragon_node *target; /* Noeud référence à tester */ size_t id; /* Indice du bit associé */ - for (k = 1; k < count; k++) + for (k = 0; k < count; k++) { node = get_dragon_node(nodes, k); |