diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2014-09-19 13:58:03 +0200 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2014-09-19 13:58:03 +0200 |
| commit | 2bc1d7810dd07f9a0401984125fc82ac5ac7d9aa (patch) | |
| tree | 40e084cd2bb9e6224c1fdbfef158f71102863897 /example/expression/manip_expression3.py | |
| parent | 69c35ab316c0dae069ad7fb9d0567c6dd8746a8e (diff) | |
| download | focaccia-miasm-2bc1d7810dd07f9a0401984125fc82ac5ac7d9aa.tar.gz focaccia-miasm-2bc1d7810dd07f9a0401984125fc82ac5ac7d9aa.zip | |
Expression examples: Rename examples with meaningfull names
Diffstat (limited to 'example/expression/manip_expression3.py')
| -rw-r--r-- | example/expression/manip_expression3.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/example/expression/manip_expression3.py b/example/expression/manip_expression3.py deleted file mode 100644 index 27c86096..00000000 --- a/example/expression/manip_expression3.py +++ /dev/null @@ -1,20 +0,0 @@ -from miasm2.expression.expression import * -from miasm2.expression.simplifications import expr_simp - -print """ -Simple expression simplification demo -""" - - -a = ExprId('eax') -b = ExprId('ebx') - -exprs = [a + b - a, - ExprInt32(0x12) + ExprInt32(0x30) - a, - ExprCompose([(a[:8], 0, 8), - (a[8:16], 8, 16)])] - -for e in exprs: - print '*' * 40 - print 'original expression:', e - print "simplified:", expr_simp(e) |