diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-06-09 18:42:04 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-06-10 11:27:12 +0200 |
| commit | ae30dd263f043b9311294ba20cfacac0a5de32d1 (patch) | |
| tree | 89089283782a1ce2f797f72e0f5760c75163ab2a /test/core/asmblock.py | |
| parent | dd2fd9c8e424463591782472192627cfdbe397f5 (diff) | |
| download | miasm-ae30dd263f043b9311294ba20cfacac0a5de32d1.tar.gz miasm-ae30dd263f043b9311294ba20cfacac0a5de32d1.zip | |
Updt dis_block_callback; apply_splitting
Diffstat (limited to '')
| -rw-r--r-- | test/core/asmblock.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/asmblock.py b/test/core/asmblock.py index e5ccf252..47f92569 100644 --- a/test/core/asmblock.py +++ b/test/core/asmblock.py @@ -274,7 +274,7 @@ assert asmcfg.successors(tob.loc_key) == [tob.loc_key] # Check split_block ## Without condition for a split, no change asmcfg_bef = asmcfg.copy() -asmcfg.apply_splitting(mdis.loc_db) +mdis.apply_splitting(asmcfg) assert asmcfg_bef == asmcfg open("graph5.dot", "w").write(asmcfg.dot()) ## Create conditions for a block split @@ -283,7 +283,7 @@ tob.bto.add(AsmConstraintTo(inside_firstbbl)) asmcfg.rebuild_edges() assert len(asmcfg.pendings) == 1 assert inside_firstbbl in asmcfg.pendings -asmcfg.apply_splitting(mdis.loc_db) +mdis.apply_splitting(asmcfg) ## Check result assert len(asmcfg) == 6 assert len(asmcfg.pendings) == 0 |