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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ output(int, int, ...);
main() {
  int i = 0;
  int k, x, y, z;
  int *ptr;
  for (i = 0; i < 10; i = i + 1) {
    output(i, 1);
  }
  for (i = 0; i < 5; 1) {
    output(i++, 2);
  }
  output(0, 0, 0, 0, 0, 0, 0);
  i = 5;
  for (1; i > -2; 1) {
    output(i--, 3);
  }
  output(0, 0, 0, 0, 0, 0, 0);
  ptr = &i;
  for (*ptr = 0; *ptr < 5; i++) {
    output(i, *ptr, 4);
  }
  output(0, 0, 0, 0, 0, 0, 0);
  k = 100;
  for (i = 0; i < 10 && k > 30; i++) {
    output(i, k, 5);
    k = k - 10;
  }
  output(0, 0, 0, 0, 0, 0, 0);
  for (i = 0; i < 10; i++) {
    for (k = 0; k <= i; k++) {
      output(i, k, 6);
    }
  }
  for (i = 0; i < 10; i++) {
    for (k = 0; k <= i; k++) {
      output(i, k, 7);
      for (x = 0; x < k; x++) {
        { output(x, 8); }
        for (y = 1; y < x; y++)
          output(y, 9);
        for (z = 2; z < x; z++)
          output(z, 10);
      }
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    1154 <main+0x44>
mov    -0x8(%rbp),%edi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <output@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    112d <main+0x1d>
movl   $0x0,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    1181 <main+0x71>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <output@plt>
jmp    115b <main+0x4b>
xor    %r9d,%r9d
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
mov    $0x0,%al
call   1030 <output@plt>
movl   $0x5,-0x8(%rbp)
cmpl   $0xfffffffe,-0x8(%rbp)
jle    11ce <main+0xbe>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    $0x3,%esi
mov    $0x0,%al
call   1030 <output@plt>
jmp    11a8 <main+0x98>
xor    %r9d,%r9d
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
mov    $0x0,%al
call   1030 <output@plt>
lea    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x20(%rbp),%rax
cmpl   $0x5,(%rax)
jge    1230 <main+0x120>
mov    -0x8(%rbp),%edi
mov    -0x20(%rbp),%rax
mov    (%rax),%esi
mov    $0x4,%edx
mov    $0x0,%al
call   1030 <output@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1200 <main+0xf0>
xor    %r9d,%r9d
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
mov    $0x0,%al
call   1030 <output@plt>
movl   $0x64,-0xc(%rbp)
movl   $0x0,-0x8(%rbp)
xor    %eax,%eax
cmpl   $0xa,-0x8(%rbp)
mov    %al,-0x21(%rbp)
jge    1277 <main+0x167>
cmpl   $0x1e,-0xc(%rbp)
setg   %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    1287 <main+0x177>
jmp    12b0 <main+0x1a0>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    $0x5,%edx
mov    $0x0,%al
call   1030 <output@plt>
mov    -0xc(%rbp),%eax
sub    $0xa,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    125e <main+0x14e>
xor    %r9d,%r9d
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
mov    $0x0,%al
call   1030 <output@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    1327 <main+0x217>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1314 <main+0x204>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    $0x6,%edx
mov    $0x0,%al
call   1030 <output@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12e8 <main+0x1d8>
jmp    1319 <main+0x209>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12d7 <main+0x1c7>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    1418 <main+0x308>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1405 <main+0x2f5>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    $0x7,%edx
mov    $0x0,%al
call   1030 <output@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    13f2 <main+0x2e2>
mov    -0x10(%rbp),%edi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <output@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    13af <main+0x29f>
mov    -0x14(%rbp),%edi
mov    $0x9,%esi
mov    $0x0,%al
call   1030 <output@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1386 <main+0x276>
movl   $0x2,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    13df <main+0x2cf>
mov    -0x18(%rbp),%edi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <output@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13b6 <main+0x2a6>
jmp    13e4 <main+0x2d4>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1364 <main+0x254>
jmp    13f7 <main+0x2e7>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    133f <main+0x22f>
jmp    140a <main+0x2fa>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    132e <main+0x21e>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    $0x1,%r12d
xor    %edi,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x1,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x2,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x3,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x4,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x5,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x6,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x7,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x8,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x9,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <output@plt>
xor    %edi,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x1,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x2,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x3,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x4,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <output@plt>
movl   $0x0,(%rsp)
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x5,%edi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x4,%edi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x3,%edi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x2,%edi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x1,%edi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <output@plt>
xor    %edi,%edi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <output@plt>
mov    $0xffffffff,%edi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <output@plt>
movl   $0x0,(%rsp)
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <output@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x2,%edi
mov    $0x2,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x4,%edi
mov    $0x4,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1030 <output@plt>
movl   $0x0,(%rsp)
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <output@plt>
xor    %edi,%edi
mov    $0x64,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x1,%edi
mov    $0x5a,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x2,%edi
mov    $0x50,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x3,%edi
mov    $0x46,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x4,%edi
mov    $0x3c,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x5,%edi
mov    $0x32,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x6,%edi
mov    $0x28,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1030 <output@plt>
movl   $0x0,(%rsp)
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <output@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x2,%edi
xor    %esi,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x2,%edi
mov    $0x1,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x2,%edi
mov    $0x2,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x3,%edi
xor    %esi,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x3,%edi
mov    $0x1,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x3,%edi
mov    $0x2,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x4,%edi
xor    %esi,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x4,%edi
mov    $0x1,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x4,%edi
mov    $0x2,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x4,%edi
mov    $0x3,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x4,%edi
mov    $0x4,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x5,%edi
xor    %esi,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x5,%edi
mov    $0x1,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x5,%edi
mov    $0x2,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x5,%edi
mov    $0x3,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x5,%edi
mov    $0x4,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x5,%edi
mov    $0x5,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x6,%edi
xor    %esi,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x6,%edi
mov    $0x1,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x6,%edi
mov    $0x2,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x6,%edi
mov    $0x3,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x6,%edi
mov    $0x4,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x6,%edi
mov    $0x5,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x6,%edi
mov    $0x6,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x7,%edi
xor    %esi,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x7,%edi
mov    $0x1,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x7,%edi
mov    $0x2,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x7,%edi
mov    $0x3,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x7,%edi
mov    $0x4,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x7,%edi
mov    $0x5,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x7,%edi
mov    $0x6,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x7,%edi
mov    $0x7,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x8,%edi
xor    %esi,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x8,%edi
mov    $0x1,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x8,%edi
mov    $0x2,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x8,%edi
mov    $0x3,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x8,%edi
mov    $0x4,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x8,%edi
mov    $0x5,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x8,%edi
mov    $0x6,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x8,%edi
mov    $0x7,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x8,%edi
mov    $0x8,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x9,%edi
xor    %esi,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x9,%edi
mov    $0x1,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x9,%edi
mov    $0x2,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x9,%edi
mov    $0x3,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x9,%edi
mov    $0x4,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x9,%edi
mov    $0x5,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x9,%edi
mov    $0x6,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x9,%edi
mov    $0x7,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x9,%edi
mov    $0x8,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
mov    $0x9,%edi
mov    $0x9,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1030 <output@plt>
xor    %r14d,%r14d
jmp    18b2 <main+0x7a2>
nopl   0x0(%rax)
add    $0x1,%r14d
add    $0x1,%r12d
cmp    $0xa,%r14d
je     1947 <main+0x837>
xor    %r15d,%r15d
jmp    18c9 <main+0x7b9>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r15d
cmp    %r12d,%r15d
je     18a0 <main+0x790>
mov    %r14d,%edi
mov    %r15d,%esi
mov    $0x7,%edx
xor    %eax,%eax
call   1030 <output@plt>
test   %r15d,%r15d
je     18c0 <main+0x7b0>
xor    %ebx,%ebx
jmp    18f8 <main+0x7e8>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%ebx
cmp    %r15d,%ebx
je     18c0 <main+0x7b0>
mov    %ebx,%edi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <output@plt>
cmp    $0x2,%ebx
jb     18f0 <main+0x7e0>
mov    $0x1,%ebp
mov    %ebp,%edi
mov    $0x9,%esi
xor    %eax,%eax
call   1030 <output@plt>
add    $0x1,%ebp
cmp    %ebp,%ebx
jne    1910 <main+0x800>
cmp    $0x3,%ebx
jb     18f0 <main+0x7e0>
mov    $0x2,%ebp
nop
mov    %ebp,%edi
mov    $0xa,%esi
xor    %eax,%eax
call   1030 <output@plt>
add    $0x1,%ebp
cmp    %ebp,%ebx
jne    1930 <main+0x820>
jmp    18f0 <main+0x7e0>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32*
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %2
br label %8
8: ; preds = %14, %0
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 10
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = load i32, i32* %2
%13 = call i32 (i32, i32, ...) @output(i32 %12, i32 1)
br label %14
14: ; preds = %11
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
store i32 %16, i32* %2
br label %8
17: ; preds = %8
store i32 0, i32* %2
br label %18
18: ; preds = %25, %17
%19 = load i32, i32* %2
%20 = icmp slt i32 %19, 5
br i1 %20, label %21, label %26
21: ; preds = %18
%22 = load i32, i32* %2
%23 = add nsw i32 %22, 1
store i32 %23, i32* %2
%24 = call i32 (i32, i32, ...) @output(i32 %22, i32 2)
br label %25
25: ; preds = %21
br label %18
26: ; preds = %18
%27 = call i32 (i32, i32, ...) @output(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
store i32 5, i32* %2
br label %28
28: ; preds = %35, %26
%29 = load i32, i32* %2
%30 = icmp sgt i32 %29, -2
br i1 %30, label %31, label %36
31: ; preds = %28
%32 = load i32, i32* %2
%33 = add nsw i32 %32, -1
store i32 %33, i32* %2
%34 = call i32 (i32, i32, ...) @output(i32 %32, i32 3)
br label %35
35: ; preds = %31
br label %28
36: ; preds = %28
%37 = call i32 (i32, i32, ...) @output(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
store i32* %2, i32** %7
%38 = load i32*, i32** %7
store i32 0, i32* %38
br label %39
39: ; preds = %48, %36
%40 = load i32*, i32** %7
%41 = load i32, i32* %40
%42 = icmp slt i32 %41, 5
br i1 %42, label %43, label %51
43: ; preds = %39
%44 = load i32, i32* %2
%45 = load i32*, i32** %7
%46 = load i32, i32* %45
%47 = call i32 (i32, i32, ...) @output(i32 %44, i32 %46, i32 4)
br label %48
48: ; preds = %43
%49 = load i32, i32* %2
%50 = add nsw i32 %49, 1
store i32 %50, i32* %2
br label %39
51: ; preds = %39
%52 = call i32 (i32, i32, ...) @output(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
store i32 100, i32* %3
store i32 0, i32* %2
br label %53
53: ; preds = %67, %51
%54 = load i32, i32* %2
%55 = icmp slt i32 %54, 10
br i1 %55, label %56, label %59
56: ; preds = %53
%57 = load i32, i32* %3
%58 = icmp sgt i32 %57, 30
br label %59
59: ; preds = %56, %53
%60 = phi i1 [ false, %53 ], [ %58, %56 ]
br i1 %60, label %61, label %70
61: ; preds = %59
%62 = load i32, i32* %2
%63 = load i32, i32* %3
%64 = call i32 (i32, i32, ...) @output(i32 %62, i32 %63, i32 5)
%65 = load i32, i32* %3
%66 = sub nsw i32 %65, 10
store i32 %66, i32* %3
br label %67
67: ; preds = %61
%68 = load i32, i32* %2
%69 = add nsw i32 %68, 1
store i32 %69, i32* %2
br label %53
70: ; preds = %59
%71 = call i32 (i32, i32, ...) @output(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
store i32 0, i32* %2
br label %72
72: ; preds = %88, %70
%73 = load i32, i32* %2
%74 = icmp slt i32 %73, 10
br i1 %74, label %75, label %91
75: ; preds = %72
store i32 0, i32* %3
br label %76
76: ; preds = %84, %75
%77 = load i32, i32* %3
%78 = load i32, i32* %2
%79 = icmp sle i32 %77, %78
br i1 %79, label %80, label %87
80: ; preds = %76
%81 = load i32, i32* %2
%82 = load i32, i32* %3
%83 = call i32 (i32, i32, ...) @output(i32 %81, i32 %82, i32 6)
br label %84
84: ; preds = %80
%85 = load i32, i32* %3
%86 = add nsw i32 %85, 1
store i32 %86, i32* %3
br label %76
87: ; preds = %76
br label %88
88: ; preds = %87
%89 = load i32, i32* %2
%90 = add nsw i32 %89, 1
store i32 %90, i32* %2
br label %72
91: ; preds = %72
store i32 0, i32* %2
br label %92
92: ; preds = %141, %91
%93 = load i32, i32* %2
%94 = icmp slt i32 %93, 10
br i1 %94, label %95, label %144
95: ; preds = %92
store i32 0, i32* %3
br label %96
96: ; preds = %137, %95
%97 = load i32, i32* %3
%98 = load i32, i32* %2
%99 = icmp sle i32 %97, %98
br i1 %99, label %100, label %140
100: ; preds = %96
%101 = load i32, i32* %2
%102 = load i32, i32* %3
%103 = call i32 (i32, i32, ...) @output(i32 %101, i32 %102, i32 7)
store i32 0, i32* %4
br label %104
104: ; preds = %133, %100
%105 = load i32, i32* %4
%106 = load i32, i32* %3
%107 = icmp slt i32 %105, %106
br i1 %107, label %108, label %136
108: ; preds = %104
%109 = load i32, i32* %4
%110 = call i32 (i32, i32, ...) @output(i32 %109, i32 8)
store i32 1, i32* %5
br label %111
111: ; preds = %118, %108
%112 = load i32, i32* %5
%113 = load i32, i32* %4
%114 = icmp slt i32 %112, %113
br i1 %114, label %115, label %121
115: ; preds = %111
%116 = load i32, i32* %5
%117 = call i32 (i32, i32, ...) @output(i32 %116, i32 9)
br label %118
118: ; preds = %115
%119 = load i32, i32* %5
%120 = add nsw i32 %119, 1
store i32 %120, i32* %5
br label %111
121: ; preds = %111
store i32 2, i32* %6
br label %122
122: ; preds = %129, %121
%123 = load i32, i32* %6
%124 = load i32, i32* %4
%125 = icmp slt i32 %123, %124
br i1 %125, label %126, label %132
126: ; preds = %122
%127 = load i32, i32* %6
%128 = call i32 (i32, i32, ...) @output(i32 %127, i32 10)
br label %129
129: ; preds = %126
%130 = load i32, i32* %6
%131 = add nsw i32 %130, 1
store i32 %131, i32* %6
br label %122
132: ; preds = %122
br label %133
133: ; preds = %132
%134 = load i32, i32* %4
%135 = add nsw i32 %134, 1
store i32 %135, i32* %4
br label %104
136: ; preds = %104
br label %137
137: ; preds = %136
%138 = load i32, i32* %3
%139 = add nsw i32 %138, 1
store i32 %139, i32* %3
br label %96
140: ; preds = %96
br label %141
141: ; preds = %140
%142 = load i32, i32* %2
%143 = add nsw i32 %142, 1
store i32 %143, i32* %2
br label %92
144: ; preds = %92
%145 = load i32, i32* %1
ret i32 %145
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (i32, i32, ...) @output(i32 0, i32 1)
%2 = tail call i32 (i32, i32, ...) @output(i32 1, i32 1)
%3 = tail call i32 (i32, i32, ...) @output(i32 2, i32 1)
%4 = tail call i32 (i32, i32, ...) @output(i32 3, i32 1)
%5 = tail call i32 (i32, i32, ...) @output(i32 4, i32 1)
%6 = tail call i32 (i32, i32, ...) @output(i32 5, i32 1)
%7 = tail call i32 (i32, i32, ...) @output(i32 6, i32 1)
%8 = tail call i32 (i32, i32, ...) @output(i32 7, i32 1)
%9 = tail call i32 (i32, i32, ...) @output(i32 8, i32 1)
%10 = tail call i32 (i32, i32, ...) @output(i32 9, i32 1)
%11 = tail call i32 (i32, i32, ...) @output(i32 0, i32 2)
%12 = tail call i32 (i32, i32, ...) @output(i32 1, i32 2)
%13 = tail call i32 (i32, i32, ...) @output(i32 2, i32 2)
%14 = tail call i32 (i32, i32, ...) @output(i32 3, i32 2)
%15 = tail call i32 (i32, i32, ...) @output(i32 4, i32 2)
%16 = tail call i32 (i32, i32, ...) @output(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%17 = tail call i32 (i32, i32, ...) @output(i32 5, i32 3)
%18 = tail call i32 (i32, i32, ...) @output(i32 4, i32 3)
%19 = tail call i32 (i32, i32, ...) @output(i32 3, i32 3)
%20 = tail call i32 (i32, i32, ...) @output(i32 2, i32 3)
%21 = tail call i32 (i32, i32, ...) @output(i32 1, i32 3)
%22 = tail call i32 (i32, i32, ...) @output(i32 0, i32 3)
%23 = tail call i32 (i32, i32, ...) @output(i32 -1, i32 3)
%24 = tail call i32 (i32, i32, ...) @output(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%25 = tail call i32 (i32, i32, ...) @output(i32 0, i32 0, i32 4)
%26 = tail call i32 (i32, i32, ...) @output(i32 1, i32 1, i32 4)
%27 = tail call i32 (i32, i32, ...) @output(i32 2, i32 2, i32 4)
%28 = tail call i32 (i32, i32, ...) @output(i32 3, i32 3, i32 4)
%29 = tail call i32 (i32, i32, ...) @output(i32 4, i32 4, i32 4)
%30 = tail call i32 (i32, i32, ...) @output(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%31 = tail call i32 (i32, i32, ...) @output(i32 0, i32 100, i32 5)
%32 = tail call i32 (i32, i32, ...) @output(i32 1, i32 90, i32 5)
%33 = tail call i32 (i32, i32, ...) @output(i32 2, i32 80, i32 5)
%34 = tail call i32 (i32, i32, ...) @output(i32 3, i32 70, i32 5)
%35 = tail call i32 (i32, i32, ...) @output(i32 4, i32 60, i32 5)
%36 = tail call i32 (i32, i32, ...) @output(i32 5, i32 50, i32 5)
%37 = tail call i32 (i32, i32, ...) @output(i32 6, i32 40, i32 5)
%38 = tail call i32 (i32, i32, ...) @output(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%39 = tail call i32 (i32, i32, ...) @output(i32 0, i32 0, i32 6)
%40 = tail call i32 (i32, i32, ...) @output(i32 1, i32 0, i32 6)
%41 = tail call i32 (i32, i32, ...) @output(i32 1, i32 1, i32 6)
%42 = tail call i32 (i32, i32, ...) @output(i32 2, i32 0, i32 6)
%43 = tail call i32 (i32, i32, ...) @output(i32 2, i32 1, i32 6)
%44 = tail call i32 (i32, i32, ...) @output(i32 2, i32 2, i32 6)
%45 = tail call i32 (i32, i32, ...) @output(i32 3, i32 0, i32 6)
%46 = tail call i32 (i32, i32, ...) @output(i32 3, i32 1, i32 6)
%47 = tail call i32 (i32, i32, ...) @output(i32 3, i32 2, i32 6)
%48 = tail call i32 (i32, i32, ...) @output(i32 3, i32 3, i32 6)
%49 = tail call i32 (i32, i32, ...) @output(i32 4, i32 0, i32 6)
%50 = tail call i32 (i32, i32, ...) @output(i32 4, i32 1, i32 6)
%51 = tail call i32 (i32, i32, ...) @output(i32 4, i32 2, i32 6)
%52 = tail call i32 (i32, i32, ...) @output(i32 4, i32 3, i32 6)
%53 = tail call i32 (i32, i32, ...) @output(i32 4, i32 4, i32 6)
%54 = tail call i32 (i32, i32, ...) @output(i32 5, i32 0, i32 6)
%55 = tail call i32 (i32, i32, ...) @output(i32 5, i32 1, i32 6)
%56 = tail call i32 (i32, i32, ...) @output(i32 5, i32 2, i32 6)
%57 = tail call i32 (i32, i32, ...) @output(i32 5, i32 3, i32 6)
%58 = tail call i32 (i32, i32, ...) @output(i32 5, i32 4, i32 6)
%59 = tail call i32 (i32, i32, ...) @output(i32 5, i32 5, i32 6)
%60 = tail call i32 (i32, i32, ...) @output(i32 6, i32 0, i32 6)
%61 = tail call i32 (i32, i32, ...) @output(i32 6, i32 1, i32 6)
%62 = tail call i32 (i32, i32, ...) @output(i32 6, i32 2, i32 6)
%63 = tail call i32 (i32, i32, ...) @output(i32 6, i32 3, i32 6)
%64 = tail call i32 (i32, i32, ...) @output(i32 6, i32 4, i32 6)
%65 = tail call i32 (i32, i32, ...) @output(i32 6, i32 5, i32 6)
%66 = tail call i32 (i32, i32, ...) @output(i32 6, i32 6, i32 6)
%67 = tail call i32 (i32, i32, ...) @output(i32 7, i32 0, i32 6)
%68 = tail call i32 (i32, i32, ...) @output(i32 7, i32 1, i32 6)
%69 = tail call i32 (i32, i32, ...) @output(i32 7, i32 2, i32 6)
%70 = tail call i32 (i32, i32, ...) @output(i32 7, i32 3, i32 6)
%71 = tail call i32 (i32, i32, ...) @output(i32 7, i32 4, i32 6)
%72 = tail call i32 (i32, i32, ...) @output(i32 7, i32 5, i32 6)
%73 = tail call i32 (i32, i32, ...) @output(i32 7, i32 6, i32 6)
%74 = tail call i32 (i32, i32, ...) @output(i32 7, i32 7, i32 6)
%75 = tail call i32 (i32, i32, ...) @output(i32 8, i32 0, i32 6)
%76 = tail call i32 (i32, i32, ...) @output(i32 8, i32 1, i32 6)
%77 = tail call i32 (i32, i32, ...) @output(i32 8, i32 2, i32 6)
%78 = tail call i32 (i32, i32, ...) @output(i32 8, i32 3, i32 6)
%79 = tail call i32 (i32, i32, ...) @output(i32 8, i32 4, i32 6)
%80 = tail call i32 (i32, i32, ...) @output(i32 8, i32 5, i32 6)
%81 = tail call i32 (i32, i32, ...) @output(i32 8, i32 6, i32 6)
%82 = tail call i32 (i32, i32, ...) @output(i32 8, i32 7, i32 6)
%83 = tail call i32 (i32, i32, ...) @output(i32 8, i32 8, i32 6)
%84 = tail call i32 (i32, i32, ...) @output(i32 9, i32 0, i32 6)
%85 = tail call i32 (i32, i32, ...) @output(i32 9, i32 1, i32 6)
%86 = tail call i32 (i32, i32, ...) @output(i32 9, i32 2, i32 6)
%87 = tail call i32 (i32, i32, ...) @output(i32 9, i32 3, i32 6)
%88 = tail call i32 (i32, i32, ...) @output(i32 9, i32 4, i32 6)
%89 = tail call i32 (i32, i32, ...) @output(i32 9, i32 5, i32 6)
%90 = tail call i32 (i32, i32, ...) @output(i32 9, i32 6, i32 6)
%91 = tail call i32 (i32, i32, ...) @output(i32 9, i32 7, i32 6)
%92 = tail call i32 (i32, i32, ...) @output(i32 9, i32 8, i32 6)
%93 = tail call i32 (i32, i32, ...) @output(i32 9, i32 9, i32 6)
br label %94
94: ; preds = %0, %123
%95 = phi i32 [ 1, %0 ], [ %125, %123 ]
%96 = phi i32 [ 0, %0 ], [ %124, %123 ]
br label %97
97: ; preds = %94, %120
%98 = phi i32 [ 0, %94 ], [ %121, %120 ]
%99 = tail call i32 (i32, i32, ...) @output(i32 %96, i32 %98, i32 7)
%100 = icmp eq i32 %98, 0
br i1 %100, label %120, label %101
101: ; preds = %97, %117
%102 = phi i32 [ %118, %117 ], [ 0, %97 ]
%103 = tail call i32 (i32, i32, ...) @output(i32 %102, i32 8)
%104 = icmp ugt i32 %102, 1
br i1 %104, label %107, label %117
105: ; preds = %107
%106 = icmp ugt i32 %102, 2
br i1 %106, label %112, label %117
107: ; preds = %101, %107
%108 = phi i32 [ %110, %107 ], [ 1, %101 ]
%109 = tail call i32 (i32, i32, ...) @output(i32 %108, i32 9)
%110 = add nuw nsw i32 %108, 1
%111 = icmp eq i32 %110, %102
br i1 %111, label %105, label %107
112: ; preds = %105, %112
%113 = phi i32 [ %115, %112 ], [ 2, %105 ]
%114 = tail call i32 (i32, i32, ...) @output(i32 %113, i32 10)
%115 = add nuw nsw i32 %113, 1
%116 = icmp eq i32 %115, %102
br i1 %116, label %117, label %112
117: ; preds = %112, %101, %105
%118 = add nuw nsw i32 %102, 1
%119 = icmp eq i32 %118, %98
br i1 %119, label %120, label %101
120: ; preds = %117, %97
%121 = add nuw nsw i32 %98, 1
%122 = icmp eq i32 %121, %95
br i1 %122, label %123, label %97
123: ; preds = %120
%124 = add nuw nsw i32 %96, 1
%125 = add nuw nsw i32 %95, 1
%126 = icmp eq i32 %124, 10
br i1 %126, label %127, label %94
127: ; preds = %123
ret i32 0
}