NAME=ESIL single stepback
FILE=bins/elf/analysis/calls_x64
CMDS=<<EOF
e asm.emu=true
e asm.bits=64
e asm.arch=x86
e emu.write=true
s loc.main
aei
aeim
aeip
aets+
aeso
aeso
ar rip
ar rsp
pf q @ rsp
aesb
ar rip
ar rsp
pf q @ rsp
dk 9
aets-
EOF
EXPECT=<<EOF
rip = 0x000000000040052f
rsp = 0x0000000000177ff0
0x00177ff0 = (qword)0x000000000040057c
rip = 0x0000000000400575
rsp = 0x0000000000177ff8
0x00177ff8 = (qword)0x0000000000178000
EOF
RUN
