#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*/ EXIT_FAILURE;
int EXIT_SUCCESS;
int atoi(char *);
char *binary(int, int);
int /*<<< orphan*/ blank_line();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  int n = 0;
  int row = 0;
  int col = 0;
  switch (argc) {
  case 2:
    n = atoi(argv[1]);
    break;
  default:
    fprintf(stderr, "Usage: %s n\n", argv[0]);
    exit(EXIT_FAILURE);
  }
  printf("/*\n");
  printf("    dot -T pdf order-%d_graph_generated.dot -o "
         "order-%d_graph_generated.pdf\n",
         n, n);
  printf("*/\n");
  blank_line();
  printf("digraph order%d {\n", n);
  blank_line();
  printf("    node [shape=plaintext]\n");
  blank_line();
  for (row = 0; row < (0x1 << n); row++) {
    printf("    level_%d [label=\"%d (?)\"]\n", row, row);
  }
  blank_line();
  printf("    /* Connect the left side row markers invisibly so they stay "
         "lined up. */\n");
  blank_line();
  printf("    edge [style=invis]\n");
  blank_line();
  printf("    level_0");
  for (row = 0; row < (0x1 << n); row++) {
    printf(" -> level_%d", row);
    if ((row % 5) == 4) {
      blank_line();
      printf("        ");
    }
  }
  blank_line();
  blank_line();
  printf("    graph [ordering=out]\n");
  printf("    node [shape=rect]\n");
  blank_line();
  printf("    /* set of all possible states */\n");
  blank_line();
  for (row = 0; row < (0x1 << n); row++) {
    printf("    {\n");
    printf("        rank=same; level_%d\n", row);
    blank_line();
    for (col = 0; col < (0x1 << n); col++) {
      char *p = NULL;
      p = binary(col, n);
      printf("        level_%d_%s [label=\"%s\"]\n", row, p, p);
      free(p);
    }
    printf("    }\n");
    blank_line();
  }
  printf("    edge [style=invis]\n");
  blank_line();
  printf("    /* Connect the states invisibly so they stay lined up "
         "vertically. */\n");
  for (col = 0; col < (0x1 << n); col++) {
    blank_line();
    for (row = 0; row < ((0x1 << n) - 1); row++) {
      char *p = NULL;
      p = binary(col, n);
      printf("    level_%d_%s -> level_%d_%s\n", row, p, row + 1, p);
      free(p);
    }
  }
  blank_line();
  printf("    /* Connect the states invisibly so they stay lined up "
         "horizontally. */\n");
  for (row = 0; row < (0x1 << n); row++) {
    char *p = NULL;
    blank_line();
    p = binary(0, n);
    printf("    level_%d_%s", row, p);
    free(p);
    for (col = 1; col < (0x1 << n); col++) {
      char *p = NULL;
      p = binary(col, n);
      printf(" -> level_%d_%s", row, p);
      free(p);
      if ((col % 5) == 4) {
        printf("\n    ");
      }
    }
    blank_line();
  }
  blank_line();
  printf("    edge [style=solid,color=black]\n");
  blank_line();
  printf("}\n");
  blank_line();
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
jne    11c1 <main+0x51>
jmp    11ac <main+0x3c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x14(%rbp)
jmp    11eb <main+0x7b>
mov    0x2e18(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe28(%rip),%rsi
call   1070 <fprintf@plt>
mov    0x2df4(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
lea    0xe1b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <blank_line@plt>
mov    -0x14(%rbp),%esi
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <blank_line@plt>
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <blank_line@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
cmp    %ecx,%eax
jge    128f <main+0x11f>
mov    -0x18(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xe13(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1256 <main+0xe6>
mov    $0x0,%al
call   1060 <blank_line@plt>
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <blank_line@plt>
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <blank_line@plt>
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
cmp    %ecx,%eax
jge    1339 <main+0x1c9>
mov    -0x18(%rbp),%esi
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x4,%edx
jne    1326 <main+0x1b6>
mov    $0x0,%al
call   1060 <blank_line@plt>
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    132b <main+0x1bb>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12d5 <main+0x165>
mov    $0x0,%al
call   1060 <blank_line@plt>
mov    $0x0,%al
call   1060 <blank_line@plt>
lea    0xde6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdf2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <blank_line@plt>
lea    0xdf4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <blank_line@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
cmp    %ecx,%eax
jge    144b <main+0x2db>
lea    0xde7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xddd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <blank_line@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x14(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
cmp    %ecx,%eax
jge    1428 <main+0x2b8>
movq   $0x0,-0x28(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1040 <binary@plt>
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%esi
mov    -0x28(%rbp),%rdx
mov    -0x28(%rbp),%rcx
lea    0xda5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13ca <main+0x25a>
lea    0xda2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <blank_line@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1386 <main+0x216>
lea    0xca8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <blank_line@plt>
lea    0xd71(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x14(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
cmp    %ecx,%eax
jge    1514 <main+0x3a4>
mov    $0x0,%al
call   1060 <blank_line@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1501 <main+0x391>
movq   $0x0,-0x30(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1040 <binary@plt>
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%esi
mov    -0x30(%rbp),%rdx
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
mov    -0x30(%rbp),%r8
lea    0xd3f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    149a <main+0x32a>
jmp    1506 <main+0x396>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1475 <main+0x305>
mov    $0x0,%al
call   1060 <blank_line@plt>
lea    0xd20(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
cmp    %ecx,%eax
jge    161f <main+0x4af>
movq   $0x0,-0x38(%rbp)
mov    $0x0,%al
call   1060 <blank_line@plt>
mov    -0x14(%rbp),%esi
xor    %edi,%edi
call   1040 <binary@plt>
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%esi
mov    -0x38(%rbp),%rdx
lea    0xd1c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x1,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x14(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
cmp    %ecx,%eax
jge    160a <main+0x49a>
movq   $0x0,-0x40(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1040 <binary@plt>
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%esi
mov    -0x40(%rbp),%rdx
lea    0xcd9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x1c(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x4,%edx
jne    15f7 <main+0x487>
lea    0xcbe(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    15fc <main+0x48c>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1589 <main+0x419>
mov    $0x0,%al
call   1060 <blank_line@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1530 <main+0x3c0>
mov    $0x0,%al
call   1060 <blank_line@plt>
lea    0xc87(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <blank_line@plt>
lea    0xb93(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <blank_line@plt>
mov    0x2979(%rip),%rax
mov    (%rax),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x2,%edi
jne    1675 <main+0x4f5>
mov    0x8(%rsi),%rdi
call   1090 <atoi@plt>
mov    %eax,%r13d
lea    0xf8c(%rip),%rdi
call   1040 <puts@plt>
lea    0xe5a(%rip),%rdi
mov    %r13d,%esi
mov    %r13d,%edx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xfd4(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xe80(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xf44(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
mov    $0x1,%ebx
mov    $0x1,%r15d
mov    %r13d,%ecx
shl    %cl,%r15d
cmp    $0x1f,%r13d
mov    %r15d,(%rsp)
jne    13ad <main+0x22d>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xf26(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xfb4(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xe3b(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xf31(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3e(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xf41(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
cmp    $0x1f,%r13d
jne    145f <main+0x2df>
lea    0xf49(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xf4d(%rip),%rdi
call   1040 <puts@plt>
mov    (%rsp),%r12d
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xf7f(%rip),%rdi
call   1040 <puts@plt>
cmp    $0x1f,%r13d
je     1534 <main+0x3b4>
cmp    $0x2,%r12d
mov    $0x1,%eax
cmovge %r12d,%eax
mov    %eax,0x4(%rsp)
lea    0xe23(%rip),%r15
xor    %ebp,%ebp
jmp    1314 <main+0x194>
xchg   %ax,%ax
xor    %eax,%eax
call   1070 <blank_line@plt>
add    $0x1,%ebp
cmp    0x4(%rsp),%ebp
je     1534 <main+0x3b4>
xor    %eax,%eax
call   1070 <blank_line@plt>
xor    %edi,%edi
mov    %r13d,%esi
call   1050 <binary@plt>
mov    %rax,%rbx
lea    0xdde(%rip),%rdi
mov    %ebp,%esi
mov    %rax,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
cmp    $0x2,%r12d
jl     1300 <main+0x180>
mov    $0x1,%ebx
jmp    135c <main+0x1dc>
add    $0x1,%ebx
mov    (%rsp),%r12d
cmp    %ebx,%r12d
je     1300 <main+0x180>
mov    %ebx,%eax
mov    $0xcccccccd,%ecx
imul   %rcx,%rax
shr    $0x22,%rax
lea    (%rax,%rax,4),%r12d
mov    %ebx,%edi
mov    %r13d,%esi
call   1050 <binary@plt>
mov    %rax,%r14
mov    %r15,%rdi
mov    %ebp,%esi
mov    %rax,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %ebx,%eax
sub    %r12d,%eax
cmp    $0x4,%eax
jne    1350 <main+0x1d0>
lea    0xd89(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1350 <main+0x1d0>
cmp    $0x2,%r15d
cmovge %r15d,%ebx
lea    0xcb1(%rip),%r14
xor    %ebp,%ebp
xchg   %ax,%ax
mov    %r14,%rdi
mov    %ebp,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%ebp
cmp    %ebp,%ebx
jne    13c0 <main+0x240>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xd6e(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xdfc(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xc83(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x1f,%r13d
jne    160d <main+0x48d>
xor    %eax,%eax
call   1070 <blank_line@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xd6f(%rip),%rdi
call   1040 <puts@plt>
lea    0xd7c(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xd7f(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
jmp    14fc <main+0x37c>
mov    (%rsp),%eax
cmp    $0x2,%eax
mov    $0x1,%r12d
cmovge %eax,%r12d
lea    0xc55(%rip),%rbp
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
lea    0xe39(%rip),%rdi
call   1040 <puts@plt>
xor    %r14d,%r14d
lea    0xc18(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
cs nopw 0x0(%rax,%rax,1)
mov    %r14d,%edi
mov    %r13d,%esi
call   1050 <binary@plt>
mov    %rax,%r15
mov    %rbp,%rdi
mov    %ebx,%esi
mov    %rax,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r15,%rdi
call   1030 <free@plt>
add    $0x1,%r14d
cmp    %r14d,%r12d
jne    14b0 <main+0x330>
lea    0xdde(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
add    $0x1,%ebx
cmp    %r12d,%ebx
jne    1480 <main+0x300>
lea    0xcef(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xcf3(%rip),%rdi
call   1040 <puts@plt>
cmp    $0x1f,%r13d
jne    1579 <main+0x3f9>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xd23(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xd5b(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xd75(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <blank_line@plt>
mov    0x2a68(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%rsp),%r12d
cmp    $0x2,%r12d
mov    $0x1,%eax
cmovge %r12d,%eax
mov    %eax,0x4(%rsp)
lea    0xb58(%rip),%r14
xor    %r15d,%r15d
jmp    15af <main+0x42f>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r15d
cmp    0x4(%rsp),%r15d
je     12c5 <main+0x145>
xor    %eax,%eax
call   1070 <blank_line@plt>
cmp    $0x2,%r12d
jl     15a0 <main+0x420>
mov    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    -0x1(%rbx),%r12d
mov    %r15d,%edi
mov    %r13d,%esi
call   1050 <binary@plt>
mov    %rax,%rbp
mov    %r14,%rdi
mov    %r12d,%esi
mov    (%rsp),%r12d
mov    %rax,%rdx
mov    %ebx,%ecx
mov    %rax,%r8
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
add    $0x1,%ebx
cmp    %ebx,%r12d
jne    15d0 <main+0x450>
jmp    15a0 <main+0x420>
cmp    $0x2,%r15d
mov    $0x1,%ebx
cmovge %r15d,%ebx
mov    $0xcccccccd,%r12d
lea    0xa71(%rip),%r15
xor    %ebp,%ebp
jmp    163b <main+0x4bb>
nopl   0x0(%rax,%rax,1)
add    $0x1,%ebp
cmp    %ebp,%ebx
je     1258 <main+0xd8>
mov    %ebp,%eax
imul   %r12,%rax
shr    $0x22,%rax
lea    (%rax,%rax,4),%r14d
add    $0x4,%r14d
mov    %r15,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    %ebp,%r14d
jne    1630 <main+0x4b0>
xor    %eax,%eax
call   1070 <blank_line@plt>
lea    0xa39(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1630 <main+0x4b0>
mov    0x2964(%rip),%rax
mov    (%rax),%edi
mov    (%rsi),%rdx
lea    0x978(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x2944(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [13 x i8] c"Usage: %s n\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [4 x i8] c"/*\0A\00"
@.str.2 = [77 x i8] c" dot -T pdf order-%d_graph_generated.dot -o order-%d_graph_generated.pdf\0A\00"
@.str.3 = [4 x i8] c"*/\0A\00"
@.str.4 = [19 x i8] c"digraph order%d {\0A\00"
@.str.5 = [28 x i8] c" node [shape=plaintext]\0A\00"
@.str.6 = [31 x i8] c" level_%d [label=\22%d (?)\22]\0A\00"
@.str.7 = [78 x i8] c" /* Connect the left side row markers invisibly so they stay lined up. */\0A\00"
@.str.8 = [24 x i8] c" edge [style=invis]\0A\00"
@.str.9 = [12 x i8] c" level_0\00"
@.str.10 = [13 x i8] c" -> level_%d\00"
@.str.11 = [9 x i8] c" \00"
@.str.12 = [26 x i8] c" graph [ordering=out]\0A\00"
@.str.13 = [23 x i8] c" node [shape=rect]\0A\00"
@.str.14 = [38 x i8] c" /* set of all possible states */\0A\00"
@.str.15 = [7 x i8] c" {\0A\00"
@.str.16 = [29 x i8] c" rank=same; level_%d\0A\00"
@.str.17 = [34 x i8] c" level_%d_%s [label=\22%s\22]\0A\00"
@.str.18 = [7 x i8] c" }\0A\00"
@.str.19 = [74 x i8] c" /* Connect the states invisibly so they stay lined up vertically. */\0A\00"
@.str.20 = [32 x i8] c" level_%d_%s -> level_%d_%s\0A\00"
@.str.21 = [76 x i8] c" /* Connect the states invisibly so they stay lined up horizontally. */\0A\00"
@.str.22 = [16 x i8] c" level_%d_%s\00"
@.str.23 = [16 x i8] c" -> level_%d_%s\00"
@.str.24 = [6 x i8] c"\0A \00"
@.str.25 = [36 x i8] c" edge [style=solid,color=black]\0A\00"
@.str.26 = [3 x i8] c"}\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
%13 = load i32, i32* %4
switch i32 %13, label %19 [
i32 2, label %14
]
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = call i32 @atoi(i8* %17)
store i32 %18, i32* %6
br label %27
19: ; preds = %2
%20 = load i32, i32* @stderr
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 0
%23 = load i8*, i8** %22
%24 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %23)
%25 = load i32, i32* @EXIT_FAILURE
%26 = call i32 @exit(i32 %25)
unreachable
27: ; preds = %14
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%29 = load i32, i32* %6
%30 = load i32, i32* %6
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.2, i64 0, i64 0), i32 %29, i32 %30)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%33 = call i32 (...) @blank_line()
%34 = load i32, i32* %6
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %34)
%36 = call i32 (...) @blank_line()
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%38 = call i32 (...) @blank_line()
store i32 0, i32* %7
br label %39
39: ; preds = %48, %27
%40 = load i32, i32* %7
%41 = load i32, i32* %6
%42 = shl i32 1, %41
%43 = icmp slt i32 %40, %42
br i1 %43, label %44, label %51
44: ; preds = %39
%45 = load i32, i32* %7
%46 = load i32, i32* %7
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i32 %45, i32 %46)
br label %48
48: ; preds = %44
%49 = load i32, i32* %7
%50 = add nsw i32 %49, 1
store i32 %50, i32* %7
br label %39
51: ; preds = %39
%52 = call i32 (...) @blank_line()
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.7, i64 0, i64 0))
%54 = call i32 (...) @blank_line()
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0))
%56 = call i32 (...) @blank_line()
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %7
br label %58
58: ; preds = %73, %51
%59 = load i32, i32* %7
%60 = load i32, i32* %6
%61 = shl i32 1, %60
%62 = icmp slt i32 %59, %61
br i1 %62, label %63, label %76
63: ; preds = %58
%64 = load i32, i32* %7
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i32 %64)
%66 = load i32, i32* %7
%67 = srem i32 %66, 5
%68 = icmp eq i32 %67, 4
br i1 %68, label %69, label %72
69: ; preds = %63
%70 = call i32 (...) @blank_line()
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
br label %72
72: ; preds = %69, %63
br label %73
73: ; preds = %72
%74 = load i32, i32* %7
%75 = add nsw i32 %74, 1
store i32 %75, i32* %7
br label %58
76: ; preds = %58
%77 = call i32 (...) @blank_line()
%78 = call i32 (...) @blank_line()
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0))
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0))
%81 = call i32 (...) @blank_line()
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0))
%83 = call i32 (...) @blank_line()
store i32 0, i32* %7
br label %84
84: ; preds = %115, %76
%85 = load i32, i32* %7
%86 = load i32, i32* %6
%87 = shl i32 1, %86
%88 = icmp slt i32 %85, %87
br i1 %88, label %89, label %118
89: ; preds = %84
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0))
%91 = load i32, i32* %7
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i32 %91)
%93 = call i32 (...) @blank_line()
store i32 0, i32* %8
br label %94
94: ; preds = %109, %89
%95 = load i32, i32* %8
%96 = load i32, i32* %6
%97 = shl i32 1, %96
%98 = icmp slt i32 %95, %97
br i1 %98, label %99, label %112
99: ; preds = %94
store i8* null, i8** %9
%100 = load i32, i32* %8
%101 = load i32, i32* %6
%102 = call i8* @binary(i32 %100, i32 %101)
store i8* %102, i8** %9
%103 = load i32, i32* %7
%104 = load i8*, i8** %9
%105 = load i8*, i8** %9
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.17, i64 0, i64 0), i32 %103, i8* %104, i8* %105)
%107 = load i8*, i8** %9
%108 = call i32 @free(i8* %107)
br label %109
109: ; preds = %99
%110 = load i32, i32* %8
%111 = add nsw i32 %110, 1
store i32 %111, i32* %8
br label %94
112: ; preds = %94
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
%114 = call i32 (...) @blank_line()
br label %115
115: ; preds = %112
%116 = load i32, i32* %7
%117 = add nsw i32 %116, 1
store i32 %117, i32* %7
br label %84
118: ; preds = %84
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0))
%120 = call i32 (...) @blank_line()
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.19, i64 0, i64 0))
store i32 0, i32* %8
br label %122
122: ; preds = %151, %118
%123 = load i32, i32* %8
%124 = load i32, i32* %6
%125 = shl i32 1, %124
%126 = icmp slt i32 %123, %125
br i1 %126, label %127, label %154
127: ; preds = %122
%128 = call i32 (...) @blank_line()
store i32 0, i32* %7
br label %129
129: ; preds = %147, %127
%130 = load i32, i32* %7
%131 = load i32, i32* %6
%132 = shl i32 1, %131
%133 = sub nsw i32 %132, 1
%134 = icmp slt i32 %130, %133
br i1 %134, label %135, label %150
135: ; preds = %129
store i8* null, i8** %10
%136 = load i32, i32* %8
%137 = load i32, i32* %6
%138 = call i8* @binary(i32 %136, i32 %137)
store i8* %138, i8** %10
%139 = load i32, i32* %7
%140 = load i8*, i8** %10
%141 = load i32, i32* %7
%142 = add nsw i32 %141, 1
%143 = load i8*, i8** %10
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.20, i64 0, i64 0), i32 %139, i8* %140, i32 %142, i8* %143)
%145 = load i8*, i8** %10
%146 = call i32 @free(i8* %145)
br label %147
147: ; preds = %135
%148 = load i32, i32* %7
%149 = add nsw i32 %148, 1
store i32 %149, i32* %7
br label %129
150: ; preds = %129
br label %151
151: ; preds = %150
%152 = load i32, i32* %8
%153 = add nsw i32 %152, 1
store i32 %153, i32* %8
br label %122
154: ; preds = %122
%155 = call i32 (...) @blank_line()
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.21, i64 0, i64 0))
store i32 0, i32* %7
br label %157
157: ; preds = %196, %154
%158 = load i32, i32* %7
%159 = load i32, i32* %6
%160 = shl i32 1, %159
%161 = icmp slt i32 %158, %160
br i1 %161, label %162, label %199
162: ; preds = %157
store i8* null, i8** %11
%163 = call i32 (...) @blank_line()
%164 = load i32, i32* %6
%165 = call i8* @binary(i32 0, i32 %164)
store i8* %165, i8** %11
%166 = load i32, i32* %7
%167 = load i8*, i8** %11
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.22, i64 0, i64 0), i32 %166, i8* %167)
%169 = load i8*, i8** %11
%170 = call i32 @free(i8* %169)
store i32 1, i32* %8
br label %171
171: ; preds = %191, %162
%172 = load i32, i32* %8
%173 = load i32, i32* %6
%174 = shl i32 1, %173
%175 = icmp slt i32 %172, %174
br i1 %175, label %176, label %194
176: ; preds = %171
store i8* null, i8** %12
%177 = load i32, i32* %8
%178 = load i32, i32* %6
%179 = call i8* @binary(i32 %177, i32 %178)
store i8* %179, i8** %12
%180 = load i32, i32* %7
%181 = load i8*, i8** %12
%182 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.23, i64 0, i64 0), i32 %180, i8* %181)
%183 = load i8*, i8** %12
%184 = call i32 @free(i8* %183)
%185 = load i32, i32* %8
%186 = srem i32 %185, 5
%187 = icmp eq i32 %186, 4
br i1 %187, label %188, label %190
188: ; preds = %176
%189 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0))
br label %190
190: ; preds = %188, %176
br label %191
191: ; preds = %190
%192 = load i32, i32* %8
%193 = add nsw i32 %192, 1
store i32 %193, i32* %8
br label %171
194: ; preds = %171
%195 = call i32 (...) @blank_line()
br label %196
196: ; preds = %194
%197 = load i32, i32* %7
%198 = add nsw i32 %197, 1
store i32 %198, i32* %7
br label %157
199: ; preds = %157
%200 = call i32 (...) @blank_line()
%201 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.25, i64 0, i64 0))
%202 = call i32 (...) @blank_line()
%203 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0))
%204 = call i32 (...) @blank_line()
%205 = load i32, i32* @EXIT_SUCCESS
ret i32 %205
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [13 x i8] c"Usage: %s n\0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [77 x i8] c" dot -T pdf order-%d_graph_generated.dot -o order-%d_graph_generated.pdf\0A\00"
@.str.4 = [19 x i8] c"digraph order%d {\0A\00"
@.str.6 = [31 x i8] c" level_%d [label=\22%d (?)\22]\0A\00"
@.str.9 = [12 x i8] c" level_0\00"
@.str.10 = [13 x i8] c" -> level_%d\00"
@.str.11 = [9 x i8] c" \00"
@.str.16 = [29 x i8] c" rank=same; level_%d\0A\00"
@.str.17 = [34 x i8] c" level_%d_%s [label=\22%s\22]\0A\00"
@.str.20 = [32 x i8] c" level_%d_%s -> level_%d_%s\0A\00"
@.str.22 = [16 x i8] c" level_%d_%s\00"
@.str.23 = [16 x i8] c" -> level_%d_%s\00"
@.str.24 = [6 x i8] c"\0A \00"
@EXIT_SUCCESS = global i32 0
@str = [3 x i8] c"/*\00"
@str.27 = [3 x i8] c"*/\00"
@str.28 = [27 x i8] c" node [shape=plaintext]\00"
@str.29 = [77 x i8] c" /* Connect the left side row markers invisibly so they stay lined up. */\00"
@str.31 = [25 x i8] c" graph [ordering=out]\00"
@str.32 = [22 x i8] c" node [shape=rect]\00"
@str.33 = [37 x i8] c" /* set of all possible states */\00"
@str.34 = [23 x i8] c" edge [style=invis]\00"
@str.35 = [73 x i8] c" /* Connect the states invisibly so they stay lined up vertically. */\00"
@str.36 = [75 x i8] c" /* Connect the states invisibly so they stay lined up horizontally. */\00"
@str.37 = [35 x i8] c" edge [style=solid,color=black]\00"
@str.38 = [2 x i8] c"}\00"
@str.39 = [6 x i8] c" {\00"
@str.40 = [6 x i8] c" }\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %4, label %20
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @atoi(i8* %6)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.2, i64 0, i64 0), i32 %7, i32 %7)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.27, i64 0, i64 0))
%11 = tail call i32 (...) @blank_line()
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %7)
%13 = tail call i32 (...) @blank_line()
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.28, i64 0, i64 0))
%15 = tail call i32 (...) @blank_line()
%16 = shl nuw i32 1, %7
%17 = icmp eq i32 %7, 31
br i1 %17, label %51, label %18
18: ; preds = %4
%19 = call i32 @llvm.smax.i32(i32 %16, i32 1)
br label %26
20: ; preds = %2
%21 = load i32, i32* @stderr
%22 = load i8*, i8** %1
%23 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %22)
%24 = load i32, i32* @EXIT_FAILURE
%25 = tail call i32 @exit(i32 %24)
unreachable
26: ; preds = %18, %26
%27 = phi i32 [ %29, %26 ], [ 0, %18 ]
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i32 %27, i32 %27)
%29 = add nuw nsw i32 %27, 1
%30 = icmp eq i32 %29, %19
br i1 %30, label %31, label %26
31: ; preds = %26
%32 = tail call i32 (...) @blank_line()
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.29, i64 0, i64 0))
%34 = tail call i32 (...) @blank_line()
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.34, i64 0, i64 0))
%36 = tail call i32 (...) @blank_line()
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
br i1 %17, label %85, label %38
38: ; preds = %31
%39 = call i32 @llvm.smax.i32(i32 %16, i32 1)
br label %40
40: ; preds = %38, %48
%41 = phi i32 [ %49, %48 ], [ 0, %38 ]
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i32 %41)
%43 = urem i32 %41, 5
%44 = icmp eq i32 %43, 4
br i1 %44, label %45, label %48
45: ; preds = %40
%46 = tail call i32 (...) @blank_line()
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
br label %48
48: ; preds = %40, %45
%49 = add nuw nsw i32 %41, 1
%50 = icmp eq i32 %49, %39
br i1 %50, label %58, label %40
51: ; preds = %4
%52 = tail call i32 (...) @blank_line()
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.29, i64 0, i64 0))
%54 = tail call i32 (...) @blank_line()
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.34, i64 0, i64 0))
%56 = tail call i32 (...) @blank_line()
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
br label %58
58: ; preds = %48, %51
%59 = tail call i32 (...) @blank_line()
%60 = tail call i32 (...) @blank_line()
%61 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.31, i64 0, i64 0))
%62 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.32, i64 0, i64 0))
%63 = tail call i32 (...) @blank_line()
%64 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.33, i64 0, i64 0))
%65 = tail call i32 (...) @blank_line()
br i1 %17, label %114, label %66
66: ; preds = %58
%67 = call i32 @llvm.smax.i32(i32 %16, i32 1)
br label %68
68: ; preds = %80, %66
%69 = phi i32 [ 0, %66 ], [ %83, %80 ]
%70 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.39, i64 0, i64 0))
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i32 %69)
%72 = tail call i32 (...) @blank_line()
br label %73
73: ; preds = %68, %73
%74 = phi i32 [ %78, %73 ], [ 0, %68 ]
%75 = tail call i8* @binary(i32 %74, i32 %7)
%76 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.17, i64 0, i64 0), i32 %69, i8* %75, i8* %75)
%77 = tail call i32 @free(i8* %75)
%78 = add nuw nsw i32 %74, 1
%79 = icmp eq i32 %78, %67
br i1 %79, label %80, label %73
80: ; preds = %73
%81 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.40, i64 0, i64 0))
%82 = tail call i32 (...) @blank_line()
%83 = add nuw nsw i32 %69, 1
%84 = icmp eq i32 %83, %67
br i1 %84, label %93, label %68
85: ; preds = %31
%86 = tail call i32 (...) @blank_line()
%87 = tail call i32 (...) @blank_line()
%88 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.31, i64 0, i64 0))
%89 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.32, i64 0, i64 0))
%90 = tail call i32 (...) @blank_line()
%91 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.33, i64 0, i64 0))
%92 = tail call i32 (...) @blank_line()
br label %93
93: ; preds = %80, %85
%94 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.34, i64 0, i64 0))
%95 = tail call i32 (...) @blank_line()
%96 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.35, i64 0, i64 0))
br i1 %17, label %146, label %97
97: ; preds = %93
%98 = add i32 %16, -1
%99 = icmp sgt i32 %16, 1
%100 = call i32 @llvm.smax.i32(i32 %16, i32 1)
br label %101
101: ; preds = %97, %111
%102 = phi i32 [ 0, %97 ], [ %112, %111 ]
%103 = tail call i32 (...) @blank_line()
br i1 %99, label %104, label %111
104: ; preds = %101, %104
%105 = phi i32 [ %107, %104 ], [ 0, %101 ]
%106 = tail call i8* @binary(i32 %102, i32 %7)
%107 = add nuw nsw i32 %105, 1
%108 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.20, i64 0, i64 0), i32 %105, i8* %106, i32 %107, i8* %106)
%109 = tail call i32 @free(i8* %106)
%110 = icmp eq i32 %107, %98
br i1 %110, label %111, label %104
111: ; preds = %104, %101
%112 = add nuw nsw i32 %102, 1
%113 = icmp eq i32 %112, %100
br i1 %113, label %118, label %101
114: ; preds = %58
%115 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.34, i64 0, i64 0))
%116 = tail call i32 (...) @blank_line()
%117 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.35, i64 0, i64 0))
br label %118
118: ; preds = %111, %114
%119 = tail call i32 (...) @blank_line()
%120 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.36, i64 0, i64 0))
br i1 %17, label %149, label %121
121: ; preds = %118
%122 = icmp sgt i32 %16, 1
%123 = call i32 @llvm.smax.i32(i32 %16, i32 1)
br label %124
124: ; preds = %121, %142
%125 = phi i32 [ 0, %121 ], [ %144, %142 ]
%126 = tail call i32 (...) @blank_line()
%127 = tail call i8* @binary(i32 0, i32 %7)
%128 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.22, i64 0, i64 0), i32 %125, i8* %127)
%129 = tail call i32 @free(i8* %127)
br i1 %122, label %130, label %142
130: ; preds = %124, %139
%131 = phi i32 [ %140, %139 ], [ 1, %124 ]
%132 = tail call i8* @binary(i32 %131, i32 %7)
%133 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.23, i64 0, i64 0), i32 %125, i8* %132)
%134 = tail call i32 @free(i8* %132)
%135 = urem i32 %131, 5
%136 = icmp eq i32 %135, 4
br i1 %136, label %137, label %139
137: ; preds = %130
%138 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0))
br label %139
139: ; preds = %137, %130
%140 = add nuw nsw i32 %131, 1
%141 = icmp eq i32 %140, %16
br i1 %141, label %142, label %130
142: ; preds = %139, %124
%143 = tail call i32 (...) @blank_line()
%144 = add nuw nsw i32 %125, 1
%145 = icmp eq i32 %144, %123
br i1 %145, label %149, label %124
146: ; preds = %93
%147 = tail call i32 (...) @blank_line()
%148 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.36, i64 0, i64 0))
br label %149
149: ; preds = %142, %146, %118
%150 = tail call i32 (...) @blank_line()
%151 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.37, i64 0, i64 0))
%152 = tail call i32 (...) @blank_line()
%153 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.38, i64 0, i64 0))
%154 = tail call i32 (...) @blank_line()
%155 = load i32, i32* @EXIT_SUCCESS
ret i32 %155
}