int main(void) {
  register int ii, tmp, i, a, arrs;
  int array[1000] = {
      6, 2, 0, 1, 0, 0, 0, 4, 3, 8, 7, 8, 8, 5, 0, 2, 7, 0, 5, 9, 9, 4, 7, 5,
      9, 4, 8, 8, 9, 7, 2, 8, 9, 4, 9, 9, 4, 1, 5, 0, 0, 3, 8, 0, 0, 0, 2, 0,
      0, 9, 9, 9, 5, 6, 6, 5, 0, 4, 5, 2, 1, 9, 0, 1, 4, 1, 2, 0, 2, 8, 0, 4,
      3, 0, 4, 3, 0, 9, 3, 2, 8, 2, 3, 4, 0, 9, 1, 1, 5, 8, 5, 7, 8, 5, 0, 4,
      8, 4, 4, 2, 2, 7, 7, 5, 7, 3, 1, 0, 4, 6, 2, 3, 1, 8, 9, 1, 9, 2, 4, 5,
      0, 9, 4, 0, 6, 6, 4, 4, 0, 9, 7, 3, 6, 6, 0, 5, 1, 3, 5, 6, 0, 0, 1, 3,
      0, 0, 4, 9, 4, 1, 6, 6, 0, 0, 7, 7, 6, 1, 3, 7, 2, 2, 2, 0, 0, 2, 6, 2,
      8, 3, 0, 0, 5, 1, 3, 5, 3, 9, 5, 9, 0, 1, 5, 3, 4, 2, 0, 0, 6, 5, 9, 0,
      8, 1, 1, 0, 6, 9, 2, 6, 2, 4, 6, 8, 5, 9, 5, 0, 0, 0, 9, 1, 4, 5, 6, 8,
      9, 8, 0, 5, 3, 0, 6, 3, 3, 9, 4, 1, 8, 8, 7, 2, 3, 3, 2, 8, 4, 8, 1, 7,
      0, 0, 0, 4, 7, 6, 4, 7, 4, 5, 4, 7, 5, 0, 1, 0, 1, 7, 2, 1, 5, 1, 4, 8,
      7, 8, 9, 1, 8, 0, 8, 9, 2, 8, 5, 0, 6, 0, 9, 0, 5, 3, 8, 2, 6, 1, 4, 7,
      8, 8, 9, 3, 0, 5, 4, 7, 5, 3, 0, 4, 3, 1, 5, 7, 1, 0, 9, 8, 2, 8, 0, 9,
      2, 8, 3, 0, 1, 8, 9, 1, 6, 0, 5, 8, 5,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0, 8};
  arrs = 999;
  a = 1;
  i = 1;
  while (a) {
    a = 0;
    i = (i) ? 0 : 1;
    for (ii = 0 + i; ii < arrs; ii = ii + 2) {
      if (array[ii] > array[ii + 1]) {
        a = 1;
        tmp = array[ii];
        array[ii] = array[ii + 1];
        array[ii + 1] = tmp;
      }
    }
  }
  for (ii = 0; ii < ((arrs + 1) / 10); ii++) {
    for (i = 0; i < 10; i++)
      printf("%3d ", array[i + ii * 10]);
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xfd0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0xfc0(%rbp),%rdi
lea    0xec0(%rip),%rsi
mov    $0xfa0,%edx
call   1040 <memcpy@plt>
movl   $0x3e7,-0x18(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x1,-0x10(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1212 <main+0xf2>
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%edx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x0,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    120d <main+0xed>
movslq -0x8(%rbp),%rax
mov    -0xfc0(%rbp,%rax,4),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0xfc0(%rbp,%rcx,4),%eax
jle    11fa <main+0xda>
movl   $0x1,-0x14(%rbp)
movslq -0x8(%rbp),%rax
mov    -0xfc0(%rbp,%rax,4),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0xfc0(%rbp,%rax,4),%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0xfc0(%rbp,%rax,4)
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0xfc0(%rbp,%rax,4)
jmp    11ff <main+0xdf>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    118c <main+0x6c>
jmp    115f <main+0x3f>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xfc4(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xfc4(%rbp),%eax
cmp    %ecx,%eax
jge    129b <main+0x17b>
movl   $0x0,-0x10(%rbp)
cmpl   $0xa,-0x10(%rbp)
jge    127f <main+0x15f>
mov    -0x10(%rbp),%eax
imul   $0xa,-0x8(%rbp),%ecx
add    %ecx,%eax
cltq
mov    -0xfc0(%rbp,%rax,4),%esi
lea    0x1d36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1247 <main+0x127>
lea    0x1d1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1219 <main+0xf9>
xor    %eax,%eax
add    $0xfd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0xfa8,%rsp
lea    0xebf(%rip),%rsi
mov    %rsp,%rdi
mov    $0xfa0,%edx
call   1050 <memcpy@plt>
mov    $0x1,%eax
jmp    1164 <main+0x34>
cs nopw 0x0(%rax,%rax,1)
nop
test   %edx,%edx
je     11a8 <main+0x78>
xor    $0x1,%eax
cmp    $0x3e6,%eax
jg     11a8 <main+0x78>
movslq %eax,%rcx
add    $0xfffffffffffffffe,%rcx
xor    %edx,%edx
jmp    118d <main+0x5d>
nopl   0x0(%rax)
add    $0x2,%rcx
cmp    $0x3e5,%rcx
jge    1160 <main+0x30>
mov    0x8(%rsp,%rcx,4),%esi
mov    0xc(%rsp,%rcx,4),%edi
cmp    %edi,%esi
jle    1180 <main+0x50>
mov    %edi,0x8(%rsp,%rcx,4)
mov    %esi,0xc(%rsp,%rcx,4)
mov    $0x1,%edx
jmp    1180 <main+0x50>
mov    $0x24,%ebx
lea    0x1dec(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    -0x24(%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x20(%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x1c(%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x18(%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x14(%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x10(%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0xc(%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x8(%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x4(%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x28,%rbx
cmp    $0xfc4,%rbx
jne    11c0 <main+0x90>
xor    %eax,%eax
add    $0xfa8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.array = [1000 x i32] [i32 6, i32 2, i32 0, i32 1, i32 0, i32 0, i32 0, i32 4, i32 3, i32 8, i32 7, i32 8, i32 8, i32 5, i32 0, i32 2, i32 7, i32 0, i32 5, i32 9, i32 9, i32 4, i32 7, i32 5, i32 9, i32 4, i32 8, i32 8, i32 9, i32 7, i32 2, i32 8, i32 9, i32 4, i32 9, i32 9, i32 4, i32 1, i32 5, i32 0, i32 0, i32 3, i32 8, i32 0, i32 0, i32 0, i32 2, i32 0, i32 0, i32 9, i32 9, i32 9, i32 5, i32 6, i32 6, i32 5, i32 0, i32 4, i32 5, i32 2, i32 1, i32 9, i32 0, i32 1, i32 4, i32 1, i32 2, i32 0, i32 2, i32 8, i32 0, i32 4, i32 3, i32 0, i32 4, i32 3, i32 0, i32 9, i32 3, i32 2, i32 8, i32 2, i32 3, i32 4, i32 0, i32 9, i32 1, i32 1, i32 5, i32 8, i32 5, i32 7, i32 8, i32 5, i32 0, i32 4, i32 8, i32 4, i32 4, i32 2, i32 2, i32 7, i32 7, i32 5, i32 7, i32 3, i32 1, i32 0, i32 4, i32 6, i32 2, i32 3, i32 1, i32 8, i32 9, i32 1, i32 9, i32 2, i32 4, i32 5, i32 0, i32 9, i32 4, i32 0, i32 6, i32 6, i32 4, i32 4, i32 0, i32 9, i32 7, i32 3, i32 6, i32 6, i32 0, i32 5, i32 1, i32 3, i32 5, i32 6, i32 0, i32 0, i32 1, i32 3, i32 0, i32 0, i32 4, i32 9, i32 4, i32 1, i32 6, i32 6, i32 0, i32 0, i32 7, i32 7, i32 6, i32 1, i32 3, i32 7, i32 2, i32 2, i32 2, i32 0, i32 0, i32 2, i32 6, i32 2, i32 8, i32 3, i32 0, i32 0, i32 5, i32 1, i32 3, i32 5, i32 3, i32 9, i32 5, i32 9, i32 0, i32 1, i32 5, i32 3, i32 4, i32 2, i32 0, i32 0, i32 6, i32 5, i32 9, i32 0, i32 8, i32 1, i32 1, i32 0, i32 6, i32 9, i32 2, i32 6, i32 2, i32 4, i32 6, i32 8, i32 5, i32 9, i32 5, i32 0, i32 0, i32 0, i32 9, i32 1, i32 4, i32 5, i32 6, i32 8, i32 9, i32 8, i32 0, i32 5, i32 3, i32 0, i32 6, i32 3, i32 3, i32 9, i32 4, i32 1, i32 8, i32 8, i32 7, i32 2, i32 3, i32 3, i32 2, i32 8, i32 4, i32 8, i32 1, i32 7, i32 0, i32 0, i32 0, i32 4, i32 7, i32 6, i32 4, i32 7, i32 4, i32 5, i32 4, i32 7, i32 5, i32 0, i32 1, i32 0, i32 1, i32 7, i32 2, i32 1, i32 5, i32 1, i32 4, i32 8, i32 7, i32 8, i32 9, i32 1, i32 8, i32 0, i32 8, i32 9, i32 2, i32 8, i32 5, i32 0, i32 6, i32 0, i32 9, i32 0, i32 5, i32 3, i32 8, i32 2, i32 6, i32 1, i32 4, i32 7, i32 8, i32 8, i32 9, i32 3, i32 0, i32 5, i32 4, i32 7, i32 5, i32 3, i32 0, i32 4, i32 3, i32 1, i32 5, i32 7, i32 1, i32 0, i32 9, i32 8, i32 2, i32 8, i32 0, i32 9, i32 2, i32 8, i32 3, i32 0, i32 1, i32 8, i32 9, i32 1, i32 6, i32 0, i32 5, i32 8, i32 5, i32 9, i32 7, i32 3, i32 4, i32 8, i32 7, i32 9, i32 1, i32 4, i32 6, i32 4, i32 4, i32 6, i32 2, i32 9, i32 6, i32 5, i32 8, i32 0, i32 3, i32 2, i32 0, i32 7, i32 2, i32 0, i32 8, i32 0, i32 0, i32 5, i32 9, i32 8, i32 6, i32 6, i32 1, i32 2, i32 6, i32 0, i32 1, i32 7, i32 4, i32 8, i32 4, i32 0, i32 6, i32 8, i32 9, i32 2, i32 3, i32 0, i32 3, i32 7, i32 4, i32 5, i32 6, i32 6, i32 5, i32 6, i32 6, i32 8, i32 4, i32 7, i32 6, i32 0, i32 4, i32 9, i32 3, i32 2, i32 9, i32 6, i32 0, i32 3, i32 6, i32 4, i32 3, i32 2, i32 4, i32 5, i32 7, i32 8, i32 5, i32 2, i32 7, i32 9, i32 7, i32 3, i32 7, i32 3, i32 9, i32 5, i32 3, i32 5, i32 3, i32 1, i32 6, i32 9, i32 0, i32 1, i32 1, i32 9, i32 9, i32 1, i32 2, i32 6, i32 7, i32 7, i32 8, i32 2, i32 2, i32 7, i32 0, i32 7, i32 9, i32 9, i32 8, i32 7, i32 2, i32 5, i32 2, i32 3, i32 1, i32 5, i32 9, i32 6, i32 6, i32 7, i32 5, i32 8, i32 0, i32 6, i32 7, i32 9, i32 0, i32 1, i32 5, i32 9, i32 8, i32 6, i32 3, i32 3, i32 3, i32 5, i32 0, i32 3, i32 4, i32 9, i32 0, i32 6, i32 6, i32 2, i32 2, i32 9, i32 9, i32 1, i32 5, i32 7, i32 0, i32 0, i32 5, i32 0, i32 7, i32 4, i32 1, i32 7, i32 5, i32 7, i32 6, i32 5, i32 5, i32 0, i32 8, i32 8, i32 5, i32 1, i32 1, i32 0, i32 2, i32 3, i32 8, i32 8, i32 7, i32 0, i32 0, i32 8, i32 3, i32 5, i32 5, i32 5, i32 8, i32 2, i32 5, i32 5, i32 6, i32 9, i32 4, i32 3, i32 8, i32 2, i32 9, i32 3, i32 4, i32 9, i32 1, i32 2, i32 0, i32 5, i32 4, i32 4, i32 8, i32 2, i32 5, i32 8, i32 5, i32 5, i32 6, i32 0, i32 0, i32 4, i32 6, i32 0, i32 6, i32 3, i32 5, i32 5, i32 2, i32 1, i32 8, i32 0, i32 4, i32 9, i32 3, i32 0, i32 1, i32 7, i32 2, i32 1, i32 2, i32 6, i32 8, i32 2, i32 1, i32 3, i32 2, i32 8, i32 8, i32 9, i32 8, i32 0, i32 3, i32 6, i32 1, i32 1, i32 2, i32 8, i32 6, i32 4, i32 0, i32 5, i32 7, i32 6, i32 6, i32 2, i32 8, i32 7, i32 1, i32 1, i32 1, i32 5, i32 9, i32 9, i32 8, i32 2, i32 2, i32 0, i32 0, i32 2, i32 1, i32 1, i32 2, i32 6, i32 7, i32 5, i32 8, i32 9, i32 4, i32 4, i32 6, i32 6, i32 1, i32 5, i32 4, i32 0, i32 9, i32 2, i32 7, i32 1, i32 5, i32 8, i32 6, i32 5, i32 7, i32 6, i32 9, i32 1, i32 9, i32 0, i32 3, i32 0, i32 1, i32 8, i32 9, i32 0, i32 3, i32 7, i32 2, i32 7, i32 3, i32 8, i32 3, i32 7, i32 3, i32 9, i32 7, i32 4, i32 2, i32 4, i32 5, i32 7, i32 5, i32 2, i32 4, i32 4, i32 8, i32 4, i32 8, i32 9, i32 6, i32 1, i32 0, i32 7, i32 9, i32 1, i32 9, i32 3, i32 8, i32 1, i32 2, i32 3, i32 9, i32 8, i32 2, i32 4, i32 7, i32 9, i32 9, i32 9, i32 6, i32 6, i32 9, i32 3, i32 8, i32 5, i32 7, i32 9, i32 1, i32 5, i32 8, i32 7, i32 9, i32 0, i32 6, i32 0, i32 1, i32 8, i32 3, i32 1, i32 9, i32 8, i32 5, i32 1, i32 6, i32 7, i32 7, i32 3, i32 9, i32 8, i32 5, i32 7, i32 5, i32 6, i32 0, i32 3, i32 3, i32 9, i32 4, i32 5, i32 7, i32 5, i32 4, i32 6, i32 5, i32 3, i32 6, i32 7, i32 1, i32 2, i32 0, i32 0, i32 0, i32 5, i32 1, i32 8, i32 5, i32 1, i32 1, i32 6, i32 9, i32 8, i32 3, i32 4, i32 4, i32 5, i32 0, i32 8, i32 4, i32 4, i32 3, i32 1, i32 9, i32 9, i32 9, i32 7, i32 2, i32 8, i32 6, i32 3, i32 0, i32 6, i32 6, i32 2, i32 2, i32 9, i32 0, i32 9, i32 0, i32 3, i32 7, i32 0, i32 2, i32 0, i32 4, i32 6, i32 7, i32 6, i32 6, i32 3, i32 3, i32 1, i32 5, i32 4, i32 1, i32 6, i32 1, i32 5, i32 4, i32 7, i32 9, i32 6, i32 4, i32 7, i32 0, i32 8, i32 6, i32 2, i32 9, i32 9, i32 6, i32 6, i32 9, i32 0, i32 8, i32 5, i32 8, i32 5, i32 2, i32 5, i32 8, i32 5, i32 8, i32 5, i32 9, i32 9, i32 4, i32 3, i32 5, i32 0, i32 0, i32 6, i32 7, i32 6, i32 5, i32 9, i32 6, i32 1, i32 2, i32 5, i32 0, i32 0, i32 3, i32 1, i32 2, i32 1, i32 7, i32 0, i32 8, i32 1, i32 7, i32 9, i32 8, i32 6, i32 6, i32 9, i32 5, i32 0, i32 2, i32 2, i32 1, i32 5, i32 0, i32 0, i32 1, i32 5, i32 1, i32 8, i32 9, i32 5, i32 5, i32 1, i32 5, i32 9, i32 3, i32 9, i32 2, i32 2, i32 0, i32 3, i32 5, i32 7, i32 2, i32 3, i32 3, i32 0, i32 2, i32 1, i32 1, i32 7, i32 5, i32 4, i32 2, i32 6, i32 6, i32 5, i32 3, i32 9, i32 5, i32 2, i32 5, i32 3, i32 6, i32 2, i32 4, i32 1, i32 2, i32 6, i32 3, i32 2, i32 1, i32 0, i32 1, i32 5, i32 5, i32 7, i32 6, i32 9, i32 0, i32 9, i32 6, i32 5, i32 5, i32 0, i32 3, i32 1, i32 6, i32 7, i32 0, i32 1, i32 1, i32 7, i32 4, i32 7, i32 0, i32 8, i32 8, i32 4, i32 7, i32 3, i32 8, i32 8, i32 5, i32 9, i32 4, i32 0, i32 8, i32 2, i32 0, i32 8, i32 1, i32 6, i32 4, i32 6, i32 7, i32 9, i32 9, i32 5, i32 6, i32 1, i32 6, i32 8, i32 9, i32 3, i32 7, i32 1, i32 3, i32 8, i32 5, i32 0, i32 1, i32 5, i32 1, i32 7, i32 6, i32 7, i32 9, i32 5, i32 9, i32 9, i32 5, i32 2, i32 6, i32 1, i32 8, i32 5, i32 1, i32 9, i32 0, i32 7, i32 0, i32 8, i32 7, i32 1, i32 1, i32 7, i32 4, i32 5, i32 5, i32 1, i32 7, i32 8, i32 6, i32 0, i32 7, i32 3, i32 7, i32 7, i32 0, i32 8]
@.str = [5 x i8] c"%3d \00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [1000 x i32]
store i32 0, i32* %1
%8 = bitcast [1000 x i32]* %7 to i8*
store i32 999, i32* %6
store i32 1, i32* %5
store i32 1, i32* %4
br label %9
9: ; preds = %56, %0
%10 = load i32, i32* %5
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %57
12: ; preds = %9
store i32 0, i32* %5
%13 = load i32, i32* %4
%14 = icmp ne i32 %13, 0
%15 = zext i1 %14 to i64
%16 = select i1 %14, i32 0, i32 1
store i32 %16, i32* %4
%17 = load i32, i32* %4
%18 = add nsw i32 0, %17
store i32 %18, i32* %2
br label %19
19: ; preds = %53, %12
%20 = load i32, i32* %2
%21 = load i32, i32* %6
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %56
23: ; preds = %19
%24 = load i32, i32* %2
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [1000 x i32], [1000 x i32]* %7, i64 0, i64 %25
%27 = load i32, i32* %26
%28 = load i32, i32* %2
%29 = add nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [1000 x i32], [1000 x i32]* %7, i64 0, i64 %30
%32 = load i32, i32* %31
%33 = icmp sgt i32 %27, %32
br i1 %33, label %34, label %52
34: ; preds = %23
store i32 1, i32* %5
%35 = load i32, i32* %2
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [1000 x i32], [1000 x i32]* %7, i64 0, i64 %36
%38 = load i32, i32* %37
store i32 %38, i32* %3
%39 = load i32, i32* %2
%40 = add nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [1000 x i32], [1000 x i32]* %7, i64 0, i64 %41
%43 = load i32, i32* %42
%44 = load i32, i32* %2
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [1000 x i32], [1000 x i32]* %7, i64 0, i64 %45
store i32 %43, i32* %46
%47 = load i32, i32* %3
%48 = load i32, i32* %2
%49 = add nsw i32 %48, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [1000 x i32], [1000 x i32]* %7, i64 0, i64 %50
store i32 %47, i32* %51
br label %52
52: ; preds = %34, %23
br label %53
53: ; preds = %52
%54 = load i32, i32* %2
%55 = add nsw i32 %54, 2
store i32 %55, i32* %2
br label %19
56: ; preds = %19
br label %9
57: ; preds = %9
store i32 0, i32* %2
br label %58
58: ; preds = %82, %57
%59 = load i32, i32* %2
%60 = load i32, i32* %6
%61 = add nsw i32 %60, 1
%62 = sdiv i32 %61, 10
%63 = icmp slt i32 %59, %62
br i1 %63, label %64, label %85
64: ; preds = %58
store i32 0, i32* %4
br label %65
65: ; preds = %77, %64
%66 = load i32, i32* %4
%67 = icmp slt i32 %66, 10
br i1 %67, label %68, label %80
68: ; preds = %65
%69 = load i32, i32* %4
%70 = load i32, i32* %2
%71 = mul nsw i32 %70, 10
%72 = add nsw i32 %69, %71
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [1000 x i32], [1000 x i32]* %7, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %75)
br label %77
77: ; preds = %68
%78 = load i32, i32* %4
%79 = add nsw i32 %78, 1
store i32 %79, i32* %4
br label %65
80: ; preds = %65
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %82
82: ; preds = %80
%83 = load i32, i32* %2
%84 = add nsw i32 %83, 1
store i32 %84, i32* %2
br label %58
85: ; preds = %58
ret i32 0
}

LLVM IR (-O2):
@__const.main.array = [1000 x i32] [i32 6, i32 2, i32 0, i32 1, i32 0, i32 0, i32 0, i32 4, i32 3, i32 8, i32 7, i32 8, i32 8, i32 5, i32 0, i32 2, i32 7, i32 0, i32 5, i32 9, i32 9, i32 4, i32 7, i32 5, i32 9, i32 4, i32 8, i32 8, i32 9, i32 7, i32 2, i32 8, i32 9, i32 4, i32 9, i32 9, i32 4, i32 1, i32 5, i32 0, i32 0, i32 3, i32 8, i32 0, i32 0, i32 0, i32 2, i32 0, i32 0, i32 9, i32 9, i32 9, i32 5, i32 6, i32 6, i32 5, i32 0, i32 4, i32 5, i32 2, i32 1, i32 9, i32 0, i32 1, i32 4, i32 1, i32 2, i32 0, i32 2, i32 8, i32 0, i32 4, i32 3, i32 0, i32 4, i32 3, i32 0, i32 9, i32 3, i32 2, i32 8, i32 2, i32 3, i32 4, i32 0, i32 9, i32 1, i32 1, i32 5, i32 8, i32 5, i32 7, i32 8, i32 5, i32 0, i32 4, i32 8, i32 4, i32 4, i32 2, i32 2, i32 7, i32 7, i32 5, i32 7, i32 3, i32 1, i32 0, i32 4, i32 6, i32 2, i32 3, i32 1, i32 8, i32 9, i32 1, i32 9, i32 2, i32 4, i32 5, i32 0, i32 9, i32 4, i32 0, i32 6, i32 6, i32 4, i32 4, i32 0, i32 9, i32 7, i32 3, i32 6, i32 6, i32 0, i32 5, i32 1, i32 3, i32 5, i32 6, i32 0, i32 0, i32 1, i32 3, i32 0, i32 0, i32 4, i32 9, i32 4, i32 1, i32 6, i32 6, i32 0, i32 0, i32 7, i32 7, i32 6, i32 1, i32 3, i32 7, i32 2, i32 2, i32 2, i32 0, i32 0, i32 2, i32 6, i32 2, i32 8, i32 3, i32 0, i32 0, i32 5, i32 1, i32 3, i32 5, i32 3, i32 9, i32 5, i32 9, i32 0, i32 1, i32 5, i32 3, i32 4, i32 2, i32 0, i32 0, i32 6, i32 5, i32 9, i32 0, i32 8, i32 1, i32 1, i32 0, i32 6, i32 9, i32 2, i32 6, i32 2, i32 4, i32 6, i32 8, i32 5, i32 9, i32 5, i32 0, i32 0, i32 0, i32 9, i32 1, i32 4, i32 5, i32 6, i32 8, i32 9, i32 8, i32 0, i32 5, i32 3, i32 0, i32 6, i32 3, i32 3, i32 9, i32 4, i32 1, i32 8, i32 8, i32 7, i32 2, i32 3, i32 3, i32 2, i32 8, i32 4, i32 8, i32 1, i32 7, i32 0, i32 0, i32 0, i32 4, i32 7, i32 6, i32 4, i32 7, i32 4, i32 5, i32 4, i32 7, i32 5, i32 0, i32 1, i32 0, i32 1, i32 7, i32 2, i32 1, i32 5, i32 1, i32 4, i32 8, i32 7, i32 8, i32 9, i32 1, i32 8, i32 0, i32 8, i32 9, i32 2, i32 8, i32 5, i32 0, i32 6, i32 0, i32 9, i32 0, i32 5, i32 3, i32 8, i32 2, i32 6, i32 1, i32 4, i32 7, i32 8, i32 8, i32 9, i32 3, i32 0, i32 5, i32 4, i32 7, i32 5, i32 3, i32 0, i32 4, i32 3, i32 1, i32 5, i32 7, i32 1, i32 0, i32 9, i32 8, i32 2, i32 8, i32 0, i32 9, i32 2, i32 8, i32 3, i32 0, i32 1, i32 8, i32 9, i32 1, i32 6, i32 0, i32 5, i32 8, i32 5, i32 9, i32 7, i32 3, i32 4, i32 8, i32 7, i32 9, i32 1, i32 4, i32 6, i32 4, i32 4, i32 6, i32 2, i32 9, i32 6, i32 5, i32 8, i32 0, i32 3, i32 2, i32 0, i32 7, i32 2, i32 0, i32 8, i32 0, i32 0, i32 5, i32 9, i32 8, i32 6, i32 6, i32 1, i32 2, i32 6, i32 0, i32 1, i32 7, i32 4, i32 8, i32 4, i32 0, i32 6, i32 8, i32 9, i32 2, i32 3, i32 0, i32 3, i32 7, i32 4, i32 5, i32 6, i32 6, i32 5, i32 6, i32 6, i32 8, i32 4, i32 7, i32 6, i32 0, i32 4, i32 9, i32 3, i32 2, i32 9, i32 6, i32 0, i32 3, i32 6, i32 4, i32 3, i32 2, i32 4, i32 5, i32 7, i32 8, i32 5, i32 2, i32 7, i32 9, i32 7, i32 3, i32 7, i32 3, i32 9, i32 5, i32 3, i32 5, i32 3, i32 1, i32 6, i32 9, i32 0, i32 1, i32 1, i32 9, i32 9, i32 1, i32 2, i32 6, i32 7, i32 7, i32 8, i32 2, i32 2, i32 7, i32 0, i32 7, i32 9, i32 9, i32 8, i32 7, i32 2, i32 5, i32 2, i32 3, i32 1, i32 5, i32 9, i32 6, i32 6, i32 7, i32 5, i32 8, i32 0, i32 6, i32 7, i32 9, i32 0, i32 1, i32 5, i32 9, i32 8, i32 6, i32 3, i32 3, i32 3, i32 5, i32 0, i32 3, i32 4, i32 9, i32 0, i32 6, i32 6, i32 2, i32 2, i32 9, i32 9, i32 1, i32 5, i32 7, i32 0, i32 0, i32 5, i32 0, i32 7, i32 4, i32 1, i32 7, i32 5, i32 7, i32 6, i32 5, i32 5, i32 0, i32 8, i32 8, i32 5, i32 1, i32 1, i32 0, i32 2, i32 3, i32 8, i32 8, i32 7, i32 0, i32 0, i32 8, i32 3, i32 5, i32 5, i32 5, i32 8, i32 2, i32 5, i32 5, i32 6, i32 9, i32 4, i32 3, i32 8, i32 2, i32 9, i32 3, i32 4, i32 9, i32 1, i32 2, i32 0, i32 5, i32 4, i32 4, i32 8, i32 2, i32 5, i32 8, i32 5, i32 5, i32 6, i32 0, i32 0, i32 4, i32 6, i32 0, i32 6, i32 3, i32 5, i32 5, i32 2, i32 1, i32 8, i32 0, i32 4, i32 9, i32 3, i32 0, i32 1, i32 7, i32 2, i32 1, i32 2, i32 6, i32 8, i32 2, i32 1, i32 3, i32 2, i32 8, i32 8, i32 9, i32 8, i32 0, i32 3, i32 6, i32 1, i32 1, i32 2, i32 8, i32 6, i32 4, i32 0, i32 5, i32 7, i32 6, i32 6, i32 2, i32 8, i32 7, i32 1, i32 1, i32 1, i32 5, i32 9, i32 9, i32 8, i32 2, i32 2, i32 0, i32 0, i32 2, i32 1, i32 1, i32 2, i32 6, i32 7, i32 5, i32 8, i32 9, i32 4, i32 4, i32 6, i32 6, i32 1, i32 5, i32 4, i32 0, i32 9, i32 2, i32 7, i32 1, i32 5, i32 8, i32 6, i32 5, i32 7, i32 6, i32 9, i32 1, i32 9, i32 0, i32 3, i32 0, i32 1, i32 8, i32 9, i32 0, i32 3, i32 7, i32 2, i32 7, i32 3, i32 8, i32 3, i32 7, i32 3, i32 9, i32 7, i32 4, i32 2, i32 4, i32 5, i32 7, i32 5, i32 2, i32 4, i32 4, i32 8, i32 4, i32 8, i32 9, i32 6, i32 1, i32 0, i32 7, i32 9, i32 1, i32 9, i32 3, i32 8, i32 1, i32 2, i32 3, i32 9, i32 8, i32 2, i32 4, i32 7, i32 9, i32 9, i32 9, i32 6, i32 6, i32 9, i32 3, i32 8, i32 5, i32 7, i32 9, i32 1, i32 5, i32 8, i32 7, i32 9, i32 0, i32 6, i32 0, i32 1, i32 8, i32 3, i32 1, i32 9, i32 8, i32 5, i32 1, i32 6, i32 7, i32 7, i32 3, i32 9, i32 8, i32 5, i32 7, i32 5, i32 6, i32 0, i32 3, i32 3, i32 9, i32 4, i32 5, i32 7, i32 5, i32 4, i32 6, i32 5, i32 3, i32 6, i32 7, i32 1, i32 2, i32 0, i32 0, i32 0, i32 5, i32 1, i32 8, i32 5, i32 1, i32 1, i32 6, i32 9, i32 8, i32 3, i32 4, i32 4, i32 5, i32 0, i32 8, i32 4, i32 4, i32 3, i32 1, i32 9, i32 9, i32 9, i32 7, i32 2, i32 8, i32 6, i32 3, i32 0, i32 6, i32 6, i32 2, i32 2, i32 9, i32 0, i32 9, i32 0, i32 3, i32 7, i32 0, i32 2, i32 0, i32 4, i32 6, i32 7, i32 6, i32 6, i32 3, i32 3, i32 1, i32 5, i32 4, i32 1, i32 6, i32 1, i32 5, i32 4, i32 7, i32 9, i32 6, i32 4, i32 7, i32 0, i32 8, i32 6, i32 2, i32 9, i32 9, i32 6, i32 6, i32 9, i32 0, i32 8, i32 5, i32 8, i32 5, i32 2, i32 5, i32 8, i32 5, i32 8, i32 5, i32 9, i32 9, i32 4, i32 3, i32 5, i32 0, i32 0, i32 6, i32 7, i32 6, i32 5, i32 9, i32 6, i32 1, i32 2, i32 5, i32 0, i32 0, i32 3, i32 1, i32 2, i32 1, i32 7, i32 0, i32 8, i32 1, i32 7, i32 9, i32 8, i32 6, i32 6, i32 9, i32 5, i32 0, i32 2, i32 2, i32 1, i32 5, i32 0, i32 0, i32 1, i32 5, i32 1, i32 8, i32 9, i32 5, i32 5, i32 1, i32 5, i32 9, i32 3, i32 9, i32 2, i32 2, i32 0, i32 3, i32 5, i32 7, i32 2, i32 3, i32 3, i32 0, i32 2, i32 1, i32 1, i32 7, i32 5, i32 4, i32 2, i32 6, i32 6, i32 5, i32 3, i32 9, i32 5, i32 2, i32 5, i32 3, i32 6, i32 2, i32 4, i32 1, i32 2, i32 6, i32 3, i32 2, i32 1, i32 0, i32 1, i32 5, i32 5, i32 7, i32 6, i32 9, i32 0, i32 9, i32 6, i32 5, i32 5, i32 0, i32 3, i32 1, i32 6, i32 7, i32 0, i32 1, i32 1, i32 7, i32 4, i32 7, i32 0, i32 8, i32 8, i32 4, i32 7, i32 3, i32 8, i32 8, i32 5, i32 9, i32 4, i32 0, i32 8, i32 2, i32 0, i32 8, i32 1, i32 6, i32 4, i32 6, i32 7, i32 9, i32 9, i32 5, i32 6, i32 1, i32 6, i32 8, i32 9, i32 3, i32 7, i32 1, i32 3, i32 8, i32 5, i32 0, i32 1, i32 5, i32 1, i32 7, i32 6, i32 7, i32 9, i32 5, i32 9, i32 9, i32 5, i32 2, i32 6, i32 1, i32 8, i32 5, i32 1, i32 9, i32 0, i32 7, i32 0, i32 8, i32 7, i32 1, i32 1, i32 7, i32 4, i32 5, i32 5, i32 1, i32 7, i32 8, i32 6, i32 0, i32 7, i32 3, i32 7, i32 7, i32 0, i32 8]
@.str = [5 x i8] c"%3d \00"
define i32 @main() {
%1 = alloca [1000 x i32]
%2 = bitcast [1000 x i32]* %1 to i8*
br label %6
3: ; preds = %22
%4 = icmp eq i32 %23, 0
br i1 %4, label %5, label %6
5: ; preds = %6, %3
br label %26
6: ; preds = %0, %3
%7 = phi i32 [ 1, %0 ], [ %8, %3 ]
%8 = xor i32 %7, 1
%9 = icmp slt i32 %8, 999
br i1 %9, label %10, label %5
10: ; preds = %6
%11 = sext i32 %8 to i64
br label %12
12: ; preds = %10, %22
%13 = phi i64 [ %11, %10 ], [ %24, %22 ]
%14 = phi i32 [ 0, %10 ], [ %23, %22 ]
%15 = getelementptr inbounds [1000 x i32], [1000 x i32]* %1, i64 0, i64 %13
%16 = load i32, i32* %15
%17 = add nsw i64 %13, 1
%18 = getelementptr inbounds [1000 x i32], [1000 x i32]* %1, i64 0, i64 %17
%19 = load i32, i32* %18
%20 = icmp sgt i32 %16, %19
br i1 %20, label %21, label %22
21: ; preds = %12
store i32 %19, i32* %15
store i32 %16, i32* %18
br label %22
22: ; preds = %12, %21
%23 = phi i32 [ 1, %21 ], [ %14, %12 ]
%24 = add nsw i64 %13, 2
%25 = icmp slt i64 %13, 997
br i1 %25, label %12, label %3
26: ; preds = %5, %26
%27 = phi i64 [ %69, %26 ], [ 0, %5 ]
%28 = mul nuw nsw i64 %27, 10
%29 = getelementptr inbounds [1000 x i32], [1000 x i32]* %1, i64 0, i64 %28
%30 = load i32, i32* %29
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %30)
%32 = or i64 %28, 1
%33 = getelementptr inbounds [1000 x i32], [1000 x i32]* %1, i64 0, i64 %32
%34 = load i32, i32* %33
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %34)
%36 = add nuw nsw i64 %28, 2
%37 = getelementptr inbounds [1000 x i32], [1000 x i32]* %1, i64 0, i64 %36
%38 = load i32, i32* %37
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %38)
%40 = add nuw nsw i64 %28, 3
%41 = getelementptr inbounds [1000 x i32], [1000 x i32]* %1, i64 0, i64 %40
%42 = load i32, i32* %41
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %42)
%44 = add nuw nsw i64 %28, 4
%45 = getelementptr inbounds [1000 x i32], [1000 x i32]* %1, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %46)
%48 = add nuw nsw i64 %28, 5
%49 = getelementptr inbounds [1000 x i32], [1000 x i32]* %1, i64 0, i64 %48
%50 = load i32, i32* %49
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %50)
%52 = add nuw nsw i64 %28, 6
%53 = getelementptr inbounds [1000 x i32], [1000 x i32]* %1, i64 0, i64 %52
%54 = load i32, i32* %53
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %54)
%56 = add nuw nsw i64 %28, 7
%57 = getelementptr inbounds [1000 x i32], [1000 x i32]* %1, i64 0, i64 %56
%58 = load i32, i32* %57
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %58)
%60 = add nuw nsw i64 %28, 8
%61 = getelementptr inbounds [1000 x i32], [1000 x i32]* %1, i64 0, i64 %60
%62 = load i32, i32* %61
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %62)
%64 = add nuw nsw i64 %28, 9
%65 = getelementptr inbounds [1000 x i32], [1000 x i32]* %1, i64 0, i64 %64
%66 = load i32, i32* %65
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %66)
%68 = tail call i32 @putchar(i32 10)
%69 = add nuw nsw i64 %27, 1
%70 = icmp eq i64 %69, 100
br i1 %70, label %71, label %26
71: ; preds = %26
ret i32 0
}