#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 *, ...);
main() {
  int c, nc, i, j, max;
  int nWord[15];
  nc = 0;
  max = 0;
  for (i = 0; i < 15; ++i)
    nWord[i] = 0;
  while ((c = getchar()) != EOF) {
    if (c == ' ' || c == '\n' || c == '\t' || c == ',' || c == '.') {
      if (nc != 0 && nc <= 15 * 1) {
        ++nWord[nc / 1];
      }
      nc = 0;
    } else {
      ++nc;
    }
  }
  printf("\n");
  for (i = 0; i < 15; ++i) {
    printf("%2d-%2d |", i * 1, (i + 1) * 1);
    for (j = 0; j < nWord[i]; ++j)
      printf("*");
    printf("\n");
  }
  for (i = 0; i < 15; ++i) {
    if (max < nWord[i]) {
      max = nWord[i];
    }
  }
  for (i = max; i > 0; --i) {
    for (j = 0; j < 15; ++j) {
      if (nWord[j] >= i)
        printf("  **  ");
      else
        printf("      ");
    }
    printf("\n");
  }
  for (i = 0; i < 15; ++i)
    printf("%2d-%2d ", i * 1, (i + 1) * 1);
  printf("\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0xf,-0x10(%rbp)
jge    1168 <main+0x48>
movslq -0x10(%rbp),%rax
movl   $0x0,-0x60(%rbp,%rax,4)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1144 <main+0x24>
jmp    116d <main+0x4d>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e6a(%rip),%rcx
cmp    (%rcx),%eax
je     11fe <main+0xde>
cmpl   $0x20,-0x8(%rbp)
je     11b8 <main+0x98>
cmpl   $0xa,-0x8(%rbp)
je     11b8 <main+0x98>
cmpl   $0x9,-0x8(%rbp)
je     11b8 <main+0x98>
cmpl   $0x2c,-0x8(%rbp)
je     11b8 <main+0x98>
cmpl   $0x2e,-0x8(%rbp)
jne    11f0 <main+0xd0>
cmpl   $0x0,-0xc(%rbp)
je     11e4 <main+0xc4>
cmpl   $0xf,-0xc(%rbp)
jg     11e4 <main+0xc4>
mov    -0xc(%rbp),%eax
mov    $0x1,%ecx
cltd
idiv   %ecx
cltq
mov    -0x60(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x60(%rbp,%rax,4)
movl   $0x0,-0xc(%rbp)
jmp    11f9 <main+0xd9>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    116d <main+0x4d>
lea    0xdfb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0xf,-0x10(%rbp)
jge    128a <main+0x16a>
mov    -0x10(%rbp),%esi
shl    $0x0,%esi
mov    -0x10(%rbp),%edx
add    $0x1,%edx
shl    $0x0,%edx
lea    0xdcf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
movslq -0x10(%rbp),%rcx
cmp    -0x60(%rbp,%rcx,4),%eax
jge    126e <main+0x14e>
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1241 <main+0x121>
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1213 <main+0xf3>
movl   $0x0,-0x10(%rbp)
cmpl   $0xf,-0x10(%rbp)
jge    12ca <main+0x1aa>
mov    -0x18(%rbp),%eax
movslq -0x10(%rbp),%rcx
cmp    -0x60(%rbp,%rcx,4),%eax
jge    12b7 <main+0x197>
movslq -0x10(%rbp),%rax
mov    -0x60(%rbp,%rax,4),%eax
mov    %eax,-0x18(%rbp)
jmp    12bc <main+0x19c>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1291 <main+0x171>
mov    -0x18(%rbp),%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jle    134c <main+0x22c>
movl   $0x0,-0x14(%rbp)
cmpl   $0xf,-0x14(%rbp)
jge    1330 <main+0x210>
movslq -0x14(%rbp),%rax
mov    -0x60(%rbp,%rax,4),%eax
cmp    -0x10(%rbp),%eax
jl     130f <main+0x1ef>
lea    0xd0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    131d <main+0x1fd>
lea    0xcff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1322 <main+0x202>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12e1 <main+0x1c1>
lea    0xcc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    12d0 <main+0x1b0>
movl   $0x0,-0x10(%rbp)
cmpl   $0xf,-0x10(%rbp)
jge    1388 <main+0x268>
mov    -0x10(%rbp),%esi
shl    $0x0,%esi
mov    -0x10(%rbp),%edx
add    $0x1,%edx
shl    $0x0,%edx
lea    0xca9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1353 <main+0x233>
lea    0xc71(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
xorps  %xmm0,%xmm0
movups %xmm0,0x2c(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <getchar@plt>
mov    0x2e86(%rip),%rbx
cmp    (%rbx),%eax
jne    153d <main+0x40d>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe85(%rip),%r14
xor    %r15d,%r15d
jmp    1190 <main+0x60>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmp    $0xf,%r15
je     11c1 <main+0x91>
mov    %r15,%rbx
add    $0x1,%r15
mov    %r14,%rdi
mov    %ebx,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp,%rbx,4),%ebx
test   %ebx,%ebx
jle    1180 <main+0x50>
nopl   (%rax)
mov    $0x2a,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    11b0 <main+0x80>
jmp    1180 <main+0x50>
mov    0x4(%rsp),%eax
mov    0x8(%rsp),%ecx
xor    %ebx,%ebx
test   %eax,%eax
cmovns %eax,%ebx
cmp    %ecx,%ebx
cmovl  %ecx,%ebx
mov    0xc(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
mov    0x10(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
mov    0x14(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
mov    0x18(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
mov    0x1c(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
mov    0x20(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
mov    0x24(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
mov    0x28(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
mov    0x2c(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
mov    0x30(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
mov    0x34(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
mov    0x38(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
test   %ebx,%ebx
je     13f2 <main+0x2c2>
mov    (%rsp),%eax
mov    %eax,0x74(%rsp)
mov    0x4(%rsp),%eax
mov    %eax,0x70(%rsp)
mov    0x8(%rsp),%eax
mov    %eax,0x6c(%rsp)
mov    0xc(%rsp),%eax
mov    %eax,0x68(%rsp)
mov    0x10(%rsp),%eax
mov    %eax,0x64(%rsp)
mov    0x14(%rsp),%eax
mov    %eax,0x60(%rsp)
mov    0x18(%rsp),%eax
mov    %eax,0x5c(%rsp)
mov    0x1c(%rsp),%eax
mov    %eax,0x58(%rsp)
mov    0x20(%rsp),%eax
mov    %eax,0x54(%rsp)
mov    0x24(%rsp),%eax
mov    %eax,0x50(%rsp)
mov    0x28(%rsp),%eax
mov    %eax,0x4c(%rsp)
mov    0x2c(%rsp),%eax
mov    %eax,0x48(%rsp)
mov    0x30(%rsp),%r12d
mov    0x34(%rsp),%r13d
mov    0x38(%rsp),%ebp
lea    0xd54(%rip),%r14
lea    0xd46(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmp    %ebx,0x74(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x70(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x6c(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x68(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x64(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x60(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x5c(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x58(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x54(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x50(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x4c(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x48(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,%r12d
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,%r13d
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,%ebp
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x1(%rbx),%eax
cmp    $0x1,%ebx
mov    %eax,%ebx
jg     12d0 <main+0x1a0>
lea    0xc1f(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0x7,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x9,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0xa,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xb,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xb,%esi
mov    $0xc,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
mov    $0xd,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
mov    $0xe,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xe,%esi
mov    $0xf,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movabs $0x500100000600,%r14
xor    %ecx,%ecx
jmp    1561 <main+0x431>
add    $0x1,%ecx
mov    %ecx,%ebp
xor    %eax,%eax
call   1050 <getchar@plt>
mov    %ebp,%ecx
cmp    (%rbx),%eax
je     116a <main+0x3a>
cmp    $0x2e,%eax
ja     154b <main+0x41b>
mov    %eax,%eax
bt     %rax,%r14
jae    154b <main+0x41b>
xor    %ebp,%ebp
test   %ecx,%ecx
je     1550 <main+0x420>
cmp    $0xf,%ecx
jg     1550 <main+0x420>
movslq %ecx,%rax
addl   $0x1,(%rsp,%rax,4)
jmp    1550 <main+0x420>

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

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