blob: 3c1b7d3ff0c8d2d2d41c1fa118f213992d59fce1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import inspect
from pdb import pm
from miasm2.core.sembuilder import SemBuilder
import miasm2.expression.expression as m2_expr
sb = SemBuilder(m2_expr.__dict__)
@sb.parse
def test(Arg1, Arg2, Arg3):
"Test docstring"
Arg1 = Arg2
mem32[Arg1] = Arg2
mem32[Arg2] = Arg3 + i32(4) - mem32[Arg1]
Arg3 = Arg3 if Arg2 else i32(0)
tmpvar = i32(2)
Arg2 = tmpvar
a = m2_expr.ExprId('A')
b = m2_expr.ExprId('B')
c = m2_expr.ExprId('C')
ir = None
instr = None
print test(ir, instr, a, b, c)
print test.__doc__
|