#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ ascii2bin(int, char **, char *);
int /*<<< orphan*/ ascii2dec(int, char **, char *);
int /*<<< orphan*/ ascii2hex(int, char **, char *);
int /*<<< orphan*/ ascii2oct(int, char **, char *);
int /*<<< orphan*/ bin2ascii(int, char **, char *);
int /*<<< orphan*/ bin2dec(int, char **, char *);
int /*<<< orphan*/ bin2hex(int, char **, char *);
int /*<<< orphan*/ bin2oct(int, char **, char *);
int /*<<< orphan*/ dec2ascii(int, char **, char *);
int /*<<< orphan*/ dec2bin(int, char **, char *);
int /*<<< orphan*/ dec2hex(int, char **, char *);
int /*<<< orphan*/ dec2oct(int, char **, char *);
int /*<<< orphan*/ hex2ascii(int, char **, char *);
int /*<<< orphan*/ hex2bin(int, char **, char *);
int /*<<< orphan*/ hex2dec(int, char **, char *);
int /*<<< orphan*/ hex2oct(int, char **, char *);
int /*<<< orphan*/ ibase(int, char **, char *);
int /*<<< orphan*/ oct2ascii(int, char **, char *);
int /*<<< orphan*/ oct2bin(int, char **, char *);
int /*<<< orphan*/ oct2dec(int, char **, char *);
int /*<<< orphan*/ oct2hex(int, char **, char *);
int /*<<< orphan*/ printf(char *, char *, ...);
int /*<<< orphan*/ puts(char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strrchr(char *, char);
char *strtok(int /*<<< orphan*/, char *);
int main(int argc, char **argv) {
  char *applet = strtok(strrchr(argv[0], '/'), "/");
  if (strcmp(applet, "bin2ascii") == 0) {
    bin2ascii(argc, argv, applet);
  } else if (strcmp(applet, "bin2oct") == 0) {
    bin2oct(argc, argv, applet);
  } else if (strcmp(applet, "bin2dec") == 0) {
    bin2dec(argc, argv, applet);
  } else if (strcmp(applet, "bin2hex") == 0) {
    bin2hex(argc, argv, applet);
  } else if (strcmp(applet, "oct2ascii") == 0) {
    oct2ascii(argc, argv, applet);
  } else if (strcmp(applet, "oct2bin") == 0) {
    oct2bin(argc, argv, applet);
  } else if (strcmp(applet, "oct2dec") == 0) {
    oct2dec(argc, argv, applet);
  } else if (strcmp(applet, "oct2hex") == 0) {
    oct2hex(argc, argv, applet);
  } else if (strcmp(applet, "dec2ascii") == 0) {
    dec2ascii(argc, argv, applet);
  } else if (strcmp(applet, "dec2bin") == 0) {
    dec2bin(argc, argv, applet);
  } else if (strcmp(applet, "dec2oct") == 0) {
    dec2oct(argc, argv, applet);
  } else if (strcmp(applet, "dec2hex") == 0) {
    dec2hex(argc, argv, applet);
  } else if (strcmp(applet, "hex2ascii") == 0) {
    hex2ascii(argc, argv, applet);
  } else if (strcmp(applet, "hex2bin") == 0) {
    hex2bin(argc, argv, applet);
  } else if (strcmp(applet, "hex2oct") == 0) {
    hex2oct(argc, argv, applet);
  } else if (strcmp(applet, "hex2dec") == 0) {
    hex2dec(argc, argv, applet);
  } else if (strcmp(applet, "ascii2bin") == 0) {
    ascii2bin(argc, argv, applet);
  } else if (strcmp(applet, "ascii2oct") == 0) {
    ascii2oct(argc, argv, applet);
  } else if (strcmp(applet, "ascii2dec") == 0) {
    ascii2dec(argc, argv, applet);
  } else if (strcmp(applet, "ascii2hex") == 0) {
    ascii2hex(argc, argv, applet);
  } else if (strcmp(applet, "ibase") == 0) {
    ibase(argc, argv, applet);
  } else {
    puts("\n BinDecHexAscii is a multi-call program for converting numbers "
         "between bases.\n");
    puts(" For usage, you must create symlink from bindechexascii to specified "
         "applet.\n");
    puts(" Current applets:");
    puts("    ibase, ascii2bin, ascii2oct, ascii2dec, ascii2hex, bin2ascii, "
         "bin2oct, ");
    puts("    bin2dec, bin2hex, oct2ascii, oct2bin, oct2dec, oct2hex, "
         "dec2ascii, ");
    puts("    dec2bin, dec2oct, dec2hex, hex2ascii, hex2bin, hex2oct, "
         "hex2dec.\n");
    puts(" Examples:");
    puts("    1. To convert 101011 from binary to decimal, type in console:");
    puts("       \'$ bin2dec 101011\' or \'$ dec2bin -r 101011\' and output "
         "will be");
    puts("       \'DEC: 43\'.\n");
    puts("    2. To convert from/to custom base specified number:");
    puts("       \'$ ibase -i 16 -o 4 5F\' and output will be");
    puts("       \'Base 16 to 4, output: 1133\'.\n");
    puts(" Program info:");
    printf("    Version: %s, %s.\n", "0.4", "Mar 16 2022");
    printf("    Author: %s.\n", "Leonid Plyushch <leonid.x212@gmail.com>");
    printf("    Licensed under %s\n\n", "GNU GPL v3");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    $0x2f,%esi
call   10d0 <strrchr@plt>
mov    %eax,%edi
lea    0xd30(%rip),%rsi
call   1170 <strtok@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xd1e(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    1308 <main+0x68>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1180 <bin2ascii@plt>
jmp    1806 <main+0x566>
mov    -0x18(%rbp),%rdi
lea    0xcf9(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    1337 <main+0x97>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   11a0 <bin2oct@plt>
jmp    1801 <main+0x561>
mov    -0x18(%rbp),%rdi
lea    0xcd2(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    1366 <main+0xc6>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1070 <bin2dec@plt>
jmp    17fc <main+0x55c>
mov    -0x18(%rbp),%rdi
lea    0xcab(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    1395 <main+0xf5>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1150 <bin2hex@plt>
jmp    17f7 <main+0x557>
mov    -0x18(%rbp),%rdi
lea    0xc84(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    13c4 <main+0x124>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1110 <oct2ascii@plt>
jmp    17f2 <main+0x552>
mov    -0x18(%rbp),%rdi
lea    0xc5f(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    13f3 <main+0x153>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <oct2bin@plt>
jmp    17ed <main+0x54d>
mov    -0x18(%rbp),%rdi
lea    0xc38(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    1422 <main+0x182>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1060 <oct2dec@plt>
jmp    17e8 <main+0x548>
mov    -0x18(%rbp),%rdi
lea    0xc11(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    1451 <main+0x1b1>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   10f0 <oct2hex@plt>
jmp    17e3 <main+0x543>
mov    -0x18(%rbp),%rdi
lea    0xbea(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    1480 <main+0x1e0>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   11c0 <dec2ascii@plt>
jmp    17de <main+0x53e>
mov    -0x18(%rbp),%rdi
lea    0xbc5(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    14af <main+0x20f>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1160 <dec2bin@plt>
jmp    17d9 <main+0x539>
mov    -0x18(%rbp),%rdi
lea    0xb9e(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    14de <main+0x23e>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1130 <dec2oct@plt>
jmp    17d4 <main+0x534>
mov    -0x18(%rbp),%rdi
lea    0xb77(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    150d <main+0x26d>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1190 <dec2hex@plt>
jmp    17cf <main+0x52f>
mov    -0x18(%rbp),%rdi
lea    0xb50(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    153c <main+0x29c>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1120 <hex2ascii@plt>
jmp    17ca <main+0x52a>
mov    -0x18(%rbp),%rdi
lea    0xb2b(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    156b <main+0x2cb>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1090 <hex2bin@plt>
jmp    17c5 <main+0x525>
mov    -0x18(%rbp),%rdi
lea    0xb04(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    159a <main+0x2fa>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   10a0 <hex2oct@plt>
jmp    17c0 <main+0x520>
mov    -0x18(%rbp),%rdi
lea    0xadd(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    15c9 <main+0x329>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1080 <hex2dec@plt>
jmp    17bb <main+0x51b>
mov    -0x18(%rbp),%rdi
lea    0xab6(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    15f8 <main+0x358>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   10b0 <ascii2bin@plt>
jmp    17b6 <main+0x516>
mov    -0x18(%rbp),%rdi
lea    0xa91(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    1627 <main+0x387>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   11b0 <ascii2oct@plt>
jmp    17b1 <main+0x511>
mov    -0x18(%rbp),%rdi
lea    0xa6c(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    1656 <main+0x3b6>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   10e0 <ascii2dec@plt>
jmp    17ac <main+0x50c>
mov    -0x18(%rbp),%rdi
lea    0xa47(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    1685 <main+0x3e5>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1140 <ascii2hex@plt>
jmp    17a7 <main+0x507>
mov    -0x18(%rbp),%rdi
lea    0xa22(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    16b4 <main+0x414>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <ibase@plt>
jmp    17a2 <main+0x502>
lea    0x9fd(%rip),%rdi
call   1050 <puts@plt>
lea    0xa41(%rip),%rdi
call   1050 <puts@plt>
lea    0xa83(%rip),%rdi
call   1050 <puts@plt>
lea    0xa89(%rip),%rdi
call   1050 <puts@plt>
lea    0xac9(%rip),%rdi
call   1050 <puts@plt>
lea    0xb05(%rip),%rdi
call   1050 <puts@plt>
lea    0xb3f(%rip),%rdi
call   1050 <puts@plt>
lea    0xb3e(%rip),%rdi
call   1050 <puts@plt>
lea    0xb74(%rip),%rdi
call   1050 <puts@plt>
lea    0xbae(%rip),%rdi
call   1050 <puts@plt>
lea    0xbb5(%rip),%rdi
call   1050 <puts@plt>
lea    0xbe1(%rip),%rdi
call   1050 <puts@plt>
lea    0xc07(%rip),%rdi
call   1050 <puts@plt>
lea    0xc21(%rip),%rdi
call   1050 <puts@plt>
lea    0xc24(%rip),%rdi
lea    0xc33(%rip),%rsi
lea    0xc30(%rip),%rdx
mov    $0x0,%al
call   10c0 <printf@plt>
lea    0xc2e(%rip),%rdi
lea    0xc38(%rip),%rsi
mov    $0x0,%al
call   10c0 <printf@plt>
lea    0xc52(%rip),%rdi
lea    0xc63(%rip),%rsi
mov    $0x0,%al
call   10c0 <printf@plt>
jmp    17a7 <main+0x507>
jmp    17ac <main+0x50c>
jmp    17b1 <main+0x511>
jmp    17b6 <main+0x516>
jmp    17bb <main+0x51b>
jmp    17c0 <main+0x520>
jmp    17c5 <main+0x525>
jmp    17ca <main+0x52a>
jmp    17cf <main+0x52f>
jmp    17d4 <main+0x534>
jmp    17d9 <main+0x539>
jmp    17de <main+0x53e>
jmp    17e3 <main+0x543>
jmp    17e8 <main+0x548>
jmp    17ed <main+0x54d>
jmp    17f2 <main+0x552>
jmp    17f7 <main+0x557>
jmp    17fc <main+0x55c>
jmp    1801 <main+0x561>
jmp    1806 <main+0x566>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %edi,%ebp
mov    (%rsi),%rdi
mov    $0x2f,%esi
call   10d0 <strrchr@plt>
lea    0xd43(%rip),%rsi
mov    %eax,%edi
call   1170 <strtok@plt>
mov    %rax,%rbx
lea    0xd34(%rip),%rsi
mov    %rax,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     15b2 <main+0x312>
lea    0xd26(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     15c4 <main+0x324>
lea    0xd16(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     15d6 <main+0x336>
lea    0xd06(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     15e8 <main+0x348>
lea    0xcf6(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     15fa <main+0x35a>
lea    0xce8(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     160c <main+0x36c>
lea    0xcd8(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     161e <main+0x37e>
lea    0xcc8(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     1630 <main+0x390>
lea    0xcb8(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     1642 <main+0x3a2>
lea    0xcaa(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     1654 <main+0x3b4>
lea    0xc9a(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     1666 <main+0x3c6>
lea    0xc8a(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     1678 <main+0x3d8>
lea    0xc7a(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     168a <main+0x3ea>
lea    0xc6c(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     1699 <main+0x3f9>
lea    0xc5c(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     16a8 <main+0x408>
lea    0xc4c(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     16b7 <main+0x417>
lea    0xc3c(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     16c6 <main+0x426>
lea    0xc2e(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     16d5 <main+0x435>
lea    0xc20(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     16e4 <main+0x444>
lea    0xc12(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     16f3 <main+0x453>
lea    0xc04(%rip),%rsi
mov    %rbx,%rdi
call   1100 <strcmp@plt>
test   %rax,%rax
je     1702 <main+0x462>
lea    0xbf2(%rip),%rdi
call   1050 <puts@plt>
lea    0xc36(%rip),%rdi
call   1050 <puts@plt>
lea    0xc78(%rip),%rdi
call   1050 <puts@plt>
lea    0xc7e(%rip),%rdi
call   1050 <puts@plt>
lea    0xcbe(%rip),%rdi
call   1050 <puts@plt>
lea    0xcfa(%rip),%rdi
call   1050 <puts@plt>
lea    0xd34(%rip),%rdi
call   1050 <puts@plt>
lea    0xd33(%rip),%rdi
call   1050 <puts@plt>
lea    0xd69(%rip),%rdi
call   1050 <puts@plt>
lea    0xda3(%rip),%rdi
call   1050 <puts@plt>
lea    0xdaa(%rip),%rdi
call   1050 <puts@plt>
lea    0xdd6(%rip),%rdi
call   1050 <puts@plt>
lea    0xdfc(%rip),%rdi
call   1050 <puts@plt>
lea    0xe16(%rip),%rdi
call   1050 <puts@plt>
lea    0xe19(%rip),%rdi
lea    0xe28(%rip),%rsi
lea    0xe25(%rip),%rdx
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0xe23(%rip),%rdi
lea    0xe2d(%rip),%rsi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0xe47(%rip),%rdi
lea    0xe58(%rip),%rsi
xor    %eax,%eax
call   10c0 <printf@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1180 <bin2ascii@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   11a0 <bin2oct@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1070 <bin2dec@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1150 <bin2hex@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1110 <oct2ascii@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <oct2bin@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1060 <oct2dec@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   10f0 <oct2hex@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   11c0 <dec2ascii@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1160 <dec2bin@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1130 <dec2oct@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1190 <dec2hex@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1120 <hex2ascii@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1090 <hex2bin@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   10a0 <hex2oct@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1080 <hex2dec@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   10b0 <ascii2bin@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   11b0 <ascii2oct@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   10e0 <ascii2dec@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1140 <ascii2hex@plt>
jmp    170f <main+0x46f>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1040 <ibase@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"/\00"
@.str.1 = [10 x i8] c"bin2ascii\00"
@.str.2 = [8 x i8] c"bin2oct\00"
@.str.3 = [8 x i8] c"bin2dec\00"
@.str.4 = [8 x i8] c"bin2hex\00"
@.str.5 = [10 x i8] c"oct2ascii\00"
@.str.6 = [8 x i8] c"oct2bin\00"
@.str.7 = [8 x i8] c"oct2dec\00"
@.str.8 = [8 x i8] c"oct2hex\00"
@.str.9 = [10 x i8] c"dec2ascii\00"
@.str.10 = [8 x i8] c"dec2bin\00"
@.str.11 = [8 x i8] c"dec2oct\00"
@.str.12 = [8 x i8] c"dec2hex\00"
@.str.13 = [10 x i8] c"hex2ascii\00"
@.str.14 = [8 x i8] c"hex2bin\00"
@.str.15 = [8 x i8] c"hex2oct\00"
@.str.16 = [8 x i8] c"hex2dec\00"
@.str.17 = [10 x i8] c"ascii2bin\00"
@.str.18 = [10 x i8] c"ascii2oct\00"
@.str.19 = [10 x i8] c"ascii2dec\00"
@.str.20 = [10 x i8] c"ascii2hex\00"
@.str.21 = [6 x i8] c"ibase\00"
@.str.22 = [80 x i8] c"\0A BinDecHexAscii is a multi-call program for converting numbers between bases.\0A\00"
@.str.23 = [78 x i8] c" For usage, you must create symlink from bindechexascii to specified applet.\0A\00"
@.str.24 = [18 x i8] c" Current applets:\00"
@.str.25 = [76 x i8] c" ibase, ascii2bin, ascii2oct, ascii2dec, ascii2hex, bin2ascii, bin2oct, \00"
@.str.26 = [72 x i8] c" bin2dec, bin2hex, oct2ascii, oct2bin, oct2dec, oct2hex, dec2ascii, \00"
@.str.27 = [70 x i8] c" dec2bin, dec2oct, dec2hex, hex2ascii, hex2bin, hex2oct, hex2dec.\0A\00"
@.str.28 = [11 x i8] c" Examples:\00"
@.str.29 = [66 x i8] c" 1. To convert 101011 from binary to decimal, type in console:\00"
@.str.30 = [70 x i8] c" '$ bin2dec 101011' or '$ dec2bin -r 101011' and output will be\00"
@.str.31 = [19 x i8] c" 'DEC: 43'.\0A\00"
@.str.32 = [56 x i8] c" 2. To convert from/to custom base specified number:\00"
@.str.33 = [50 x i8] c" '$ ibase -i 16 -o 4 5F' and output will be\00"
@.str.34 = [38 x i8] c" 'Base 16 to 4, output: 1133'.\0A\00"
@.str.35 = [15 x i8] c" Program info:\00"
@.str.36 = [22 x i8] c" Version: %s, %s.\0A\00"
@.str.37 = [4 x i8] c"0.4\00"
@.str.38 = [12 x i8] c"Mar 16 2022\00"
@.str.39 = [17 x i8] c" Author: %s.\0A\00"
@.str.40 = [40 x i8] c"Leonid Plyushch <leonid.x212@gmail.com>\00"
@.str.41 = [24 x i8] c" Licensed under %s\0A\0A\00"
@.str.42 = [11 x i8] c"GNU GPL v3\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i8**, i8*** %5
%8 = getelementptr inbounds i8*, i8** %7, i64 0
%9 = load i8*, i8** %8
%10 = call i32 @strrchr(i8* %9, i8 signext 47)
%11 = call i8* @strtok(i32 %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %11, i8** %6
%12 = load i8*, i8** %6
%13 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %2
%16 = load i32, i32* %4
%17 = load i8**, i8*** %5
%18 = load i8*, i8** %6
%19 = call i32 @bin2ascii(i32 %16, i8** %17, i8* %18)
br label %238
20: ; preds = %2
%21 = load i8*, i8** %6
%22 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %29
24: ; preds = %20
%25 = load i32, i32* %4
%26 = load i8**, i8*** %5
%27 = load i8*, i8** %6
%28 = call i32 @bin2oct(i32 %25, i8** %26, i8* %27)
br label %237
29: ; preds = %20
%30 = load i8*, i8** %6
%31 = call i64 @strcmp(i8* %30, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %38
33: ; preds = %29
%34 = load i32, i32* %4
%35 = load i8**, i8*** %5
%36 = load i8*, i8** %6
%37 = call i32 @bin2dec(i32 %34, i8** %35, i8* %36)
br label %236
38: ; preds = %29
%39 = load i8*, i8** %6
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %47
42: ; preds = %38
%43 = load i32, i32* %4
%44 = load i8**, i8*** %5
%45 = load i8*, i8** %6
%46 = call i32 @bin2hex(i32 %43, i8** %44, i8* %45)
br label %235
47: ; preds = %38
%48 = load i8*, i8** %6
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %47
%52 = load i32, i32* %4
%53 = load i8**, i8*** %5
%54 = load i8*, i8** %6
%55 = call i32 @oct2ascii(i32 %52, i8** %53, i8* %54)
br label %234
56: ; preds = %47
%57 = load i8*, i8** %6
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %65
60: ; preds = %56
%61 = load i32, i32* %4
%62 = load i8**, i8*** %5
%63 = load i8*, i8** %6
%64 = call i32 @oct2bin(i32 %61, i8** %62, i8* %63)
br label %233
65: ; preds = %56
%66 = load i8*, i8** %6
%67 = call i64 @strcmp(i8* %66, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %74
69: ; preds = %65
%70 = load i32, i32* %4
%71 = load i8**, i8*** %5
%72 = load i8*, i8** %6
%73 = call i32 @oct2dec(i32 %70, i8** %71, i8* %72)
br label %232
74: ; preds = %65
%75 = load i8*, i8** %6
%76 = call i64 @strcmp(i8* %75, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %83
78: ; preds = %74
%79 = load i32, i32* %4
%80 = load i8**, i8*** %5
%81 = load i8*, i8** %6
%82 = call i32 @oct2hex(i32 %79, i8** %80, i8* %81)
br label %231
83: ; preds = %74
%84 = load i8*, i8** %6
%85 = call i64 @strcmp(i8* %84, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %87, label %92
87: ; preds = %83
%88 = load i32, i32* %4
%89 = load i8**, i8*** %5
%90 = load i8*, i8** %6
%91 = call i32 @dec2ascii(i32 %88, i8** %89, i8* %90)
br label %230
92: ; preds = %83
%93 = load i8*, i8** %6
%94 = call i64 @strcmp(i8* %93, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %101
96: ; preds = %92
%97 = load i32, i32* %4
%98 = load i8**, i8*** %5
%99 = load i8*, i8** %6
%100 = call i32 @dec2bin(i32 %97, i8** %98, i8* %99)
br label %229
101: ; preds = %92
%102 = load i8*, i8** %6
%103 = call i64 @strcmp(i8* %102, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %110
105: ; preds = %101
%106 = load i32, i32* %4
%107 = load i8**, i8*** %5
%108 = load i8*, i8** %6
%109 = call i32 @dec2oct(i32 %106, i8** %107, i8* %108)
br label %228
110: ; preds = %101
%111 = load i8*, i8** %6
%112 = call i64 @strcmp(i8* %111, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%113 = icmp eq i64 %112, 0
br i1 %113, label %114, label %119
114: ; preds = %110
%115 = load i32, i32* %4
%116 = load i8**, i8*** %5
%117 = load i8*, i8** %6
%118 = call i32 @dec2hex(i32 %115, i8** %116, i8* %117)
br label %227
119: ; preds = %110
%120 = load i8*, i8** %6
%121 = call i64 @strcmp(i8* %120, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
%122 = icmp eq i64 %121, 0
br i1 %122, label %123, label %128
123: ; preds = %119
%124 = load i32, i32* %4
%125 = load i8**, i8*** %5
%126 = load i8*, i8** %6
%127 = call i32 @hex2ascii(i32 %124, i8** %125, i8* %126)
br label %226
128: ; preds = %119
%129 = load i8*, i8** %6
%130 = call i64 @strcmp(i8* %129, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
%131 = icmp eq i64 %130, 0
br i1 %131, label %132, label %137
132: ; preds = %128
%133 = load i32, i32* %4
%134 = load i8**, i8*** %5
%135 = load i8*, i8** %6
%136 = call i32 @hex2bin(i32 %133, i8** %134, i8* %135)
br label %225
137: ; preds = %128
%138 = load i8*, i8** %6
%139 = call i64 @strcmp(i8* %138, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
%140 = icmp eq i64 %139, 0
br i1 %140, label %141, label %146
141: ; preds = %137
%142 = load i32, i32* %4
%143 = load i8**, i8*** %5
%144 = load i8*, i8** %6
%145 = call i32 @hex2oct(i32 %142, i8** %143, i8* %144)
br label %224
146: ; preds = %137
%147 = load i8*, i8** %6
%148 = call i64 @strcmp(i8* %147, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
%149 = icmp eq i64 %148, 0
br i1 %149, label %150, label %155
150: ; preds = %146
%151 = load i32, i32* %4
%152 = load i8**, i8*** %5
%153 = load i8*, i8** %6
%154 = call i32 @hex2dec(i32 %151, i8** %152, i8* %153)
br label %223
155: ; preds = %146
%156 = load i8*, i8** %6
%157 = call i64 @strcmp(i8* %156, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0))
%158 = icmp eq i64 %157, 0
br i1 %158, label %159, label %164
159: ; preds = %155
%160 = load i32, i32* %4
%161 = load i8**, i8*** %5
%162 = load i8*, i8** %6
%163 = call i32 @ascii2bin(i32 %160, i8** %161, i8* %162)
br label %222
164: ; preds = %155
%165 = load i8*, i8** %6
%166 = call i64 @strcmp(i8* %165, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0))
%167 = icmp eq i64 %166, 0
br i1 %167, label %168, label %173
168: ; preds = %164
%169 = load i32, i32* %4
%170 = load i8**, i8*** %5
%171 = load i8*, i8** %6
%172 = call i32 @ascii2oct(i32 %169, i8** %170, i8* %171)
br label %221
173: ; preds = %164
%174 = load i8*, i8** %6
%175 = call i64 @strcmp(i8* %174, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
%176 = icmp eq i64 %175, 0
br i1 %176, label %177, label %182
177: ; preds = %173
%178 = load i32, i32* %4
%179 = load i8**, i8*** %5
%180 = load i8*, i8** %6
%181 = call i32 @ascii2dec(i32 %178, i8** %179, i8* %180)
br label %220
182: ; preds = %173
%183 = load i8*, i8** %6
%184 = call i64 @strcmp(i8* %183, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0))
%185 = icmp eq i64 %184, 0
br i1 %185, label %186, label %191
186: ; preds = %182
%187 = load i32, i32* %4
%188 = load i8**, i8*** %5
%189 = load i8*, i8** %6
%190 = call i32 @ascii2hex(i32 %187, i8** %188, i8* %189)
br label %219
191: ; preds = %182
%192 = load i8*, i8** %6
%193 = call i64 @strcmp(i8* %192, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0))
%194 = icmp eq i64 %193, 0
br i1 %194, label %195, label %200
195: ; preds = %191
%196 = load i32, i32* %4
%197 = load i8**, i8*** %5
%198 = load i8*, i8** %6
%199 = call i32 @ibase(i32 %196, i8** %197, i8* %198)
br label %218
200: ; preds = %191
%201 = call i32 @puts(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.22, i64 0, i64 0))
%202 = call i32 @puts(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.23, i64 0, i64 0))
%203 = call i32 @puts(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.24, i64 0, i64 0))
%204 = call i32 @puts(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.25, i64 0, i64 0))
%205 = call i32 @puts(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.26, i64 0, i64 0))
%206 = call i32 @puts(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.27, i64 0, i64 0))
%207 = call i32 @puts(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.28, i64 0, i64 0))
%208 = call i32 @puts(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.29, i64 0, i64 0))
%209 = call i32 @puts(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.30, i64 0, i64 0))
%210 = call i32 @puts(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.31, i64 0, i64 0))
%211 = call i32 @puts(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.32, i64 0, i64 0))
%212 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.33, i64 0, i64 0))
%213 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.34, i64 0, i64 0))
%214 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.35, i64 0, i64 0))
%215 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.36, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.37, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.38, i64 0, i64 0))
%216 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.39, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.40, i64 0, i64 0))
%217 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.41, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.42, i64 0, i64 0))
br label %218
218: ; preds = %200, %195
br label %219
219: ; preds = %218, %186
br label %220
220: ; preds = %219, %177
br label %221
221: ; preds = %220, %168
br label %222
222: ; preds = %221, %159
br label %223
223: ; preds = %222, %150
br label %224
224: ; preds = %223, %141
br label %225
225: ; preds = %224, %132
br label %226
226: ; preds = %225, %123
br label %227
227: ; preds = %226, %114
br label %228
228: ; preds = %227, %105
br label %229
229: ; preds = %228, %96
br label %230
230: ; preds = %229, %87
br label %231
231: ; preds = %230, %78
br label %232
232: ; preds = %231, %69
br label %233
233: ; preds = %232, %60
br label %234
234: ; preds = %233, %51
br label %235
235: ; preds = %234, %42
br label %236
236: ; preds = %235, %33
br label %237
237: ; preds = %236, %24
br label %238
238: ; preds = %237, %15
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"/\00"
@.str.1 = [10 x i8] c"bin2ascii\00"
@.str.2 = [8 x i8] c"bin2oct\00"
@.str.3 = [8 x i8] c"bin2dec\00"
@.str.4 = [8 x i8] c"bin2hex\00"
@.str.5 = [10 x i8] c"oct2ascii\00"
@.str.6 = [8 x i8] c"oct2bin\00"
@.str.7 = [8 x i8] c"oct2dec\00"
@.str.8 = [8 x i8] c"oct2hex\00"
@.str.9 = [10 x i8] c"dec2ascii\00"
@.str.10 = [8 x i8] c"dec2bin\00"
@.str.11 = [8 x i8] c"dec2oct\00"
@.str.12 = [8 x i8] c"dec2hex\00"
@.str.13 = [10 x i8] c"hex2ascii\00"
@.str.14 = [8 x i8] c"hex2bin\00"
@.str.15 = [8 x i8] c"hex2oct\00"
@.str.16 = [8 x i8] c"hex2dec\00"
@.str.17 = [10 x i8] c"ascii2bin\00"
@.str.18 = [10 x i8] c"ascii2oct\00"
@.str.19 = [10 x i8] c"ascii2dec\00"
@.str.20 = [10 x i8] c"ascii2hex\00"
@.str.21 = [6 x i8] c"ibase\00"
@.str.22 = [80 x i8] c"\0A BinDecHexAscii is a multi-call program for converting numbers between bases.\0A\00"
@.str.23 = [78 x i8] c" For usage, you must create symlink from bindechexascii to specified applet.\0A\00"
@.str.24 = [18 x i8] c" Current applets:\00"
@.str.25 = [76 x i8] c" ibase, ascii2bin, ascii2oct, ascii2dec, ascii2hex, bin2ascii, bin2oct, \00"
@.str.26 = [72 x i8] c" bin2dec, bin2hex, oct2ascii, oct2bin, oct2dec, oct2hex, dec2ascii, \00"
@.str.27 = [70 x i8] c" dec2bin, dec2oct, dec2hex, hex2ascii, hex2bin, hex2oct, hex2dec.\0A\00"
@.str.28 = [11 x i8] c" Examples:\00"
@.str.29 = [66 x i8] c" 1. To convert 101011 from binary to decimal, type in console:\00"
@.str.30 = [70 x i8] c" '$ bin2dec 101011' or '$ dec2bin -r 101011' and output will be\00"
@.str.31 = [19 x i8] c" 'DEC: 43'.\0A\00"
@.str.32 = [56 x i8] c" 2. To convert from/to custom base specified number:\00"
@.str.33 = [50 x i8] c" '$ ibase -i 16 -o 4 5F' and output will be\00"
@.str.34 = [38 x i8] c" 'Base 16 to 4, output: 1133'.\0A\00"
@.str.35 = [15 x i8] c" Program info:\00"
@.str.36 = [22 x i8] c" Version: %s, %s.\0A\00"
@.str.37 = [4 x i8] c"0.4\00"
@.str.38 = [12 x i8] c"Mar 16 2022\00"
@.str.39 = [17 x i8] c" Author: %s.\0A\00"
@.str.40 = [40 x i8] c"Leonid Plyushch <leonid.x212@gmail.com>\00"
@.str.41 = [24 x i8] c" Licensed under %s\0A\0A\00"
@.str.42 = [11 x i8] c"GNU GPL v3\00"
define i32 @main(i32 %0, i8** %1) {
%3 = load i8*, i8** %1
%4 = tail call i32 @strrchr(i8* %3, i8 signext 47)
%5 = tail call i8* @strtok(i32 %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 @bin2ascii(i32 %0, i8** %1, i8* %5)
br label %128
10: ; preds = %2
%11 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = tail call i32 @bin2oct(i32 %0, i8** %1, i8* %5)
br label %128
15: ; preds = %10
%16 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = tail call i32 @bin2dec(i32 %0, i8** %1, i8* %5)
br label %128
20: ; preds = %15
%21 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = tail call i32 @bin2hex(i32 %0, i8** %1, i8* %5)
br label %128
25: ; preds = %20
%26 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = tail call i32 @oct2ascii(i32 %0, i8** %1, i8* %5)
br label %128
30: ; preds = %25
%31 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = tail call i32 @oct2bin(i32 %0, i8** %1, i8* %5)
br label %128
35: ; preds = %30
%36 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = tail call i32 @oct2dec(i32 %0, i8** %1, i8* %5)
br label %128
40: ; preds = %35
%41 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = tail call i32 @oct2hex(i32 %0, i8** %1, i8* %5)
br label %128
45: ; preds = %40
%46 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = tail call i32 @dec2ascii(i32 %0, i8** %1, i8* %5)
br label %128
50: ; preds = %45
%51 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = tail call i32 @dec2bin(i32 %0, i8** %1, i8* %5)
br label %128
55: ; preds = %50
%56 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = tail call i32 @dec2oct(i32 %0, i8** %1, i8* %5)
br label %128
60: ; preds = %55
%61 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = tail call i32 @dec2hex(i32 %0, i8** %1, i8* %5)
br label %128
65: ; preds = %60
%66 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = tail call i32 @hex2ascii(i32 %0, i8** %1, i8* %5)
br label %128
70: ; preds = %65
%71 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = tail call i32 @hex2bin(i32 %0, i8** %1, i8* %5)
br label %128
75: ; preds = %70
%76 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %75
%79 = tail call i32 @hex2oct(i32 %0, i8** %1, i8* %5)
br label %128
80: ; preds = %75
%81 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = tail call i32 @hex2dec(i32 %0, i8** %1, i8* %5)
br label %128
85: ; preds = %80
%86 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %85
%89 = tail call i32 @ascii2bin(i32 %0, i8** %1, i8* %5)
br label %128
90: ; preds = %85
%91 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %95
93: ; preds = %90
%94 = tail call i32 @ascii2oct(i32 %0, i8** %1, i8* %5)
br label %128
95: ; preds = %90
%96 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %100
98: ; preds = %95
%99 = tail call i32 @ascii2dec(i32 %0, i8** %1, i8* %5)
br label %128
100: ; preds = %95
%101 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0))
%102 = icmp eq i64 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %100
%104 = tail call i32 @ascii2hex(i32 %0, i8** %1, i8* %5)
br label %128
105: ; preds = %100
%106 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0))
%107 = icmp eq i64 %106, 0
br i1 %107, label %108, label %110
108: ; preds = %105
%109 = tail call i32 @ibase(i32 %0, i8** %1, i8* %5)
br label %128
110: ; preds = %105
%111 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @.str.22, i64 0, i64 0))
%112 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str.23, i64 0, i64 0))
%113 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.24, i64 0, i64 0))
%114 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.25, i64 0, i64 0))
%115 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.26, i64 0, i64 0))
%116 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.27, i64 0, i64 0))
%117 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.28, i64 0, i64 0))
%118 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.29, i64 0, i64 0))
%119 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.30, i64 0, i64 0))
%120 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.31, i64 0, i64 0))
%121 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.32, i64 0, i64 0))
%122 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.33, i64 0, i64 0))
%123 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.34, i64 0, i64 0))
%124 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.35, i64 0, i64 0))
%125 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.36, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.37, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.38, i64 0, i64 0))
%126 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.39, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.40, i64 0, i64 0))
%127 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.41, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.42, i64 0, i64 0))
br label %128
128: ; preds = %13, %23, %33, %43, %53, %63, %73, %83, %93, %103, %110, %108, %98, %88, %78, %68, %58, %48, %38, %28, %18, %8
ret i32 0
}