diff options
| author | serpilliere <devnull@localhost> | 2012-05-08 18:33:55 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2012-05-08 18:33:55 +0200 |
| commit | 5dec442348a47a8b68fa13e53805f31786ce6127 (patch) | |
| tree | 018a50ce5c8b23d73e7c55c18ec519ee3050e2c1 /example/expression/manip_expression5.py | |
| parent | 0720dbf62ec5e001c10f80b2e19c521d976fdef5 (diff) | |
| download | focaccia-miasm-5dec442348a47a8b68fa13e53805f31786ce6127.tar.gz focaccia-miasm-5dec442348a47a8b68fa13e53805f31786ce6127.zip | |
remove useless ExprSliceTo
exprsliceto is only used in exprcompose, so it can be removed from IL representation, and exprcompose will deal start/stop fields WARNING: as IL is modified, it may break a lot of scripts
Diffstat (limited to 'example/expression/manip_expression5.py')
| -rw-r--r-- | example/expression/manip_expression5.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/example/expression/manip_expression5.py b/example/expression/manip_expression5.py index cc54515d..165d9eef 100644 --- a/example/expression/manip_expression5.py +++ b/example/expression/manip_expression5.py @@ -61,15 +61,15 @@ print (i2+s).canonize() cc = ExprCond(a, b, c) -o = ExprCompose([ExprSliceTo(a[:8], 8, 16), - ExprSliceTo(a[8:16], 0, 8)]) +o = ExprCompose([(a[:8], 8, 16), + (a[8:16], 0, 8)]) print o print o.canonize() -o = ExprCompose([ExprSliceTo(a[8:16], 0, 8), - ExprSliceTo(a[:8], 8, 16)]) -print o -print o.canonize() +o2 = ExprCompose([(a[8:16], 0, 8), + (a[:8], 8, 16)]) +print o2 +print o2.canonize() print ExprMem(o).canonize() |