diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-03-12 10:09:07 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-03-12 13:25:20 +0100 |
| commit | cead4d7cd899062155d13f1740c1a44eeb3ecd7c (patch) | |
| tree | 2a0dfa81962e8ae933e3e58929a9d79603817dff | |
| parent | c35d215a2d8470eee23bba4523dbb51457baf21b (diff) | |
| download | miasm-cead4d7cd899062155d13f1740c1a44eeb3ecd7c.tar.gz miasm-cead4d7cd899062155d13f1740c1a44eeb3ecd7c.zip | |
Depgraph: exprs in affected_lines must appear only once.
| -rw-r--r-- | miasm2/analysis/depgraph.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/analysis/depgraph.py b/miasm2/analysis/depgraph.py index 7ec9d7fa..3583f956 100644 --- a/miasm2/analysis/depgraph.py +++ b/miasm2/analysis/depgraph.py @@ -359,8 +359,8 @@ class DependencyResult(object): # Build a single affectation block according to history for label in self.relevant_labels[::-1]: - affected_lines = [line.line_nb for line in lines - if line.label == label] + affected_lines = set(line.line_nb for line in lines + if line.label == label) irs = self._ira.blocs[label].irs for line_nb in sorted(affected_lines): affects.append(irs[line_nb]) |