NAME=Dalvik HelloWorld afl
FILE=bins/dex/HelloWorld.dex
CMDS=e io.va=0; aa; afl
EXPECT=<<EOF
0x0000025c    1 34           entry0
0x00000238    1 20           method.public.constructor.LHello.LHello.method._init___V
0x00000290    1 84           method.public.LHello.LHello.method.foo_I_V
0x000002f4    1 20           method.public.constructor.LWorld.LWorld.method._init___V
0x00000318    1 68           method.public.LWorld.LWorld.method.foo_I_V
EOF
RUN

NAME=Dalvik HelloWorld string xref
FILE=bins/dex/HelloWorld.dex
CMDS=aa; axt @ str.Findus
EXPECT=<<EOF
entry0 0x260 [DATA] const-string v1, str.Findus
EOF
RUN

NAME=Dalvik HelloWorld func xref
FILE=bins/dex/HelloWorld.dex
CMDS=e io.va=0; aa; axt @ sym.LHello.method._init___V
EXPECT=<<EOF
entry0 0x26e [CALL] invoke-direct {v0}, LHello.<init>()V ; 0x0
EOF
RUN
