about summary refs log tree commit diff stats
path: root/miasm2/analysis/depgraph.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2016-03-23 20:58:13 +0100
committerCamille Mougey <commial@gmail.com>2016-03-23 20:58:13 +0100
commit4eceb2b2e723409b610533788c0b98ec23a9e204 (patch)
treeda1c97447b429eba2d732a4f2719f5e9107444e6 /miasm2/analysis/depgraph.py
parent1eec0a14818adc697c9f3955b958dda67f93e054 (diff)
parent8c436da764b0616976c74c43fefd5494d3889ebb (diff)
downloadmiasm-4eceb2b2e723409b610533788c0b98ec23a9e204.tar.gz
miasm-4eceb2b2e723409b610533788c0b98ec23a9e204.zip
Merge pull request #347 from serpilliere/dg_has_loop
Dg has loop
Diffstat (limited to 'miasm2/analysis/depgraph.py')
-rw-r--r--miasm2/analysis/depgraph.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm2/analysis/depgraph.py b/miasm2/analysis/depgraph.py
index aec159aa..b574e421 100644
--- a/miasm2/analysis/depgraph.py
+++ b/miasm2/analysis/depgraph.py
@@ -252,10 +252,10 @@ class DependencyResult(DependencyState):
 
     @property
     def has_loop(self):
-        """True if current dictionary has a loop"""
+        """True iff there is at least one data dependencies cycle (regarding
+        the associated depgraph)"""
         if self._has_loop is None:
-            self._has_loop = (len(self.relevant_labels) !=
-                              len(set(self.relevant_labels)))
+            self._has_loop = self.graph.has_loop()
         return self._has_loop
 
     def irblock_slice(self, irb):