NAME=agCj entry0 imports libc_start_main
FILE=bins/elf/true
CMDS=<<EOF
aaa 2> /dev/null
agCj~{0}
EOF
EXPECT=<<EOF
{"name":"entry0","size":46,"imports":["reloc.__libc_start_main"]}
EOF
RUN

NAME=agCd entry0 imports libc_start_main
FILE=bins/elf/true
CMDS=<<EOF
aaa 2> /dev/null
agCd~2110
EOF
EXPECT=<<EOF
  "0x00002110" [label="entry0" URL="entry0/0x00002110"];
  "0x00002110" -> "0x00008f30" [color="#61afef" URL="reloc.__libc_start_main/0x00008f30"];
EOF
RUN

NAME=agCd contains label for main
FILE=bins/elf/true
CMDS=<<EOF
aaa 2> /dev/null
agCd~label="main"
EOF
EXPECT=<<EOF
  "0x00002050" [label="main" URL="main/0x00002050"];
EOF
RUN

NAME=agC function names are resovled properly
FILE=bins/elf/true
CMDS=<<EOF
aaa 2> /dev/null
agC~unk.
echo end
EOF
EXPECT=<<EOF
end
EOF
RUN
