#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*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
scalar_t__ fclose(int /*<<< orphan*/ *);
scalar_t__ ferror(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ is_nonspacing(unsigned int);
int /*<<< orphan*/ stderr;
void output_nonspacing_property(const char *filename) {
  FILE *stream;
  int ind[0x110000 / 0x200];
  unsigned int i;
  unsigned int i_max;
  int next_ind;
  stream = fopen(filename, "w");
  if (stream == NULL) {
    fprintf(stderr, "cannot open '%s' for writing\n", filename);
    exit(1);
  }
  next_ind = 0;
  for (i = 0; i < 0x110000 / 0x200; i++) {
    bool nontrivial = false;
    unsigned int ch;
    if (i != 0xe0000 / 0x200)
      for (ch = i * 0x200; ch < (i + 1) * 0x200; ch++)
        if (is_nonspacing(ch)) {
          nontrivial = true;
          break;
        }
    if (nontrivial)
      ind[i] = next_ind++;
    else
      ind[i] = -1;
  }
  fprintf(stream,
          "static const unsigned char nonspacing_table_data[%d*64] = {\n",
          next_ind);
  i_max = 0;
  for (i = 0; i < 0x110000 / 0x200; i++) {
    bool nontrivial = (ind[i] >= 0);
    if (nontrivial) {
      unsigned int j;
      fprintf(stream, "  /* 0x%04x-0x%04x */\n", i * 0x200,
              (i + 1) * 0x200 - 1);
      for (j = 0; j < 8; j++) {
        unsigned int k;
        fprintf(stream, " ");
        for (k = 0; k < 8; k++) {
          unsigned int l;
          unsigned char bits = 0;
          for (l = 0; l < 8; l++) {
            unsigned int ch = i * 0x200 + j * 0x40 + k * 8 + l;
            if (is_nonspacing(ch))
              bits |= 1 << l;
          }
          fprintf(stream, " 0x%02x%c", bits,
                  ind[i] + 1 == next_ind && j == 8 - 1 && k == 8 - 1 ? ' '
                                                                     : ',');
        }
        fprintf(stream, " /* 0x%04x-0x%04x */\n", i * 0x200 + j * 0x40,
                i * 0x200 + (j + 1) * 0x40 - 1);
      }
      i_max = i;
    }
  }
  fprintf(stream, "};\n");
  i_max = ((i_max + 8 - 1) / 8) * 8;
  fprintf(stream, "static const signed char nonspacing_table_ind[%u] = {\n",
          i_max);
  {
    unsigned int j;
    for (j = 0; j < i_max / 8; j++) {
      unsigned int k;
      fprintf(stream, " ");
      for (k = 0; k < 8; k++) {
        i = j * 8 + k;
        fprintf(stream, " %2d%c", ind[i],
                j == i_max / 8 - 1 && k == 8 - 1 ? ' ' : ',');
      }
      fprintf(stream, " /* 0x%04x-0x%04x */\n", j * 8 * 0x200,
              (j + 1) * 8 * 0x200 - 1);
    }
  }
  fprintf(stream, "};\n");
  if (ferror(stream) || fclose(stream)) {
    fprintf(stderr, "error writing to '%s'\n", filename);
    exit(1);
  }
}


x86 assembly (clang, -O0):
<output_nonspacing_property>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2260,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe86(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11b3 <output_nonspacing_property+0x53>
mov    0x2e4b(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xe60(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
movl   $0x0,-0x221c(%rbp)
movl   $0x0,-0x2214(%rbp)
cmpl   $0x880,-0x2214(%rbp)
jae    12b6 <output_nonspacing_property+0x156>
movl   $0x0,-0x2220(%rbp)
cmpl   $0x700,-0x2214(%rbp)
je     125c <output_nonspacing_property+0xfc>
mov    -0x2214(%rbp),%eax
shl    $0x9,%eax
mov    %eax,-0x2224(%rbp)
mov    -0x2224(%rbp),%eax
mov    -0x2214(%rbp),%ecx
add    $0x1,%ecx
shl    $0x9,%ecx
cmp    %ecx,%eax
jae    1257 <output_nonspacing_property+0xf7>
mov    -0x2224(%rbp),%edi
call   1050 <is_nonspacing@plt>
cmp    $0x0,%rax
je     123e <output_nonspacing_property+0xde>
movl   $0x1,-0x2220(%rbp)
jmp    1257 <output_nonspacing_property+0xf7>
jmp    1243 <output_nonspacing_property+0xe3>
mov    -0x2224(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2224(%rbp)
jmp    1200 <output_nonspacing_property+0xa0>
jmp    125c <output_nonspacing_property+0xfc>
cmpl   $0x0,-0x2220(%rbp)
je     128c <output_nonspacing_property+0x12c>
mov    -0x221c(%rbp),%ecx
mov    %ecx,%eax
add    $0x1,%eax
mov    %eax,-0x221c(%rbp)
mov    -0x2214(%rbp),%eax
mov    %ecx,-0x2210(%rbp,%rax,4)
jmp    129d <output_nonspacing_property+0x13d>
mov    -0x2214(%rbp),%eax
movl   $0xffffffff,-0x2210(%rbp,%rax,4)
ff ff ff ff
jmp    12a2 <output_nonspacing_property+0x142>
mov    -0x2214(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2214(%rbp)
jmp    11c7 <output_nonspacing_property+0x67>
mov    -0x10(%rbp),%rax
mov    %eax,%edi
mov    -0x221c(%rbp),%edx
lea    0xd57(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x2218(%rbp)
movl   $0x0,-0x2214(%rbp)
cmpl   $0x880,-0x2214(%rbp)
jae    1541 <output_nonspacing_property+0x3e1>
mov    -0x2214(%rbp),%eax
cmpl   $0x0,-0x2210(%rbp,%rax,4)
setge  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x2228(%rbp)
cmpl   $0x0,-0x2228(%rbp)
je     1528 <output_nonspacing_property+0x3c8>
mov    -0x10(%rbp),%rax
mov    %eax,%edi
mov    -0x2214(%rbp),%edx
shl    $0x9,%edx
mov    -0x2214(%rbp),%ecx
add    $0x1,%ecx
shl    $0x9,%ecx
sub    $0x1,%ecx
lea    0xd1b(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x222c(%rbp)
cmpl   $0x8,-0x222c(%rbp)
jae    151c <output_nonspacing_property+0x3bc>
mov    -0x10(%rbp),%rax
mov    %eax,%edi
lea    0xd07(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x2230(%rbp)
cmpl   $0x8,-0x2230(%rbp)
jae    14c6 <output_nonspacing_property+0x366>
movb   $0x0,-0x2235(%rbp)
movl   $0x0,-0x2234(%rbp)
cmpl   $0x8,-0x2234(%rbp)
jae    1420 <output_nonspacing_property+0x2c0>
mov    -0x2214(%rbp),%eax
shl    $0x9,%eax
mov    -0x222c(%rbp),%ecx
shl    $0x6,%ecx
add    %ecx,%eax
mov    -0x2230(%rbp),%ecx
shl    $0x3,%ecx
add    %ecx,%eax
add    -0x2234(%rbp),%eax
mov    %eax,-0x223c(%rbp)
mov    -0x223c(%rbp),%edi
call   1050 <is_nonspacing@plt>
cmp    $0x0,%rax
je     1407 <output_nonspacing_property+0x2a7>
mov    -0x2234(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,%ecx
movzbl -0x2235(%rbp),%eax
or     %ecx,%eax
mov    %al,-0x2235(%rbp)
jmp    140c <output_nonspacing_property+0x2ac>
mov    -0x2234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2234(%rbp)
jmp    139c <output_nonspacing_property+0x23c>
mov    -0x10(%rbp),%rax
mov    %eax,-0x2250(%rbp)
movzbl -0x2235(%rbp),%eax
mov    %eax,-0x224c(%rbp)
mov    -0x2214(%rbp),%eax
mov    -0x2210(%rbp,%rax,4),%ecx
add    $0x1,%ecx
xor    %eax,%eax
cmp    -0x221c(%rbp),%ecx
mov    %al,-0x2245(%rbp)
jne    1480 <output_nonspacing_property+0x320>
xor    %eax,%eax
cmpl   $0x7,-0x222c(%rbp)
mov    %al,-0x2245(%rbp)
jne    1480 <output_nonspacing_property+0x320>
cmpl   $0x7,-0x2230(%rbp)
sete   %al
mov    %al,-0x2245(%rbp)
mov    -0x224c(%rbp),%edx
mov    -0x2250(%rbp),%edi
mov    -0x2245(%rbp),%sil
mov    $0x2c,%ecx
mov    $0x20,%eax
test   $0x1,%sil
cmovne %eax,%ecx
lea    0xbcb(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x2230(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2230(%rbp)
jmp    137e <output_nonspacing_property+0x21e>
mov    -0x10(%rbp),%rax
mov    %eax,%edi
mov    -0x2214(%rbp),%edx
shl    $0x9,%edx
mov    -0x222c(%rbp),%eax
shl    $0x6,%eax
add    %eax,%edx
mov    -0x2214(%rbp),%ecx
shl    $0x9,%ecx
mov    -0x222c(%rbp),%eax
add    $0x1,%eax
shl    $0x6,%eax
add    %eax,%ecx
sub    $0x1,%ecx
lea    0xb5d(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x222c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x222c(%rbp)
jmp    1353 <output_nonspacing_property+0x1f3>
mov    -0x2214(%rbp),%eax
mov    %eax,-0x2218(%rbp)
jmp    152d <output_nonspacing_property+0x3cd>
mov    -0x2214(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2214(%rbp)
jmp    12e4 <output_nonspacing_property+0x184>
mov    -0x10(%rbp),%rax
mov    %eax,%edi
lea    0xb32(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x2218(%rbp),%eax
add    $0x8,%eax
sub    $0x1,%eax
shr    $0x3,%eax
shl    $0x3,%eax
mov    %eax,-0x2218(%rbp)
mov    -0x10(%rbp),%rax
mov    %eax,%edi
mov    -0x2218(%rbp),%edx
lea    0xb04(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x2240(%rbp)
mov    -0x2240(%rbp),%eax
mov    -0x2218(%rbp),%ecx
shr    $0x3,%ecx
cmp    %ecx,%eax
jae    16c3 <output_nonspacing_property+0x563>
mov    -0x10(%rbp),%rax
mov    %eax,%edi
lea    0xabf(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x2244(%rbp)
cmpl   $0x8,-0x2244(%rbp)
jae    167d <output_nonspacing_property+0x51d>
mov    -0x2240(%rbp),%eax
shl    $0x3,%eax
add    -0x2244(%rbp),%eax
mov    %eax,-0x2214(%rbp)
mov    -0x10(%rbp),%rax
mov    %eax,-0x225c(%rbp)
mov    -0x2214(%rbp),%eax
mov    -0x2210(%rbp,%rax,4),%eax
mov    %eax,-0x2258(%rbp)
mov    -0x2240(%rbp),%ecx
mov    -0x2218(%rbp),%edx
shr    $0x3,%edx
sub    $0x1,%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x2251(%rbp)
jne    1637 <output_nonspacing_property+0x4d7>
cmpl   $0x7,-0x2244(%rbp)
sete   %al
mov    %al,-0x2251(%rbp)
mov    -0x2258(%rbp),%edx
mov    -0x225c(%rbp),%edi
mov    -0x2251(%rbp),%sil
mov    $0x2c,%ecx
mov    $0x20,%eax
test   $0x1,%sil
cmovne %eax,%ecx
lea    0xa59(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x2244(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2244(%rbp)
jmp    15c6 <output_nonspacing_property+0x466>
mov    -0x10(%rbp),%rax
mov    %eax,%edi
mov    -0x2240(%rbp),%edx
shl    $0x3,%edx
shl    $0x9,%edx
mov    -0x2240(%rbp),%ecx
add    $0x1,%ecx
shl    $0x3,%ecx
shl    $0x9,%ecx
sub    $0x1,%ecx
lea    0x9b6(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x2240(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2240(%rbp)
jmp    1591 <output_nonspacing_property+0x431>
mov    -0x10(%rbp),%rax
mov    %eax,%edi
lea    0x9b0(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <ferror@plt>
cmp    $0x0,%rax
jne    16fd <output_nonspacing_property+0x59d>
mov    -0x10(%rbp),%rdi
call   1040 <fclose@plt>
cmp    $0x0,%rax
je     1722 <output_nonspacing_property+0x5c2>
mov    0x28dc(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0x9b1(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
add    $0x2260,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_nonspacing_property>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2258,%rsp
lea    0xe88(%rip),%rsi
mov    %rdi,0x30(%rsp)
call   1070 <fopen@plt>
mov    %rax,0x38(%rsp)
test   %rax,%rax
je     15bc <output_nonspacing_property+0x45c>
xor    %ebp,%ebp
xor    %r14d,%r14d
xor    %eax,%eax
mov    %rax,0x10(%rsp)
jmp    11c8 <output_nonspacing_property+0x68>
xchg   %ax,%ax
mov    0x10(%rsp),%rax
mov    %eax,%r15d
add    $0x1,%eax
mov    %rax,0x10(%rsp)
mov    %r15d,0x50(%rsp,%r14,4)
add    $0x1,%r14
add    $0x200,%ebp
cmp    $0x880,%r14
je     11fa <output_nonspacing_property+0x9a>
mov    $0xffffffff,%r15d
cmp    $0x700,%r14
je     11b0 <output_nonspacing_property+0x50>
xor    %ebx,%ebx
nopl   0x0(%rax)
lea    (%rbx,%rbp,1),%edi
call   1050 <is_nonspacing@plt>
test   %rax,%rax
jne    11a0 <output_nonspacing_property+0x40>
add    $0x1,%ebx
cmp    $0x200,%ebx
jne    11e0 <output_nonspacing_property+0x80>
jmp    11b0 <output_nonspacing_property+0x50>
lea    0xe1f(%rip),%rsi
mov    0x38(%rsp),%rbp
mov    %ebp,%edi
mov    0x10(%rsp),%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %r14d,%r14d
xor    %eax,%eax
xor    %r15d,%r15d
jmp    1237 <output_nonspacing_property+0xd7>
xchg   %ax,%ax
add    $0x1,%rax
add    $0x200,%r14d
cmp    $0x880,%rax
je     1419 <output_nonspacing_property+0x2b9>
mov    0x50(%rsp,%rax,4),%r12d
test   %r12d,%r12d
js     1220 <output_nonspacing_property+0xc0>
mov    %eax,%ecx
shl    $0x9,%ecx
or     $0x1ff,%ecx
mov    %rax,0x40(%rsp)
mov    %eax,%r15d
shl    $0x9,%r15d
mov    %ebp,%edi
lea    0xdfc(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x1,%r12d
mov    %r15,0x48(%rsp)
lea    -0x1(%r15),%eax
mov    %eax,0x20(%rsp)
mov    %r14d,0x1c(%rsp)
mov    %r14d,%r13d
xor    %ebx,%ebx
mov    %r12d,0x24(%rsp)
nopl   0x0(%rax,%rax,1)
mov    %r12d,%r14d
xor    0x10(%rsp),%r14d
mov    %ebp,%edi
lea    0xdd3(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %ebx,%eax
shl    $0x6,%eax
add    0x48(%rsp),%eax
mov    %eax,0x28(%rsp)
mov    %ebx,0x2c(%rsp)
mov    %ebx,%eax
xor    $0x7,%eax
or     %r14d,%eax
sete   0xf(%rsp)
xor    %r12d,%r12d
lea    0xda6(%rip),%r15
lea    (%r12,%r13,1),%edi
call   1050 <is_nonspacing@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
lea    (%r12,%r13,1),%edi
add    $0x1,%edi
call   1050 <is_nonspacing@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
lea    (%rbx,%rcx,2),%ebx
lea    (%r12,%r13,1),%edi
add    $0x2,%edi
call   1050 <is_nonspacing@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
lea    (%rbx,%rcx,4),%ebx
lea    (%r12,%r13,1),%edi
add    $0x3,%edi
call   1050 <is_nonspacing@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
lea    (%rbx,%rcx,8),%ebx
lea    (%r12,%r13,1),%edi
add    $0x4,%edi
call   1050 <is_nonspacing@plt>
xor    %ebp,%ebp
test   %rax,%rax
setne  %bpl
shl    $0x4,%ebp
or     %ebx,%ebp
lea    (%r12,%r13,1),%edi
add    $0x5,%edi
call   1050 <is_nonspacing@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
shl    $0x5,%ebx
lea    (%r12,%r13,1),%edi
add    $0x6,%edi
call   1050 <is_nonspacing@plt>
xor    %r14d,%r14d
test   %rax,%rax
setne  %r14b
shl    $0x6,%r14d
lea    (%r12,%r13,1),%edi
add    $0x7,%edi
call   1050 <is_nonspacing@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
shl    $0x7,%ecx
or     %ebx,%r14d
or     %ecx,%r14d
or     %ebp,%r14d
mov    0x38(%rsp),%rbp
cmp    $0x38,%r12d
mov    $0x2c,%ecx
mov    $0x20,%eax
cmove  %eax,%ecx
cmpb   $0x0,0xf(%rsp)
mov    $0x2c,%eax
cmove  %eax,%ecx
mov    %ebp,%edi
mov    %r15,%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x8,%r12d
cmp    $0x40,%r12d
jne    12d0 <output_nonspacing_property+0x170>
mov    0x2c(%rsp),%ebx
add    $0x1,%ebx
mov    %ebx,%ecx
shl    $0x6,%ecx
add    0x20(%rsp),%ecx
mov    %ebp,%edi
lea    0xc74(%rip),%rsi
mov    0x28(%rsp),%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x40,%r13d
cmp    $0x8,%ebx
mov    0x24(%rsp),%r12d
jne    1290 <output_nonspacing_property+0x130>
mov    0x40(%rsp),%rax
mov    %eax,%r15d
mov    0x1c(%rsp),%r14d
jmp    1220 <output_nonspacing_property+0xc0>
lea    0xc60(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x7,%r15d
mov    %r15d,%edx
and    $0xfffffff8,%edx
lea    0xc4a(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x8,%r15d
mov    %rbp,%rbx
jb     156e <output_nonspacing_property+0x40e>
shr    $0x3,%r15d
lea    -0x1(%r15),%r13d
cmp    $0x2,%r15d
mov    $0x1,%r14d
cmovae %r15d,%r14d
lea    0x6c(%rsp),%r15
shl    $0xc,%r13
shl    $0xc,%r14
lea    0xc41(%rip),%r12
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %ebx,%edi
lea    0xbeb(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    -0x1c(%r15),%edx
mov    %ebx,%edi
mov    %r12,%rsi
mov    $0x2c,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    -0x18(%r15),%edx
mov    %ebx,%edi
mov    %r12,%rsi
mov    $0x2c,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    -0x14(%r15),%edx
mov    %ebx,%edi
mov    %r12,%rsi
mov    $0x2c,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    -0x10(%r15),%edx
mov    %ebx,%edi
mov    %r12,%rsi
mov    $0x2c,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    -0xc(%r15),%edx
mov    %ebx,%edi
mov    %r12,%rsi
mov    $0x2c,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    -0x8(%r15),%edx
mov    %ebx,%edi
mov    %r12,%rsi
mov    $0x2c,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    -0x4(%r15),%edx
mov    %ebx,%edi
mov    %r12,%rsi
mov    $0x2c,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    %rbp,%r13
mov    (%r15),%edx
mov    $0x2c,%ecx
mov    $0x20,%eax
cmove  %eax,%ecx
mov    %ebx,%edi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xfff(%rbp),%ecx
mov    %ebx,%edi
lea    0xb0d(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x20,%r15
add    $0x1000,%rbp
cmp    %rbp,%r14
jne    1480 <output_nonspacing_property+0x320>
lea    0xb0b(%rip),%rsi
mov    %ebx,%edi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
call   1030 <ferror@plt>
test   %rax,%rax
jne    15aa <output_nonspacing_property+0x44a>
mov    %rbx,%rdi
call   1040 <fclose@plt>
test   %rax,%rax
jne    15aa <output_nonspacing_property+0x44a>
add    $0x2258,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2a2f(%rip),%rax
mov    (%rax),%edi
lea    0xb08(%rip),%rsi
jmp    15cc <output_nonspacing_property+0x46c>
mov    0x2a1d(%rip),%rax
mov    (%rax),%edi
lea    0xa36(%rip),%rsi
mov    0x30(%rsp),%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"w\00"
@stderr = global i32 0
@.str.1 = [30 x i8] c"cannot open '%s' for writing\0A\00"
@.str.2 = [61 x i8] c"static const unsigned char nonspacing_table_data[%d*64] = {\0A\00"
@.str.3 = [23 x i8] c" /* 0x%04x-0x%04x */\0A\00"
@.str.4 = [2 x i8] c" \00"
@.str.5 = [10 x i8] c" 0x%02x%c\00"
@.str.6 = [22 x i8] c" /* 0x%04x-0x%04x */\0A\00"
@.str.7 = [4 x i8] c"};\0A\00"
@.str.8 = [55 x i8] c"static const signed char nonspacing_table_ind[%u] = {\0A\00"
@.str.9 = [7 x i8] c" %2d%c\00"
@.str.10 = [23 x i8] c"error writing to '%s'\0A\00"
define void @output_nonspacing_property(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
%4 = alloca [2176 x i32]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i8* %0, i8** %2
%18 = load i8*, i8** %2
%19 = call i32* @fopen(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %19, i32** %3
%20 = load i32*, i32** %3
%21 = icmp eq i32* %20, null
br i1 %21, label %22, label %27
22: ; preds = %1
%23 = load i32, i32* @stderr
%24 = load i8*, i8** %2
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %24)
%26 = call i32 @exit(i32 1)
unreachable
27: ; preds = %1
store i32 0, i32* %7
store i32 0, i32* %5
br label %28
28: ; preds = %67, %27
%29 = load i32, i32* %5
%30 = icmp ult i32 %29, 2176
br i1 %30, label %31, label %70
31: ; preds = %28
store i32 0, i32* %8
%32 = load i32, i32* %5
%33 = icmp ne i32 %32, 1792
br i1 %33, label %34, label %53
34: ; preds = %31
%35 = load i32, i32* %5
%36 = mul i32 %35, 512
store i32 %36, i32* %9
br label %37
37: ; preds = %49, %34
%38 = load i32, i32* %9
%39 = load i32, i32* %5
%40 = add i32 %39, 1
%41 = mul i32 %40, 512
%42 = icmp ult i32 %38, %41
br i1 %42, label %43, label %52
43: ; preds = %37
%44 = load i32, i32* %9
%45 = call i64 @is_nonspacing(i32 %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %43
store i32 1, i32* %8
br label %52
48: ; preds = %43
br label %49
49: ; preds = %48
%50 = load i32, i32* %9
%51 = add i32 %50, 1
store i32 %51, i32* %9
br label %37
52: ; preds = %47, %37
br label %53
53: ; preds = %52, %31
%54 = load i32, i32* %8
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %62
56: ; preds = %53
%57 = load i32, i32* %7
%58 = add nsw i32 %57, 1
store i32 %58, i32* %7
%59 = load i32, i32* %5
%60 = zext i32 %59 to i64
%61 = getelementptr inbounds [2176 x i32], [2176 x i32]* %4, i64 0, i64 %60
store i32 %57, i32* %61
br label %66
62: ; preds = %53
%63 = load i32, i32* %5
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds [2176 x i32], [2176 x i32]* %4, i64 0, i64 %64
store i32 -1, i32* %65
br label %66
66: ; preds = %62, %56
br label %67
67: ; preds = %66
%68 = load i32, i32* %5
%69 = add i32 %68, 1
store i32 %69, i32* %5
br label %28
70: ; preds = %28
%71 = load i32*, i32** %3
%72 = ptrtoint i32* %71 to i32
%73 = load i32, i32* %7
%74 = call i32 (i32, i8*, ...) @fprintf(i32 %72, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0), i32 %73)
store i32 0, i32* %6
store i32 0, i32* %5
br label %75
75: ; preds = %184, %70
%76 = load i32, i32* %5
%77 = icmp ult i32 %76, 2176
br i1 %77, label %78, label %187
78: ; preds = %75
%79 = load i32, i32* %5
%80 = zext i32 %79 to i64
%81 = getelementptr inbounds [2176 x i32], [2176 x i32]* %4, i64 0, i64 %80
%82 = load i32, i32* %81
%83 = icmp sge i32 %82, 0
%84 = zext i1 %83 to i32
store i32 %84, i32* %10
%85 = load i32, i32* %10
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %183
87: ; preds = %78
%88 = load i32*, i32** %3
%89 = ptrtoint i32* %88 to i32
%90 = load i32, i32* %5
%91 = mul i32 %90, 512
%92 = load i32, i32* %5
%93 = add i32 %92, 1
%94 = mul i32 %93, 512
%95 = sub i32 %94, 1
%96 = call i32 (i32, i8*, ...) @fprintf(i32 %89, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %91, i32 %95)
store i32 0, i32* %11
br label %97
97: ; preds = %178, %87
%98 = load i32, i32* %11
%99 = icmp ult i32 %98, 8
br i1 %99, label %100, label %181
100: ; preds = %97
%101 = load i32*, i32** %3
%102 = ptrtoint i32* %101 to i32
%103 = call i32 (i32, i8*, ...) @fprintf(i32 %102, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %12
br label %104
104: ; preds = %159, %100
%105 = load i32, i32* %12
%106 = icmp ult i32 %105, 8
br i1 %106, label %107, label %162
107: ; preds = %104
store i8 0, i8* %14
store i32 0, i32* %13
br label %108
108: ; preds = %133, %107
%109 = load i32, i32* %13
%110 = icmp ult i32 %109, 8
br i1 %110, label %111, label %136
111: ; preds = %108
%112 = load i32, i32* %5
%113 = mul i32 %112, 512
%114 = load i32, i32* %11
%115 = mul i32 %114, 64
%116 = add i32 %113, %115
%117 = load i32, i32* %12
%118 = mul i32 %117, 8
%119 = add i32 %116, %118
%120 = load i32, i32* %13
%121 = add i32 %119, %120
store i32 %121, i32* %15
%122 = load i32, i32* %15
%123 = call i64 @is_nonspacing(i32 %122)
%124 = icmp ne i64 %123, 0
br i1 %124, label %125, label %132
125: ; preds = %111
%126 = load i32, i32* %13
%127 = shl i32 1, %126
%128 = load i8, i8* %14
%129 = zext i8 %128 to i32
%130 = or i32 %129, %127
%131 = trunc i32 %130 to i8
store i8 %131, i8* %14
br label %132
132: ; preds = %125, %111
br label %133
133: ; preds = %132
%134 = load i32, i32* %13
%135 = add i32 %134, 1
store i32 %135, i32* %13
br label %108
136: ; preds = %108
%137 = load i32*, i32** %3
%138 = ptrtoint i32* %137 to i32
%139 = load i8, i8* %14
%140 = zext i8 %139 to i32
%141 = load i32, i32* %5
%142 = zext i32 %141 to i64
%143 = getelementptr inbounds [2176 x i32], [2176 x i32]* %4, i64 0, i64 %142
%144 = load i32, i32* %143
%145 = add nsw i32 %144, 1
%146 = load i32, i32* %7
%147 = icmp eq i32 %145, %146
br i1 %147, label %148, label %154
148: ; preds = %136
%149 = load i32, i32* %11
%150 = icmp eq i32 %149, 7
br i1 %150, label %151, label %154
151: ; preds = %148
%152 = load i32, i32* %12
%153 = icmp eq i32 %152, 7
br label %154
154: ; preds = %151, %148, %136
%155 = phi i1 [ false, %148 ], [ false, %136 ], [ %153, %151 ]
%156 = zext i1 %155 to i64
%157 = select i1 %155, i32 32, i32 44
%158 = call i32 (i32, i8*, ...) @fprintf(i32 %138, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 %140, i32 %157)
br label %159
159: ; preds = %154
%160 = load i32, i32* %12
%161 = add i32 %160, 1
store i32 %161, i32* %12
br label %104
162: ; preds = %104
%163 = load i32*, i32** %3
%164 = ptrtoint i32* %163 to i32
%165 = load i32, i32* %5
%166 = mul i32 %165, 512
%167 = load i32, i32* %11
%168 = mul i32 %167, 64
%169 = add i32 %166, %168
%170 = load i32, i32* %5
%171 = mul i32 %170, 512
%172 = load i32, i32* %11
%173 = add i32 %172, 1
%174 = mul i32 %173, 64
%175 = add i32 %171, %174
%176 = sub i32 %175, 1
%177 = call i32 (i32, i8*, ...) @fprintf(i32 %164, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i32 %169, i32 %176)
br label %178
178: ; preds = %162
%179 = load i32, i32* %11
%180 = add i32 %179, 1
store i32 %180, i32* %11
br label %97
181: ; preds = %97
%182 = load i32, i32* %5
store i32 %182, i32* %6
br label %183
183: ; preds = %181, %78
br label %184
184: ; preds = %183
%185 = load i32, i32* %5
%186 = add i32 %185, 1
store i32 %186, i32* %5
br label %75
187: ; preds = %75
%188 = load i32*, i32** %3
%189 = ptrtoint i32* %188 to i32
%190 = call i32 (i32, i8*, ...) @fprintf(i32 %189, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%191 = load i32, i32* %6
%192 = add i32 %191, 8
%193 = sub i32 %192, 1
%194 = udiv i32 %193, 8
%195 = mul i32 %194, 8
store i32 %195, i32* %6
%196 = load i32*, i32** %3
%197 = ptrtoint i32* %196 to i32
%198 = load i32, i32* %6
%199 = call i32 (i32, i8*, ...) @fprintf(i32 %197, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0), i32 %198)
store i32 0, i32* %16
br label %200
200: ; preds = %251, %187
%201 = load i32, i32* %16
%202 = load i32, i32* %6
%203 = udiv i32 %202, 8
%204 = icmp ult i32 %201, %203
br i1 %204, label %205, label %254
205: ; preds = %200
%206 = load i32*, i32** %3
%207 = ptrtoint i32* %206 to i32
%208 = call i32 (i32, i8*, ...) @fprintf(i32 %207, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %17
br label %209
209: ; preds = %236, %205
%210 = load i32, i32* %17
%211 = icmp ult i32 %210, 8
br i1 %211, label %212, label %239
212: ; preds = %209
%213 = load i32, i32* %16
%214 = mul i32 %213, 8
%215 = load i32, i32* %17
%216 = add i32 %214, %215
store i32 %216, i32* %5
%217 = load i32*, i32** %3
%218 = ptrtoint i32* %217 to i32
%219 = load i32, i32* %5
%220 = zext i32 %219 to i64
%221 = getelementptr inbounds [2176 x i32], [2176 x i32]* %4, i64 0, i64 %220
%222 = load i32, i32* %221
%223 = load i32, i32* %16
%224 = load i32, i32* %6
%225 = udiv i32 %224, 8
%226 = sub i32 %225, 1
%227 = icmp eq i32 %223, %226
br i1 %227, label %228, label %231
228: ; preds = %212
%229 = load i32, i32* %17
%230 = icmp eq i32 %229, 7
br label %231
231: ; preds = %228, %212
%232 = phi i1 [ false, %212 ], [ %230, %228 ]
%233 = zext i1 %232 to i64
%234 = select i1 %232, i32 32, i32 44
%235 = call i32 (i32, i8*, ...) @fprintf(i32 %218, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %222, i32 %234)
br label %236
236: ; preds = %231
%237 = load i32, i32* %17
%238 = add i32 %237, 1
store i32 %238, i32* %17
br label %209
239: ; preds = %209
%240 = load i32*, i32** %3
%241 = ptrtoint i32* %240 to i32
%242 = load i32, i32* %16
%243 = mul i32 %242, 8
%244 = mul i32 %243, 512
%245 = load i32, i32* %16
%246 = add i32 %245, 1
%247 = mul i32 %246, 8
%248 = mul i32 %247, 512
%249 = sub i32 %248, 1
%250 = call i32 (i32, i8*, ...) @fprintf(i32 %241, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i32 %244, i32 %249)
br label %251
251: ; preds = %239
%252 = load i32, i32* %16
%253 = add i32 %252, 1
store i32 %253, i32* %16
br label %200
254: ; preds = %200
%255 = load i32*, i32** %3
%256 = ptrtoint i32* %255 to i32
%257 = call i32 (i32, i8*, ...) @fprintf(i32 %256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%258 = load i32*, i32** %3
%259 = call i64 @ferror(i32* %258)
%260 = icmp ne i64 %259, 0
br i1 %260, label %265, label %261
261: ; preds = %254
%262 = load i32*, i32** %3
%263 = call i64 @fclose(i32* %262)
%264 = icmp ne i64 %263, 0
br i1 %264, label %265, label %270
265: ; preds = %261, %254
%266 = load i32, i32* @stderr
%267 = load i8*, i8** %2
%268 = call i32 (i32, i8*, ...) @fprintf(i32 %266, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i8* %267)
%269 = call i32 @exit(i32 1)
unreachable
270: ; preds = %261
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"w\00"
@stderr = global i32 0
@.str.1 = [30 x i8] c"cannot open '%s' for writing\0A\00"
@.str.2 = [61 x i8] c"static const unsigned char nonspacing_table_data[%d*64] = {\0A\00"
@.str.3 = [23 x i8] c" /* 0x%04x-0x%04x */\0A\00"
@.str.4 = [2 x i8] c" \00"
@.str.5 = [10 x i8] c" 0x%02x%c\00"
@.str.6 = [22 x i8] c" /* 0x%04x-0x%04x */\0A\00"
@.str.7 = [4 x i8] c"};\0A\00"
@.str.8 = [55 x i8] c"static const signed char nonspacing_table_ind[%u] = {\0A\00"
@.str.9 = [7 x i8] c" %2d%c\00"
@.str.10 = [23 x i8] c"error writing to '%s'\0A\00"
define void @output_nonspacing_property(i8* %0) {
%2 = alloca [2176 x i32]
%3 = bitcast [2176 x i32]* %2 to i8*
%4 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i32* %4, null
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%9 = tail call i32 @exit(i32 1)
unreachable
10: ; preds = %1, %27
%11 = phi i64 [ %31, %27 ], [ 0, %1 ]
%12 = phi i32 [ %32, %27 ], [ 512, %1 ]
%13 = phi i32 [ %29, %27 ], [ 0, %1 ]
%14 = icmp eq i64 %11, 1792
br i1 %14, label %27, label %15
15: ; preds = %10
%16 = trunc i64 %11 to i32
%17 = shl i32 %16, 9
br label %20
18: ; preds = %20
%19 = icmp eq i32 %24, %12
br i1 %19, label %27, label %20
20: ; preds = %15, %18
%21 = phi i32 [ %24, %18 ], [ %17, %15 ]
%22 = tail call i64 @is_nonspacing(i32 %21)
%23 = icmp eq i64 %22, 0
%24 = add nuw nsw i32 %21, 1
br i1 %23, label %18, label %25
25: ; preds = %20
%26 = add nsw i32 %13, 1
br label %27
27: ; preds = %18, %10, %25
%28 = phi i32 [ %13, %25 ], [ -1, %10 ], [ -1, %18 ]
%29 = phi i32 [ %26, %25 ], [ %13, %10 ], [ %13, %18 ]
%30 = getelementptr inbounds [2176 x i32], [2176 x i32]* %2, i64 0, i64 %11
store i32 %28, i32* %30
%31 = add nuw nsw i64 %11, 1
%32 = add nuw nsw i32 %12, 512
%33 = icmp eq i64 %31, 2176
br i1 %33, label %34, label %10
34: ; preds = %27
%35 = ptrtoint i32* %4 to i64
%36 = trunc i64 %35 to i32
%37 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0), i32 %29)
br label %38
38: ; preds = %34, %116
%39 = phi i64 [ 0, %34 ], [ %118, %116 ]
%40 = phi i32 [ 0, %34 ], [ %117, %116 ]
%41 = trunc i64 %39 to i32
%42 = getelementptr inbounds [2176 x i32], [2176 x i32]* %2, i64 0, i64 %39
%43 = load i32, i32* %42
%44 = icmp sgt i32 %43, -1
br i1 %44, label %45, label %116
45: ; preds = %38
%46 = shl nuw nsw i64 %39, 9
%47 = shl nuw nsw i32 %41, 9
%48 = or i32 %47, 511
%49 = trunc i64 %46 to i32
%50 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %49, i32 %48)
%51 = add nuw nsw i32 %43, 1
%52 = icmp eq i32 %51, %29
%53 = trunc i64 %46 to i32
%54 = add i32 %53, -1
br label %55
55: ; preds = %45, %110
%56 = phi i32 [ 0, %45 ], [ %111, %110 ]
%57 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%58 = shl i32 %56, 6
%59 = add nuw nsw i32 %58, %49
%60 = icmp eq i32 %56, 7
%61 = select i1 %52, i1 %60, i1 false
br label %62
62: ; preds = %55, %62
%63 = phi i32 [ 0, %55 ], [ %108, %62 ]
%64 = shl i32 %63, 3
%65 = add nuw nsw i32 %59, %64
%66 = tail call i64 @is_nonspacing(i32 %65)
%67 = icmp ne i64 %66, 0
%68 = zext i1 %67 to i32
%69 = or i32 %65, 1
%70 = tail call i64 @is_nonspacing(i32 %69)
%71 = icmp eq i64 %70, 0
%72 = select i1 %71, i32 0, i32 2
%73 = or i32 %72, %68
%74 = or i32 %65, 2
%75 = tail call i64 @is_nonspacing(i32 %74)
%76 = icmp eq i64 %75, 0
%77 = select i1 %76, i32 0, i32 4
%78 = or i32 %77, %73
%79 = or i32 %65, 3
%80 = tail call i64 @is_nonspacing(i32 %79)
%81 = icmp eq i64 %80, 0
%82 = select i1 %81, i32 0, i32 8
%83 = or i32 %82, %78
%84 = or i32 %65, 4
%85 = tail call i64 @is_nonspacing(i32 %84)
%86 = icmp eq i64 %85, 0
%87 = select i1 %86, i32 0, i32 16
%88 = or i32 %87, %83
%89 = or i32 %65, 5
%90 = tail call i64 @is_nonspacing(i32 %89)
%91 = icmp eq i64 %90, 0
%92 = select i1 %91, i32 0, i32 32
%93 = or i32 %65, 6
%94 = tail call i64 @is_nonspacing(i32 %93)
%95 = icmp eq i64 %94, 0
%96 = select i1 %95, i32 0, i32 64
%97 = or i32 %65, 7
%98 = tail call i64 @is_nonspacing(i32 %97)
%99 = icmp eq i64 %98, 0
%100 = select i1 %99, i32 0, i32 128
%101 = or i32 %92, %88
%102 = or i32 %96, %101
%103 = or i32 %100, %102
%104 = icmp eq i32 %63, 7
%105 = select i1 %61, i1 %104, i1 false
%106 = select i1 %105, i32 32, i32 44
%107 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 %103, i32 %106)
%108 = add nuw nsw i32 %63, 1
%109 = icmp eq i32 %108, 8
br i1 %109, label %110, label %62
110: ; preds = %62
%111 = add nuw nsw i32 %56, 1
%112 = shl i32 %111, 6
%113 = add nsw i32 %54, %112
%114 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i32 %59, i32 %113)
%115 = icmp eq i32 %111, 8
br i1 %115, label %116, label %55
116: ; preds = %110, %38
%117 = phi i32 [ %40, %38 ], [ %41, %110 ]
%118 = add nuw nsw i64 %39, 1
%119 = icmp eq i64 %118, 2176
br i1 %119, label %120, label %38
120: ; preds = %116
%121 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%122 = add i32 %117, 7
%123 = lshr i32 %122, 3
%124 = and i32 %122, -8
%125 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0), i32 %124)
%126 = icmp ult i32 %122, 8
br i1 %126, label %177, label %127
127: ; preds = %120
%128 = add nsw i32 %123, -1
%129 = zext i32 %128 to i64
%130 = call i32 @llvm.umax.i32(i32 %123, i32 1)
%131 = zext i32 %130 to i64
br label %132
132: ; preds = %127, %132
%133 = phi i64 [ 0, %127 ], [ %171, %132 ]
%134 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%135 = shl i64 %133, 3
%136 = icmp eq i64 %133, %129
%137 = getelementptr inbounds [2176 x i32], [2176 x i32]* %2, i64 0, i64 %135
%138 = load i32, i32* %137
%139 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %138, i32 44)
%140 = or i64 %135, 1
%141 = getelementptr inbounds [2176 x i32], [2176 x i32]* %2, i64 0, i64 %140
%142 = load i32, i32* %141
%143 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %142, i32 44)
%144 = or i64 %135, 2
%145 = getelementptr inbounds [2176 x i32], [2176 x i32]* %2, i64 0, i64 %144
%146 = load i32, i32* %145
%147 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %146, i32 44)
%148 = or i64 %135, 3
%149 = getelementptr inbounds [2176 x i32], [2176 x i32]* %2, i64 0, i64 %148
%150 = load i32, i32* %149
%151 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %150, i32 44)
%152 = or i64 %135, 4
%153 = getelementptr inbounds [2176 x i32], [2176 x i32]* %2, i64 0, i64 %152
%154 = load i32, i32* %153
%155 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %154, i32 44)
%156 = or i64 %135, 5
%157 = getelementptr inbounds [2176 x i32], [2176 x i32]* %2, i64 0, i64 %156
%158 = load i32, i32* %157
%159 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %158, i32 44)
%160 = or i64 %135, 6
%161 = getelementptr inbounds [2176 x i32], [2176 x i32]* %2, i64 0, i64 %160
%162 = load i32, i32* %161
%163 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %162, i32 44)
%164 = or i64 %135, 7
%165 = getelementptr inbounds [2176 x i32], [2176 x i32]* %2, i64 0, i64 %164
%166 = load i32, i32* %165
%167 = select i1 %136, i32 32, i32 44
%168 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %166, i32 %167)
%169 = trunc i64 %133 to i32
%170 = shl i32 %169, 12
%171 = add nuw nsw i64 %133, 1
%172 = trunc i64 %171 to i32
%173 = shl i32 %172, 12
%174 = add i32 %173, -1
%175 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i32 %170, i32 %174)
%176 = icmp eq i64 %171, %131
br i1 %176, label %177, label %132
177: ; preds = %132, %120
%178 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%179 = tail call i64 @ferror(i32* %4)
%180 = icmp eq i64 %179, 0
br i1 %180, label %181, label %184
181: ; preds = %177
%182 = tail call i64 @fclose(i32* %4)
%183 = icmp eq i64 %182, 0
br i1 %183, label %188, label %184
184: ; preds = %181, %177
%185 = load i32, i32* @stderr
%186 = tail call i32 (i32, i8*, ...) @fprintf(i32 %185, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i8* %0)
%187 = tail call i32 @exit(i32 1)
unreachable
188: ; preds = %181
ret void
}