#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(void) {
  int c;
  int inspace = 0;
  long lengtharr[10 + 1];
  int wordlen = 0;
  int firstletter = 1;
  long thisval = 0;
  long maxval = 0;
  int thisidx = 0;
  int done = 0;
  for (thisidx = 0; thisidx <= 10; thisidx++) {
    lengtharr[thisidx] = 0;
  }
  while (done == 0) {
    c = getchar();
    if (c == ' ' || c == '\t' || c == '\n' || c == EOF) {
      if (inspace == 0) {
        firstletter = 0;
        inspace = 1;
        if (wordlen <= 10) {
          if (wordlen > 0) {
            thisval = ++lengtharr[wordlen - 1];
            if (thisval > maxval) {
              maxval = thisval;
            }
          }
        } else {
          thisval = ++lengtharr[10];
          if (thisval > maxval) {
            maxval = thisval;
          }
        }
      }
      if (c == EOF) {
        done = 1;
      }
    } else {
      if (inspace == 1 || firstletter == 1) {
        wordlen = 0;
        firstletter = 0;
        inspace = 0;
      }
      ++wordlen;
    }
  }
  for (thisval = maxval; thisval > 0; thisval--) {
    printf("%4d  | ", thisval);
    for (thisidx = 0; thisidx <= 10; thisidx++) {
      if (lengtharr[thisidx] >= thisval) {
        printf("*  ");
      } else {
        printf("   ");
      }
    }
    printf("\n");
  }
  printf("      +");
  for (thisidx = 0; thisidx <= 10; thisidx++) {
    printf("---");
  }
  printf("\n       ");
  for (thisidx = 0; thisidx < 10; thisidx++) {
    printf("%2d ", thisidx + 1);
  }
  printf(">%d\n", 10);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x74(%rbp)
movl   $0x1,-0x78(%rbp)
movq   $0x0,-0x80(%rbp)
movq   $0x0,-0x88(%rbp)
movl   $0x0,-0x8c(%rbp)
movl   $0x0,-0x90(%rbp)
movl   $0x0,-0x8c(%rbp)
cmpl   $0xa,-0x8c(%rbp)
jg     11a9 <main+0x89>
movslq -0x8c(%rbp),%rax
movq   $0x0,-0x70(%rbp,%rax,8)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1178 <main+0x58>
jmp    11ae <main+0x8e>
cmpl   $0x0,-0x90(%rbp)
jne    12f0 <main+0x1d0>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x20,-0x8(%rbp)
je     11f5 <main+0xd5>
cmpl   $0x9,-0x8(%rbp)
je     11f5 <main+0xd5>
cmpl   $0xa,-0x8(%rbp)
je     11f5 <main+0xd5>
mov    -0x8(%rbp),%eax
mov    0x2dfb(%rip),%rcx
cmp    (%rcx),%eax
jne    12b9 <main+0x199>
cmpl   $0x0,-0xc(%rbp)
jne    1298 <main+0x178>
movl   $0x0,-0x78(%rbp)
movl   $0x1,-0xc(%rbp)
cmpl   $0xa,-0x74(%rbp)
jg     1262 <main+0x142>
cmpl   $0x0,-0x74(%rbp)
jle    125d <main+0x13d>
mov    -0x74(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
mov    -0x70(%rbp,%rcx,8),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp,%rcx,8)
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
cmp    -0x88(%rbp),%rax
jle    1258 <main+0x138>
mov    -0x80(%rbp),%rax
mov    %rax,-0x88(%rbp)
jmp    125d <main+0x13d>
jmp    1293 <main+0x173>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
cmp    -0x88(%rbp),%rax
jle    128e <main+0x16e>
mov    -0x80(%rbp),%rax
mov    %rax,-0x88(%rbp)
jmp    1293 <main+0x173>
jmp    1298 <main+0x178>
mov    -0x8(%rbp),%eax
mov    0x2d46(%rip),%rcx
cmp    (%rcx),%eax
jne    12b4 <main+0x194>
movl   $0x1,-0x90(%rbp)
jmp    12eb <main+0x1cb>
cmpl   $0x1,-0xc(%rbp)
je     12cd <main+0x1ad>
cmpl   $0x1,-0x78(%rbp)
jne    12e2 <main+0x1c2>
movl   $0x0,-0x74(%rbp)
movl   $0x0,-0x78(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    11ae <main+0x8e>
mov    -0x88(%rbp),%rax
mov    %rax,-0x80(%rbp)
cmpq   $0x0,-0x80(%rbp)
jle    139e <main+0x27e>
mov    -0x80(%rbp),%rsi
lea    0xcef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8c(%rbp)
cmpl   $0xa,-0x8c(%rbp)
jg     137f <main+0x25f>
movslq -0x8c(%rbp),%rax
mov    -0x70(%rbp,%rax,8),%rax
cmp    -0x80(%rbp),%rax
jl     1358 <main+0x238>
lea    0xcbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1366 <main+0x246>
lea    0xcbe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    136b <main+0x24b>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1322 <main+0x202>
lea    0xca3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x80(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x80(%rbp)
jmp    12fb <main+0x1db>
lea    0xc67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8c(%rbp)
cmpl   $0xa,-0x8c(%rbp)
jg     13e5 <main+0x2c5>
lea    0xc4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    13b6 <main+0x296>
lea    0xc2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8c(%rbp)
cmpl   $0xa,-0x8c(%rbp)
jge    1435 <main+0x315>
mov    -0x8c(%rbp),%esi
add    $0x1,%esi
lea    0xc07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    13fd <main+0x2dd>
lea    0xbea(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movq   $0x0,0x90(%rsp)
mov    $0x1,%r12d
mov    0x2e6f(%rip),%r15
movabs $0x100000600,%r14
xor    %ebx,%ebx
xor    %r13d,%r13d
xor    %ebp,%ebp
jmp    11c1 <main+0x91>
mov    0x90(%rsp),%rcx
lea    0x1(%rcx),%rdx
mov    %rdx,0x90(%rsp)
cmp    %rbx,%rcx
cmovge %rdx,%rbx
xor    %r12d,%r12d
nopw   0x0(%rax,%rax,1)
xor    %ecx,%ecx
cmp    (%r15),%eax
sete   %cl
mov    $0x1,%ebp
test   %ecx,%ecx
jne    1231 <main+0x101>
xor    %eax,%eax
call   1050 <getchar@plt>
cmp    $0x20,%eax
ja     1210 <main+0xe0>
mov    %eax,%ecx
bt     %rcx,%r14
jae    1210 <main+0xe0>
test   %ebp,%ebp
jne    11b0 <main+0x80>
cmp    $0xa,%r13d
jg     118c <main+0x5c>
xor    %r12d,%r12d
test   %r13d,%r13d
jle    11b0 <main+0x80>
lea    -0x1(%r13),%ecx
mov    0x40(%rsp,%rcx,8),%rdx
lea    0x1(%rdx),%rsi
mov    %rsi,0x40(%rsp,%rcx,8)
cmp    %rbx,%rdx
cmovge %rsi,%rbx
jmp    11b0 <main+0x80>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    (%r15),%eax
je     11d5 <main+0xa5>
add    $0x1,%r13d
cmp    $0x1,%r12d
cmove  %r12d,%r13d
cmp    $0x1,%ebp
cmove  %ebp,%r13d
xor    %ebp,%ebp
xor    %r12d,%r12d
xor    %ecx,%ecx
jmp    11bd <main+0x8d>
test   %rbx,%rbx
jle    13a6 <main+0x276>
mov    0x40(%rsp),%rax
mov    %rax,0x38(%rsp)
mov    0x48(%rsp),%rax
mov    %rax,0x30(%rsp)
mov    0x50(%rsp),%rax
mov    %rax,0x28(%rsp)
mov    0x58(%rsp),%rax
mov    %rax,0x20(%rsp)
mov    0x60(%rsp),%rax
mov    %rax,0x18(%rsp)
mov    0x68(%rsp),%rax
mov    %rax,0x10(%rsp)
mov    0x70(%rsp),%rax
mov    %rax,0x8(%rsp)
mov    0x78(%rsp),%rax
mov    %rax,(%rsp)
mov    0x80(%rsp),%rbp
mov    0x88(%rsp),%r14
mov    0x90(%rsp),%r15
lea    0xd75(%rip),%r12
lea    0xd59(%rip),%r13
nop
lea    0xd49(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %rbx,0x38(%rsp)
mov    %r13,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %rbx,0x30(%rsp)
mov    %r13,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %rbx,0x28(%rsp)
mov    %r13,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %rbx,0x20(%rsp)
mov    %r13,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %rbx,0x18(%rsp)
mov    %r13,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %rbx,0x10(%rsp)
mov    %r13,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %rbx,0x8(%rsp)
mov    %r13,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %rbx,(%rsp)
mov    %r13,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %rbx,%rbp
mov    %r13,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %rbx,%r14
mov    %r13,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %rbx,%r15
mov    %r13,%rdi
cmovl  %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x1(%rbx),%rax
cmp    $0x1,%rbx
mov    %rax,%rbx
jg     12b0 <main+0x180>
lea    0xc5f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc59(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xbe8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xbe3(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb4b(%rip),%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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