about summary refs log tree commit diff stats
path: root/example/expression/manip_expression3.py
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2014-06-03 10:18:48 +0200
committerserpilliere <devnull@localhost>2014-06-03 10:18:48 +0200
commita183e1ebd525453710306695daa8c410fd0cb2af (patch)
treecd99281474ea3999ccc6e5399c2cb95349981cfb /example/expression/manip_expression3.py
parentcecdf0da2ed0221c203af9157add30e2bff7dd8c (diff)
downloadfocaccia-miasm-a183e1ebd525453710306695daa8c410fd0cb2af.tar.gz
focaccia-miasm-a183e1ebd525453710306695daa8c410fd0cb2af.zip
Send miasm v1 to hell
Diffstat (limited to 'example/expression/manip_expression3.py')
-rw-r--r--example/expression/manip_expression3.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/example/expression/manip_expression3.py b/example/expression/manip_expression3.py
deleted file mode 100644
index ed3123bb..00000000
--- a/example/expression/manip_expression3.py
+++ /dev/null
@@ -1,25 +0,0 @@
-from miasm.arch.ia32_sem import *
-from miasm.expression.expression_helper import *
-
-print 'simple expression simplification demo'
-print
-
-a = ExprId('eax')
-b = ExprId('ebx')
-c = a + b
-d = c - a
-print d
-# ((eax + ebx) - eax)
-print "=>", expr_simp(d)
-print
-# ebx
-e = ExprInt(uint32(0x12)) + ExprInt(uint32(0x30)) - a
-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)