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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ putchar(char);
void vertical(float cn[], float maxcn) {
  int i, j;
  int h;
  for (i = 0; i < 16; ++i) {
    for (j = 0; j < 26 * 2; ++j) {
      if (i >= 16 * (1 - cn[j] / maxcn))
        putchar('|');
      else
        putchar(' ');
    }
    putchar('\n');
  }
  for (j = 0; j < 26; ++j)
    putchar('a' + j);
  for (j = 0; j < 26; ++j)
    putchar('A' + j);
  putchar('\n');
}


x86 assembly (clang, -O0):
<vertical>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x10,-0x10(%rbp)
jge    11bf <vertical+0xaf>
movl   $0x0,-0x14(%rbp)
cmpl   $0x34,-0x14(%rbp)
jge    11a7 <vertical+0x97>
cvtsi2ssl -0x10(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
divss  -0xc(%rbp),%xmm1
movss  0xea2(%rip),%xmm2
subss  %xmm1,%xmm2
movss  0xe92(%rip),%xmm1
mulss  %xmm2,%xmm1
ucomiss %xmm1,%xmm0
jb     118a <vertical+0x7a>
mov    $0x7c,%edi
call   1030 <putchar@plt>
jmp    1194 <vertical+0x84>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    1199 <vertical+0x89>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1139 <vertical+0x29>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1128 <vertical+0x18>
movl   $0x0,-0x14(%rbp)
cmpl   $0x1a,-0x14(%rbp)
jge    11ec <vertical+0xdc>
mov    -0x14(%rbp),%eax
add    $0x61,%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11c6 <vertical+0xb6>
movl   $0x0,-0x14(%rbp)
cmpl   $0x1a,-0x14(%rbp)
jge    1219 <vertical+0x109>
mov    -0x14(%rbp),%eax
add    $0x41,%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11f3 <vertical+0xe3>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vertical>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
movss  %xmm0,0x8(%rsp)
mov    %rdi,%r15
xor    %r14d,%r14d
jmp    1144 <vertical+0x34>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14d
cmp    $0x10,%r14d
je     11a6 <vertical+0x96>
xorps  %xmm0,%xmm0
cvtsi2ss %r14d,%xmm0
movss  %xmm0,0xc(%rsp)
xor    %ebx,%ebx
jmp    116f <vertical+0x5f>
cs nopw 0x0(%rax,%rax,1)
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    $0x34,%rbx
je     1130 <vertical+0x20>
movss  (%r15,%rbx,4),%xmm0
divss  0x8(%rsp),%xmm0
movss  0xe7d(%rip),%xmm1
subss  %xmm0,%xmm1
mulss  0xe75(%rip),%xmm1
movss  0xc(%rsp),%xmm0
ucomiss %xmm1,%xmm0
mov    $0x20,%edi
jb     1160 <vertical+0x50>
mov    $0x7c,%edi
jmp    1160 <vertical+0x50>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x62,%edi
call   1030 <putchar@plt>
mov    $0x63,%edi
call   1030 <putchar@plt>
mov    $0x64,%edi
call   1030 <putchar@plt>
mov    $0x65,%edi
call   1030 <putchar@plt>
mov    $0x66,%edi
call   1030 <putchar@plt>
mov    $0x67,%edi
call   1030 <putchar@plt>
mov    $0x68,%edi
call   1030 <putchar@plt>
mov    $0x69,%edi
call   1030 <putchar@plt>
mov    $0x6a,%edi
call   1030 <putchar@plt>
mov    $0x6b,%edi
call   1030 <putchar@plt>
mov    $0x6c,%edi
call   1030 <putchar@plt>
mov    $0x6d,%edi
call   1030 <putchar@plt>
mov    $0x6e,%edi
call   1030 <putchar@plt>
mov    $0x6f,%edi
call   1030 <putchar@plt>
mov    $0x70,%edi
call   1030 <putchar@plt>
mov    $0x71,%edi
call   1030 <putchar@plt>
mov    $0x72,%edi
call   1030 <putchar@plt>
mov    $0x73,%edi
call   1030 <putchar@plt>
mov    $0x74,%edi
call   1030 <putchar@plt>
mov    $0x75,%edi
call   1030 <putchar@plt>
mov    $0x76,%edi
call   1030 <putchar@plt>
mov    $0x77,%edi
call   1030 <putchar@plt>
mov    $0x78,%edi
call   1030 <putchar@plt>
mov    $0x79,%edi
call   1030 <putchar@plt>
mov    $0x7a,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x42,%edi
call   1030 <putchar@plt>
mov    $0x43,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0x47,%edi
call   1030 <putchar@plt>
mov    $0x48,%edi
call   1030 <putchar@plt>
mov    $0x49,%edi
call   1030 <putchar@plt>
mov    $0x4a,%edi
call   1030 <putchar@plt>
mov    $0x4b,%edi
call   1030 <putchar@plt>
mov    $0x4c,%edi
call   1030 <putchar@plt>
mov    $0x4d,%edi
call   1030 <putchar@plt>
mov    $0x4e,%edi
call   1030 <putchar@plt>
mov    $0x4f,%edi
call   1030 <putchar@plt>
mov    $0x50,%edi
call   1030 <putchar@plt>
mov    $0x51,%edi
call   1030 <putchar@plt>
mov    $0x52,%edi
call   1030 <putchar@plt>
mov    $0x53,%edi
call   1030 <putchar@plt>
mov    $0x54,%edi
call   1030 <putchar@plt>
mov    $0x55,%edi
call   1030 <putchar@plt>
mov    $0x56,%edi
call   1030 <putchar@plt>
mov    $0x57,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x59,%edi
call   1030 <putchar@plt>
mov    $0x5a,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <putchar@plt>

LLVM IR (-O0):
define void @vertical(float* %0, float %1) {
%3 = alloca float*
%4 = alloca float
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store float* %0, float** %3
store float %1, float* %4
store i32 0, i32* %5
br label %8
8: ; preds = %38, %2
%9 = load i32, i32* %5
%10 = icmp slt i32 %9, 16
br i1 %10, label %11, label %41
11: ; preds = %8
store i32 0, i32* %6
br label %12
12: ; preds = %33, %11
%13 = load i32, i32* %6
%14 = icmp slt i32 %13, 52
br i1 %14, label %15, label %36
15: ; preds = %12
%16 = load i32, i32* %5
%17 = sitofp i32 %16 to float
%18 = load float*, float** %3
%19 = load i32, i32* %6
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds float, float* %18, i64 %20
%22 = load float, float* %21
%23 = load float, float* %4
%24 = fdiv float %22, %23
%25 = fsub float 1.000000e+00, %24
%26 = fmul float 1.600000e+01, %25
%27 = fcmp oge float %17, %26
br i1 %27, label %28, label %30
28: ; preds = %15
%29 = call i32 @putchar(i8 signext 124)
br label %32
30: ; preds = %15
%31 = call i32 @putchar(i8 signext 32)
br label %32
32: ; preds = %30, %28
br label %33
33: ; preds = %32
%34 = load i32, i32* %6
%35 = add nsw i32 %34, 1
store i32 %35, i32* %6
br label %12
36: ; preds = %12
%37 = call i32 @putchar(i8 signext 10)
br label %38
38: ; preds = %36
%39 = load i32, i32* %5
%40 = add nsw i32 %39, 1
store i32 %40, i32* %5
br label %8
41: ; preds = %8
store i32 0, i32* %6
br label %42
42: ; preds = %50, %41
%43 = load i32, i32* %6
%44 = icmp slt i32 %43, 26
br i1 %44, label %45, label %53
45: ; preds = %42
%46 = load i32, i32* %6
%47 = add nsw i32 97, %46
%48 = trunc i32 %47 to i8
%49 = call i32 @putchar(i8 signext %48)
br label %50
50: ; preds = %45
%51 = load i32, i32* %6
%52 = add nsw i32 %51, 1
store i32 %52, i32* %6
br label %42
53: ; preds = %42
store i32 0, i32* %6
br label %54
54: ; preds = %62, %53
%55 = load i32, i32* %6
%56 = icmp slt i32 %55, 26
br i1 %56, label %57, label %65
57: ; preds = %54
%58 = load i32, i32* %6
%59 = add nsw i32 65, %58
%60 = trunc i32 %59 to i8
%61 = call i32 @putchar(i8 signext %60)
br label %62
62: ; preds = %57
%63 = load i32, i32* %6
%64 = add nsw i32 %63, 1
store i32 %64, i32* %6
br label %54
65: ; preds = %54
%66 = call i32 @putchar(i8 signext 10)
ret void
}

LLVM IR (-O2):
define void @vertical(float* nocapture %0, float %1) {
br label %3
3: ; preds = %2, %18
%4 = phi i32 [ 0, %2 ], [ %20, %18 ]
%5 = sitofp i32 %4 to float
br label %6
6: ; preds = %3, %6
%7 = phi i64 [ 0, %3 ], [ %16, %6 ]
%8 = getelementptr inbounds float, float* %0, i64 %7
%9 = load float, float* %8
%10 = fdiv float %9, %1
%11 = fsub float 1.000000e+00, %10
%12 = fmul float %11, 1.600000e+01
%13 = fcmp ugt float %12, %5
%14 = select i1 %13, i8 32, i8 124
%15 = tail call i32 @putchar(i8 signext %14)
%16 = add nuw nsw i64 %7, 1
%17 = icmp eq i64 %16, 52
br i1 %17, label %18, label %6
18: ; preds = %6
%19 = tail call i32 @putchar(i8 signext 10)
%20 = add nuw nsw i32 %4, 1
%21 = icmp eq i32 %20, 16
br i1 %21, label %22, label %3
22: ; preds = %18
%23 = tail call i32 @putchar(i8 signext 97)
%24 = tail call i32 @putchar(i8 signext 98)
%25 = tail call i32 @putchar(i8 signext 99)
%26 = tail call i32 @putchar(i8 signext 100)
%27 = tail call i32 @putchar(i8 signext 101)
%28 = tail call i32 @putchar(i8 signext 102)
%29 = tail call i32 @putchar(i8 signext 103)
%30 = tail call i32 @putchar(i8 signext 104)
%31 = tail call i32 @putchar(i8 signext 105)
%32 = tail call i32 @putchar(i8 signext 106)
%33 = tail call i32 @putchar(i8 signext 107)
%34 = tail call i32 @putchar(i8 signext 108)
%35 = tail call i32 @putchar(i8 signext 109)
%36 = tail call i32 @putchar(i8 signext 110)
%37 = tail call i32 @putchar(i8 signext 111)
%38 = tail call i32 @putchar(i8 signext 112)
%39 = tail call i32 @putchar(i8 signext 113)
%40 = tail call i32 @putchar(i8 signext 114)
%41 = tail call i32 @putchar(i8 signext 115)
%42 = tail call i32 @putchar(i8 signext 116)
%43 = tail call i32 @putchar(i8 signext 117)
%44 = tail call i32 @putchar(i8 signext 118)
%45 = tail call i32 @putchar(i8 signext 119)
%46 = tail call i32 @putchar(i8 signext 120)
%47 = tail call i32 @putchar(i8 signext 121)
%48 = tail call i32 @putchar(i8 signext 122)
%49 = tail call i32 @putchar(i8 signext 65)
%50 = tail call i32 @putchar(i8 signext 66)
%51 = tail call i32 @putchar(i8 signext 67)
%52 = tail call i32 @putchar(i8 signext 68)
%53 = tail call i32 @putchar(i8 signext 69)
%54 = tail call i32 @putchar(i8 signext 70)
%55 = tail call i32 @putchar(i8 signext 71)
%56 = tail call i32 @putchar(i8 signext 72)
%57 = tail call i32 @putchar(i8 signext 73)
%58 = tail call i32 @putchar(i8 signext 74)
%59 = tail call i32 @putchar(i8 signext 75)
%60 = tail call i32 @putchar(i8 signext 76)
%61 = tail call i32 @putchar(i8 signext 77)
%62 = tail call i32 @putchar(i8 signext 78)
%63 = tail call i32 @putchar(i8 signext 79)
%64 = tail call i32 @putchar(i8 signext 80)
%65 = tail call i32 @putchar(i8 signext 81)
%66 = tail call i32 @putchar(i8 signext 82)
%67 = tail call i32 @putchar(i8 signext 83)
%68 = tail call i32 @putchar(i8 signext 84)
%69 = tail call i32 @putchar(i8 signext 85)
%70 = tail call i32 @putchar(i8 signext 86)
%71 = tail call i32 @putchar(i8 signext 87)
%72 = tail call i32 @putchar(i8 signext 88)
%73 = tail call i32 @putchar(i8 signext 89)
%74 = tail call i32 @putchar(i8 signext 90)
%75 = tail call i32 @putchar(i8 signext 10)
ret void
}