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_expression3.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_expression3.py')
| -rw-r--r-- | example/expression/manip_expression3.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/example/expression/manip_expression3.py b/example/expression/manip_expression3.py index 06b3f77a..ed3123bb 100644 --- a/example/expression/manip_expression3.py +++ b/example/expression/manip_expression3.py @@ -18,3 +18,8 @@ print e # ((0x12 + 0x30) - eax) print "=>", expr_simp(e) # (0x42 - eax) + +o = ExprCompose([(a[:8], 0, 8), + (a[8:16], 8, 16)]) +print o +print expr_simp(o) |