#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;
  long freqarr[256 + 1];
  long thisval = 0;
  long maxval = 0;
  int thisidx = 0;
  for (thisidx = 0; thisidx <= 256; thisidx++) {
    freqarr[thisidx] = 0;
  }
  while ((c = getchar()) != EOF) {
    if (c < 256) {
      thisval = ++freqarr[c];
      if (thisval > maxval) {
        maxval = thisval;
      }
    } else {
      thisval = ++freqarr[256];
      if (thisval > maxval) {
        maxval = thisval;
      }
    }
  }
  for (thisval = maxval; thisval > 0; thisval--) {
    printf("%4d  |", thisval);
    for (thisidx = 0; thisidx <= 256; thisidx++) {
      if (freqarr[thisidx] >= thisval) {
        printf("*");
      } else if (freqarr[thisidx] > 0) {
        printf(" ");
      }
    }
    printf("\n");
  }
  printf("      +");
  for (thisidx = 0; thisidx <= 256; thisidx++) {
    if (freqarr[thisidx] > 0) {
      printf("-");
    }
  }
  printf("\n       ");
  for (thisidx = 0; thisidx < 256; thisidx++) {
    if (freqarr[thisidx] > 0) {
      printf("%d", thisidx / 100);
    }
  }
  printf("\n       ");
  for (thisidx = 0; thisidx < 256; thisidx++) {
    if (freqarr[thisidx] > 0) {
      printf("%d", (thisidx - (100 * (thisidx / 100))) / 10);
    }
  }
  printf("\n       ");
  for (thisidx = 0; thisidx < 256; thisidx++) {
    if (freqarr[thisidx] > 0) {
      printf("%d", thisidx - (10 * (thisidx / 10)));
    }
  }
  if (freqarr[256] > 0) {
    printf(">%d\n", 256);
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x830,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x818(%rbp)
movq   $0x0,-0x820(%rbp)
movl   $0x0,-0x824(%rbp)
movl   $0x0,-0x824(%rbp)
cmpl   $0x100,-0x824(%rbp)
jg     1193 <main+0x73>
movslq -0x824(%rbp),%rax
movq   $0x0,-0x810(%rbp,%rax,8)
mov    -0x824(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x824(%rbp)
jmp    115c <main+0x3c>
jmp    1198 <main+0x78>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e3f(%rip),%rcx
cmp    (%rcx),%eax
je     1243 <main+0x123>
cmpl   $0x100,-0x8(%rbp)
jge    1204 <main+0xe4>
movslq -0x8(%rbp),%rcx
mov    -0x810(%rbp,%rcx,8),%rax
ff
add    $0x1,%rax
mov    %rax,-0x810(%rbp,%rcx,8)
ff
mov    %rax,-0x818(%rbp)
mov    -0x818(%rbp),%rax
cmp    -0x820(%rbp),%rax
jle    11ff <main+0xdf>
mov    -0x818(%rbp),%rax
mov    %rax,-0x820(%rbp)
jmp    123e <main+0x11e>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    %rax,-0x818(%rbp)
mov    -0x818(%rbp),%rax
cmp    -0x820(%rbp),%rax
jle    1239 <main+0x119>
mov    -0x818(%rbp),%rax
mov    %rax,-0x820(%rbp)
jmp    123e <main+0x11e>
jmp    1198 <main+0x78>
mov    -0x820(%rbp),%rax
mov    %rax,-0x818(%rbp)
cmpq   $0x0,-0x818(%rbp)
jle    1324 <main+0x204>
mov    -0x818(%rbp),%rsi
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x824(%rbp)
cmpl   $0x100,-0x824(%rbp)
jg     12ff <main+0x1df>
movslq -0x824(%rbp),%rax
mov    -0x810(%rbp,%rax,8),%rax
ff
cmp    -0x818(%rbp),%rax
jl     12bd <main+0x19d>
lea    0xd56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12e6 <main+0x1c6>
movslq -0x824(%rbp),%rax
cmpq   $0x0,-0x810(%rbp,%rax,8)
jle    12e1 <main+0x1c1>
lea    0xd40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12e6 <main+0x1c6>
jmp    12eb <main+0x1cb>
mov    -0x824(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x824(%rbp)
jmp    127e <main+0x15e>
lea    0xd1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x818(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x818(%rbp)
jmp    1251 <main+0x131>
lea    0xcde(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x824(%rbp)
cmpl   $0x100,-0x824(%rbp)
jg     1389 <main+0x269>
movslq -0x824(%rbp),%rax
cmpq   $0x0,-0x810(%rbp,%rax,8)
jle    1370 <main+0x250>
lea    0xca8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1375 <main+0x255>
mov    -0x824(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x824(%rbp)
jmp    133c <main+0x21c>
lea    0xc83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x824(%rbp)
cmpl   $0x100,-0x824(%rbp)
jge    13fe <main+0x2de>
movslq -0x824(%rbp),%rax
cmpq   $0x0,-0x810(%rbp,%rax,8)
jle    13e5 <main+0x2c5>
mov    -0x824(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    0xc3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13ea <main+0x2ca>
mov    -0x824(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x824(%rbp)
jmp    13a1 <main+0x281>
lea    0xc0e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x824(%rbp)
cmpl   $0x100,-0x824(%rbp)
jge    1494 <main+0x374>
movslq -0x824(%rbp),%rax
cmpq   $0x0,-0x810(%rbp,%rax,8)
jle    147b <main+0x35b>
mov    -0x824(%rbp),%eax
mov    %eax,-0x828(%rbp)
mov    -0x824(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x828(%rbp),%eax
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    0xba8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1480 <main+0x360>
mov    -0x824(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x824(%rbp)
jmp    1416 <main+0x2f6>
lea    0xb78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x824(%rbp)
cmpl   $0x100,-0x824(%rbp)
jge    1512 <main+0x3f2>
movslq -0x824(%rbp),%rax
cmpq   $0x0,-0x810(%rbp,%rax,8)
jle    14f9 <main+0x3d9>
mov    -0x824(%rbp),%esi
mov    -0x824(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
imul   $0xa,%eax,%eax
sub    %eax,%esi
lea    0xb2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14fe <main+0x3de>
mov    -0x824(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x824(%rbp)
jmp    14ac <main+0x38c>
cmpq   $0x0,-0x10(%rbp)
jle    1530 <main+0x410>
lea    0xafb(%rip),%rdi
mov    $0x100,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xaeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x830,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x810,%rsp
mov    %rsp,%rdi
mov    $0x808,%edx
xor    %esi,%esi
call   1050 <memset@plt>
xor    %eax,%eax
call   1060 <getchar@plt>
mov    0x2e7f(%rip),%r14
cmp    (%r14),%eax
je     122c <main+0xec>
xor    %r15d,%r15d
jmp    11a7 <main+0x67>
nopw   0x0(%rax,%rax,1)
mov    0x800(%rsp),%rax
lea    0x1(%rax),%rcx
mov    %rcx,0x800(%rsp)
cmp    %r15,%rax
cmovge %rcx,%r15
xor    %eax,%eax
call   1060 <getchar@plt>
cmp    (%r14),%eax
je     11bf <main+0x7f>
cmp    $0xff,%eax
jg     1180 <main+0x40>
movslq %eax,%rdx
mov    (%rsp,%rdx,8),%rax
lea    0x1(%rax),%rcx
mov    %rcx,(%rsp,%rdx,8)
jmp    1194 <main+0x54>
test   %r15,%r15
jle    122c <main+0xec>
lea    0xe35(%rip),%r14
jmp    11e7 <main+0xa7>
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x1(%r15),%rax
cmp    $0x1,%r15
mov    %rax,%r15
jle    122c <main+0xec>
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %ebx,%ebx
jmp    1212 <main+0xd2>
nopl   0x0(%rax,%rax,1)
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    $0x101,%rbx
je     11d0 <main+0x90>
mov    (%rsp,%rbx,8),%rax
mov    $0x2a,%edi
cmp    %r15,%rax
jge    1200 <main+0xc0>
mov    $0x20,%edi
test   %rax,%rax
jg     1200 <main+0xc0>
jmp    1205 <main+0xc5>
lea    0xdd4(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    124d <main+0x10d>
xchg   %ax,%ax
add    $0x1,%rbx
cmp    $0x101,%rbx
je     1260 <main+0x120>
cmpq   $0x0,(%rsp,%rbx,8)
jle    1240 <main+0x100>
mov    $0x2d,%edi
call   1030 <putchar@plt>
jmp    1240 <main+0x100>
lea    0xda8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xda3(%rip),%r14
xor    %ebx,%ebx
jmp    128d <main+0x14d>
nopl   0x0(%rax)
add    $0x1,%rbx
cmp    $0x100,%rbx
je     12af <main+0x16f>
cmpq   $0x0,(%rsp,%rbx,8)
jle    1280 <main+0x140>
movzbl %bl,%eax
lea    (%rax,%rax,4),%ecx
lea    (%rax,%rcx,8),%eax
movzwl %ax,%esi
shr    $0xc,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1280 <main+0x140>
lea    0xd59(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd54(%rip),%r14
xor    %ebx,%ebx
jmp    12dd <main+0x19d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    $0x100,%rbx
je     1312 <main+0x1d2>
cmpq   $0x0,(%rsp,%rbx,8)
jle    12d0 <main+0x190>
movzbl %bl,%eax
lea    (%rax,%rax,4),%ecx
lea    (%rax,%rcx,8),%eax
movzwl %ax,%eax
shr    $0xc,%eax
imul   $0x64,%eax,%eax
mov    %ebx,%ecx
sub    %al,%cl
movzbl %cl,%eax
imul   $0xcd,%eax,%esi
shr    $0xb,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    12d0 <main+0x190>
lea    0xcf6(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xcccccccd,%r14d
lea    0xceb(%rip),%r15
xor    %ebx,%ebx
jmp    134d <main+0x20d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    $0x100,%rbx
je     1373 <main+0x233>
cmpq   $0x0,(%rsp,%rbx,8)
jle    1340 <main+0x200>
mov    %ebx,%eax
imul   %r14,%rax
shr    $0x23,%rax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
mov    %ebx,%esi
sub    %eax,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1340 <main+0x200>
cmpq   $0x0,0x800(%rsp)
jle    1391 <main+0x251>
lea    0xc96(%rip),%rdi
mov    $0x100,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x810,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

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