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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int EOF;
int /*<<< orphan*/ exit(int);
int getc(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int scanf(char *, int *);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ ungetc(int, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  int variants[10 * 8176];
  int uni2index[0x10000];
  int index;
  if (argc != 1)
    exit(1);
  printf("/*\n");
  printf(" * Copyright (C) 1999-2002 Free Software Foundation, Inc.\n");
  printf(" * This file is part of the GNU LIBICONV Library.\n");
  printf(" *\n");
  printf(" * The GNU LIBICONV Library is free software; you can redistribute "
         "it\n");
  printf(" * and/or modify it under the terms of the GNU Library General "
         "Public\n");
  printf(" * License as published by the Free Software Foundation; either "
         "version 2\n");
  printf(" * of the License, or (at your option) any later version.\n");
  printf(" *\n");
  printf(" * The GNU LIBICONV Library is distributed in the hope that it will "
         "be\n");
  printf(" * useful, but WITHOUT ANY WARRANTY; without even the implied "
         "warranty of\n");
  printf(
      " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n");
  printf(" * Library General Public License for more details.\n");
  printf(" *\n");
  printf(
      " * You should have received a copy of the GNU Library General Public\n");
  printf(" * License along with the GNU LIBICONV Library; see the file "
         "COPYING.LIB.\n");
  printf(" * If not, see <https://www.gnu.org/licenses/>.\n");
  printf(" */\n");
  printf("\n");
  printf("/*\n");
  printf(" * CJK variants table\n");
  printf(" */\n");
  printf("\n");
  {
    int c;
    int j;
    for (j = 0; j < 0x10000; j++)
      uni2index[j] = -1;
    index = 0;
    for (;;) {
      c = getc(stdin);
      if (c == EOF)
        break;
      if (c == '#') {
        do {
          c = getc(stdin);
        } while (!(c == EOF || c == '\n'));
        continue;
      }
      ungetc(c, stdin);
      if (scanf("%x", &j) != 1)
        exit(1);
      c = getc(stdin);
      if (c != '\t')
        exit(1);
      uni2index[j] = index;
      for (;;) {
        int i;
        if (scanf("%x", &i) != 1)
          exit(1);
        if (!(i >= 0x3000 && i < 0x3000 + 0x8000))
          exit(1);
        variants[index++] = i - 0x3000;
        c = getc(stdin);
        if (c != ' ')
          break;
      }
      variants[index - 1] |= 0x8000;
      if (c != '\n')
        exit(1);
    }
  }
  printf("static const unsigned short cjk_variants[%d] = {", index);
  {
    int i;
    for (i = 0; i < index; i++) {
      if ((i % 8) == 0)
        printf("\n ");
      printf(" 0x%04x,", variants[i]);
    }
    printf("\n};\n");
  }
  printf("\n");
  printf("static const short cjk_variants_indx[0x5200] = {\n");
  {
    int j;
    for (j = 0x4e00; j < 0xa000; j++) {
      if ((j % 0x100) == 0)
        printf("  /* 0x%04x */\n", j);
      if ((j % 8) == 0)
        printf(" ");
      printf(" %5d,", uni2index[j]);
      if ((j % 8) == 7)
        printf("\n");
    }
    printf("};\n");
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x8fdb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
je     117d <main+0x2d>
mov    $0x1,%edi
call   1060 <exit@plt>
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1037(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe38(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1050(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1088(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10c5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1181(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10be(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1149(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8fd9c(%rbp)
cmpl   $0x10000,-0x8fd9c(%rbp)
jge    12ff <main+0x1af>
movslq -0x8fd9c(%rbp),%rax
movl   $0xffffffff,-0x8fd90(%rbp,%rax,4)
ff ff ff ff
mov    -0x8fd9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8fd9c(%rbp)
jmp    12c9 <main+0x179>
movl   $0x0,-0x8fd94(%rbp)
mov    0x2cd8(%rip),%rax
mov    (%rax),%edi
call   1070 <getc@plt>
mov    %eax,-0x8fd98(%rbp)
mov    -0x8fd98(%rbp),%eax
mov    0x2cb6(%rip),%rcx
cmp    (%rcx),%eax
jne    1337 <main+0x1e7>
jmp    14f4 <main+0x3a4>
cmpl   $0x23,-0x8fd98(%rbp)
jne    139f <main+0x24f>
jmp    1349 <main+0x1f9>
mov    0x2c98(%rip),%rax
mov    (%rax),%edi
call   1070 <getc@plt>
mov    %eax,-0x8fd98(%rbp)
mov    -0x8fd98(%rbp),%ecx
mov    $0x1,%al
mov    0x2c74(%rip),%rdx
cmp    (%rdx),%ecx
mov    %al,-0x8fda9(%rbp)
je     138a <main+0x23a>
cmpl   $0xa,-0x8fd98(%rbp)
sete   %al
mov    %al,-0x8fda9(%rbp)
mov    -0x8fda9(%rbp),%al
xor    $0xff,%al
test   $0x1,%al
jne    1349 <main+0x1f9>
jmp    1309 <main+0x1b9>
mov    -0x8fd98(%rbp),%edi
mov    0x2c3c(%rip),%rax
mov    (%rax),%esi
call   1040 <ungetc@plt>
lea    0xfb7(%rip),%rdi
lea    -0x8fd9c(%rbp),%rsi
call   1050 <scanf@plt>
cmp    $0x1,%eax
je     13d9 <main+0x289>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    0x2c08(%rip),%rax
mov    (%rax),%edi
call   1070 <getc@plt>
mov    %eax,-0x8fd98(%rbp)
cmpl   $0x9,-0x8fd98(%rbp)
je     1404 <main+0x2b4>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    -0x8fd94(%rbp),%ecx
movslq -0x8fd9c(%rbp),%rax
mov    %ecx,-0x8fd90(%rbp,%rax,4)
lea    0xf52(%rip),%rdi
lea    -0x8fda0(%rbp),%rsi
call   1050 <scanf@plt>
cmp    $0x1,%eax
je     143e <main+0x2ee>
mov    $0x1,%edi
call   1060 <exit@plt>
cmpl   $0x3000,-0x8fda0(%rbp)
jl     145e <main+0x30e>
cmpl   $0xb000,-0x8fda0(%rbp)
jl     1468 <main+0x318>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    -0x8fda0(%rbp),%ecx
sub    $0x3000,%ecx
mov    -0x8fd94(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x8fd94(%rbp)
cltq
mov    %ecx,-0x4fd90(%rbp,%rax,4)
mov    0x2b53(%rip),%rax
mov    (%rax),%edi
call   1070 <getc@plt>
mov    %eax,-0x8fd98(%rbp)
cmpl   $0x20,-0x8fd98(%rbp)
je     14b4 <main+0x364>
jmp    14b9 <main+0x369>
jmp    1418 <main+0x2c8>
mov    -0x8fd94(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x4fd90(%rbp,%rax,4),%ecx
or     $0x8000,%ecx
mov    %ecx,-0x4fd90(%rbp,%rax,4)
cmpl   $0xa,-0x8fd98(%rbp)
je     14ef <main+0x39f>
mov    $0x1,%edi
call   1060 <exit@plt>
jmp    1309 <main+0x1b9>
mov    -0x8fd94(%rbp),%esi
lea    0xe73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8fda4(%rbp)
mov    -0x8fda4(%rbp),%eax
cmp    -0x8fd94(%rbp),%eax
jge    1579 <main+0x429>
mov    -0x8fda4(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1549 <main+0x3f9>
lea    0xe63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x8fda4(%rbp),%rax
mov    -0x4fd90(%rbp,%rax,4),%esi
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8fda4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8fda4(%rbp)
jmp    1512 <main+0x3c2>
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xae6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x4e00,-0x8fda8(%rbp)
cmpl   $0xa000,-0x8fda8(%rbp)
jge    1667 <main+0x517>
mov    -0x8fda8(%rbp),%eax
mov    $0x100,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    15e8 <main+0x498>
mov    -0x8fda8(%rbp),%esi
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8fda8(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    160d <main+0x4bd>
lea    0xda0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x8fda8(%rbp),%rax
mov    -0x8fd90(%rbp,%rax,4),%esi
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8fda8(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x7,%edx
jne    164e <main+0x4fe>
lea    0xa2d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1653 <main+0x503>
mov    -0x8fda8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8fda8(%rbp)
jmp    15ad <main+0x45d>
lea    0xd44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x9f8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8fdb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x8fd98,%rsp
cmp    $0x1,%edi
jne    13a8 <main+0x228>
lea    0x11fd(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xea6(%rip),%rdi
call   1040 <puts@plt>
lea    0xed4(%rip),%rdi
call   1040 <puts@plt>
lea    0x1114(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xeeb(%rip),%rdi
call   1040 <puts@plt>
lea    0xf25(%rip),%rdi
call   1040 <puts@plt>
lea    0xf5f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf9d(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xfc3(%rip),%rdi
call   1040 <puts@plt>
lea    0xffe(%rip),%rdi
call   1040 <puts@plt>
lea    0x103c(%rip),%rdi
call   1040 <puts@plt>
lea    0x1075(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x1098(%rip),%rdi
call   1040 <puts@plt>
lea    0x10d1(%rip),%rdi
call   1040 <puts@plt>
lea    0x110f(%rip),%rdi
call   1040 <puts@plt>
lea    0x114c(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0x1115(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10(%rsp),%rdi
mov    $0x40000,%edx
mov    $0xff,%esi
call   1060 <memset@plt>
movl   $0x10000,0x8(%rsp)
xor    %r13d,%r13d
mov    0x2d1f(%rip),%rbx
mov    0x2d10(%rip),%rbp
lea    0xd29(%rip),%r14
lea    0x8(%rsp),%r15
nopl   0x0(%rax)
mov    (%rbx),%edi
call   10a0 <getc@plt>
cmp    0x0(%rbp),%eax
je     13b2 <main+0x232>
cmp    $0x23,%eax
jne    1313 <main+0x193>
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%rbx),%edi
call   10a0 <getc@plt>
cmp    $0xa,%eax
je     12e0 <main+0x160>
cmp    0x0(%rbp),%eax
jne    1300 <main+0x180>
jmp    12e0 <main+0x160>
mov    (%rbx),%esi
mov    %eax,%edi
call   1070 <ungetc@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1080 <scanf@plt>
cmp    $0x1,%eax
jne    13a8 <main+0x228>
mov    (%rbx),%edi
call   10a0 <getc@plt>
cmp    $0x9,%eax
jne    13a8 <main+0x228>
movslq 0x8(%rsp),%rax
mov    %r13d,0x10(%rsp,%rax,4)
movslq %r13d,%rax
lea    (%rsp,%rax,4),%r15
add    $0x40010,%r15
mov    %r14,%rdi
lea    0xc(%rsp),%rsi
call   1080 <scanf@plt>
cmp    $0x1,%eax
jne    13a8 <main+0x228>
mov    0xc(%rsp),%r12d
mov    $0xffffd000,%eax
add    %eax,%r12d
cmp    $0x8000,%r12d
jae    13a8 <main+0x228>
mov    %r12d,(%r15)
mov    (%rbx),%edi
call   10a0 <getc@plt>
add    $0x4,%r15
add    $0x1,%r13d
cmp    $0x20,%eax
je     1350 <main+0x1d0>
or     $0x8000,%r12d
mov    %r12d,-0x4(%r15)
cmp    $0xa,%eax
lea    0x8(%rsp),%r15
je     12e0 <main+0x160>
mov    $0x1,%edi
call   1090 <exit@plt>
lea    0xc4a(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   %r13d,%r13d
jle    140b <main+0x28b>
mov    %r13d,%ebp
lea    0xc62(%rip),%r14
lea    0xc5e(%rip),%r15
xor    %ebx,%ebx
jmp    13fa <main+0x27a>
nopl   (%rax)
mov    0x40010(%rsp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
je     140b <main+0x28b>
test   $0x7,%bl
jne    13e0 <main+0x260>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    13e0 <main+0x260>
lea    0xfa9(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf97(%rip),%rdi
call   1040 <puts@plt>
mov    $0x4e00,%ebx
lea    0xc07(%rip),%r14
lea    0xc10(%rip),%r15
jmp    1475 <main+0x2f5>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    0x10(%rsp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
cmp    $0xa000,%rbx
je     14ab <main+0x32b>
test   %bl,%bl
jne    1485 <main+0x305>
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%ebp
and    $0x7,%ebp
je     1450 <main+0x2d0>
mov    0x10(%rsp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0x7,%ebp
jne    1468 <main+0x2e8>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1468 <main+0x2e8>
lea    0xf0a(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8fd98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"/*\0A\00"
@.str.1 = [59 x i8] c" * Copyright (C) 1999-2002 Free Software Foundation, Inc.\0A\00"
@.str.2 = [51 x i8] c" * This file is part of the GNU LIBICONV Library.\0A\00"
@.str.3 = [4 x i8] c" *\0A\00"
@.str.4 = [71 x i8] c" * The GNU LIBICONV Library is free software; you can redistribute it\0A\00"
@.str.5 = [71 x i8] c" * and/or modify it under the terms of the GNU Library General Public\0A\00"
@.str.6 = [75 x i8] c" * License as published by the Free Software Foundation; either version 2\0A\00"
@.str.7 = [59 x i8] c" * of the License, or (at your option) any later version.\0A\00"
@.str.8 = [72 x i8] c" * The GNU LIBICONV Library is distributed in the hope that it will be\0A\00"
@.str.9 = [75 x i8] c" * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of\0A\00"
@.str.10 = [70 x i8] c" * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\0A\00"
@.str.11 = [53 x i8] c" * Library General Public License for more details.\0A\00"
@.str.12 = [70 x i8] c" * You should have received a copy of the GNU Library General Public\0A\00"
@.str.13 = [75 x i8] c" * License along with the GNU LIBICONV Library; see the file COPYING.LIB.\0A\00"
@.str.14 = [49 x i8] c" * If not, see <https://www.gnu.org/licenses/>.\0A\00"
@.str.15 = [5 x i8] c" */\0A\00"
@.str.16 = [2 x i8] c"\0A\00"
@.str.17 = [23 x i8] c" * CJK variants table\0A\00"
@stdin = global i32 0
@EOF = global i32 0
@.str.18 = [3 x i8] c"%x\00"
@.str.19 = [49 x i8] c"static const unsigned short cjk_variants[%d] = {\00"
@.str.20 = [3 x i8] c"\0A \00"
@.str.21 = [9 x i8] c" 0x%04x,\00"
@.str.22 = [5 x i8] c"\0A};\0A\00"
@.str.23 = [50 x i8] c"static const short cjk_variants_indx[0x5200] = {\0A\00"
@.str.24 = [16 x i8] c" /* 0x%04x */\0A\00"
@.str.25 = [2 x i8] c" \00"
@.str.26 = [6 x i8] c" %5d,\00"
@.str.27 = [4 x i8] c"};\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [81760 x i32]
%7 = alloca [65536 x i32]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp ne i32 %14, 1
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = call i32 @exit(i32 1)
unreachable
18: ; preds = %2
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.4, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.5, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.6, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.8, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.9, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.10, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.11, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.12, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.13, i64 0, i64 0))
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.14, i64 0, i64 0))
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0))
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
store i32 0, i32* %10
br label %42
42: ; preds = %49, %18
%43 = load i32, i32* %10
%44 = icmp slt i32 %43, 65536
br i1 %44, label %45, label %52
45: ; preds = %42
%46 = load i32, i32* %10
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [65536 x i32], [65536 x i32]* %7, i64 0, i64 %47
store i32 -1, i32* %48
br label %49
49: ; preds = %45
%50 = load i32, i32* %10
%51 = add nsw i32 %50, 1
store i32 %51, i32* %10
br label %42
52: ; preds = %42
store i32 0, i32* %8
br label %53
53: ; preds = %135, %77, %52
%54 = load i32, i32* @stdin
%55 = call i32 @getc(i32 %54)
store i32 %55, i32* %9
%56 = load i32, i32* %9
%57 = load i32, i32* @EOF
%58 = icmp eq i32 %56, %57
br i1 %58, label %59, label %60
59: ; preds = %53
br label %136
60: ; preds = %53
%61 = load i32, i32* %9
%62 = icmp eq i32 %61, 35
br i1 %62, label %63, label %78
63: ; preds = %60
br label %64
64: ; preds = %74, %63
%65 = load i32, i32* @stdin
%66 = call i32 @getc(i32 %65)
store i32 %66, i32* %9
br label %67
67: ; preds = %64
%68 = load i32, i32* %9
%69 = load i32, i32* @EOF
%70 = icmp eq i32 %68, %69
br i1 %70, label %74, label %71
71: ; preds = %67
%72 = load i32, i32* %9
%73 = icmp eq i32 %72, 10
br label %74
74: ; preds = %71, %67
%75 = phi i1 [ true, %67 ], [ %73, %71 ]
%76 = xor i1 %75, true
br i1 %76, label %64, label %77
77: ; preds = %74
br label %53
78: ; preds = %60
%79 = load i32, i32* %9
%80 = load i32, i32* @stdin
%81 = call i32 @ungetc(i32 %79, i32 %80)
%82 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i32* %10)
%83 = icmp ne i32 %82, 1
br i1 %83, label %84, label %86
84: ; preds = %78
%85 = call i32 @exit(i32 1)
unreachable
86: ; preds = %78
%87 = load i32, i32* @stdin
%88 = call i32 @getc(i32 %87)
store i32 %88, i32* %9
%89 = load i32, i32* %9
%90 = icmp ne i32 %89, 9
br i1 %90, label %91, label %93
91: ; preds = %86
%92 = call i32 @exit(i32 1)
unreachable
93: ; preds = %86
%94 = load i32, i32* %8
%95 = load i32, i32* %10
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [65536 x i32], [65536 x i32]* %7, i64 0, i64 %96
store i32 %94, i32* %97
br label %98
98: ; preds = %123, %93
%99 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i32* %11)
%100 = icmp ne i32 %99, 1
br i1 %100, label %101, label %103
101: ; preds = %98
%102 = call i32 @exit(i32 1)
unreachable
103: ; preds = %98
%104 = load i32, i32* %11
%105 = icmp sge i32 %104, 12288
br i1 %105, label %106, label %109
106: ; preds = %103
%107 = load i32, i32* %11
%108 = icmp slt i32 %107, 45056
br i1 %108, label %111, label %109
109: ; preds = %106, %103
%110 = call i32 @exit(i32 1)
unreachable
111: ; preds = %106
%112 = load i32, i32* %11
%113 = sub nsw i32 %112, 12288
%114 = load i32, i32* %8
%115 = add nsw i32 %114, 1
store i32 %115, i32* %8
%116 = sext i32 %114 to i64
%117 = getelementptr inbounds [81760 x i32], [81760 x i32]* %6, i64 0, i64 %116
store i32 %113, i32* %117
%118 = load i32, i32* @stdin
%119 = call i32 @getc(i32 %118)
store i32 %119, i32* %9
%120 = load i32, i32* %9
%121 = icmp ne i32 %120, 32
br i1 %121, label %122, label %123
122: ; preds = %111
br label %124
123: ; preds = %111
br label %98
124: ; preds = %122
%125 = load i32, i32* %8
%126 = sub nsw i32 %125, 1
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [81760 x i32], [81760 x i32]* %6, i64 0, i64 %127
%129 = load i32, i32* %128
%130 = or i32 %129, 32768
store i32 %130, i32* %128
%131 = load i32, i32* %9
%132 = icmp ne i32 %131, 10
br i1 %132, label %133, label %135
133: ; preds = %124
%134 = call i32 @exit(i32 1)
unreachable
135: ; preds = %124
br label %53
136: ; preds = %59
%137 = load i32, i32* %8
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.19, i64 0, i64 0), i32 %137)
store i32 0, i32* %12
br label %139
139: ; preds = %155, %136
%140 = load i32, i32* %12
%141 = load i32, i32* %8
%142 = icmp slt i32 %140, %141
br i1 %142, label %143, label %158
143: ; preds = %139
%144 = load i32, i32* %12
%145 = srem i32 %144, 8
%146 = icmp eq i32 %145, 0
br i1 %146, label %147, label %149
147: ; preds = %143
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0))
br label %149
149: ; preds = %147, %143
%150 = load i32, i32* %12
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [81760 x i32], [81760 x i32]* %6, i64 0, i64 %151
%153 = load i32, i32* %152
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0), i32 %153)
br label %155
155: ; preds = %149
%156 = load i32, i32* %12
%157 = add nsw i32 %156, 1
store i32 %157, i32* %12
br label %139
158: ; preds = %139
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0))
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%161 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.23, i64 0, i64 0))
store i32 19968, i32* %13
br label %162
162: ; preds = %190, %158
%163 = load i32, i32* %13
%164 = icmp slt i32 %163, 40960
br i1 %164, label %165, label %193
165: ; preds = %162
%166 = load i32, i32* %13
%167 = srem i32 %166, 256
%168 = icmp eq i32 %167, 0
br i1 %168, label %169, label %172
169: ; preds = %165
%170 = load i32, i32* %13
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.24, i64 0, i64 0), i32 %170)
br label %172
172: ; preds = %169, %165
%173 = load i32, i32* %13
%174 = srem i32 %173, 8
%175 = icmp eq i32 %174, 0
br i1 %175, label %176, label %178
176: ; preds = %172
%177 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0))
br label %178
178: ; preds = %176, %172
%179 = load i32, i32* %13
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds [65536 x i32], [65536 x i32]* %7, i64 0, i64 %180
%182 = load i32, i32* %181
%183 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), i32 %182)
%184 = load i32, i32* %13
%185 = srem i32 %184, 8
%186 = icmp eq i32 %185, 7
br i1 %186, label %187, label %189
187: ; preds = %178
%188 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
br label %189
189: ; preds = %187, %178
br label %190
190: ; preds = %189
%191 = load i32, i32* %13
%192 = add nsw i32 %191, 1
store i32 %192, i32* %13
br label %162
193: ; preds = %162
%194 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0))
%195 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
@EOF = global i32 0
@.str.18 = [3 x i8] c"%x\00"
@.str.19 = [49 x i8] c"static const unsigned short cjk_variants[%d] = {\00"
@.str.20 = [3 x i8] c"\0A \00"
@.str.21 = [9 x i8] c" 0x%04x,\00"
@.str.24 = [16 x i8] c" /* 0x%04x */\0A\00"
@.str.26 = [6 x i8] c" %5d,\00"
@str.28 = [58 x i8] c" * Copyright (C) 1999-2002 Free Software Foundation, Inc.\00"
@str.29 = [50 x i8] c" * This file is part of the GNU LIBICONV Library.\00"
@str.31 = [70 x i8] c" * The GNU LIBICONV Library is free software; you can redistribute it\00"
@str.32 = [70 x i8] c" * and/or modify it under the terms of the GNU Library General Public\00"
@str.33 = [74 x i8] c" * License as published by the Free Software Foundation; either version 2\00"
@str.34 = [58 x i8] c" * of the License, or (at your option) any later version.\00"
@str.36 = [71 x i8] c" * The GNU LIBICONV Library is distributed in the hope that it will be\00"
@str.37 = [74 x i8] c" * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of\00"
@str.38 = [69 x i8] c" * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\00"
@str.39 = [52 x i8] c" * Library General Public License for more details.\00"
@str.40 = [3 x i8] c" *\00"
@str.41 = [69 x i8] c" * You should have received a copy of the GNU Library General Public\00"
@str.42 = [74 x i8] c" * License along with the GNU LIBICONV Library; see the file COPYING.LIB.\00"
@str.43 = [48 x i8] c" * If not, see <https://www.gnu.org/licenses/>.\00"
@str.45 = [3 x i8] c"/*\00"
@str.46 = [22 x i8] c" * CJK variants table\00"
@str.47 = [4 x i8] c" */\00"
@str.48 = [4 x i8] c"\0A};\00"
@str.49 = [49 x i8] c"static const short cjk_variants_indx[0x5200] = {\00"
@str.50 = [3 x i8] c"};\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [81760 x i32]
%4 = alloca [65536 x i32]
%5 = bitcast [65536 x i32]* %4 to i8*
%6 = alloca i32
%7 = alloca i32
%8 = bitcast [81760 x i32]* %3 to i8*
%9 = icmp eq i32 %0, 1
br i1 %9, label %12, label %10
10: ; preds = %2
%11 = tail call i32 @exit(i32 1)
unreachable
12: ; preds = %2
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.45, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.28, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.29, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.40, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.31, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.32, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.33, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.34, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.40, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.36, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.37, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.38, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.39, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.40, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.41, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.42, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.43, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.47, i64 0, i64 0))
%31 = tail call i32 @putchar(i32 10)
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.45, i64 0, i64 0))
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.46, i64 0, i64 0))
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.47, i64 0, i64 0))
%35 = tail call i32 @putchar(i32 10)
%36 = bitcast i32* %6 to i8*
store i32 65536, i32* %6
%37 = bitcast i32* %7 to i8*
br label %94
38: ; preds = %46
%39 = load i32, i32* @stdin
%40 = call i32 @getc(i32 %39)
%41 = load i32, i32* @EOF
%42 = icmp eq i32 %40, %41
br i1 %42, label %102, label %43
43: ; preds = %94, %38
%44 = phi i32 [ %40, %38 ], [ %97, %94 ]
%45 = icmp eq i32 %44, 35
br i1 %45, label %46, label %53
46: ; preds = %43, %46
%47 = load i32, i32* @stdin
%48 = call i32 @getc(i32 %47)
%49 = load i32, i32* @EOF
%50 = icmp ne i32 %48, %49
%51 = icmp ne i32 %48, 10
%52 = and i1 %51, %50
br i1 %52, label %46, label %38
53: ; preds = %43
%54 = load i32, i32* @stdin
%55 = call i32 @ungetc(i32 %44, i32 %54)
%56 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i32* %6)
%57 = icmp eq i32 %56, 1
br i1 %57, label %60, label %58
58: ; preds = %53
%59 = call i32 @exit(i32 1)
unreachable
60: ; preds = %53
%61 = load i32, i32* @stdin
%62 = call i32 @getc(i32 %61)
%63 = icmp eq i32 %62, 9
br i1 %63, label %66, label %64
64: ; preds = %60
%65 = call i32 @exit(i32 1)
unreachable
66: ; preds = %60
%67 = load i32, i32* %6
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [65536 x i32], [65536 x i32]* %4, i64 0, i64 %68
store i32 %95, i32* %69
%70 = sext i32 %95 to i64
br label %71
71: ; preds = %83, %66
%72 = phi i64 [ %84, %83 ], [ %70, %66 ]
%73 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i32* %7)
%74 = icmp eq i32 %73, 1
br i1 %74, label %77, label %75
75: ; preds = %71
%76 = call i32 @exit(i32 1)
unreachable
77: ; preds = %71
%78 = load i32, i32* %7
%79 = add i32 %78, -12288
%80 = icmp ult i32 %79, 32768
br i1 %80, label %83, label %81
81: ; preds = %77
%82 = call i32 @exit(i32 1)
unreachable
83: ; preds = %77
%84 = add i64 %72, 1
%85 = getelementptr inbounds [81760 x i32], [81760 x i32]* %3, i64 0, i64 %72
store i32 %79, i32* %85
%86 = load i32, i32* @stdin
%87 = call i32 @getc(i32 %86)
%88 = icmp eq i32 %87, 32
br i1 %88, label %71, label %89
89: ; preds = %83
%90 = getelementptr inbounds [81760 x i32], [81760 x i32]* %3, i64 0, i64 %72
%91 = trunc i64 %84 to i32
%92 = or i32 %79, 32768
store i32 %92, i32* %90
%93 = icmp eq i32 %87, 10
br i1 %93, label %94, label %100
94: ; preds = %12, %89
%95 = phi i32 [ 0, %12 ], [ %91, %89 ]
%96 = load i32, i32* @stdin
%97 = call i32 @getc(i32 %96)
%98 = load i32, i32* @EOF
%99 = icmp eq i32 %97, %98
br i1 %99, label %102, label %43
100: ; preds = %89
%101 = call i32 @exit(i32 1)
unreachable
102: ; preds = %94, %38
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.19, i64 0, i64 0), i32 %95)
%104 = icmp sgt i32 %95, 0
br i1 %104, label %105, label %119
105: ; preds = %102
%106 = zext i32 %95 to i64
br label %107
107: ; preds = %105, %113
%108 = phi i64 [ 0, %105 ], [ %117, %113 ]
%109 = and i64 %108, 7
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %113
111: ; preds = %107
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0))
br label %113
113: ; preds = %111, %107
%114 = getelementptr inbounds [81760 x i32], [81760 x i32]* %3, i64 0, i64 %108
%115 = load i32, i32* %114
%116 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0), i32 %115)
%117 = add nuw nsw i64 %108, 1
%118 = icmp eq i64 %117, %106
br i1 %118, label %119, label %107
119: ; preds = %113, %102
%120 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.48, i64 0, i64 0))
%121 = call i32 @putchar(i32 10)
%122 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.49, i64 0, i64 0))
br label %123
123: ; preds = %119, %145
%124 = phi i64 [ 19968, %119 ], [ %146, %145 ]
%125 = trunc i64 %124 to i32
%126 = and i32 %125, 255
%127 = icmp eq i32 %126, 0
br i1 %127, label %128, label %130
128: ; preds = %123
%129 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.24, i64 0, i64 0), i32 %125)
br label %130
130: ; preds = %128, %123
%131 = and i32 %125, 7
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %138
133: ; preds = %130
%134 = call i32 @putchar(i32 32)
%135 = getelementptr inbounds [65536 x i32], [65536 x i32]* %4, i64 0, i64 %124
%136 = load i32, i32* %135
%137 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), i32 %136)
br label %145
138: ; preds = %130
%139 = getelementptr inbounds [65536 x i32], [65536 x i32]* %4, i64 0, i64 %124
%140 = load i32, i32* %139
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), i32 %140)
%142 = icmp eq i32 %131, 7
br i1 %142, label %143, label %145
143: ; preds = %138
%144 = call i32 @putchar(i32 10)
br label %145
145: ; preds = %133, %138, %143
%146 = add nuw nsw i64 %124, 1
%147 = icmp eq i64 %146, 40960
br i1 %147, label %148, label %123
148: ; preds = %145
%149 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.50, i64 0, i64 0))
%150 = call i32 @putchar(i32 10)
ret i32 0
}