diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-04-14 23:04:46 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-04-20 12:36:51 +0200 |
| commit | 4d511eab15845e519e5a8b0d9f742a550768b709 (patch) | |
| tree | 418429f7a3cdedf5efdf074126bc76dbd04f9657 /test/analysis/depgraph.py | |
| parent | a9b3d7f1a9014336b46c6dca20332a6deaccfc6d (diff) | |
| download | miasm-4d511eab15845e519e5a8b0d9f742a550768b709.tar.gz miasm-4d511eab15845e519e5a8b0d9f742a550768b709.zip | |
IRBlock: move lines in AssignBlock
Diffstat (limited to 'test/analysis/depgraph.py')
| -rw-r--r-- | test/analysis/depgraph.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/analysis/depgraph.py b/test/analysis/depgraph.py index 005ab32c..63313861 100644 --- a/test/analysis/depgraph.py +++ b/test/analysis/depgraph.py @@ -50,10 +50,9 @@ LBL5 = AsmLabel("lbl5") LBL6 = AsmLabel("lbl6") def gen_irblock(label, exprs_list): - """ Returns an IRBlock with empty lines. + """ Returns an IRBlock. Used only for tests purpose """ - lines = [None for _ in xrange(len(exprs_list))] irs = [] for exprs in exprs_list: if isinstance(exprs, AssignBlock): @@ -61,7 +60,7 @@ def gen_irblock(label, exprs_list): else: irs.append(AssignBlock(exprs)) - irbl = IRBlock(label, irs, lines) + irbl = IRBlock(label, irs) return irbl |