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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int EOF;
int getchar();
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int c, nother, state, wlength, max;
  int nlength[10];
  nother = wlength = max = 0;
  state = 0;
  for (int i = 0; i < 10; i++)
    nlength[i] = 0;
  while ((c = getchar()) != EOF) {
    if (c == ' ' || c == '\t') {
      if (state == 1) {
        state = 0;
        if (wlength < 10)
          nlength[wlength]++;
        else
          nother++;
        wlength = 0;
      }
    } else {
      state = 1;
      wlength++;
    }
  }
  printf("Horizontal histogram:\n\n");
  printf("other | ");
  for (int j = nother; j > 0; j--)
    printf("#");
  printf("\n");
  for (int i = 10 - 1; i > 0; i--) {
    printf("%5d | ", i);
    for (int j = nlength[i]; j > 0; j--)
      printf("#");
    printf("\n");
  }
  if (nother > max)
    max = nother;
  for (int i = 0; i < 10; i++) {
    if (nlength[i] > max)
      max = nlength[i];
  }
  printf("\n\nVertical histogram:\n\n");
  for (int i = max; i > 0; i--) {
    printf("%3d | ", i);
    for (int j = 1; j < 10; j++) {
      if ((nlength[j] - i) >= 0)
        printf("# ");
      else
        printf("  ");
    }
    if ((nother - i) >= 0)
      printf("# ");
    else
      printf(" ");
    printf("\n");
  }
  printf("    ");
  for (int i = 0; i < (10 * 2) + 1; i++)
    printf("-");
  printf("\n");
  printf("     ");
  for (int i = 1; i < 10; i++)
    printf("%2d", i);
  printf(" other\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0xa,-0x44(%rbp)
jge    1176 <main+0x56>
movslq -0x44(%rbp),%rax
movl   $0x0,-0x40(%rbp,%rax,4)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1152 <main+0x32>
jmp    117b <main+0x5b>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e5c(%rip),%rcx
cmp    (%rcx),%eax
je     1201 <main+0xe1>
cmpl   $0x20,-0x8(%rbp)
je     11a8 <main+0x88>
cmpl   $0x9,-0x8(%rbp)
jne    11ec <main+0xcc>
cmpl   $0x1,-0x10(%rbp)
jne    11e7 <main+0xc7>
movl   $0x0,-0x10(%rbp)
cmpl   $0xa,-0x14(%rbp)
jge    11d7 <main+0xb7>
movslq -0x14(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x40(%rbp,%rax,4)
jmp    11e0 <main+0xc0>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x14(%rbp)
jmp    11fc <main+0xdc>
movl   $0x1,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    117b <main+0x5b>
lea    0xdf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x48(%rbp)
jle    1249 <main+0x129>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x48(%rbp)
jmp    1223 <main+0x103>
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x9,-0x4c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
jle    12c6 <main+0x1a6>
mov    -0x4c(%rbp),%esi
lea    0xdb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x4c(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%eax
mov    %eax,-0x50(%rbp)
cmpl   $0x0,-0x50(%rbp)
jle    12aa <main+0x18a>
lea    0xd8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x50(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x50(%rbp)
jmp    1284 <main+0x164>
lea    0xd8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4c(%rbp)
jmp    125e <main+0x13e>
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jle    12d8 <main+0x1b8>
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
movl   $0x0,-0x54(%rbp)
cmpl   $0xa,-0x54(%rbp)
jge    1318 <main+0x1f8>
movslq -0x54(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%eax
cmp    -0x18(%rbp),%eax
jle    1305 <main+0x1e5>
movslq -0x54(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%eax
mov    %eax,-0x18(%rbp)
jmp    130a <main+0x1ea>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    12df <main+0x1bf>
lea    0xd0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x58(%rbp)
cmpl   $0x0,-0x58(%rbp)
jle    13ec <main+0x2cc>
mov    -0x58(%rbp),%esi
lea    0xd02(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x5c(%rbp)
cmpl   $0xa,-0x5c(%rbp)
jge    13a0 <main+0x280>
movslq -0x5c(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%eax
sub    -0x58(%rbp),%eax
cmp    $0x0,%eax
jl     137f <main+0x25f>
lea    0xcd6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    138d <main+0x26d>
lea    0xccb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1392 <main+0x272>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    134e <main+0x22e>
mov    -0xc(%rbp),%eax
sub    -0x58(%rbp),%eax
cmp    $0x0,%eax
jl     13c2 <main+0x2a2>
lea    0xc93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13d0 <main+0x2b0>
lea    0xc89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x58(%rbp)
jmp    132c <main+0x20c>
lea    0xc5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x60(%rbp)
cmpl   $0x15,-0x60(%rbp)
jge    1427 <main+0x307>
lea    0xc3a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1401 <main+0x2e1>
lea    0xc12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x64(%rbp)
cmpl   $0xa,-0x64(%rbp)
jge    1473 <main+0x353>
mov    -0x64(%rbp),%esi
lea    0xbf6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    144a <main+0x32a>
lea    0xbde(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movq   $0x0,0x60(%rsp)
xor    %r15d,%r15d
xor    %eax,%eax
call   1060 <getchar@plt>
mov    0x2e73(%rip),%r14
cmp    (%r14),%eax
jne    179c <main+0x65c>
lea    0xe9f(%rip),%rdi
call   1040 <puts@plt>
lea    0xe6f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rax
test   %eax,%eax
jle    11c2 <main+0x82>
lea    0x1(%rax),%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x23,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     11b0 <main+0x70>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe36(%rip),%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x64(%rsp),%eax
mov    %rax,0x38(%rsp)
test   %eax,%eax
jle    1212 <main+0xd2>
mov    0x38(%rsp),%rax
lea    0x1(%rax),%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x23,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     1200 <main+0xc0>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xde6(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x60(%rsp),%eax
mov    %rax,0x30(%rsp)
test   %eax,%eax
jle    1262 <main+0x122>
mov    0x30(%rsp),%rax
lea    0x1(%rax),%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x23,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     1250 <main+0x110>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd96(%rip),%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x5c(%rsp),%eax
mov    %rax,0x28(%rsp)
test   %eax,%eax
jle    12b2 <main+0x172>
mov    0x28(%rsp),%rax
lea    0x1(%rax),%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x23,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     12a0 <main+0x160>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd46(%rip),%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x58(%rsp),%eax
mov    %rax,0x20(%rsp)
test   %eax,%eax
jle    1302 <main+0x1c2>
mov    0x20(%rsp),%rax
lea    0x1(%rax),%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x23,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     12f0 <main+0x1b0>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xcf6(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x54(%rsp),%eax
mov    %rax,0x18(%rsp)
test   %eax,%eax
jle    1352 <main+0x212>
mov    0x18(%rsp),%rax
lea    0x1(%rax),%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x23,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     1340 <main+0x200>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xca6(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x50(%rsp),%eax
mov    %rax,0x10(%rsp)
test   %eax,%eax
jle    13a2 <main+0x262>
mov    0x10(%rsp),%rax
lea    0x1(%rax),%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x23,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     1390 <main+0x250>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xc56(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4c(%rsp),%eax
mov    %rax,0x8(%rsp)
test   %eax,%eax
jle    13f2 <main+0x2b2>
mov    0x8(%rsp),%rax
lea    0x1(%rax),%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x23,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     13e0 <main+0x2a0>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xc06(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x48(%rsp),%r13d
test   %r13d,%r13d
jle    1432 <main+0x2f2>
lea    0x1(%r13),%ebx
nopl   (%rax)
mov    $0x23,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     1420 <main+0x2e0>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xbc6(%rip),%rdi
xor    %ebx,%ebx
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x44(%rsp),%r14d
test   %r14d,%r14d
jle    1472 <main+0x332>
lea    0x1(%r14),%ebp
nop
mov    $0x23,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebp
cmp    $0x1,%ebp
ja     1460 <main+0x320>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r15,%rbp
test   %ebp,%ebp
cmovns %ebp,%ebx
mov    0x40(%rsp),%eax
cmp    %ebx,%eax
cmovg  %eax,%ebx
cmp    %ebx,%r14d
cmovg  %r14d,%ebx
cmp    %ebx,%r13d
cmovg  %r13d,%ebx
mov    0x8(%rsp),%rax
cmp    %ebx,%eax
cmovg  %eax,%ebx
mov    0x10(%rsp),%rax
cmp    %ebx,%eax
cmovg  %eax,%ebx
mov    0x18(%rsp),%rax
cmp    %ebx,%eax
cmovg  %eax,%ebx
mov    0x20(%rsp),%rax
cmp    %ebx,%eax
cmovg  %eax,%ebx
mov    0x28(%rsp),%rax
cmp    %ebx,%eax
cmovg  %eax,%ebx
mov    0x30(%rsp),%rax
cmp    %ebx,%eax
cmovg  %eax,%ebx
mov    0x38(%rsp),%rax
cmp    %ebx,%eax
cmovg  %eax,%ebx
lea    0xb53(%rip),%rdi
call   1040 <puts@plt>
test   %ebx,%ebx
je     15f9 <main+0x4b9>
lea    0xb21(%rip),%r12
lea    0xb14(%rip),%r15
jmp    1532 <main+0x3f2>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x1(%rbx),%eax
cmp    $0x1,%ebx
mov    %eax,%ebx
jle    15f9 <main+0x4b9>
lea    0xad7(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %ebx,%r14d
mov    %r15,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %ebx,%r13d
mov    %r15,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %ebx,0x8(%rsp)
mov    %r15,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %ebx,0x10(%rsp)
mov    %r15,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %ebx,0x18(%rsp)
mov    %r15,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %ebx,0x20(%rsp)
mov    %r15,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %ebx,0x28(%rsp)
mov    %r15,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %ebx,0x30(%rsp)
mov    %r15,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %ebx,0x38(%rsp)
mov    %r15,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %ebx,%ebp
jl     1510 <main+0x3d0>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    151a <main+0x3da>
lea    0xa1b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x930(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x928(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8cc(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ebp,%ebp
xor    %ecx,%ecx
xor    %r15d,%r15d
jmp    17ca <main+0x68a>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%ebp
mov    $0x1,%ebx
xor    %eax,%eax
call   1060 <getchar@plt>
mov    %ebx,%ecx
cmp    (%r14),%eax
je     117e <main+0x3e>
cmp    $0x20,%eax
je     17d4 <main+0x694>
cmp    $0x9,%eax
jne    17b0 <main+0x670>
xor    %ebx,%ebx
cmp    $0x1,%ecx
jne    17b8 <main+0x678>
cmp    $0x9,%ebp
jg     17ea <main+0x6aa>
movslq %ebp,%rax
addl   $0x1,0x40(%rsp,%rax,4)
jmp    17ee <main+0x6ae>
add    $0x1,%r15d
xor    %ebx,%ebx
xor    %ebp,%ebp
jmp    17b8 <main+0x678>

LLVM IR (-O0):
@EOF = global i32 0
@.str = [24 x i8] c"Horizontal histogram:\0A\0A\00"
@.str.1 = [9 x i8] c"other | \00"
@.str.2 = [2 x i8] c"#\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [7 x i8] c"%5d | \00"
@.str.5 = [24 x i8] c"\0A\0AVertical histogram:\0A\0A\00"
@.str.6 = [7 x i8] c"%3d | \00"
@.str.7 = [3 x i8] c"# \00"
@.str.8 = [3 x i8] c" \00"
@.str.9 = [2 x i8] c" \00"
@.str.10 = [5 x i8] c" \00"
@.str.11 = [2 x i8] c"-\00"
@.str.12 = [6 x i8] c" \00"
@.str.13 = [4 x i8] c"%2d\00"
@.str.14 = [8 x i8] c" other\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 [10 x i32]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %6
store i32 0, i32* %5
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %8
br label %17
17: ; preds = %24, %0
%18 = load i32, i32* %8
%19 = icmp slt i32 %18, 10
br i1 %19, label %20, label %27
20: ; preds = %17
%21 = load i32, i32* %8
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 %22
store i32 0, i32* %23
br label %24
24: ; preds = %20
%25 = load i32, i32* %8
%26 = add nsw i32 %25, 1
store i32 %26, i32* %8
br label %17
27: ; preds = %17
br label %28
28: ; preds = %58, %27
%29 = call i32 (...) @getchar()
store i32 %29, i32* %2
%30 = load i32, i32* @EOF
%31 = icmp ne i32 %29, %30
br i1 %31, label %32, label %59
32: ; preds = %28
%33 = load i32, i32* %2
%34 = icmp eq i32 %33, 32
br i1 %34, label %38, label %35
35: ; preds = %32
%36 = load i32, i32* %2
%37 = icmp eq i32 %36, 9
br i1 %37, label %38, label %55
38: ; preds = %35, %32
%39 = load i32, i32* %4
%40 = icmp eq i32 %39, 1
br i1 %40, label %41, label %54
41: ; preds = %38
store i32 0, i32* %4
%42 = load i32, i32* %5
%43 = icmp slt i32 %42, 10
br i1 %43, label %44, label %50
44: ; preds = %41
%45 = load i32, i32* %5
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 %46
%48 = load i32, i32* %47
%49 = add nsw i32 %48, 1
store i32 %49, i32* %47
br label %53
50: ; preds = %41
%51 = load i32, i32* %3
%52 = add nsw i32 %51, 1
store i32 %52, i32* %3
br label %53
53: ; preds = %50, %44
store i32 0, i32* %5
br label %54
54: ; preds = %53, %38
br label %58
55: ; preds = %35
store i32 1, i32* %4
%56 = load i32, i32* %5
%57 = add nsw i32 %56, 1
store i32 %57, i32* %5
br label %58
58: ; preds = %55, %54
br label %28
59: ; preds = %28
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%62 = load i32, i32* %3
store i32 %62, i32* %9
br label %63
63: ; preds = %68, %59
%64 = load i32, i32* %9
%65 = icmp sgt i32 %64, 0
br i1 %65, label %66, label %71
66: ; preds = %63
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %68
68: ; preds = %66
%69 = load i32, i32* %9
%70 = add nsw i32 %69, -1
store i32 %70, i32* %9
br label %63
71: ; preds = %63
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 9, i32* %10
br label %73
73: ; preds = %93, %71
%74 = load i32, i32* %10
%75 = icmp sgt i32 %74, 0
br i1 %75, label %76, label %96
76: ; preds = %73
%77 = load i32, i32* %10
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %77)
%79 = load i32, i32* %10
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 %80
%82 = load i32, i32* %81
store i32 %82, i32* %11
br label %83
83: ; preds = %88, %76
%84 = load i32, i32* %11
%85 = icmp sgt i32 %84, 0
br i1 %85, label %86, label %91
86: ; preds = %83
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %88
88: ; preds = %86
%89 = load i32, i32* %11
%90 = add nsw i32 %89, -1
store i32 %90, i32* %11
br label %83
91: ; preds = %83
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %93
93: ; preds = %91
%94 = load i32, i32* %10
%95 = add nsw i32 %94, -1
store i32 %95, i32* %10
br label %73
96: ; preds = %73
%97 = load i32, i32* %3
%98 = load i32, i32* %6
%99 = icmp sgt i32 %97, %98
br i1 %99, label %100, label %102
100: ; preds = %96
%101 = load i32, i32* %3
store i32 %101, i32* %6
br label %102
102: ; preds = %100, %96
store i32 0, i32* %12
br label %103
103: ; preds = %119, %102
%104 = load i32, i32* %12
%105 = icmp slt i32 %104, 10
br i1 %105, label %106, label %122
106: ; preds = %103
%107 = load i32, i32* %12
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 %108
%110 = load i32, i32* %109
%111 = load i32, i32* %6
%112 = icmp sgt i32 %110, %111
br i1 %112, label %113, label %118
113: ; preds = %106
%114 = load i32, i32* %12
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 %115
%117 = load i32, i32* %116
store i32 %117, i32* %6
br label %118
118: ; preds = %113, %106
br label %119
119: ; preds = %118
%120 = load i32, i32* %12
%121 = add nsw i32 %120, 1
store i32 %121, i32* %12
br label %103
122: ; preds = %103
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%124 = load i32, i32* %6
store i32 %124, i32* %13
br label %125
125: ; preds = %161, %122
%126 = load i32, i32* %13
%127 = icmp sgt i32 %126, 0
br i1 %127, label %128, label %164
128: ; preds = %125
%129 = load i32, i32* %13
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 %129)
store i32 1, i32* %14
br label %131
131: ; preds = %147, %128
%132 = load i32, i32* %14
%133 = icmp slt i32 %132, 10
br i1 %133, label %134, label %150
134: ; preds = %131
%135 = load i32, i32* %14
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 %136
%138 = load i32, i32* %137
%139 = load i32, i32* %13
%140 = sub nsw i32 %138, %139
%141 = icmp sge i32 %140, 0
br i1 %141, label %142, label %144
142: ; preds = %134
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
br label %146
144: ; preds = %134
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
br label %146
146: ; preds = %144, %142
br label %147
147: ; preds = %146
%148 = load i32, i32* %14
%149 = add nsw i32 %148, 1
store i32 %149, i32* %14
br label %131
150: ; preds = %131
%151 = load i32, i32* %3
%152 = load i32, i32* %13
%153 = sub nsw i32 %151, %152
%154 = icmp sge i32 %153, 0
br i1 %154, label %155, label %157
155: ; preds = %150
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
br label %159
157: ; preds = %150
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %159
159: ; preds = %157, %155
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %161
161: ; preds = %159
%162 = load i32, i32* %13
%163 = add nsw i32 %162, -1
store i32 %163, i32* %13
br label %125
164: ; preds = %125
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %15
br label %166
166: ; preds = %171, %164
%167 = load i32, i32* %15
%168 = icmp slt i32 %167, 21
br i1 %168, label %169, label %174
169: ; preds = %166
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %171
171: ; preds = %169
%172 = load i32, i32* %15
%173 = add nsw i32 %172, 1
store i32 %173, i32* %15
br label %166
174: ; preds = %166
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%176 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
store i32 1, i32* %16
br label %177
177: ; preds = %183, %174
%178 = load i32, i32* %16
%179 = icmp slt i32 %178, 10
br i1 %179, label %180, label %186
180: ; preds = %177
%181 = load i32, i32* %16
%182 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 %181)
br label %183
183: ; preds = %180
%184 = load i32, i32* %16
%185 = add nsw i32 %184, 1
store i32 %185, i32* %16
br label %177
186: ; preds = %177
%187 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
%188 = load i32, i32* %1
ret i32 %188
}

LLVM IR (-O2):
@EOF = global i32 0
@.str.1 = [9 x i8] c"other | \00"
@.str.4 = [7 x i8] c"%5d | \00"
@.str.6 = [7 x i8] c"%3d | \00"
@.str.7 = [3 x i8] c"# \00"
@.str.8 = [3 x i8] c" \00"
@.str.10 = [5 x i8] c" \00"
@.str.12 = [6 x i8] c" \00"
@.str.13 = [4 x i8] c"%2d\00"
@str = [23 x i8] c"Horizontal histogram:\0A\00"
@str.15 = [23 x i8] c"\0A\0AVertical histogram:\0A\00"
@str.16 = [7 x i8] c" other\00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = bitcast [10 x i32]* %1 to i8*
%3 = tail call i32 (...) @getchar()
%4 = load i32, i32* @EOF
%5 = icmp eq i32 %3, %4
br i1 %5, label %31, label %6
6: ; preds = %0, %24
%7 = phi i32 [ %28, %24 ], [ %3, %0 ]
%8 = phi i32 [ %27, %24 ], [ 0, %0 ]
%9 = phi i32 [ %26, %24 ], [ 0, %0 ]
%10 = phi i32 [ %25, %24 ], [ 0, %0 ]
switch i32 %7, label %22 [
i32 32, label %11
i32 9, label %11
]
11: ; preds = %6, %6
%12 = icmp eq i32 %9, 1
br i1 %12, label %13, label %24
13: ; preds = %11
%14 = icmp slt i32 %8, 10
br i1 %14, label %15, label %20
15: ; preds = %13
%16 = sext i32 %8 to i64
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %16
%18 = load i32, i32* %17
%19 = add nsw i32 %18, 1
store i32 %19, i32* %17
br label %24
20: ; preds = %13
%21 = add nsw i32 %10, 1
br label %24
22: ; preds = %6
%23 = add nsw i32 %8, 1
br label %24
24: ; preds = %15, %20, %11, %22
%25 = phi i32 [ %10, %11 ], [ %10, %22 ], [ %10, %15 ], [ %21, %20 ]
%26 = phi i32 [ 0, %11 ], [ 1, %22 ], [ 0, %15 ], [ 0, %20 ]
%27 = phi i32 [ %8, %11 ], [ %23, %22 ], [ 0, %15 ], [ 0, %20 ]
%28 = tail call i32 (...) @getchar()
%29 = load i32, i32* @EOF
%30 = icmp eq i32 %28, %29
br i1 %30, label %31, label %6
31: ; preds = %24, %0
%32 = phi i32 [ 0, %0 ], [ %25, %24 ]
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%35 = icmp sgt i32 %32, 0
br i1 %35, label %42, label %36
36: ; preds = %42, %31
%37 = tail call i32 @putchar(i32 10)
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 9)
%39 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%40 = load i32, i32* %39
%41 = icmp sgt i32 %40, 0
br i1 %41, label %162, label %47
42: ; preds = %31, %42
%43 = phi i32 [ %45, %42 ], [ %32, %31 ]
%44 = tail call i32 @putchar(i32 35)
%45 = add nsw i32 %43, -1
%46 = icmp ugt i32 %43, 1
br i1 %46, label %42, label %36
47: ; preds = %162, %36
%48 = tail call i32 @putchar(i32 10)
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 8)
%50 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%51 = load i32, i32* %50
%52 = icmp sgt i32 %51, 0
br i1 %52, label %53, label %58
53: ; preds = %47, %53
%54 = phi i32 [ %56, %53 ], [ %51, %47 ]
%55 = tail call i32 @putchar(i32 35)
%56 = add nsw i32 %54, -1
%57 = icmp ugt i32 %54, 1
br i1 %57, label %53, label %58
58: ; preds = %53, %47
%59 = tail call i32 @putchar(i32 10)
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 7)
%61 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%62 = load i32, i32* %61
%63 = icmp sgt i32 %62, 0
br i1 %63, label %64, label %69
64: ; preds = %58, %64
%65 = phi i32 [ %67, %64 ], [ %62, %58 ]
%66 = tail call i32 @putchar(i32 35)
%67 = add nsw i32 %65, -1
%68 = icmp ugt i32 %65, 1
br i1 %68, label %64, label %69
69: ; preds = %64, %58
%70 = tail call i32 @putchar(i32 10)
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 6)
%72 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%73 = load i32, i32* %72
%74 = icmp sgt i32 %73, 0
br i1 %74, label %75, label %80
75: ; preds = %69, %75
%76 = phi i32 [ %78, %75 ], [ %73, %69 ]
%77 = tail call i32 @putchar(i32 35)
%78 = add nsw i32 %76, -1
%79 = icmp ugt i32 %76, 1
br i1 %79, label %75, label %80
80: ; preds = %75, %69
%81 = tail call i32 @putchar(i32 10)
%82 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 5)
%83 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%84 = load i32, i32* %83
%85 = icmp sgt i32 %84, 0
br i1 %85, label %86, label %91
86: ; preds = %80, %86
%87 = phi i32 [ %89, %86 ], [ %84, %80 ]
%88 = tail call i32 @putchar(i32 35)
%89 = add nsw i32 %87, -1
%90 = icmp ugt i32 %87, 1
br i1 %90, label %86, label %91
91: ; preds = %86, %80
%92 = tail call i32 @putchar(i32 10)
%93 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 4)
%94 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%95 = load i32, i32* %94
%96 = icmp sgt i32 %95, 0
br i1 %96, label %97, label %102
97: ; preds = %91, %97
%98 = phi i32 [ %100, %97 ], [ %95, %91 ]
%99 = tail call i32 @putchar(i32 35)
%100 = add nsw i32 %98, -1
%101 = icmp ugt i32 %98, 1
br i1 %101, label %97, label %102
102: ; preds = %97, %91
%103 = tail call i32 @putchar(i32 10)
%104 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 3)
%105 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%106 = load i32, i32* %105
%107 = icmp sgt i32 %106, 0
br i1 %107, label %108, label %113
108: ; preds = %102, %108
%109 = phi i32 [ %111, %108 ], [ %106, %102 ]
%110 = tail call i32 @putchar(i32 35)
%111 = add nsw i32 %109, -1
%112 = icmp ugt i32 %109, 1
br i1 %112, label %108, label %113
113: ; preds = %108, %102
%114 = tail call i32 @putchar(i32 10)
%115 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 2)
%116 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%117 = load i32, i32* %116
%118 = icmp sgt i32 %117, 0
br i1 %118, label %119, label %124
119: ; preds = %113, %119
%120 = phi i32 [ %122, %119 ], [ %117, %113 ]
%121 = tail call i32 @putchar(i32 35)
%122 = add nsw i32 %120, -1
%123 = icmp ugt i32 %120, 1
br i1 %123, label %119, label %124
124: ; preds = %119, %113
%125 = tail call i32 @putchar(i32 10)
%126 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 1)
%127 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%128 = load i32, i32* %127
%129 = icmp sgt i32 %128, 0
br i1 %129, label %130, label %135
130: ; preds = %124, %130
%131 = phi i32 [ %133, %130 ], [ %128, %124 ]
%132 = tail call i32 @putchar(i32 35)
%133 = add nsw i32 %131, -1
%134 = icmp ugt i32 %131, 1
br i1 %134, label %130, label %135
135: ; preds = %130, %124
%136 = tail call i32 @putchar(i32 10)
%137 = select i1 %35, i32 %32, i32 0
%138 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%139 = load i32, i32* %138
%140 = icmp sgt i32 %139, %137
%141 = select i1 %140, i32 %139, i32 %137
%142 = icmp sgt i32 %128, %141
%143 = select i1 %142, i32 %128, i32 %141
%144 = icmp sgt i32 %117, %143
%145 = select i1 %144, i32 %117, i32 %143
%146 = icmp sgt i32 %106, %145
%147 = select i1 %146, i32 %106, i32 %145
%148 = icmp sgt i32 %95, %147
%149 = select i1 %148, i32 %95, i32 %147
%150 = icmp sgt i32 %84, %149
%151 = select i1 %150, i32 %84, i32 %149
%152 = icmp sgt i32 %73, %151
%153 = select i1 %152, i32 %73, i32 %151
%154 = icmp sgt i32 %62, %153
%155 = select i1 %154, i32 %62, i32 %153
%156 = icmp sgt i32 %51, %155
%157 = select i1 %156, i32 %51, i32 %155
%158 = icmp sgt i32 %40, %157
%159 = select i1 %158, i32 %40, i32 %157
%160 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.15, i64 0, i64 0))
%161 = icmp eq i32 %159, 0
br i1 %161, label %167, label %202
162: ; preds = %36, %162
%163 = phi i32 [ %165, %162 ], [ %40, %36 ]
%164 = tail call i32 @putchar(i32 35)
%165 = add nsw i32 %163, -1
%166 = icmp ugt i32 %163, 1
br i1 %166, label %162, label %47
167: ; preds = %237, %135
%168 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%169 = tail call i32 @putchar(i32 45)
%170 = tail call i32 @putchar(i32 45)
%171 = tail call i32 @putchar(i32 45)
%172 = tail call i32 @putchar(i32 45)
%173 = tail call i32 @putchar(i32 45)
%174 = tail call i32 @putchar(i32 45)
%175 = tail call i32 @putchar(i32 45)
%176 = tail call i32 @putchar(i32 45)
%177 = tail call i32 @putchar(i32 45)
%178 = tail call i32 @putchar(i32 45)
%179 = tail call i32 @putchar(i32 45)
%180 = tail call i32 @putchar(i32 45)
%181 = tail call i32 @putchar(i32 45)
%182 = tail call i32 @putchar(i32 45)
%183 = tail call i32 @putchar(i32 45)
%184 = tail call i32 @putchar(i32 45)
%185 = tail call i32 @putchar(i32 45)
%186 = tail call i32 @putchar(i32 45)
%187 = tail call i32 @putchar(i32 45)
%188 = tail call i32 @putchar(i32 45)
%189 = tail call i32 @putchar(i32 45)
%190 = tail call i32 @putchar(i32 10)
%191 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%192 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 1)
%193 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 2)
%194 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 3)
%195 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 4)
%196 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 5)
%197 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 6)
%198 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 7)
%199 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 8)
%200 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 9)
%201 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.16, i64 0, i64 0))
ret i32 0
202: ; preds = %135, %237
%203 = phi i32 [ %239, %237 ], [ %159, %135 ]
%204 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 %203)
%205 = icmp slt i32 %128, %203
%206 = select i1 %205, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0)
%207 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %206)
%208 = icmp slt i32 %117, %203
%209 = select i1 %208, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0)
%210 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %209)
%211 = icmp slt i32 %106, %203
%212 = select i1 %211, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0)
%213 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %212)
%214 = icmp slt i32 %95, %203
%215 = select i1 %214, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0)
%216 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %215)
%217 = icmp slt i32 %84, %203
%218 = select i1 %217, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0)
%219 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %218)
%220 = icmp slt i32 %73, %203
%221 = select i1 %220, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0)
%222 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %221)
%223 = icmp slt i32 %62, %203
%224 = select i1 %223, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0)
%225 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %224)
%226 = icmp slt i32 %51, %203
%227 = select i1 %226, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0)
%228 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %227)
%229 = icmp slt i32 %40, %203
%230 = select i1 %229, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0)
%231 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %230)
%232 = icmp slt i32 %32, %203
br i1 %232, label %235, label %233
233: ; preds = %202
%234 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
br label %237
235: ; preds = %202
%236 = tail call i32 @putchar(i32 32)
br label %237
237: ; preds = %235, %233
%238 = tail call i32 @putchar(i32 10)
%239 = add nsw i32 %203, -1
%240 = icmp sgt i32 %203, 1
br i1 %240, label %202, label %167
}