#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 */
typedef int /*<<< orphan*/ codenames;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ calloc(int, int);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ memset(char ***, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, ...);
int /*<<< orphan*/ sscanf(char *, char *, char *, ...);
scalar_t__ strcmp(char *, char *);
int strlen(char *);
char toupper(char);
int main(int argc, char *argv[]) {
  int i;
  int j;
  int k;
  FILE *mapfile;
  char codenames[128][3][20];
  int size = sizeof(codenames);
  char buf[400];
  char buf1[400];
  char buf2[400];
  char buf3[400];
  char buf4[400];
  int int1;
  if (argc < 2) {
    printf("\n");
    printf("%s is to prepare a hader file from a map file.\n", argv[0]);
    printf("\n");
    printf("Ex:\n"
           "\tmkdir kbdmap\n"
           "\tfiles included in the us.map.gz are;\n"
           "\t\tcompose.latin1\n"
           "\t\teuro1.map\n"
           "\t\tlinux-keys-bare.inc\n"
           "\t\tlinux-with-alt-and-altgr.inc\n"
           "\t\tqwerty-layout.inc\n"
           "\tcopy all_of_them_and_the_us.map.gz to kbdmap\n"
           "\tgunzip us.map.gz\n"
           "\tcat * > usmap\n"
           "\t%s usmap > usmap.h\n\n",
           argv[0]);
    printf("Alper Akcan, distchx@yahoo.com\n\n");
    return 0;
  }
  memset(codenames, 0, size);
  mapfile = fopen(argv[1], "rt");
  for (i = 0; i < 128; i++) {
    for (j = 0; j < 3; j++) {
      sprintf(codenames[i][j], "\"\"");
    }
  }
  while (!feof(mapfile)) {
    fgets(buf, 400, mapfile);
    sscanf(buf, "%s", buf1);
    buf3[0] = '\0';
    buf4[0] = '\0';
    if (strcmp(buf1, "keycode") == 0) {
      sscanf(buf, "%s %d = %s %s %s", buf1, &int1, buf2, buf3, buf4);
      sprintf(codenames[int1][0], "\"%s\"", buf2);
      if ((strcmp(buf3, "#") != 0) && (buf3[0] != '\0')) {
        sprintf(codenames[int1][1], "\"%s\"", buf3);
        if ((strcmp(buf4, "#") != 0) && (buf4[0] != '\0')) {
          sprintf(codenames[int1][2], "\"%s\"", buf4);
        }
      }
    }
    if (strcmp(buf1, "plain") == 0) {
      sscanf(buf, "%s %s %d = %s", buf1, buf1, &int1, buf2);
      sprintf(codenames[int1][0], "\"%s\"", buf2);
    }
    if (strcmp(buf1, "shift") == 0) {
      sscanf(buf, "%s %s %d = %s", buf1, buf1, &int1, buf2);
      sprintf(codenames[int1][1], "\"%s\"", buf2);
    }
    if (strcmp(buf1, "altgr") == 0) {
      sscanf(buf, "%s %s %d = %s", buf1, buf1, &int1, buf2);
      sprintf(codenames[int1][2], "\"%s\"", buf2);
    }
  }
  for (i = 0; i < 128; i++) {
    for (j = 0; j < strlen(codenames[i][0]); j++) {
      codenames[i][0][j] = toupper(codenames[i][0][j]);
    }
    for (j = 0; j < strlen(codenames[i][1]); j++) {
      codenames[i][1][j] = toupper(codenames[i][1][j]);
    }
    for (j = 0; j < strlen(codenames[i][2]); j++) {
      codenames[i][2][j] = toupper(codenames[i][2][j]);
    }
  }
  for (j = 65; j < 91; j++) {
    sprintf(buf1, "\"%c\"", j);
    for (i = 0; i < 128; i++) {
      if (strcmp(codenames[i][0], buf1) == 0) {
        sprintf(codenames[i][0], "\"%c\"", j + 32);
        sprintf(codenames[i][1], "\"%c\"", j);
      }
    }
  }
  for (i = 0; i < 128; i++) {
    if (strcmp(codenames[i][0], "\"KP_0\"") == 0) {
      sprintf(codenames[i][1], "\"INSERT\"");
    }
    if (strcmp(codenames[i][0], "\"KP_1\"") == 0) {
      sprintf(codenames[i][1], "\"END\"");
    }
    if (strcmp(codenames[i][0], "\"KP_2\"") == 0) {
      sprintf(codenames[i][1], "\"DOWN\"");
    }
    if (strcmp(codenames[i][0], "\"KP_3\"") == 0) {
      sprintf(codenames[i][1], "\"PAGEDOWN\"");
    }
    if (strcmp(codenames[i][0], "\"KP_4\"") == 0) {
      sprintf(codenames[i][1], "\"LEFT\"");
    }
    if (strcmp(codenames[i][0], "\"KP_5\"") == 0) {
      sprintf(codenames[i][1], "\"\"");
    }
    if (strcmp(codenames[i][0], "\"KP_6\"") == 0) {
      sprintf(codenames[i][1], "\"RIGHT\"");
    }
    if (strcmp(codenames[i][0], "\"KP_7\"") == 0) {
      sprintf(codenames[i][1], "\"HOME\"");
    }
    if (strcmp(codenames[i][0], "\"KP_8\"") == 0) {
      sprintf(codenames[i][1], "\"UP\"");
    }
    if (strcmp(codenames[i][0], "\"KP_9\"") == 0) {
      sprintf(codenames[i][1], "\"PAGEUP\"");
    }
    if (strcmp(codenames[i][0], "\"KP_PERIOD\"") == 0) {
      sprintf(codenames[i][1], "\"REMOVE\"");
    }
  }
  printf("#define KEYCODE_KEYS\t%d\n", 128);
  printf("#define KEYCODE_MAXNAMELEN\t%d\n", 20);
  printf("#define KEYCODE_PLAIN\t%d\n", 0);
  printf("#define KEYCODE_SHIFT\t%d\n", 1);
  printf("#define KEYCODE_ALTGR\t%d\n", 2);
  printf("#define KEYCODE_FLAGS\t%d\n", 3);
  printf("\n");
  printf("typedef enum {\n");
  k = 0;
  for (j = 0; j < 3; j++) {
    switch (j) {
    case 0:
      printf("/* Plain */\n");
      break;
    case 1:
      printf("/* Shift */\n");
      break;
    case 2:
      printf("/* ALTGR */\n");
      break;
    }
    for (i = 0; i < 128; i++) {
      char *name;
      name = (char *)calloc(sizeof(char), strlen(codenames[i][j]));
      sprintf(name, "%s", codenames[i][j] + 1);
      name[strlen(name) - 1] = '\0';
      if (strlen(name) > 0) {
        printf("/* %3d */  XYNTHK_%s,\n", k++, name);
      }
      free(name);
    }
  }
  printf("/* %3d */  XYNTHK_CODES\n", k);
  printf("} XYNTHK_CODE;\n");
  printf("\n");
  printf(
      "static XYNTHK_CODE "
      "kbd_keycodes_[KEYCODE_KEYS][KEYCODE_FLAGS][KEYCODE_MACNAMELEN] = {\n");
  printf("/*%10s %18s %18s %17s*/\n", "keycode,", "plain name,", "shift name,",
         "altgr name ");
  for (i = 0; i < 128; i++) {
    printf("/* %3d */  {", i);
    for (j = 0; j < 3; j++) {
      char *name;
      name = (char *)calloc(sizeof(char), strlen(codenames[i][j]));
      sprintf(name, "%s", codenames[i][j] + 1);
      name[strlen(name) - 1] = '\0';
      if (strlen(name) > 0) {
        printf("XYNTHK_%s", name);
      } else {
        printf("XYNTH_NOCODE");
      }
      if (j < 2) {
        printf(",\t");
      }
      free(name);
    }
    printf("},\n");
  }
  printf("};\n");
  printf("\n");
  printf("static char "
         "kbd_keycodes[KEYCODE_KEYS][KEYCODE_FLAGS][KEYCODE_MAXNAMELEN] = {\n");
  printf("/*%10s %18s %18s %17s*/\n", "keycode,", "plain name,", "shift name,",
         "altgr name ");
  for (i = 0; i < 128; i++) {
    printf("/* %3d */  {%18s,%18s,%18s},\n", i, codenames[i][0],
           codenames[i][1], codenames[i][2]);
  }
  printf("};\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2650,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1e00,-0x1e34(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    124d <main+0x8d>
lea    0x1f3d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0x1df7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x1f1a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0x1e04(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x1ef9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    20b2 <main+0xef2>
lea    -0x1e30(%rbp),%rdi
mov    -0x1e34(%rbp),%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x1ee4(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x80,-0x14(%rbp)
jge    12ea <main+0x12a>
movl   $0x0,-0x18(%rbp)
cmpl   $0x3,-0x18(%rbp)
jge    12d7 <main+0x117>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
movslq -0x18(%rbp),%rax
imul   $0x14,%rax,%rax
add    %rax,%rdi
lea    0x1e95(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1294 <main+0xd4>
jmp    12dc <main+0x11c>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1280 <main+0xc0>
jmp    12ef <main+0x12f>
mov    -0x28(%rbp),%rdi
call   10b0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    130d <main+0x14d>
jmp    1604 <main+0x444>
lea    -0x1fd0(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    $0x190,%esi
call   1080 <fgets@plt>
lea    -0x1fd0(%rbp),%rdi
lea    -0x2160(%rbp),%rdx
lea    0x1e54(%rip),%rsi
mov    $0x0,%al
call   10c0 <sscanf@plt>
movb   $0x0,-0x2480(%rbp)
movb   $0x0,-0x2610(%rbp)
lea    -0x2160(%rbp),%rdi
lea    0x1e00(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    148f <main+0x2cf>
lea    -0x1fd0(%rbp),%rdi
lea    -0x2160(%rbp),%rdx
lea    -0x22f0(%rbp),%r8
lea    -0x2480(%rbp),%r9
lea    -0x2610(%rbp),%rax
lea    0x1dcf(%rip),%rsi
lea    -0x2614(%rbp),%rcx
mov    %rax,(%rsp)
mov    $0x0,%al
call   10c0 <sscanf@plt>
movslq -0x2614(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    -0x22f0(%rbp),%rdx
lea    0x1dab(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
lea    -0x2480(%rbp),%rdi
lea    0x1d9b(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     148a <main+0x2ca>
movsbl -0x2480(%rbp),%eax
cmp    $0x0,%eax
je     148a <main+0x2ca>
movslq -0x2614(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
lea    -0x2480(%rbp),%rdx
lea    0x1d50(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
lea    -0x2610(%rbp),%rdi
lea    0x1d40(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     1485 <main+0x2c5>
movsbl -0x2610(%rbp),%eax
cmp    $0x0,%eax
je     1485 <main+0x2c5>
movslq -0x2614(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x28,%rdi
lea    -0x2610(%rbp),%rdx
lea    0x1cf5(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
jmp    148a <main+0x2ca>
jmp    148f <main+0x2cf>
lea    -0x2160(%rbp),%rdi
lea    0x1cdd(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1507 <main+0x347>
lea    -0x1fd0(%rbp),%rdi
lea    -0x2160(%rbp),%rdx
lea    -0x2160(%rbp),%rcx
lea    -0x22f0(%rbp),%r9
lea    0x1cb1(%rip),%rsi
lea    -0x2614(%rbp),%r8
mov    $0x0,%al
call   10c0 <sscanf@plt>
movslq -0x2614(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    -0x22f0(%rbp),%rdx
lea    0x1c73(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
lea    -0x2160(%rbp),%rdi
lea    0x1c79(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1583 <main+0x3c3>
lea    -0x1fd0(%rbp),%rdi
lea    -0x2160(%rbp),%rdx
lea    -0x2160(%rbp),%rcx
lea    -0x22f0(%rbp),%r9
lea    0x1c39(%rip),%rsi
lea    -0x2614(%rbp),%r8
mov    $0x0,%al
call   10c0 <sscanf@plt>
movslq -0x2614(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
lea    -0x22f0(%rbp),%rdx
lea    0x1bf7(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
lea    -0x2160(%rbp),%rdi
lea    0x1c03(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    15ff <main+0x43f>
lea    -0x1fd0(%rbp),%rdi
lea    -0x2160(%rbp),%rdx
lea    -0x2160(%rbp),%rcx
lea    -0x22f0(%rbp),%r9
lea    0x1bbd(%rip),%rsi
lea    -0x2614(%rbp),%r8
mov    $0x0,%al
call   10c0 <sscanf@plt>
movslq -0x2614(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x28,%rdi
lea    -0x22f0(%rbp),%rdx
lea    0x1b7b(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
jmp    12ef <main+0x12f>
movl   $0x0,-0x14(%rbp)
cmpl   $0x80,-0x14(%rbp)
jge    17b4 <main+0x5f4>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x262c(%rbp)
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x262c(%rbp),%eax
cmp    %ecx,%eax
jge    1697 <main+0x4d7>
movslq -0x14(%rbp),%rcx
lea    -0x1e30(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1040 <toupper@plt>
mov    %al,%dl
movslq -0x14(%rbp),%rcx
lea    -0x1e30(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    161f <main+0x45f>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x2630(%rbp)
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x2630(%rbp),%eax
cmp    %ecx,%eax
jge    171c <main+0x55c>
movslq -0x14(%rbp),%rcx
lea    -0x1e30(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movsbl 0x14(%rax,%rcx,1),%edi
call   1040 <toupper@plt>
mov    %al,%dl
movslq -0x14(%rbp),%rcx
lea    -0x1e30(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
mov    %dl,0x14(%rax,%rcx,1)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    169e <main+0x4de>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x2634(%rbp)
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x28,%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x2634(%rbp),%eax
cmp    %ecx,%eax
jge    17a1 <main+0x5e1>
movslq -0x14(%rbp),%rcx
lea    -0x1e30(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movsbl 0x28(%rax,%rcx,1),%edi
call   1040 <toupper@plt>
mov    %al,%dl
movslq -0x14(%rbp),%rcx
lea    -0x1e30(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
mov    %dl,0x28(%rax,%rcx,1)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1723 <main+0x563>
jmp    17a6 <main+0x5e6>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    160b <main+0x44b>
movl   $0x41,-0x18(%rbp)
cmpl   $0x5b,-0x18(%rbp)
jge    188c <main+0x6cc>
lea    -0x2160(%rbp),%rdi
mov    -0x18(%rbp),%edx
lea    0x19c4(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x80,-0x14(%rbp)
jge    1879 <main+0x6b9>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    -0x2160(%rbp),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1866 <main+0x6a6>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
mov    -0x18(%rbp),%edx
add    $0x20,%edx
lea    0x1962(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
mov    -0x18(%rbp),%edx
lea    0x193b(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
jmp    186b <main+0x6ab>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    17e4 <main+0x624>
jmp    187e <main+0x6be>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    17bb <main+0x5fb>
movl   $0x0,-0x14(%rbp)
cmpl   $0x80,-0x14(%rbp)
jge    1bf7 <main+0xa37>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    0x18e6(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    18ec <main+0x72c>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
lea    0x18c1(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    0x18aa(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1938 <main+0x778>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
lea    0x1885(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    0x186b(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1984 <main+0x7c4>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
lea    0x1846(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    0x182d(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    19d0 <main+0x810>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
lea    0x1808(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    0x17f3(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1a1c <main+0x85c>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
lea    0x17ce(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    0x17b5(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1a68 <main+0x8a8>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
lea    0x16f6(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    0x1770(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1ab4 <main+0x8f4>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
lea    0x174b(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    0x1733(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1b00 <main+0x940>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
lea    0x170e(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    0x16f5(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1b4c <main+0x98c>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
lea    0x16d0(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    0x16b5(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1b98 <main+0x9d8>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
lea    0x1690(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
lea    0x1679(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1be4 <main+0xa24>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
lea    0x1659(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
jmp    1be9 <main+0xa29>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1893 <main+0x6d3>
lea    0x1641(%rip),%rdi
mov    $0x80,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x1647(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x1653(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x165d(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x1664(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x166b(%rip),%rdi
mov    $0x3,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x14c4(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x1664(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x3,-0x18(%rbp)
jge    1e1a <main+0xc5a>
mov    -0x18(%rbp),%eax
mov    %eax,-0x2638(%rbp)
test   %eax,%eax
je     1cd8 <main+0xb18>
jmp    1cb0 <main+0xaf0>
mov    -0x2638(%rbp),%eax
sub    $0x1,%eax
je     1ceb <main+0xb2b>
jmp    1cc4 <main+0xb04>
mov    -0x2638(%rbp),%eax
sub    $0x2,%eax
je     1cfe <main+0xb3e>
jmp    1d0c <main+0xb4c>
lea    0x1610(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1d0c <main+0xb4c>
lea    0x160a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1d0c <main+0xb4c>
lea    0x1604(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x80,-0x14(%rbp)
jge    1e07 <main+0xc47>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
movslq -0x18(%rbp),%rax
imul   $0x14,%rax,%rax
add    %rax,%rdi
call   1050 <strlen@plt>
mov    %eax,%esi
mov    $0x1,%edi
call   1090 <calloc@plt>
mov    %rax,-0x2620(%rbp)
mov    -0x2620(%rbp),%rdi
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdx
imul   $0x3c,%rax,%rax
add    %rax,%rdx
movslq -0x18(%rbp),%rax
imul   $0x14,%rax,%rax
add    %rax,%rdx
add    $0x1,%rdx
lea    0x1407(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
mov    -0x2620(%rbp),%rax
mov    %rax,-0x2640(%rbp)
mov    -0x2620(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x2640(%rbp),%rax
sub    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x2620(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x0,%eax
jle    1ded <main+0xc2d>
mov    -0x1c(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x2620(%rbp),%rdx
lea    0x1530(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x2620(%rbp),%rdi
call   1030 <free@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1d13 <main+0xb53>
jmp    1e0c <main+0xc4c>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1c90 <main+0xad0>
mov    -0x1c(%rbp),%esi
lea    0x1509(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x1514(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x12f1(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x1508(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x1551(%rip),%rdi
lea    0x1563(%rip),%rsi
lea    0x1565(%rip),%rdx
lea    0x156a(%rip),%rcx
lea    0x156f(%rip),%r8
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x80,-0x14(%rbp)
jge    1fd8 <main+0xe18>
mov    -0x14(%rbp),%esi
lea    0x1556(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x3,-0x18(%rbp)
jge    1fbc <main+0xdfc>
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdi
imul   $0x3c,%rax,%rax
add    %rax,%rdi
movslq -0x18(%rbp),%rax
imul   $0x14,%rax,%rax
add    %rax,%rdi
call   1050 <strlen@plt>
mov    %eax,%esi
mov    $0x1,%edi
call   1090 <calloc@plt>
mov    %rax,-0x2628(%rbp)
mov    -0x2628(%rbp),%rdi
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdx
imul   $0x3c,%rax,%rax
add    %rax,%rdx
movslq -0x18(%rbp),%rax
imul   $0x14,%rax,%rax
add    %rax,%rdx
add    $0x1,%rdx
lea    0x1272(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
mov    -0x2628(%rbp),%rax
mov    %rax,-0x2648(%rbp)
mov    -0x2628(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x2648(%rbp),%rax
sub    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x2628(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x0,%eax
jle    1f7c <main+0xdbc>
mov    -0x2628(%rbp),%rsi
lea    0x1490(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1f8a <main+0xdca>
lea    0x1487(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x2,-0x18(%rbp)
jge    1fa2 <main+0xde2>
lea    0x147c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x2628(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1eab <main+0xceb>
lea    0x14c4(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1e86 <main+0xcc6>
lea    0x143b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x1144(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x1423(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x13a4(%rip),%rdi
lea    0x13b6(%rip),%rsi
lea    0x13b8(%rip),%rdx
lea    0x13bd(%rip),%rcx
lea    0x13c2(%rip),%r8
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x80,-0x14(%rbp)
jge    209d <main+0xedd>
mov    -0x14(%rbp),%esi
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rdx
imul   $0x3c,%rax,%rax
add    %rax,%rdx
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%rcx
imul   $0x3c,%rax,%rax
add    %rax,%rcx
add    $0x14,%rcx
movslq -0x14(%rbp),%rax
lea    -0x1e30(%rbp),%r8
imul   $0x3c,%rax,%rax
add    %rax,%r8
add    $0x28,%r8
lea    0x13e5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    2033 <main+0xe73>
lea    0x1376(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x2650,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x25e8,%rsp
mov    %rsi,%r14
cmp    $0x1,%edi
jg     124b <main+0x5b>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    (%r14),%rsi
lea    0xde3(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    (%r14),%rsi
lea    0xdf8(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x1217(%rip),%rdi
jmp    1b6f <main+0x97f>
lea    0x4c0(%rsp),%r12
xor    %ebp,%ebp
mov    %r12,%rdi
xor    %esi,%esi
mov    $0x1e00,%edx
call   10a0 <memset@plt>
mov    0x8(%r14),%rdi
lea    0xec4(%rip),%rsi
call   1100 <fopen@plt>
mov    %rax,%r14
nopw   0x0(%rax,%rax,1)
movb   $0x0,0x4c2(%rsp,%rbp,1)
movw   $0x2222,0x4c0(%rsp,%rbp,1)
movw   $0x2222,0x4d4(%rsp,%rbp,1)
movb   $0x0,0x4d6(%rsp,%rbp,1)
movw   $0x2222,0x4e8(%rsp,%rbp,1)
movb   $0x0,0x4ea(%rsp,%rbp,1)
add    $0x3c,%rbp
cmp    $0x1e00,%rbp
jne    1280 <main+0x90>
mov    %r14,%rdi
call   10e0 <feof@plt>
test   %eax,%eax
je     1b88 <main+0x998>
xor    %r14d,%r14d
jmp    12f5 <main+0x105>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14
add    $0x3c,%r12
cmp    $0x80,%r14
je     13c8 <main+0x1d8>
imul   $0x3c,%r14,%r15
lea    (%rsp,%r15,1),%rbp
add    $0x4c0,%rbp
mov    %rbp,%rdi
call   1080 <strlen@plt>
test   %eax,%eax
jle    1341 <main+0x151>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl (%r12,%rbx,1),%edi
call   1060 <toupper@plt>
mov    %al,(%r12,%rbx,1)
add    $0x1,%rbx
mov    %rbp,%rdi
call   1080 <strlen@plt>
cltq
cmp    %rax,%rbx
jl     1320 <main+0x130>
lea    (%rsp,%r15,1),%rbp
add    $0x4d4,%rbp
mov    %rbp,%rdi
call   1080 <strlen@plt>
test   %eax,%eax
jle    1383 <main+0x193>
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
movsbl 0x14(%r12,%rbx,1),%edi
call   1060 <toupper@plt>
mov    %al,0x14(%r12,%rbx,1)
add    $0x1,%rbx
mov    %rbp,%rdi
call   1080 <strlen@plt>
cltq
cmp    %rax,%rbx
jl     1360 <main+0x170>
lea    (%rsp,%r15,1),%rbp
add    $0x4e8,%rbp
mov    %rbp,%rdi
call   1080 <strlen@plt>
test   %eax,%eax
jle    12e0 <main+0xf0>
xor    %ebx,%ebx
movsbl 0x28(%r12,%rbx,1),%edi
call   1060 <toupper@plt>
mov    %al,0x28(%r12,%rbx,1)
add    $0x1,%rbx
mov    %rbp,%rdi
call   1080 <strlen@plt>
cltq
cmp    %rax,%rbx
jl     13a0 <main+0x1b0>
jmp    12e0 <main+0xf0>
mov    $0x41,%ebx
lea    0xda5(%rip),%r14
lea    0x330(%rsp),%r15
jmp    13e8 <main+0x1f8>
xchg   %ax,%ax
add    $0x1,%ebx
cmp    $0x5b,%ebx
je     144c <main+0x25c>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1110 <sprintf@plt>
lea    0x20(%rbx),%r12d
mov    $0x80,%r13d
lea    0x4c0(%rsp),%rbp
jmp    141a <main+0x22a>
nopl   0x0(%rax,%rax,1)
add    $0x3c,%rbp
add    $0xffffffffffffffff,%r13
je     13e0 <main+0x1f0>
mov    %rbp,%rdi
mov    %r15,%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    1410 <main+0x220>
mov    %rbp,%rdi
mov    %r14,%rsi
mov    %r12d,%edx
xor    %eax,%eax
call   1110 <sprintf@plt>
lea    0x14(%rbp),%rdi
mov    %r14,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1110 <sprintf@plt>
jmp    1410 <main+0x220>
xor    %r14d,%r14d
lea    0xd81(%rip),%r15
lea    0xd88(%rip),%r12
lea    0xd8d(%rip),%r13
lea    0xd96(%rip),%rbx
jmp    1481 <main+0x291>
nopl   (%rax)
add    $0x3c,%r14
cmp    $0x1e00,%r14
je     166a <main+0x47a>
lea    (%rsp,%r14,1),%rbp
add    $0x4c0,%rbp
mov    %rbp,%rdi
lea    0xce8(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    14bb <main+0x2cb>
movabs $0x22545245534e4922,%rax
52 54 22
mov    %rax,0x4d4(%rsp,%r14,1)
movb   $0x0,0x4dc(%rsp,%r14,1)
mov    %rbp,%rdi
lea    0xcc9(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    14e6 <main+0x2f6>
movw   $0x22,0x4d8(%rsp,%r14,1)
movl   $0x444e4522,0x4d4(%rsp,%r14,1)
mov    %rbp,%rdi
lea    0xcab(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    1512 <main+0x322>
movl   $0x224e57,0x4d7(%rsp,%r14,1)
movl   $0x574f4422,0x4d4(%rsp,%r14,1)
mov    %rbp,%rdi
lea    0xc8d(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    1544 <main+0x354>
movabs $0x574f444547415022,%rax
44 4f 57
mov    %rax,0x4d4(%rsp,%r14,1)
movl   $0x224e57,0x4db(%rsp,%r14,1)
mov    %rbp,%rdi
lea    0xc6d(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    1570 <main+0x380>
movl   $0x225446,0x4d7(%rsp,%r14,1)
movl   $0x46454c22,0x4d4(%rsp,%r14,1)
mov    %rbp,%rdi
lea    0xc4f(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    1598 <main+0x3a8>
movb   $0x0,0x4d6(%rsp,%r14,1)
movw   $0x2222,0x4d4(%rsp,%r14,1)
mov    %rbp,%rdi
lea    0xc2e(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    15be <main+0x3ce>
movabs $0x22544847495222,%rax
mov    %rax,0x4d4(%rsp,%r14,1)
mov    %rbp,%rdi
mov    %r15,%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    15e6 <main+0x3f6>
movl   $0x22454d,0x4d7(%rsp,%r14,1)
movl   $0x4d4f4822,0x4d4(%rsp,%r14,1)
mov    %rbp,%rdi
mov    %r12,%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    160b <main+0x41b>
movb   $0x0,0x4d8(%rsp,%r14,1)
movl   $0x22505522,0x4d4(%rsp,%r14,1)
mov    %rbp,%rdi
mov    %r13,%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    1636 <main+0x446>
movabs $0x2250554547415022,%rax
55 50 22
mov    %rax,0x4d4(%rsp,%r14,1)
movb   $0x0,0x4dc(%rsp,%r14,1)
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    1470 <main+0x280>
movabs $0x2245564f4d455222,%rax
56 45 22
mov    %rax,0x4d4(%rsp,%r14,1)
movb   $0x0,0x4dc(%rsp,%r14,1)
jmp    1470 <main+0x280>
lea    0xba5(%rip),%rdi
mov    $0x80,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xbab(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xbb7(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xbc1(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xbc8(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xbcf(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1090 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xc87(%rip),%rdi
call   1070 <puts@plt>
lea    0xd5b(%rip),%rdi
call   1070 <puts@plt>
lea    0x4c0(%rsp),%rbp
mov    $0x80,%r12d
lea    0xba6(%rip),%r14
xor    %r15d,%r15d
jmp    1732 <main+0x542>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rdi
call   1030 <free@plt>
add    $0x3c,%rbp
add    $0xffffffffffffffff,%r12
je     1789 <main+0x599>
mov    %rbp,%rdi
call   1080 <strlen@plt>
mov    $0x1,%edi
mov    %eax,%esi
call   10c0 <calloc@plt>
mov    %rax,%rbx
lea    0x1(%rbp),%rsi
mov    %rax,%rdi
call   1050 <strcpy@plt>
mov    %rbx,%rdi
call   1080 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
mov    %rbx,%rdi
call   1080 <strlen@plt>
test   %eax,%eax
jle    1720 <main+0x530>
lea    0x1(%r15),%r13d
mov    %r14,%rdi
mov    %r15d,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r13d,%r15d
jmp    1720 <main+0x530>
lea    0xcb5(%rip),%rdi
call   1070 <puts@plt>
lea    0x4d5(%rsp),%rbp
mov    $0x80,%r12d
lea    0xb0c(%rip),%r14
jmp    17c2 <main+0x5d2>
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1030 <free@plt>
add    $0x3c,%rbp
add    $0xffffffffffffffff,%r12
je     1819 <main+0x629>
lea    -0x1(%rbp),%rdi
call   1080 <strlen@plt>
mov    $0x1,%edi
mov    %eax,%esi
call   10c0 <calloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %rbp,%rsi
call   1050 <strcpy@plt>
mov    %rbx,%rdi
call   1080 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
mov    %rbx,%rdi
call   1080 <strlen@plt>
test   %eax,%eax
jle    17b0 <main+0x5c0>
lea    0x1(%r15),%r13d
mov    %r14,%rdi
mov    %r15d,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r13d,%r15d
jmp    17b0 <main+0x5c0>
lea    0xc19(%rip),%rdi
call   1070 <puts@plt>
lea    0x4e9(%rsp),%rbp
mov    $0x80,%r12d
lea    0xa7c(%rip),%r14
jmp    1852 <main+0x662>
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1030 <free@plt>
add    $0x3c,%rbp
add    $0xffffffffffffffff,%r12
je     18a9 <main+0x6b9>
lea    -0x1(%rbp),%rdi
call   1080 <strlen@plt>
mov    $0x1,%edi
mov    %eax,%esi
call   10c0 <calloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %rbp,%rsi
call   1050 <strcpy@plt>
mov    %rbx,%rdi
call   1080 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
mov    %rbx,%rdi
call   1080 <strlen@plt>
test   %eax,%eax
jle    1840 <main+0x650>
lea    0x1(%r15),%r13d
mov    %r14,%rdi
mov    %r15d,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r13d,%r15d
jmp    1840 <main+0x650>
lea    0xa1d(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xabf(%rip),%rdi
call   1070 <puts@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xab8(%rip),%rdi
call   1070 <puts@plt>
lea    0xa03(%rip),%rdi
lea    0xa15(%rip),%rsi
lea    0xa17(%rip),%rdx
lea    0xa1c(%rip),%rcx
lea    0xa21(%rip),%r8
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xa2c(%rip),%r13
lea    0xa3c(%rip),%r15
xor    %r12d,%r12d
xor    %ebp,%ebp
jmp    1955 <main+0x765>
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
lea    0xafa(%rip),%rdi
call   1070 <puts@plt>
add    $0x1,%ebp
add    $0x3c,%r12
cmp    $0x1e00,%r12
je     1ad4 <main+0x8e4>
lea    0x9d0(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    (%rsp,%r12,1),%rdi
add    $0x4c0,%rdi
call   1080 <strlen@plt>
mov    $0x1,%edi
mov    %eax,%esi
call   10c0 <calloc@plt>
mov    %rax,%r14
lea    (%rsp,%r12,1),%rsi
add    $0x4c1,%rsi
mov    %rax,%rdi
call   1050 <strcpy@plt>
mov    %r14,%rdi
call   1080 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%r14,1)
mov    %r14,%rdi
call   1080 <strlen@plt>
test   %eax,%eax
jle    19d0 <main+0x7e0>
mov    %r13,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
jmp    19de <main+0x7ee>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x96c(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r14,%rdi
call   1030 <free@plt>
lea    (%rsp,%r12,1),%rdi
add    $0x4d4,%rdi
call   1080 <strlen@plt>
mov    $0x1,%edi
mov    %eax,%esi
call   10c0 <calloc@plt>
mov    %rax,%rbx
lea    (%rsp,%r12,1),%rsi
add    $0x4d5,%rsi
mov    %rax,%rdi
call   1050 <strcpy@plt>
mov    %rbx,%rdi
call   1080 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
mov    %rbx,%rdi
call   1080 <strlen@plt>
test   %eax,%eax
jle    1a50 <main+0x860>
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
jmp    1a5e <main+0x86e>
nopl   0x0(%rax)
lea    0x8ec(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
lea    (%rsp,%r12,1),%rdi
add    $0x4e8,%rdi
call   1080 <strlen@plt>
mov    $0x1,%edi
mov    %eax,%esi
call   10c0 <calloc@plt>
mov    %rax,%rbx
lea    (%rsp,%r12,1),%rsi
add    $0x4e9,%rsi
mov    %rax,%rdi
call   1050 <strcpy@plt>
mov    %rbx,%rdi
call   1080 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
mov    %rbx,%rdi
call   1080 <strlen@plt>
test   %eax,%eax
jg     1920 <main+0x730>
lea    0x87b(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
jmp    192d <main+0x73d>
lea    0x958(%rip),%rdi
call   1070 <puts@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0x8f4(%rip),%rdi
call   1070 <puts@plt>
lea    0x7e9(%rip),%rdi
lea    0x7fb(%rip),%rsi
lea    0x7fd(%rip),%rdx
lea    0x802(%rip),%rcx
lea    0x807(%rip),%r8
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x4c0(%rsp),%rbx
lea    0x824(%rip),%r14
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0x14(%rbx),%rcx
lea    0x28(%rbx),%r8
mov    %r14,%rdi
mov    %ebp,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <printf@plt>
add    $0x1,%rbp
add    $0x3c,%rbx
cmp    $0x80,%rbp
jne    1b40 <main+0x950>
lea    0x8c4(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
add    $0x25e8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x2450(%rsp),%rbx
lea    0x330(%rsp),%rbp
lea    0x22c0(%rsp),%r15
lea    0x5b2(%rip),%r13
jmp    1bc0 <main+0x9d0>
nopl   0x0(%rax)
mov    %r14,%rdi
call   10e0 <feof@plt>
test   %eax,%eax
jne    12d3 <main+0xe3>
mov    %rbx,%rdi
mov    $0x190,%esi
mov    %r14,%rdx
call   10b0 <fgets@plt>
mov    %rbx,%rdi
lea    0x590(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   10f0 <sscanf@plt>
movb   $0x0,0x1a0(%rsp)
movb   $0x0,0x10(%rsp)
mov    %rbp,%rdi
lea    0x53e(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     1d20 <main+0xb30>
mov    %rbp,%rdi
mov    %r13,%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    1c5d <main+0xa6d>
mov    %rbx,%rdi
lea    0x53c(%rip),%rsi
mov    %rbp,%rdx
mov    %rbp,%rcx
lea    0xc(%rsp),%r8
mov    %r15,%r9
xor    %eax,%eax
call   10f0 <sscanf@plt>
movslq 0xc(%rsp),%rax
imul   $0x3c,%rax,%rax
lea    (%rsp,%rax,1),%rdi
add    $0x4c0,%rdi
lea    0x4ff(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1110 <sprintf@plt>
mov    %rbp,%rdi
lea    0x506(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    1cb5 <main+0xac5>
mov    %rbx,%rdi
lea    0x4e4(%rip),%rsi
mov    %rbp,%rdx
mov    %rbp,%rcx
lea    0xc(%rsp),%r8
mov    %r15,%r9
xor    %eax,%eax
call   10f0 <sscanf@plt>
movslq 0xc(%rsp),%rax
imul   $0x3c,%rax,%rax
lea    (%rsp,%rax,1),%rdi
add    $0x4d4,%rdi
lea    0x4a7(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1110 <sprintf@plt>
mov    %rbp,%rdi
lea    0x4b4(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
jne    1bb0 <main+0x9c0>
mov    %rbx,%rdi
lea    0x488(%rip),%rsi
mov    %rbp,%rdx
mov    %rbp,%rcx
lea    0xc(%rsp),%r8
mov    %r15,%r9
xor    %eax,%eax
call   10f0 <sscanf@plt>
movslq 0xc(%rsp),%rax
imul   $0x3c,%rax,%rax
lea    (%rsp,%rax,1),%rdi
add    $0x4e8,%rdi
lea    0x44b(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1110 <sprintf@plt>
jmp    1bb0 <main+0x9c0>
cs nopw 0x0(%rax,%rax,1)
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
mov    %rbx,%rdi
lea    0x40e(%rip),%rsi
mov    %rbp,%rdx
lea    0xc(%rsp),%rcx
mov    %r15,%r8
mov    %r14,%rbp
mov    %rbx,%r14
lea    0x1a0(%rsp),%rbx
mov    %rbx,%r9
xor    %eax,%eax
call   10f0 <sscanf@plt>
movslq 0xc(%rsp),%rax
imul   $0x3c,%rax,%rax
lea    (%rsp,%rax,1),%rdi
add    $0x4c0,%rdi
lea    0x3e1(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1110 <sprintf@plt>
mov    %rbx,%rdi
mov    %r14,%rbx
mov    %rbp,%r14
lea    0x330(%rsp),%rbp
lea    0x3c4(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     1c09 <main+0xa19>
cmpb   $0x0,0x1a0(%rsp)
je     1c09 <main+0xa19>
movslq 0xc(%rsp),%rax
imul   $0x3c,%rax,%rax
lea    (%rsp,%rax,1),%rdi
add    $0x4d4,%rdi
lea    0x388(%rip),%rsi
lea    0x1a0(%rsp),%rdx
xor    %eax,%eax
call   1110 <sprintf@plt>
lea    0x10(%rsp),%rdi
lea    0x372(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     1c09 <main+0xa19>
cmpb   $0x0,0x10(%rsp)
je     1c09 <main+0xa19>
movslq 0xc(%rsp),%rax
imul   $0x3c,%rax,%rax
lea    (%rsp,%rax,1),%rdi
add    $0x4e8,%rdi
lea    0x339(%rip),%rsi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   1110 <sprintf@plt>
jmp    1c09 <main+0xa19>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [48 x i8] c"%s is to prepare a hader file from a map file.\0A\00"
@.str.2 = [259 x i8] c"Ex:\0A\09mkdir kbdmap\0A\09files included in the us.map.gz are;\0A\09\09compose.latin1\0A\09\09euro1.map\0A\09\09linux-keys-bare.inc\0A\09\09linux-with-alt-and-altgr.inc\0A\09\09qwerty-layout.inc\0A\09copy all_of_them_and_the_us.map.gz to kbdmap\0A\09gunzip us.map.gz\0A\09cat * > usmap\0A\09%s usmap > usmap.h\0A\0A\00"
@.str.3 = [33 x i8] c"Alper Akcan, distchx@yahoo.com\0A\0A\00"
@.str.4 = [3 x i8] c"rt\00"
@.str.5 = [3 x i8] c"\22\22\00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [8 x i8] c"keycode\00"
@.str.8 = [17 x i8] c"%s %d = %s %s %s\00"
@.str.9 = [5 x i8] c"\22%s\22\00"
@.str.10 = [2 x i8] c"#\00"
@.str.11 = [6 x i8] c"plain\00"
@.str.12 = [14 x i8] c"%s %s %d = %s\00"
@.str.13 = [6 x i8] c"shift\00"
@.str.14 = [6 x i8] c"altgr\00"
@.str.15 = [5 x i8] c"\22%c\22\00"
@.str.16 = [7 x i8] c"\22KP_0\22\00"
@.str.17 = [9 x i8] c"\22INSERT\22\00"
@.str.18 = [7 x i8] c"\22KP_1\22\00"
@.str.19 = [6 x i8] c"\22END\22\00"
@.str.20 = [7 x i8] c"\22KP_2\22\00"
@.str.21 = [7 x i8] c"\22DOWN\22\00"
@.str.22 = [7 x i8] c"\22KP_3\22\00"
@.str.23 = [11 x i8] c"\22PAGEDOWN\22\00"
@.str.24 = [7 x i8] c"\22KP_4\22\00"
@.str.25 = [7 x i8] c"\22LEFT\22\00"
@.str.26 = [7 x i8] c"\22KP_5\22\00"
@.str.27 = [7 x i8] c"\22KP_6\22\00"
@.str.28 = [8 x i8] c"\22RIGHT\22\00"
@.str.29 = [7 x i8] c"\22KP_7\22\00"
@.str.30 = [7 x i8] c"\22HOME\22\00"
@.str.31 = [7 x i8] c"\22KP_8\22\00"
@.str.32 = [5 x i8] c"\22UP\22\00"
@.str.33 = [7 x i8] c"\22KP_9\22\00"
@.str.34 = [9 x i8] c"\22PAGEUP\22\00"
@.str.35 = [12 x i8] c"\22KP_PERIOD\22\00"
@.str.36 = [9 x i8] c"\22REMOVE\22\00"
@.str.37 = [25 x i8] c"#define KEYCODE_KEYS\09%d\0A\00"
@.str.38 = [31 x i8] c"#define KEYCODE_MAXNAMELEN\09%d\0A\00"
@.str.39 = [26 x i8] c"#define KEYCODE_PLAIN\09%d\0A\00"
@.str.40 = [26 x i8] c"#define KEYCODE_SHIFT\09%d\0A\00"
@.str.41 = [26 x i8] c"#define KEYCODE_ALTGR\09%d\0A\00"
@.str.42 = [26 x i8] c"#define KEYCODE_FLAGS\09%d\0A\00"
@.str.43 = [16 x i8] c"typedef enum {\0A\00"
@.str.44 = [13 x i8] c"/* Plain */\0A\00"
@.str.45 = [13 x i8] c"/* Shift */\0A\00"
@.str.46 = [13 x i8] c"/* ALTGR */\0A\00"
@.str.47 = [23 x i8] c"/* %3d */ XYNTHK_%s,\0A\00"
@.str.48 = [25 x i8] c"/* %3d */ XYNTHK_CODES\0A\00"
@.str.49 = [16 x i8] c"} XYNTHK_CODE;\0A\00"
@.str.50 = [87 x i8] c"static XYNTHK_CODE kbd_keycodes_[KEYCODE_KEYS][KEYCODE_FLAGS][KEYCODE_MACNAMELEN] = {\0A\00"
@.str.51 = [25 x i8] c"/*%10s %18s %18s %17s*/\0A\00"
@.str.52 = [9 x i8] c"keycode,\00"
@.str.53 = [12 x i8] c"plain name,\00"
@.str.54 = [12 x i8] c"shift name,\00"
@.str.55 = [12 x i8] c"altgr name \00"
@.str.56 = [13 x i8] c"/* %3d */ {\00"
@.str.57 = [10 x i8] c"XYNTHK_%s\00"
@.str.58 = [13 x i8] c"XYNTH_NOCODE\00"
@.str.59 = [3 x i8] c",\09\00"
@.str.60 = [4 x i8] c"},\0A\00"
@.str.61 = [4 x i8] c"};\0A\00"
@.str.62 = [79 x i8] c"static char kbd_keycodes[KEYCODE_KEYS][KEYCODE_FLAGS][KEYCODE_MAXNAMELEN] = {\0A\00"
@.str.63 = [30 x i8] c"/* %3d */ {%18s,%18s,%18s},\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
%10 = alloca [128 x [3 x [20 x i8]]]
%11 = alloca i32
%12 = alloca [400 x i8]
%13 = alloca [400 x i8]
%14 = alloca [400 x i8]
%15 = alloca [400 x i8]
%16 = alloca [400 x i8]
%17 = alloca i32
%18 = alloca i8*
%19 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 7680, i32* %11
%20 = load i32, i32* %4
%21 = icmp slt i32 %20, 2
br i1 %21, label %22, label %34
22: ; preds = %2
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 0
%26 = load i8*, i8** %25
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0), i8* %26)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 0
%31 = load i8*, i8** %30
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([259 x i8], [259 x i8]* @.str.2, i64 0, i64 0), i8* %31)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
br label %666
34: ; preds = %2
%35 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 0
%36 = bitcast [3 x [20 x i8]]* %35 to i8***
%37 = load i32, i32* %11
%38 = call i32 @memset(i8*** %36, i32 0, i32 %37)
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 1
%41 = load i8*, i8** %40
%42 = call i32* @fopen(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32* %42, i32** %9
store i32 0, i32* %6
br label %43
43: ; preds = %63, %34
%44 = load i32, i32* %6
%45 = icmp slt i32 %44, 128
br i1 %45, label %46, label %66
46: ; preds = %43
store i32 0, i32* %7
br label %47
47: ; preds = %59, %46
%48 = load i32, i32* %7
%49 = icmp slt i32 %48, 3
br i1 %49, label %50, label %62
50: ; preds = %47
%51 = load i32, i32* %6
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %52
%54 = load i32, i32* %7
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %53, i64 0, i64 %55
%57 = getelementptr inbounds [20 x i8], [20 x i8]* %56, i64 0, i64 0
%58 = call i32 (i8*, i8*, ...) @sprintf(i8* %57, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %59
59: ; preds = %50
%60 = load i32, i32* %7
%61 = add nsw i32 %60, 1
store i32 %61, i32* %7
br label %47
62: ; preds = %47
br label %63
63: ; preds = %62
%64 = load i32, i32* %6
%65 = add nsw i32 %64, 1
store i32 %65, i32* %6
br label %43
66: ; preds = %43
br label %67
67: ; preds = %183, %66
%68 = load i32*, i32** %9
%69 = call i32 @feof(i32* %68)
%70 = icmp ne i32 %69, 0
%71 = xor i1 %70, true
br i1 %71, label %72, label %184
72: ; preds = %67
%73 = getelementptr inbounds [400 x i8], [400 x i8]* %12, i64 0, i64 0
%74 = load i32*, i32** %9
%75 = call i32 @fgets(i8* %73, i32 400, i32* %74)
%76 = getelementptr inbounds [400 x i8], [400 x i8]* %12, i64 0, i64 0
%77 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%78 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %76, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %77)
%79 = getelementptr inbounds [400 x i8], [400 x i8]* %15, i64 0, i64 0
store i8 0, i8* %79
%80 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 0
store i8 0, i8* %80
%81 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%82 = call i64 @strcmp(i8* %81, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %132
84: ; preds = %72
%85 = getelementptr inbounds [400 x i8], [400 x i8]* %12, i64 0, i64 0
%86 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%87 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 0
%88 = getelementptr inbounds [400 x i8], [400 x i8]* %15, i64 0, i64 0
%89 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 0
%90 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %85, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i8* %86, i32* %17, i8* %87, i8* %88, i8* %89)
%91 = load i32, i32* %17
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %92
%94 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %93, i64 0, i64 0
%95 = getelementptr inbounds [20 x i8], [20 x i8]* %94, i64 0, i64 0
%96 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 0
%97 = call i32 (i8*, i8*, ...) @sprintf(i8* %95, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %96)
%98 = getelementptr inbounds [400 x i8], [400 x i8]* %15, i64 0, i64 0
%99 = call i64 @strcmp(i8* %98, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%100 = icmp ne i64 %99, 0
br i1 %100, label %101, label %131
101: ; preds = %84
%102 = getelementptr inbounds [400 x i8], [400 x i8]* %15, i64 0, i64 0
%103 = load i8, i8* %102
%104 = sext i8 %103 to i32
%105 = icmp ne i32 %104, 0
br i1 %105, label %106, label %131
106: ; preds = %101
%107 = load i32, i32* %17
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %108
%110 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %109, i64 0, i64 1
%111 = getelementptr inbounds [20 x i8], [20 x i8]* %110, i64 0, i64 0
%112 = getelementptr inbounds [400 x i8], [400 x i8]* %15, i64 0, i64 0
%113 = call i32 (i8*, i8*, ...) @sprintf(i8* %111, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %112)
%114 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 0
%115 = call i64 @strcmp(i8* %114, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%116 = icmp ne i64 %115, 0
br i1 %116, label %117, label %130
117: ; preds = %106
%118 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 0
%119 = load i8, i8* %118
%120 = sext i8 %119 to i32
%121 = icmp ne i32 %120, 0
br i1 %121, label %122, label %130
122: ; preds = %117
%123 = load i32, i32* %17
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %124
%126 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %125, i64 0, i64 2
%127 = getelementptr inbounds [20 x i8], [20 x i8]* %126, i64 0, i64 0
%128 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 0
%129 = call i32 (i8*, i8*, ...) @sprintf(i8* %127, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %128)
br label %130
130: ; preds = %122, %117, %106
br label %131
131: ; preds = %130, %101, %84
br label %132
132: ; preds = %131, %72
%133 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%134 = call i64 @strcmp(i8* %133, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%135 = icmp eq i64 %134, 0
br i1 %135, label %136, label %149
136: ; preds = %132
%137 = getelementptr inbounds [400 x i8], [400 x i8]* %12, i64 0, i64 0
%138 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%139 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%140 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 0
%141 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %137, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i8* %138, i8* %139, i32* %17, i8* %140)
%142 = load i32, i32* %17
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %143
%145 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %144, i64 0, i64 0
%146 = getelementptr inbounds [20 x i8], [20 x i8]* %145, i64 0, i64 0
%147 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 0
%148 = call i32 (i8*, i8*, ...) @sprintf(i8* %146, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %147)
br label %149
149: ; preds = %136, %132
%150 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%151 = call i64 @strcmp(i8* %150, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%152 = icmp eq i64 %151, 0
br i1 %152, label %153, label %166
153: ; preds = %149
%154 = getelementptr inbounds [400 x i8], [400 x i8]* %12, i64 0, i64 0
%155 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%156 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%157 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 0
%158 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %154, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i8* %155, i8* %156, i32* %17, i8* %157)
%159 = load i32, i32* %17
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %160
%162 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %161, i64 0, i64 1
%163 = getelementptr inbounds [20 x i8], [20 x i8]* %162, i64 0, i64 0
%164 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 0
%165 = call i32 (i8*, i8*, ...) @sprintf(i8* %163, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %164)
br label %166
166: ; preds = %153, %149
%167 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%168 = call i64 @strcmp(i8* %167, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%169 = icmp eq i64 %168, 0
br i1 %169, label %170, label %183
170: ; preds = %166
%171 = getelementptr inbounds [400 x i8], [400 x i8]* %12, i64 0, i64 0
%172 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%173 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%174 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 0
%175 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %171, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i8* %172, i8* %173, i32* %17, i8* %174)
%176 = load i32, i32* %17
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %177
%179 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %178, i64 0, i64 2
%180 = getelementptr inbounds [20 x i8], [20 x i8]* %179, i64 0, i64 0
%181 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 0
%182 = call i32 (i8*, i8*, ...) @sprintf(i8* %180, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %181)
br label %183
183: ; preds = %170, %166
br label %67
184: ; preds = %67
store i32 0, i32* %6
br label %185
185: ; preds = %279, %184
%186 = load i32, i32* %6
%187 = icmp slt i32 %186, 128
br i1 %187, label %188, label %282
188: ; preds = %185
store i32 0, i32* %7
br label %189
189: ; preds = %215, %188
%190 = load i32, i32* %7
%191 = load i32, i32* %6
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %192
%194 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %193, i64 0, i64 0
%195 = getelementptr inbounds [20 x i8], [20 x i8]* %194, i64 0, i64 0
%196 = call i32 @strlen(i8* %195)
%197 = icmp slt i32 %190, %196
br i1 %197, label %198, label %218
198: ; preds = %189
%199 = load i32, i32* %6
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %200
%202 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %201, i64 0, i64 0
%203 = load i32, i32* %7
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [20 x i8], [20 x i8]* %202, i64 0, i64 %204
%206 = load i8, i8* %205
%207 = call signext i8 @toupper(i8 signext %206)
%208 = load i32, i32* %6
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %209
%211 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %210, i64 0, i64 0
%212 = load i32, i32* %7
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds [20 x i8], [20 x i8]* %211, i64 0, i64 %213
store i8 %207, i8* %214
br label %215
215: ; preds = %198
%216 = load i32, i32* %7
%217 = add nsw i32 %216, 1
store i32 %217, i32* %7
br label %189
218: ; preds = %189
store i32 0, i32* %7
br label %219
219: ; preds = %245, %218
%220 = load i32, i32* %7
%221 = load i32, i32* %6
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %222
%224 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %223, i64 0, i64 1
%225 = getelementptr inbounds [20 x i8], [20 x i8]* %224, i64 0, i64 0
%226 = call i32 @strlen(i8* %225)
%227 = icmp slt i32 %220, %226
br i1 %227, label %228, label %248
228: ; preds = %219
%229 = load i32, i32* %6
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %230
%232 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %231, i64 0, i64 1
%233 = load i32, i32* %7
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds [20 x i8], [20 x i8]* %232, i64 0, i64 %234
%236 = load i8, i8* %235
%237 = call signext i8 @toupper(i8 signext %236)
%238 = load i32, i32* %6
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %239
%241 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %240, i64 0, i64 1
%242 = load i32, i32* %7
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds [20 x i8], [20 x i8]* %241, i64 0, i64 %243
store i8 %237, i8* %244
br label %245
245: ; preds = %228
%246 = load i32, i32* %7
%247 = add nsw i32 %246, 1
store i32 %247, i32* %7
br label %219
248: ; preds = %219
store i32 0, i32* %7
br label %249
249: ; preds = %275, %248
%250 = load i32, i32* %7
%251 = load i32, i32* %6
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %252
%254 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %253, i64 0, i64 2
%255 = getelementptr inbounds [20 x i8], [20 x i8]* %254, i64 0, i64 0
%256 = call i32 @strlen(i8* %255)
%257 = icmp slt i32 %250, %256
br i1 %257, label %258, label %278
258: ; preds = %249
%259 = load i32, i32* %6
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %260
%262 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %261, i64 0, i64 2
%263 = load i32, i32* %7
%264 = sext i32 %263 to i64
%265 = getelementptr inbounds [20 x i8], [20 x i8]* %262, i64 0, i64 %264
%266 = load i8, i8* %265
%267 = call signext i8 @toupper(i8 signext %266)
%268 = load i32, i32* %6
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %269
%271 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %270, i64 0, i64 2
%272 = load i32, i32* %7
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds [20 x i8], [20 x i8]* %271, i64 0, i64 %273
store i8 %267, i8* %274
br label %275
275: ; preds = %258
%276 = load i32, i32* %7
%277 = add nsw i32 %276, 1
store i32 %277, i32* %7
br label %249
278: ; preds = %249
br label %279
279: ; preds = %278
%280 = load i32, i32* %6
%281 = add nsw i32 %280, 1
store i32 %281, i32* %6
br label %185
282: ; preds = %185
store i32 65, i32* %7
br label %283
283: ; preds = %323, %282
%284 = load i32, i32* %7
%285 = icmp slt i32 %284, 91
br i1 %285, label %286, label %326
286: ; preds = %283
%287 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%288 = load i32, i32* %7
%289 = call i32 (i8*, i8*, ...) @sprintf(i8* %287, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 %288)
store i32 0, i32* %6
br label %290
290: ; preds = %319, %286
%291 = load i32, i32* %6
%292 = icmp slt i32 %291, 128
br i1 %292, label %293, label %322
293: ; preds = %290
%294 = load i32, i32* %6
%295 = sext i32 %294 to i64
%296 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %295
%297 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %296, i64 0, i64 0
%298 = getelementptr inbounds [20 x i8], [20 x i8]* %297, i64 0, i64 0
%299 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%300 = call i64 @strcmp(i8* %298, i8* %299)
%301 = icmp eq i64 %300, 0
br i1 %301, label %302, label %318
302: ; preds = %293
%303 = load i32, i32* %6
%304 = sext i32 %303 to i64
%305 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %304
%306 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %305, i64 0, i64 0
%307 = getelementptr inbounds [20 x i8], [20 x i8]* %306, i64 0, i64 0
%308 = load i32, i32* %7
%309 = add nsw i32 %308, 32
%310 = call i32 (i8*, i8*, ...) @sprintf(i8* %307, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 %309)
%311 = load i32, i32* %6
%312 = sext i32 %311 to i64
%313 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %312
%314 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %313, i64 0, i64 1
%315 = getelementptr inbounds [20 x i8], [20 x i8]* %314, i64 0, i64 0
%316 = load i32, i32* %7
%317 = call i32 (i8*, i8*, ...) @sprintf(i8* %315, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 %316)
br label %318
318: ; preds = %302, %293
br label %319
319: ; preds = %318
%320 = load i32, i32* %6
%321 = add nsw i32 %320, 1
store i32 %321, i32* %6
br label %290
322: ; preds = %290
br label %323
323: ; preds = %322
%324 = load i32, i32* %7
%325 = add nsw i32 %324, 1
store i32 %325, i32* %7
br label %283
326: ; preds = %283
store i32 0, i32* %6
br label %327
327: ; preds = %496, %326
%328 = load i32, i32* %6
%329 = icmp slt i32 %328, 128
br i1 %329, label %330, label %499
330: ; preds = %327
%331 = load i32, i32* %6
%332 = sext i32 %331 to i64
%333 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %332
%334 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %333, i64 0, i64 0
%335 = getelementptr inbounds [20 x i8], [20 x i8]* %334, i64 0, i64 0
%336 = call i64 @strcmp(i8* %335, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
%337 = icmp eq i64 %336, 0
br i1 %337, label %338, label %345
338: ; preds = %330
%339 = load i32, i32* %6
%340 = sext i32 %339 to i64
%341 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %340
%342 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %341, i64 0, i64 1
%343 = getelementptr inbounds [20 x i8], [20 x i8]* %342, i64 0, i64 0
%344 = call i32 (i8*, i8*, ...) @sprintf(i8* %343, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
br label %345
345: ; preds = %338, %330
%346 = load i32, i32* %6
%347 = sext i32 %346 to i64
%348 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %347
%349 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %348, i64 0, i64 0
%350 = getelementptr inbounds [20 x i8], [20 x i8]* %349, i64 0, i64 0
%351 = call i64 @strcmp(i8* %350, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
%352 = icmp eq i64 %351, 0
br i1 %352, label %353, label %360
353: ; preds = %345
%354 = load i32, i32* %6
%355 = sext i32 %354 to i64
%356 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %355
%357 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %356, i64 0, i64 1
%358 = getelementptr inbounds [20 x i8], [20 x i8]* %357, i64 0, i64 0
%359 = call i32 (i8*, i8*, ...) @sprintf(i8* %358, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
br label %360
360: ; preds = %353, %345
%361 = load i32, i32* %6
%362 = sext i32 %361 to i64
%363 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %362
%364 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %363, i64 0, i64 0
%365 = getelementptr inbounds [20 x i8], [20 x i8]* %364, i64 0, i64 0
%366 = call i64 @strcmp(i8* %365, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
%367 = icmp eq i64 %366, 0
br i1 %367, label %368, label %375
368: ; preds = %360
%369 = load i32, i32* %6
%370 = sext i32 %369 to i64
%371 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %370
%372 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %371, i64 0, i64 1
%373 = getelementptr inbounds [20 x i8], [20 x i8]* %372, i64 0, i64 0
%374 = call i32 (i8*, i8*, ...) @sprintf(i8* %373, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
br label %375
375: ; preds = %368, %360
%376 = load i32, i32* %6
%377 = sext i32 %376 to i64
%378 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %377
%379 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %378, i64 0, i64 0
%380 = getelementptr inbounds [20 x i8], [20 x i8]* %379, i64 0, i64 0
%381 = call i64 @strcmp(i8* %380, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
%382 = icmp eq i64 %381, 0
br i1 %382, label %383, label %390
383: ; preds = %375
%384 = load i32, i32* %6
%385 = sext i32 %384 to i64
%386 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %385
%387 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %386, i64 0, i64 1
%388 = getelementptr inbounds [20 x i8], [20 x i8]* %387, i64 0, i64 0
%389 = call i32 (i8*, i8*, ...) @sprintf(i8* %388, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0))
br label %390
390: ; preds = %383, %375
%391 = load i32, i32* %6
%392 = sext i32 %391 to i64
%393 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %392
%394 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %393, i64 0, i64 0
%395 = getelementptr inbounds [20 x i8], [20 x i8]* %394, i64 0, i64 0
%396 = call i64 @strcmp(i8* %395, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.24, i64 0, i64 0))
%397 = icmp eq i64 %396, 0
br i1 %397, label %398, label %405
398: ; preds = %390
%399 = load i32, i32* %6
%400 = sext i32 %399 to i64
%401 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %400
%402 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %401, i64 0, i64 1
%403 = getelementptr inbounds [20 x i8], [20 x i8]* %402, i64 0, i64 0
%404 = call i32 (i8*, i8*, ...) @sprintf(i8* %403, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.25, i64 0, i64 0))
br label %405
405: ; preds = %398, %390
%406 = load i32, i32* %6
%407 = sext i32 %406 to i64
%408 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %407
%409 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %408, i64 0, i64 0
%410 = getelementptr inbounds [20 x i8], [20 x i8]* %409, i64 0, i64 0
%411 = call i64 @strcmp(i8* %410, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0))
%412 = icmp eq i64 %411, 0
br i1 %412, label %413, label %420
413: ; preds = %405
%414 = load i32, i32* %6
%415 = sext i32 %414 to i64
%416 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %415
%417 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %416, i64 0, i64 1
%418 = getelementptr inbounds [20 x i8], [20 x i8]* %417, i64 0, i64 0
%419 = call i32 (i8*, i8*, ...) @sprintf(i8* %418, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %420
420: ; preds = %413, %405
%421 = load i32, i32* %6
%422 = sext i32 %421 to i64
%423 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %422
%424 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %423, i64 0, i64 0
%425 = getelementptr inbounds [20 x i8], [20 x i8]* %424, i64 0, i64 0
%426 = call i64 @strcmp(i8* %425, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0))
%427 = icmp eq i64 %426, 0
br i1 %427, label %428, label %435
428: ; preds = %420
%429 = load i32, i32* %6
%430 = sext i32 %429 to i64
%431 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %430
%432 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %431, i64 0, i64 1
%433 = getelementptr inbounds [20 x i8], [20 x i8]* %432, i64 0, i64 0
%434 = call i32 (i8*, i8*, ...) @sprintf(i8* %433, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0))
br label %435
435: ; preds = %428, %420
%436 = load i32, i32* %6
%437 = sext i32 %436 to i64
%438 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %437
%439 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %438, i64 0, i64 0
%440 = getelementptr inbounds [20 x i8], [20 x i8]* %439, i64 0, i64 0
%441 = call i64 @strcmp(i8* %440, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.29, i64 0, i64 0))
%442 = icmp eq i64 %441, 0
br i1 %442, label %443, label %450
443: ; preds = %435
%444 = load i32, i32* %6
%445 = sext i32 %444 to i64
%446 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %445
%447 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %446, i64 0, i64 1
%448 = getelementptr inbounds [20 x i8], [20 x i8]* %447, i64 0, i64 0
%449 = call i32 (i8*, i8*, ...) @sprintf(i8* %448, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.30, i64 0, i64 0))
br label %450
450: ; preds = %443, %435
%451 = load i32, i32* %6
%452 = sext i32 %451 to i64
%453 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %452
%454 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %453, i64 0, i64 0
%455 = getelementptr inbounds [20 x i8], [20 x i8]* %454, i64 0, i64 0
%456 = call i64 @strcmp(i8* %455, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.31, i64 0, i64 0))
%457 = icmp eq i64 %456, 0
br i1 %457, label %458, label %465
458: ; preds = %450
%459 = load i32, i32* %6
%460 = sext i32 %459 to i64
%461 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %460
%462 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %461, i64 0, i64 1
%463 = getelementptr inbounds [20 x i8], [20 x i8]* %462, i64 0, i64 0
%464 = call i32 (i8*, i8*, ...) @sprintf(i8* %463, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i64 0, i64 0))
br label %465
465: ; preds = %458, %450
%466 = load i32, i32* %6
%467 = sext i32 %466 to i64
%468 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %467
%469 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %468, i64 0, i64 0
%470 = getelementptr inbounds [20 x i8], [20 x i8]* %469, i64 0, i64 0
%471 = call i64 @strcmp(i8* %470, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.33, i64 0, i64 0))
%472 = icmp eq i64 %471, 0
br i1 %472, label %473, label %480
473: ; preds = %465
%474 = load i32, i32* %6
%475 = sext i32 %474 to i64
%476 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %475
%477 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %476, i64 0, i64 1
%478 = getelementptr inbounds [20 x i8], [20 x i8]* %477, i64 0, i64 0
%479 = call i32 (i8*, i8*, ...) @sprintf(i8* %478, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.34, i64 0, i64 0))
br label %480
480: ; preds = %473, %465
%481 = load i32, i32* %6
%482 = sext i32 %481 to i64
%483 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %482
%484 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %483, i64 0, i64 0
%485 = getelementptr inbounds [20 x i8], [20 x i8]* %484, i64 0, i64 0
%486 = call i64 @strcmp(i8* %485, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.35, i64 0, i64 0))
%487 = icmp eq i64 %486, 0
br i1 %487, label %488, label %495
488: ; preds = %480
%489 = load i32, i32* %6
%490 = sext i32 %489 to i64
%491 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %490
%492 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %491, i64 0, i64 1
%493 = getelementptr inbounds [20 x i8], [20 x i8]* %492, i64 0, i64 0
%494 = call i32 (i8*, i8*, ...) @sprintf(i8* %493, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.36, i64 0, i64 0))
br label %495
495: ; preds = %488, %480
br label %496
496: ; preds = %495
%497 = load i32, i32* %6
%498 = add nsw i32 %497, 1
store i32 %498, i32* %6
br label %327
499: ; preds = %327
%500 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.37, i64 0, i64 0), i32 128)
%501 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.38, i64 0, i64 0), i32 20)
%502 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.39, i64 0, i64 0), i32 0)
%503 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.40, i64 0, i64 0), i32 1)
%504 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.41, i64 0, i64 0), i32 2)
%505 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.42, i64 0, i64 0), i32 3)
%506 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%507 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.43, i64 0, i64 0))
store i32 0, i32* %8
store i32 0, i32* %7
br label %508
508: ; preds = %565, %499
%509 = load i32, i32* %7
%510 = icmp slt i32 %509, 3
br i1 %510, label %511, label %568
511: ; preds = %508
%512 = load i32, i32* %7
switch i32 %512, label %519 [
i32 0, label %513
i32 1, label %515
i32 2, label %517
]
513: ; preds = %511
%514 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.44, i64 0, i64 0))
br label %519
515: ; preds = %511
%516 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.45, i64 0, i64 0))
br label %519
517: ; preds = %511
%518 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.46, i64 0, i64 0))
br label %519
519: ; preds = %511, %517, %515, %513
store i32 0, i32* %6
br label %520
520: ; preds = %561, %519
%521 = load i32, i32* %6
%522 = icmp slt i32 %521, 128
br i1 %522, label %523, label %564
523: ; preds = %520
%524 = load i32, i32* %6
%525 = sext i32 %524 to i64
%526 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %525
%527 = load i32, i32* %7
%528 = sext i32 %527 to i64
%529 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %526, i64 0, i64 %528
%530 = getelementptr inbounds [20 x i8], [20 x i8]* %529, i64 0, i64 0
%531 = call i32 @strlen(i8* %530)
%532 = call i64 @calloc(i32 1, i32 %531)
%533 = inttoptr i64 %532 to i8*
store i8* %533, i8** %18
%534 = load i8*, i8** %18
%535 = load i32, i32* %6
%536 = sext i32 %535 to i64
%537 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %536
%538 = load i32, i32* %7
%539 = sext i32 %538 to i64
%540 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %537, i64 0, i64 %539
%541 = getelementptr inbounds [20 x i8], [20 x i8]* %540, i64 0, i64 0
%542 = getelementptr inbounds i8, i8* %541, i64 1
%543 = call i32 (i8*, i8*, ...) @sprintf(i8* %534, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %542)
%544 = load i8*, i8** %18
%545 = load i8*, i8** %18
%546 = call i32 @strlen(i8* %545)
%547 = sub nsw i32 %546, 1
%548 = sext i32 %547 to i64
%549 = getelementptr inbounds i8, i8* %544, i64 %548
store i8 0, i8* %549
%550 = load i8*, i8** %18
%551 = call i32 @strlen(i8* %550)
%552 = icmp sgt i32 %551, 0
br i1 %552, label %553, label %558
553: ; preds = %523
%554 = load i32, i32* %8
%555 = add nsw i32 %554, 1
store i32 %555, i32* %8
%556 = load i8*, i8** %18
%557 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.47, i64 0, i64 0), i32 %554, i8* %556)
br label %558
558: ; preds = %553, %523
%559 = load i8*, i8** %18
%560 = call i32 @free(i8* %559)
br label %561
561: ; preds = %558
%562 = load i32, i32* %6
%563 = add nsw i32 %562, 1
store i32 %563, i32* %6
br label %520
564: ; preds = %520
br label %565
565: ; preds = %564
%566 = load i32, i32* %7
%567 = add nsw i32 %566, 1
store i32 %567, i32* %7
br label %508
568: ; preds = %508
%569 = load i32, i32* %8
%570 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.48, i64 0, i64 0), i32 %569)
%571 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.49, i64 0, i64 0))
%572 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%573 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.50, i64 0, i64 0))
%574 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.51, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.52, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.53, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.55, i64 0, i64 0))
store i32 0, i32* %6
br label %575
575: ; preds = %632, %568
%576 = load i32, i32* %6
%577 = icmp slt i32 %576, 128
br i1 %577, label %578, label %635
578: ; preds = %575
%579 = load i32, i32* %6
%580 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.56, i64 0, i64 0), i32 %579)
store i32 0, i32* %7
br label %581
581: ; preds = %627, %578
%582 = load i32, i32* %7
%583 = icmp slt i32 %582, 3
br i1 %583, label %584, label %630
584: ; preds = %581
%585 = load i32, i32* %6
%586 = sext i32 %585 to i64
%587 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %586
%588 = load i32, i32* %7
%589 = sext i32 %588 to i64
%590 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %587, i64 0, i64 %589
%591 = getelementptr inbounds [20 x i8], [20 x i8]* %590, i64 0, i64 0
%592 = call i32 @strlen(i8* %591)
%593 = call i64 @calloc(i32 1, i32 %592)
%594 = inttoptr i64 %593 to i8*
store i8* %594, i8** %19
%595 = load i8*, i8** %19
%596 = load i32, i32* %6
%597 = sext i32 %596 to i64
%598 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %597
%599 = load i32, i32* %7
%600 = sext i32 %599 to i64
%601 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %598, i64 0, i64 %600
%602 = getelementptr inbounds [20 x i8], [20 x i8]* %601, i64 0, i64 0
%603 = getelementptr inbounds i8, i8* %602, i64 1
%604 = call i32 (i8*, i8*, ...) @sprintf(i8* %595, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %603)
%605 = load i8*, i8** %19
%606 = load i8*, i8** %19
%607 = call i32 @strlen(i8* %606)
%608 = sub nsw i32 %607, 1
%609 = sext i32 %608 to i64
%610 = getelementptr inbounds i8, i8* %605, i64 %609
store i8 0, i8* %610
%611 = load i8*, i8** %19
%612 = call i32 @strlen(i8* %611)
%613 = icmp sgt i32 %612, 0
br i1 %613, label %614, label %617
614: ; preds = %584
%615 = load i8*, i8** %19
%616 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.57, i64 0, i64 0), i8* %615)
br label %619
617: ; preds = %584
%618 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.58, i64 0, i64 0))
br label %619
619: ; preds = %617, %614
%620 = load i32, i32* %7
%621 = icmp slt i32 %620, 2
br i1 %621, label %622, label %624
622: ; preds = %619
%623 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.59, i64 0, i64 0))
br label %624
624: ; preds = %622, %619
%625 = load i8*, i8** %19
%626 = call i32 @free(i8* %625)
br label %627
627: ; preds = %624
%628 = load i32, i32* %7
%629 = add nsw i32 %628, 1
store i32 %629, i32* %7
br label %581
630: ; preds = %581
%631 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.60, i64 0, i64 0))
br label %632
632: ; preds = %630
%633 = load i32, i32* %6
%634 = add nsw i32 %633, 1
store i32 %634, i32* %6
br label %575
635: ; preds = %575
%636 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.61, i64 0, i64 0))
%637 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%638 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.62, i64 0, i64 0))
%639 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.51, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.52, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.53, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.55, i64 0, i64 0))
store i32 0, i32* %6
br label %640
640: ; preds = %661, %635
%641 = load i32, i32* %6
%642 = icmp slt i32 %641, 128
br i1 %642, label %643, label %664
643: ; preds = %640
%644 = load i32, i32* %6
%645 = load i32, i32* %6
%646 = sext i32 %645 to i64
%647 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %646
%648 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %647, i64 0, i64 0
%649 = getelementptr inbounds [20 x i8], [20 x i8]* %648, i64 0, i64 0
%650 = load i32, i32* %6
%651 = sext i32 %650 to i64
%652 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %651
%653 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %652, i64 0, i64 1
%654 = getelementptr inbounds [20 x i8], [20 x i8]* %653, i64 0, i64 0
%655 = load i32, i32* %6
%656 = sext i32 %655 to i64
%657 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %10, i64 0, i64 %656
%658 = getelementptr inbounds [3 x [20 x i8]], [3 x [20 x i8]]* %657, i64 0, i64 2
%659 = getelementptr inbounds [20 x i8], [20 x i8]* %658, i64 0, i64 0
%660 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.63, i64 0, i64 0), i32 %644, i8* %649, i8* %654, i8* %659)
br label %661
661: ; preds = %643
%662 = load i32, i32* %6
%663 = add nsw i32 %662, 1
store i32 %663, i32* %6
br label %640
664: ; preds = %640
%665 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.61, i64 0, i64 0))
store i32 0, i32* %3
br label %666
666: ; preds = %664, %22
%667 = load i32, i32* %3
ret i32 %667
}

LLVM IR (-O2):
@.str.1 = [48 x i8] c"%s is to prepare a hader file from a map file.\0A\00"
@.str.2 = [259 x i8] c"Ex:\0A\09mkdir kbdmap\0A\09files included in the us.map.gz are;\0A\09\09compose.latin1\0A\09\09euro1.map\0A\09\09linux-keys-bare.inc\0A\09\09linux-with-alt-and-altgr.inc\0A\09\09qwerty-layout.inc\0A\09copy all_of_them_and_the_us.map.gz to kbdmap\0A\09gunzip us.map.gz\0A\09cat * > usmap\0A\09%s usmap > usmap.h\0A\0A\00"
@.str.4 = [3 x i8] c"rt\00"
@.str.5 = [3 x i8] c"\22\22\00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [8 x i8] c"keycode\00"
@.str.8 = [17 x i8] c"%s %d = %s %s %s\00"
@.str.9 = [5 x i8] c"\22%s\22\00"
@.str.10 = [2 x i8] c"#\00"
@.str.11 = [6 x i8] c"plain\00"
@.str.12 = [14 x i8] c"%s %s %d = %s\00"
@.str.13 = [6 x i8] c"shift\00"
@.str.14 = [6 x i8] c"altgr\00"
@.str.15 = [5 x i8] c"\22%c\22\00"
@.str.16 = [7 x i8] c"\22KP_0\22\00"
@.str.17 = [9 x i8] c"\22INSERT\22\00"
@.str.18 = [7 x i8] c"\22KP_1\22\00"
@.str.19 = [6 x i8] c"\22END\22\00"
@.str.20 = [7 x i8] c"\22KP_2\22\00"
@.str.21 = [7 x i8] c"\22DOWN\22\00"
@.str.22 = [7 x i8] c"\22KP_3\22\00"
@.str.23 = [11 x i8] c"\22PAGEDOWN\22\00"
@.str.24 = [7 x i8] c"\22KP_4\22\00"
@.str.25 = [7 x i8] c"\22LEFT\22\00"
@.str.26 = [7 x i8] c"\22KP_5\22\00"
@.str.27 = [7 x i8] c"\22KP_6\22\00"
@.str.29 = [7 x i8] c"\22KP_7\22\00"
@.str.30 = [7 x i8] c"\22HOME\22\00"
@.str.31 = [7 x i8] c"\22KP_8\22\00"
@.str.32 = [5 x i8] c"\22UP\22\00"
@.str.33 = [7 x i8] c"\22KP_9\22\00"
@.str.34 = [9 x i8] c"\22PAGEUP\22\00"
@.str.35 = [12 x i8] c"\22KP_PERIOD\22\00"
@.str.36 = [9 x i8] c"\22REMOVE\22\00"
@.str.37 = [25 x i8] c"#define KEYCODE_KEYS\09%d\0A\00"
@.str.38 = [31 x i8] c"#define KEYCODE_MAXNAMELEN\09%d\0A\00"
@.str.39 = [26 x i8] c"#define KEYCODE_PLAIN\09%d\0A\00"
@.str.40 = [26 x i8] c"#define KEYCODE_SHIFT\09%d\0A\00"
@.str.41 = [26 x i8] c"#define KEYCODE_ALTGR\09%d\0A\00"
@.str.42 = [26 x i8] c"#define KEYCODE_FLAGS\09%d\0A\00"
@.str.47 = [23 x i8] c"/* %3d */ XYNTHK_%s,\0A\00"
@.str.48 = [25 x i8] c"/* %3d */ XYNTHK_CODES\0A\00"
@.str.51 = [25 x i8] c"/*%10s %18s %18s %17s*/\0A\00"
@.str.52 = [9 x i8] c"keycode,\00"
@.str.53 = [12 x i8] c"plain name,\00"
@.str.54 = [12 x i8] c"shift name,\00"
@.str.55 = [12 x i8] c"altgr name \00"
@.str.56 = [13 x i8] c"/* %3d */ {\00"
@.str.57 = [10 x i8] c"XYNTHK_%s\00"
@.str.58 = [13 x i8] c"XYNTH_NOCODE\00"
@.str.59 = [3 x i8] c",\09\00"
@.str.63 = [30 x i8] c"/* %3d */ {%18s,%18s,%18s},\0A\00"
@str = [15 x i8] c"typedef enum {\00"
@str.64 = [15 x i8] c"} XYNTHK_CODE;\00"
@str.65 = [86 x i8] c"static XYNTHK_CODE kbd_keycodes_[KEYCODE_KEYS][KEYCODE_FLAGS][KEYCODE_MACNAMELEN] = {\00"
@str.67 = [78 x i8] c"static char kbd_keycodes[KEYCODE_KEYS][KEYCODE_FLAGS][KEYCODE_MAXNAMELEN] = {\00"
@str.68 = [3 x i8] c"};\00"
@str.69 = [3 x i8] c"},\00"
@str.70 = [12 x i8] c"/* ALTGR */\00"
@str.71 = [12 x i8] c"/* Shift */\00"
@str.72 = [12 x i8] c"/* Plain */\00"
@str.73 = [32 x i8] c"Alper Akcan, distchx@yahoo.com\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [128 x [3 x [20 x i8]]]
%4 = alloca [400 x i8]
%5 = alloca [400 x i8]
%6 = alloca [400 x i8]
%7 = alloca [400 x i8]
%8 = alloca [400 x i8]
%9 = alloca i32
%10 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 0, i64 0, i64 0
%11 = getelementptr inbounds [400 x i8], [400 x i8]* %4, i64 0, i64 0
%12 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%13 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 0
%14 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 0
%15 = getelementptr inbounds [400 x i8], [400 x i8]* %8, i64 0, i64 0
%16 = bitcast i32* %9 to i8*
%17 = icmp slt i32 %0, 2
br i1 %17, label %18, label %26
18: ; preds = %2
%19 = tail call i32 @putchar(i32 10)
%20 = load i8*, i8** %1
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0), i8* %20)
%22 = tail call i32 @putchar(i32 10)
%23 = load i8*, i8** %1
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([259 x i8], [259 x i8]* @.str.2, i64 0, i64 0), i8* %23)
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.73, i64 0, i64 0))
br label %395
26: ; preds = %2
%27 = bitcast [128 x [3 x [20 x i8]]]* %3 to i8***
%28 = call i32 @memset(i8*** %27, i32 0, i32 7680)
%29 = getelementptr inbounds i8*, i8** %1, i64 1
%30 = load i8*, i8** %29
%31 = call i32* @fopen(i8* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %32
32: ; preds = %26, %32
%33 = phi i64 [ 0, %26 ], [ %37, %32 ]
%34 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %33, i64 0, i64 0
%35 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %33, i64 1, i64 0
%36 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %33, i64 2, i64 0
%37 = add nuw nsw i64 %33, 1
%38 = icmp eq i64 %37, 128
br i1 %38, label %39, label %32
39: ; preds = %32
%40 = call i32 @feof(i32* %31)
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %103
42: ; preds = %39, %100
%43 = call i32 @fgets(i8* %11, i32 400, i32* %31)
%44 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %12)
store i8 0, i8* %14
store i8 0, i8* %15
%45 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %73
47: ; preds = %42
%48 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i8* %12, i32* %9, i8* %13, i8* %14, i8* %15)
%49 = load i32, i32* %9
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %50, i64 0, i64 0
%52 = call i32 (i8*, i8*, ...) @sprintf(i8* %51, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %13)
%53 = call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%54 = icmp ne i64 %53, 0
%55 = load i8, i8* %14
%56 = icmp ne i8 %55, 0
%57 = select i1 %54, i1 %56, i1 false
br i1 %57, label %58, label %73
58: ; preds = %47
%59 = load i32, i32* %9
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %60, i64 1, i64 0
%62 = call i32 (i8*, i8*, ...) @sprintf(i8* %61, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %14)
%63 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%64 = icmp ne i64 %63, 0
%65 = load i8, i8* %15
%66 = icmp ne i8 %65, 0
%67 = select i1 %64, i1 %66, i1 false
br i1 %67, label %68, label %73
68: ; preds = %58
%69 = load i32, i32* %9
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %70, i64 2, i64 0
%72 = call i32 (i8*, i8*, ...) @sprintf(i8* %71, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %15)
br label %73
73: ; preds = %47, %68, %58, %42
%74 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %82
76: ; preds = %73
%77 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i8* %12, i8* %12, i32* %9, i8* %13)
%78 = load i32, i32* %9
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %79, i64 0, i64 0
%81 = call i32 (i8*, i8*, ...) @sprintf(i8* %80, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %13)
br label %82
82: ; preds = %76, %73
%83 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %91
85: ; preds = %82
%86 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i8* %12, i8* %12, i32* %9, i8* %13)
%87 = load i32, i32* %9
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %88, i64 1, i64 0
%90 = call i32 (i8*, i8*, ...) @sprintf(i8* %89, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %13)
br label %91
91: ; preds = %85, %82
%92 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%93 = icmp eq i64 %92, 0
br i1 %93, label %94, label %100
94: ; preds = %91
%95 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i8* %12, i8* %12, i32* %9, i8* %13)
%96 = load i32, i32* %9
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %97, i64 2, i64 0
%99 = call i32 (i8*, i8*, ...) @sprintf(i8* %98, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %13)
br label %100
100: ; preds = %94, %91
%101 = call i32 @feof(i32* %31)
%102 = icmp eq i32 %101, 0
br i1 %102, label %42, label %103
103: ; preds = %100, %39
br label %104
104: ; preds = %103, %144
%105 = phi i64 [ %145, %144 ], [ 0, %103 ]
%106 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %105, i64 0, i64 0
%107 = call i32 @strlen(i8* %106)
%108 = icmp sgt i32 %107, 0
br i1 %108, label %113, label %109
109: ; preds = %113, %104
%110 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %105, i64 1, i64 0
%111 = call i32 @strlen(i8* %110)
%112 = icmp sgt i32 %111, 0
br i1 %112, label %126, label %122
113: ; preds = %104, %113
%114 = phi i64 [ %118, %113 ], [ 0, %104 ]
%115 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %105, i64 0, i64 %114
%116 = load i8, i8* %115
%117 = call signext i8 @toupper(i8 signext %116)
store i8 %117, i8* %115
%118 = add nuw nsw i64 %114, 1
%119 = call i32 @strlen(i8* %106)
%120 = sext i32 %119 to i64
%121 = icmp slt i64 %118, %120
br i1 %121, label %113, label %109
122: ; preds = %126, %109
%123 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %105, i64 2, i64 0
%124 = call i32 @strlen(i8* %123)
%125 = icmp sgt i32 %124, 0
br i1 %125, label %135, label %144
126: ; preds = %109, %126
%127 = phi i64 [ %131, %126 ], [ 0, %109 ]
%128 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %105, i64 1, i64 %127
%129 = load i8, i8* %128
%130 = call signext i8 @toupper(i8 signext %129)
store i8 %130, i8* %128
%131 = add nuw nsw i64 %127, 1
%132 = call i32 @strlen(i8* %110)
%133 = sext i32 %132 to i64
%134 = icmp slt i64 %131, %133
br i1 %134, label %126, label %122
135: ; preds = %122, %135
%136 = phi i64 [ %140, %135 ], [ 0, %122 ]
%137 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %105, i64 2, i64 %136
%138 = load i8, i8* %137
%139 = call signext i8 @toupper(i8 signext %138)
store i8 %139, i8* %137
%140 = add nuw nsw i64 %136, 1
%141 = call i32 @strlen(i8* %123)
%142 = sext i32 %141 to i64
%143 = icmp slt i64 %140, %142
br i1 %143, label %135, label %144
144: ; preds = %135, %122
%145 = add nuw nsw i64 %105, 1
%146 = icmp eq i64 %145, 128
br i1 %146, label %147, label %104
147: ; preds = %144, %163
%148 = phi i32 [ %164, %163 ], [ 65, %144 ]
%149 = call i32 (i8*, i8*, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 %148)
%150 = add nuw nsw i32 %148, 32
br label %151
151: ; preds = %147, %160
%152 = phi i64 [ 0, %147 ], [ %161, %160 ]
%153 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %152, i64 0, i64 0
%154 = call i64 @strcmp(i8* %153, i8* %12)
%155 = icmp eq i64 %154, 0
br i1 %155, label %156, label %160
156: ; preds = %151
%157 = call i32 (i8*, i8*, ...) @sprintf(i8* %153, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 %150)
%158 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %152, i64 1, i64 0
%159 = call i32 (i8*, i8*, ...) @sprintf(i8* %158, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 %148)
br label %160
160: ; preds = %151, %156
%161 = add nuw nsw i64 %152, 1
%162 = icmp eq i64 %161, 128
br i1 %162, label %163, label %151
163: ; preds = %160
%164 = add nuw nsw i32 %148, 1
%165 = icmp eq i32 %164, 91
br i1 %165, label %166, label %147
166: ; preds = %163, %224
%167 = phi i64 [ %225, %224 ], [ 0, %163 ]
%168 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %167, i64 0, i64 0
%169 = call i64 @strcmp(i8* %168, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
%170 = icmp eq i64 %169, 0
br i1 %170, label %171, label %173
171: ; preds = %166
%172 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %167, i64 1, i64 0
br label %173
173: ; preds = %171, %166
%174 = call i64 @strcmp(i8* %168, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
%175 = icmp eq i64 %174, 0
br i1 %175, label %176, label %178
176: ; preds = %173
%177 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %167, i64 1, i64 0
br label %178
178: ; preds = %176, %173
%179 = call i64 @strcmp(i8* %168, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
%180 = icmp eq i64 %179, 0
br i1 %180, label %181, label %183
181: ; preds = %178
%182 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %167, i64 1, i64 0
br label %183
183: ; preds = %181, %178
%184 = call i64 @strcmp(i8* %168, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
%185 = icmp eq i64 %184, 0
br i1 %185, label %186, label %188
186: ; preds = %183
%187 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %167, i64 1, i64 0
br label %188
188: ; preds = %186, %183
%189 = call i64 @strcmp(i8* %168, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.24, i64 0, i64 0))
%190 = icmp eq i64 %189, 0
br i1 %190, label %191, label %193
191: ; preds = %188
%192 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %167, i64 1, i64 0
br label %193
193: ; preds = %191, %188
%194 = call i64 @strcmp(i8* %168, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0))
%195 = icmp eq i64 %194, 0
br i1 %195, label %196, label %198
196: ; preds = %193
%197 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %167, i64 1, i64 0
br label %198
198: ; preds = %196, %193
%199 = call i64 @strcmp(i8* %168, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0))
%200 = icmp eq i64 %199, 0
br i1 %200, label %201, label %204
201: ; preds = %198
%202 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %167, i64 1, i64 0
%203 = bitcast i8* %202 to i64*
store i64 9662818618528290, i64* %203
br label %204
204: ; preds = %201, %198
%205 = call i64 @strcmp(i8* %168, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.29, i64 0, i64 0))
%206 = icmp eq i64 %205, 0
br i1 %206, label %207, label %209
207: ; preds = %204
%208 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %167, i64 1, i64 0
br label %209
209: ; preds = %207, %204
%210 = call i64 @strcmp(i8* %168, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.31, i64 0, i64 0))
%211 = icmp eq i64 %210, 0
br i1 %211, label %212, label %214
212: ; preds = %209
%213 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %167, i64 1, i64 0
br label %214
214: ; preds = %212, %209
%215 = call i64 @strcmp(i8* %168, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.33, i64 0, i64 0))
%216 = icmp eq i64 %215, 0
br i1 %216, label %217, label %219
217: ; preds = %214
%218 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %167, i64 1, i64 0
br label %219
219: ; preds = %217, %214
%220 = call i64 @strcmp(i8* %168, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.35, i64 0, i64 0))
%221 = icmp eq i64 %220, 0
br i1 %221, label %222, label %224
222: ; preds = %219
%223 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %167, i64 1, i64 0
br label %224
224: ; preds = %219, %222
%225 = add nuw nsw i64 %167, 1
%226 = icmp eq i64 %225, 128
br i1 %226, label %227, label %166
227: ; preds = %224
%228 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.37, i64 0, i64 0), i32 128)
%229 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.38, i64 0, i64 0), i32 20)
%230 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.39, i64 0, i64 0), i32 0)
%231 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.40, i64 0, i64 0), i32 1)
%232 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.41, i64 0, i64 0), i32 2)
%233 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.42, i64 0, i64 0), i32 3)
%234 = call i32 @putchar(i32 10)
%235 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%236 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.72, i64 0, i64 0))
br label %237
237: ; preds = %227, %255
%238 = phi i64 [ 0, %227 ], [ %258, %255 ]
%239 = phi i32 [ 0, %227 ], [ %256, %255 ]
%240 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %238, i64 0, i64 0
%241 = call i32 @strlen(i8* %240)
%242 = call i64 @calloc(i32 1, i32 %241)
%243 = inttoptr i64 %242 to i8*
%244 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %238, i64 0, i64 1
%245 = call i8* @strcpy(i8* dereferenceable(1) %243, i8* %244)
%246 = call i32 @strlen(i8* %243)
%247 = add nsw i32 %246, -1
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds i8, i8* %243, i64 %248
store i8 0, i8* %249
%250 = call i32 @strlen(i8* %243)
%251 = icmp sgt i32 %250, 0
br i1 %251, label %252, label %255
252: ; preds = %237
%253 = add nsw i32 %239, 1
%254 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.47, i64 0, i64 0), i32 %239, i8* %243)
br label %255
255: ; preds = %252, %237
%256 = phi i32 [ %253, %252 ], [ %239, %237 ]
%257 = call i32 @free(i8* %243)
%258 = add nuw nsw i64 %238, 1
%259 = icmp eq i64 %258, 128
br i1 %259, label %260, label %237
260: ; preds = %255
%261 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.71, i64 0, i64 0))
br label %262
262: ; preds = %280, %260
%263 = phi i64 [ 0, %260 ], [ %283, %280 ]
%264 = phi i32 [ %256, %260 ], [ %281, %280 ]
%265 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %263, i64 1, i64 0
%266 = call i32 @strlen(i8* %265)
%267 = call i64 @calloc(i32 1, i32 %266)
%268 = inttoptr i64 %267 to i8*
%269 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %263, i64 1, i64 1
%270 = call i8* @strcpy(i8* dereferenceable(1) %268, i8* %269)
%271 = call i32 @strlen(i8* %268)
%272 = add nsw i32 %271, -1
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds i8, i8* %268, i64 %273
store i8 0, i8* %274
%275 = call i32 @strlen(i8* %268)
%276 = icmp sgt i32 %275, 0
br i1 %276, label %277, label %280
277: ; preds = %262
%278 = add nsw i32 %264, 1
%279 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.47, i64 0, i64 0), i32 %264, i8* %268)
br label %280
280: ; preds = %277, %262
%281 = phi i32 [ %278, %277 ], [ %264, %262 ]
%282 = call i32 @free(i8* %268)
%283 = add nuw nsw i64 %263, 1
%284 = icmp eq i64 %283, 128
br i1 %284, label %285, label %262
285: ; preds = %280
%286 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.70, i64 0, i64 0))
br label %287
287: ; preds = %305, %285
%288 = phi i64 [ 0, %285 ], [ %308, %305 ]
%289 = phi i32 [ %281, %285 ], [ %306, %305 ]
%290 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %288, i64 2, i64 0
%291 = call i32 @strlen(i8* %290)
%292 = call i64 @calloc(i32 1, i32 %291)
%293 = inttoptr i64 %292 to i8*
%294 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %288, i64 2, i64 1
%295 = call i8* @strcpy(i8* dereferenceable(1) %293, i8* %294)
%296 = call i32 @strlen(i8* %293)
%297 = add nsw i32 %296, -1
%298 = sext i32 %297 to i64
%299 = getelementptr inbounds i8, i8* %293, i64 %298
store i8 0, i8* %299
%300 = call i32 @strlen(i8* %293)
%301 = icmp sgt i32 %300, 0
br i1 %301, label %302, label %305
302: ; preds = %287
%303 = add nsw i32 %289, 1
%304 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.47, i64 0, i64 0), i32 %289, i8* %293)
br label %305
305: ; preds = %302, %287
%306 = phi i32 [ %303, %302 ], [ %289, %287 ]
%307 = call i32 @free(i8* %293)
%308 = add nuw nsw i64 %288, 1
%309 = icmp eq i64 %308, 128
br i1 %309, label %310, label %287
310: ; preds = %305
%311 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.48, i64 0, i64 0), i32 %306)
%312 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.64, i64 0, i64 0))
%313 = call i32 @putchar(i32 10)
%314 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.65, i64 0, i64 0))
%315 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.51, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.52, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.53, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.55, i64 0, i64 0))
br label %316
316: ; preds = %310, %374
%317 = phi i64 [ 0, %310 ], [ %377, %374 ]
%318 = trunc i64 %317 to i32
%319 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.56, i64 0, i64 0), i32 %318)
%320 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %317, i64 0, i64 0
%321 = call i32 @strlen(i8* %320)
%322 = call i64 @calloc(i32 1, i32 %321)
%323 = inttoptr i64 %322 to i8*
%324 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %317, i64 0, i64 1
%325 = call i8* @strcpy(i8* dereferenceable(1) %323, i8* %324)
%326 = call i32 @strlen(i8* %323)
%327 = add nsw i32 %326, -1
%328 = sext i32 %327 to i64
%329 = getelementptr inbounds i8, i8* %323, i64 %328
store i8 0, i8* %329
%330 = call i32 @strlen(i8* %323)
%331 = icmp sgt i32 %330, 0
br i1 %331, label %332, label %334
332: ; preds = %316
%333 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.57, i64 0, i64 0), i8* %323)
br label %336
334: ; preds = %316
%335 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.58, i64 0, i64 0))
br label %336
336: ; preds = %334, %332
%337 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.59, i64 0, i64 0))
%338 = call i32 @free(i8* %323)
%339 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %317, i64 1, i64 0
%340 = call i32 @strlen(i8* %339)
%341 = call i64 @calloc(i32 1, i32 %340)
%342 = inttoptr i64 %341 to i8*
%343 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %317, i64 1, i64 1
%344 = call i8* @strcpy(i8* dereferenceable(1) %342, i8* %343)
%345 = call i32 @strlen(i8* %342)
%346 = add nsw i32 %345, -1
%347 = sext i32 %346 to i64
%348 = getelementptr inbounds i8, i8* %342, i64 %347
store i8 0, i8* %348
%349 = call i32 @strlen(i8* %342)
%350 = icmp sgt i32 %349, 0
br i1 %350, label %353, label %351
351: ; preds = %336
%352 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.58, i64 0, i64 0))
br label %355
353: ; preds = %336
%354 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.57, i64 0, i64 0), i8* %342)
br label %355
355: ; preds = %353, %351
%356 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.59, i64 0, i64 0))
%357 = call i32 @free(i8* %342)
%358 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %317, i64 2, i64 0
%359 = call i32 @strlen(i8* %358)
%360 = call i64 @calloc(i32 1, i32 %359)
%361 = inttoptr i64 %360 to i8*
%362 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %317, i64 2, i64 1
%363 = call i8* @strcpy(i8* dereferenceable(1) %361, i8* %362)
%364 = call i32 @strlen(i8* %361)
%365 = add nsw i32 %364, -1
%366 = sext i32 %365 to i64
%367 = getelementptr inbounds i8, i8* %361, i64 %366
store i8 0, i8* %367
%368 = call i32 @strlen(i8* %361)
%369 = icmp sgt i32 %368, 0
br i1 %369, label %372, label %370
370: ; preds = %355
%371 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.58, i64 0, i64 0))
br label %374
372: ; preds = %355
%373 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.57, i64 0, i64 0), i8* %361)
br label %374
374: ; preds = %370, %372
%375 = call i32 @free(i8* %361)
%376 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.69, i64 0, i64 0))
%377 = add nuw nsw i64 %317, 1
%378 = icmp eq i64 %377, 128
br i1 %378, label %379, label %316
379: ; preds = %374
%380 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.68, i64 0, i64 0))
%381 = call i32 @putchar(i32 10)
%382 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.67, i64 0, i64 0))
%383 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.51, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.52, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.53, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.55, i64 0, i64 0))
br label %384
384: ; preds = %379, %384
%385 = phi i64 [ 0, %379 ], [ %391, %384 ]
%386 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %385, i64 0, i64 0
%387 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %385, i64 1, i64 0
%388 = getelementptr inbounds [128 x [3 x [20 x i8]]], [128 x [3 x [20 x i8]]]* %3, i64 0, i64 %385, i64 2, i64 0
%389 = trunc i64 %385 to i32
%390 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.63, i64 0, i64 0), i32 %389, i8* %386, i8* %387, i8* %388)
%391 = add nuw nsw i64 %385, 1
%392 = icmp eq i64 %391, 128
br i1 %392, label %393, label %384
393: ; preds = %384
%394 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.68, i64 0, i64 0))
br label %395
395: ; preds = %393, %18
ret i32 0
}