void displayReport(char grade[][3]) {
  int i = 0;
  int A = 0, a = 0, B = 0, b = 0, C = 0, c = 0, D = 0, d = 0, F = 0;
  const char sstar[2] = "*";
  char star[9][30] = {"", "", "", "", "", "", "", "", ""};
  char letterg[9][3] = {"A+", "A", "B+", "B", "C+", "C", "D+", "D", "F"};
  float bperecentage = (1.0f / 100.0f) * 100.0f;
  float percentage[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  for (i = 0; i < 100; i++) {
    if (strcmp(grade[i], "A+") == 0) {
      A++;
      strcat(star[0], sstar);
      percentage[0] = percentage[0] + bperecentage;
    } else if (strcmp(grade[i], "A") == 0) {
      a++;
      strcat(star[1], sstar);
      percentage[1] = percentage[1] + bperecentage;
    } else if (strcmp(grade[i], "B+") == 0) {
      B++;
      strcat(star[2], sstar);
      percentage[2] = percentage[2] + bperecentage;
    } else if (strcmp(grade[i], "B") == 0) {
      b++;
      strcat(star[3], sstar);
      percentage[3] = percentage[3] + bperecentage;
    } else if (strcmp(grade[i], "C+") == 0) {
      C++;
      strcat(star[4], sstar);
      percentage[4] = percentage[4] + bperecentage;
    } else if (strcmp(grade[i], "C") == 0) {
      c++;
      strcat(star[5], sstar);
      percentage[5] = percentage[5] + bperecentage;
    } else if (strcmp(grade[i], "D+") == 0) {
      D++;
      strcat(star[6], sstar);
      percentage[6] = percentage[6] + bperecentage;
    } else if (strcmp(grade[i], "D") == 0) {
      d++;
      strcat(star[7], sstar);
      percentage[7] = percentage[7] + bperecentage;
    } else {
      F++;
      strcat(star[8], sstar);
      percentage[8] = percentage[8] + bperecentage;
    }
  }
  for (i = 0; i < 9; i++) {
    roundf(percentage[i]);
  }
  printf("                     REPORT                          \n");
  printf("BTP100                                 Class size:%d\n", 100);
  printf("%-2s %s                                 %d (%.0f%%)\n", letterg[0],
         star[0], A, percentage[0]);
  printf("%-2s %s                                 %d (%.0f%%)\n", letterg[1],
         star[1], a, percentage[1]);
  printf("%-2s %s                            %d (%.0f%%)\n", letterg[2],
         star[2], B, percentage[2]);
  printf("%-2s %s                             %d (%.0f%%)\n", letterg[3],
         star[3], b, percentage[3]);
  printf("%-2s %s                      %d (%.0f%%)\n", letterg[4], star[4], C,
         percentage[4]);
  printf("%-2s %s            %d (%.0f%%)\n", letterg[5], star[5], c,
         percentage[5]);
  printf("%-2s %s                        %d (%.0f%%)\n", letterg[6], star[6], D,
         percentage[6]);
  printf("%-2s %s                      %d (%.0f%%)\n", letterg[7], star[7], d,
         percentage[7]);
  printf("%-2s %s                     %d (%.0f%%)\n", letterg[8], star[8], F,
         percentage[8]);
}


x86 assembly (clang, -O0):
<displayReport>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    0xe68(%rip),%ax
mov    %ax,-0x32(%rbp)
lea    -0x140(%rbp),%rdi
xor    %esi,%esi
mov    $0x10e,%edx
call   1040 <memset@plt>
mov    0x1006(%rip),%rax
mov    %rax,-0x160(%rbp)
mov    0x1000(%rip),%rax
mov    %rax,-0x158(%rbp)
mov    0xffa(%rip),%rax
mov    %rax,-0x150(%rbp)
mov    0xff4(%rip),%ax
mov    %ax,-0x148(%rbp)
mov    0xfe9(%rip),%al
mov    %al,-0x146(%rbp)
movss  0xe01(%rip),%xmm0
movss  %xmm0,-0x164(%rbp)
ff
lea    -0x190(%rbp),%rdi
xor    %esi,%esi
mov    $0x24,%edx
call   1040 <memset@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x64,-0xc(%rbp)
jge    158e <displayReport+0x44e>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
imul   $0x3,%rax,%rax
add    %rax,%rdi
lea    0xdc5(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1285 <displayReport+0x145>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
lea    -0x140(%rbp),%rdi
lea    -0x32(%rbp),%rsi
call   1060 <strcat@plt>
movss  -0x190(%rbp),%xmm0
ff
addss  -0x164(%rbp),%xmm0
ff
movss  %xmm0,-0x190(%rbp)
ff
jmp    157b <displayReport+0x43b>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
imul   $0x3,%rax,%rax
add    %rax,%rdi
lea    0xd6e(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    12e3 <displayReport+0x1a3>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
lea    -0x140(%rbp),%rdi
add    $0x1e,%rdi
lea    -0x32(%rbp),%rsi
call   1060 <strcat@plt>
movss  -0x18c(%rbp),%xmm0
ff
addss  -0x164(%rbp),%xmm0
ff
movss  %xmm0,-0x18c(%rbp)
ff
jmp    1576 <displayReport+0x436>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
imul   $0x3,%rax,%rax
add    %rax,%rdi
lea    0xd12(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1341 <displayReport+0x201>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    -0x140(%rbp),%rdi
add    $0x3c,%rdi
lea    -0x32(%rbp),%rsi
call   1060 <strcat@plt>
movss  -0x188(%rbp),%xmm0
ff
addss  -0x164(%rbp),%xmm0
ff
movss  %xmm0,-0x188(%rbp)
ff
jmp    1571 <displayReport+0x431>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
imul   $0x3,%rax,%rax
add    %rax,%rdi
lea    0xcb7(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    139f <displayReport+0x25f>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    -0x140(%rbp),%rdi
add    $0x5a,%rdi
lea    -0x32(%rbp),%rsi
call   1060 <strcat@plt>
movss  -0x184(%rbp),%xmm0
ff
addss  -0x164(%rbp),%xmm0
ff
movss  %xmm0,-0x184(%rbp)
ff
jmp    156c <displayReport+0x42c>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
imul   $0x3,%rax,%rax
add    %rax,%rdi
lea    0xc5b(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    13fd <displayReport+0x2bd>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
lea    -0x140(%rbp),%rdi
add    $0x78,%rdi
lea    -0x32(%rbp),%rsi
call   1060 <strcat@plt>
movss  -0x180(%rbp),%xmm0
ff
addss  -0x164(%rbp),%xmm0
ff
movss  %xmm0,-0x180(%rbp)
ff
jmp    1567 <displayReport+0x427>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
imul   $0x3,%rax,%rax
add    %rax,%rdi
lea    0xc00(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    145e <displayReport+0x31e>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
lea    -0x140(%rbp),%rdi
add    $0x96,%rdi
lea    -0x32(%rbp),%rsi
call   1060 <strcat@plt>
movss  -0x17c(%rbp),%xmm0
ff
addss  -0x164(%rbp),%xmm0
ff
movss  %xmm0,-0x17c(%rbp)
ff
jmp    1562 <displayReport+0x422>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
imul   $0x3,%rax,%rax
add    %rax,%rdi
lea    0xba1(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    14bf <displayReport+0x37f>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
lea    -0x140(%rbp),%rdi
add    $0xb4,%rdi
lea    -0x32(%rbp),%rsi
call   1060 <strcat@plt>
movss  -0x178(%rbp),%xmm0
ff
addss  -0x164(%rbp),%xmm0
ff
movss  %xmm0,-0x178(%rbp)
ff
jmp    155d <displayReport+0x41d>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
imul   $0x3,%rax,%rax
add    %rax,%rdi
lea    0xb43(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1520 <displayReport+0x3e0>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
lea    -0x140(%rbp),%rdi
add    $0xd2,%rdi
lea    -0x32(%rbp),%rsi
call   1060 <strcat@plt>
movss  -0x174(%rbp),%xmm0
ff
addss  -0x164(%rbp),%xmm0
ff
movss  %xmm0,-0x174(%rbp)
ff
jmp    1558 <displayReport+0x418>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
lea    -0x140(%rbp),%rdi
add    $0xf0,%rdi
lea    -0x32(%rbp),%rsi
call   1060 <strcat@plt>
movss  -0x170(%rbp),%xmm0
ff
addss  -0x164(%rbp),%xmm0
ff
movss  %xmm0,-0x170(%rbp)
ff
jmp    155d <displayReport+0x41d>
jmp    1562 <displayReport+0x422>
jmp    1567 <displayReport+0x427>
jmp    156c <displayReport+0x42c>
jmp    1571 <displayReport+0x431>
jmp    1576 <displayReport+0x436>
jmp    157b <displayReport+0x43b>
jmp    1580 <displayReport+0x440>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1221 <displayReport+0xe1>
movl   $0x0,-0xc(%rbp)
cmpl   $0x9,-0xc(%rbp)
jge    15ad <displayReport+0x46d>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1595 <displayReport+0x455>
lea    0xa66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xa8f(%rip),%rdi
mov    $0x64,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x160(%rbp),%rsi
lea    -0x140(%rbp),%rdx
mov    -0x10(%rbp),%ecx
movss  -0x190(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa95(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    -0x160(%rbp),%rsi
add    $0x3,%rsi
lea    -0x140(%rbp),%rdx
add    $0x1e,%rdx
mov    -0x14(%rbp),%ecx
movss  -0x18c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa62(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    -0x160(%rbp),%rsi
add    $0x6,%rsi
lea    -0x140(%rbp),%rdx
add    $0x3c,%rdx
mov    -0x18(%rbp),%ecx
movss  -0x188(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa64(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    -0x160(%rbp),%rsi
add    $0x9,%rsi
lea    -0x140(%rbp),%rdx
add    $0x5a,%rdx
mov    -0x1c(%rbp),%ecx
movss  -0x184(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa61(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    -0x160(%rbp),%rsi
add    $0xc,%rsi
lea    -0x140(%rbp),%rdx
add    $0x78,%rdx
mov    -0x20(%rbp),%ecx
movss  -0x180(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa5f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    -0x160(%rbp),%rsi
add    $0xf,%rsi
lea    -0x140(%rbp),%rdx
add    $0x96,%rdx
mov    -0x24(%rbp),%ecx
movss  -0x17c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa53(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    -0x160(%rbp),%rsi
add    $0x12,%rsi
lea    -0x140(%rbp),%rdx
add    $0xb4,%rdx
mov    -0x28(%rbp),%ecx
movss  -0x178(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa3d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    -0x160(%rbp),%rsi
add    $0x15,%rsi
lea    -0x140(%rbp),%rdx
add    $0xd2,%rdx
mov    -0x2c(%rbp),%ecx
movss  -0x174(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0x9bd(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    -0x160(%rbp),%rsi
add    $0x18,%rsi
lea    -0x140(%rbp),%rdx
add    $0xf0,%rdx
mov    -0x30(%rbp),%ecx
movss  -0x170(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0x9fd(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<displayReport>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x188,%rsp
mov    %rdi,%rbp
movw   $0x2a,0xe(%rsp)
lea    0x70(%rsp),%rdi
xor    %r12d,%r12d
mov    $0x10e,%edx
xor    %esi,%esi
call   1050 <memset@plt>
movups 0xe95(%rip),%xmm0
movups %xmm0,0x5b(%rsp)
movaps 0xe7e(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x18(%rsp)
lea    0xe84(%rip),%r14
xorps  %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x14(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x1c(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x20(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x24(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x28(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x2c(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x30(%rsp)
movl   $0x0,0x3c(%rsp)
movl   $0x0,0x34(%rsp)
movl   $0x0,0x38(%rsp)
movl   $0x0,0x40(%rsp)
movl   $0x0,0x44(%rsp)
movl   $0x0,0x48(%rsp)
movl   $0x0,0x4c(%rsp)
mov    $0x0,%ebx
xor    %r15d,%r15d
jmp    1278 <displayReport+0x128>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r15d
lea    0x70(%rsp),%rdi
lea    0xe(%rsp),%rsi
call   1070 <strcat@plt>
movss  0x30(%rsp),%xmm0
addss  0xd9f(%rip),%xmm0
movss  %xmm0,0x30(%rsp)
add    $0x3,%r12
cmp    $0x12c,%r12
je     14ae <displayReport+0x35e>
lea    (%r12,%rbp,1),%r13
mov    %r13,%rdi
mov    %r14,%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1240 <displayReport+0xf0>
mov    %r13,%rdi
lea    0xd99(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1360 <displayReport+0x210>
mov    %r13,%rdi
lea    0xd84(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     138e <displayReport+0x23e>
mov    %r13,%rdi
lea    0xd70(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     13be <displayReport+0x26e>
mov    %r13,%rdi
lea    0xd5b(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     13ee <displayReport+0x29e>
mov    %r13,%rdi
lea    0xd47(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     141e <displayReport+0x2ce>
mov    %r13,%rdi
lea    0xd32(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     144e <displayReport+0x2fe>
mov    %r13,%rdi
lea    0xd1e(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     147e <displayReport+0x32e>
addl   $0x1,0x3c(%rsp)
lea    0x160(%rsp),%rdi
lea    0xe(%rsp),%rsi
call   1070 <strcat@plt>
movss  0x18(%rsp),%xmm0
addss  0xcaf(%rip),%xmm0
movss  %xmm0,0x18(%rsp)
jmp    1267 <displayReport+0x117>
nopl   0x0(%rax)
add    $0x1,%ebx
lea    0x8e(%rsp),%rdi
lea    0xe(%rsp),%rsi
call   1070 <strcat@plt>
movss  0x2c(%rsp),%xmm0
addss  0xc7d(%rip),%xmm0
movss  %xmm0,0x2c(%rsp)
jmp    1267 <displayReport+0x117>
addl   $0x1,0x4c(%rsp)
lea    0xac(%rsp),%rdi
lea    0xe(%rsp),%rsi
call   1070 <strcat@plt>
movss  0x28(%rsp),%xmm0
addss  0xc4d(%rip),%xmm0
movss  %xmm0,0x28(%rsp)
jmp    1267 <displayReport+0x117>
addl   $0x1,0x48(%rsp)
lea    0xca(%rsp),%rdi
lea    0xe(%rsp),%rsi
call   1070 <strcat@plt>
movss  0x24(%rsp),%xmm0
addss  0xc1d(%rip),%xmm0
movss  %xmm0,0x24(%rsp)
jmp    1267 <displayReport+0x117>
addl   $0x1,0x44(%rsp)
lea    0xe8(%rsp),%rdi
lea    0xe(%rsp),%rsi
call   1070 <strcat@plt>
movss  0x20(%rsp),%xmm0
addss  0xbed(%rip),%xmm0
movss  %xmm0,0x20(%rsp)
jmp    1267 <displayReport+0x117>
addl   $0x1,0x40(%rsp)
lea    0x106(%rsp),%rdi
lea    0xe(%rsp),%rsi
call   1070 <strcat@plt>
movss  0x1c(%rsp),%xmm0
addss  0xbbd(%rip),%xmm0
movss  %xmm0,0x1c(%rsp)
jmp    1267 <displayReport+0x117>
addl   $0x1,0x38(%rsp)
lea    0x124(%rsp),%rdi
lea    0xe(%rsp),%rsi
call   1070 <strcat@plt>
movss  0x14(%rsp),%xmm0
addss  0xb8d(%rip),%xmm0
movss  %xmm0,0x14(%rsp)
jmp    1267 <displayReport+0x117>
addl   $0x1,0x34(%rsp)
lea    0x142(%rsp),%rdi
lea    0xe(%rsp),%rsi
call   1070 <strcat@plt>
movss  0x10(%rsp),%xmm0
addss  0xb5d(%rip),%xmm0
movss  %xmm0,0x10(%rsp)
jmp    1267 <displayReport+0x117>
lea    0xcf5(%rip),%rdi
call   1030 <puts@plt>
lea    0xb7e(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x30(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb97(%rip),%rbp
lea    0x50(%rsp),%rsi
lea    0x70(%rsp),%rdx
mov    %rbp,%rdi
mov    %r15d,%ecx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x53(%rsp),%rsi
movss  0x2c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
lea    0x8e(%rsp),%rdx
mov    %ebx,%ecx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x56(%rsp),%rsi
movss  0x28(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb7c(%rip),%rdi
lea    0xac(%rsp),%rdx
mov    0x4c(%rsp),%ecx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x59(%rsp),%rsi
movss  0x24(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb83(%rip),%rdi
lea    0xca(%rsp),%rdx
mov    0x48(%rsp),%ecx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x5c(%rsp),%rsi
movss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb8b(%rip),%rbx
mov    %rbx,%rdi
lea    0xe8(%rsp),%rdx
mov    0x44(%rsp),%ecx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x5f(%rsp),%rsi
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb89(%rip),%rdi
lea    0x106(%rsp),%rdx
mov    0x40(%rsp),%ecx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x62(%rsp),%rsi
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb80(%rip),%rdi
lea    0x124(%rsp),%rdx
mov    0x38(%rsp),%ecx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x65(%rsp),%rsi
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
lea    0x142(%rsp),%rdx
mov    0x34(%rsp),%ecx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x68(%rsp),%rsi
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb5e(%rip),%rdi
lea    0x160(%rsp),%rdx
mov    0x3c(%rsp),%ecx
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x188,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.displayReport.sstar = [2 x i8] c"*\00"
@__const.displayReport.letterg = [9 x [3 x i8]] [[3 x i8] c"A+\00", [3 x i8] c"A\00\00", [3 x i8] c"B+\00", [3 x i8] c"B\00\00", [3 x i8] c"C+\00", [3 x i8] c"C\00\00", [3 x i8] c"D+\00", [3 x i8] c"D\00\00", [3 x i8] c"F\00\00"]
@.str = [3 x i8] c"A+\00"
@.str.1 = [2 x i8] c"A\00"
@.str.2 = [3 x i8] c"B+\00"
@.str.3 = [2 x i8] c"B\00"
@.str.4 = [3 x i8] c"C+\00"
@.str.5 = [2 x i8] c"C\00"
@.str.6 = [3 x i8] c"D+\00"
@.str.7 = [2 x i8] c"D\00"
@.str.8 = [55 x i8] c" REPORT \0A\00"
@.str.9 = [54 x i8] c"BTP100 Class size:%d\0A\00"
@.str.10 = [53 x i8] c"%-2s %s %d (%.0f%%)\0A\00"
@.str.11 = [48 x i8] c"%-2s %s %d (%.0f%%)\0A\00"
@.str.12 = [49 x i8] c"%-2s %s %d (%.0f%%)\0A\00"
@.str.13 = [42 x i8] c"%-2s %s %d (%.0f%%)\0A\00"
@.str.14 = [32 x i8] c"%-2s %s %d (%.0f%%)\0A\00"
@.str.15 = [44 x i8] c"%-2s %s %d (%.0f%%)\0A\00"
@.str.16 = [41 x i8] c"%-2s %s %d (%.0f%%)\0A\00"
define void @displayReport([3 x i8]* %0) {
%2 = alloca [3 x i8]*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [2 x i8]
%14 = alloca [9 x [30 x i8]]
%15 = alloca [9 x [3 x i8]]
%16 = alloca float
%17 = alloca [9 x float]
store [3 x i8]* %0, [3 x i8]** %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
%18 = bitcast [2 x i8]* %13 to i8*
%19 = bitcast [9 x [30 x i8]]* %14 to i8*
%20 = bitcast [9 x [3 x i8]]* %15 to i8*
store float 1.000000e+00, float* %16
%21 = bitcast [9 x float]* %17 to i8*
store i32 0, i32* %3
br label %22
22: ; preds = %205, %1
%23 = load i32, i32* %3
%24 = icmp slt i32 %23, 100
br i1 %24, label %25, label %208
25: ; preds = %22
%26 = load [3 x i8]*, [3 x i8]** %2
%27 = load i32, i32* %3
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [3 x i8], [3 x i8]* %26, i64 %28
%30 = getelementptr inbounds [3 x i8], [3 x i8]* %29, i64 0, i64 0
%31 = call i32 @strcmp(i8* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %45
33: ; preds = %25
%34 = load i32, i32* %4
%35 = add nsw i32 %34, 1
store i32 %35, i32* %4
%36 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 0
%37 = getelementptr inbounds [30 x i8], [30 x i8]* %36, i64 0, i64 0
%38 = getelementptr inbounds [2 x i8], [2 x i8]* %13, i64 0, i64 0
%39 = call i8* @strcat(i8* %37, i8* %38)
%40 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 0
%41 = load float, float* %40
%42 = load float, float* %16
%43 = fadd float %41, %42
%44 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 0
store float %43, float* %44
br label %204
45: ; preds = %25
%46 = load [3 x i8]*, [3 x i8]** %2
%47 = load i32, i32* %3
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [3 x i8], [3 x i8]* %46, i64 %48
%50 = getelementptr inbounds [3 x i8], [3 x i8]* %49, i64 0, i64 0
%51 = call i32 @strcmp(i8* %50, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %65
53: ; preds = %45
%54 = load i32, i32* %5
%55 = add nsw i32 %54, 1
store i32 %55, i32* %5
%56 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 1
%57 = getelementptr inbounds [30 x i8], [30 x i8]* %56, i64 0, i64 0
%58 = getelementptr inbounds [2 x i8], [2 x i8]* %13, i64 0, i64 0
%59 = call i8* @strcat(i8* %57, i8* %58)
%60 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 1
%61 = load float, float* %60
%62 = load float, float* %16
%63 = fadd float %61, %62
%64 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 1
store float %63, float* %64
br label %203
65: ; preds = %45
%66 = load [3 x i8]*, [3 x i8]** %2
%67 = load i32, i32* %3
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [3 x i8], [3 x i8]* %66, i64 %68
%70 = getelementptr inbounds [3 x i8], [3 x i8]* %69, i64 0, i64 0
%71 = call i32 @strcmp(i8* %70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %85
73: ; preds = %65
%74 = load i32, i32* %6
%75 = add nsw i32 %74, 1
store i32 %75, i32* %6
%76 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 2
%77 = getelementptr inbounds [30 x i8], [30 x i8]* %76, i64 0, i64 0
%78 = getelementptr inbounds [2 x i8], [2 x i8]* %13, i64 0, i64 0
%79 = call i8* @strcat(i8* %77, i8* %78)
%80 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 2
%81 = load float, float* %80
%82 = load float, float* %16
%83 = fadd float %81, %82
%84 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 2
store float %83, float* %84
br label %202
85: ; preds = %65
%86 = load [3 x i8]*, [3 x i8]** %2
%87 = load i32, i32* %3
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [3 x i8], [3 x i8]* %86, i64 %88
%90 = getelementptr inbounds [3 x i8], [3 x i8]* %89, i64 0, i64 0
%91 = call i32 @strcmp(i8* %90, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%92 = icmp eq i32 %91, 0
br i1 %92, label %93, label %105
93: ; preds = %85
%94 = load i32, i32* %7
%95 = add nsw i32 %94, 1
store i32 %95, i32* %7
%96 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 3
%97 = getelementptr inbounds [30 x i8], [30 x i8]* %96, i64 0, i64 0
%98 = getelementptr inbounds [2 x i8], [2 x i8]* %13, i64 0, i64 0
%99 = call i8* @strcat(i8* %97, i8* %98)
%100 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 3
%101 = load float, float* %100
%102 = load float, float* %16
%103 = fadd float %101, %102
%104 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 3
store float %103, float* %104
br label %201
105: ; preds = %85
%106 = load [3 x i8]*, [3 x i8]** %2
%107 = load i32, i32* %3
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [3 x i8], [3 x i8]* %106, i64 %108
%110 = getelementptr inbounds [3 x i8], [3 x i8]* %109, i64 0, i64 0
%111 = call i32 @strcmp(i8* %110, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%112 = icmp eq i32 %111, 0
br i1 %112, label %113, label %125
113: ; preds = %105
%114 = load i32, i32* %8
%115 = add nsw i32 %114, 1
store i32 %115, i32* %8
%116 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 4
%117 = getelementptr inbounds [30 x i8], [30 x i8]* %116, i64 0, i64 0
%118 = getelementptr inbounds [2 x i8], [2 x i8]* %13, i64 0, i64 0
%119 = call i8* @strcat(i8* %117, i8* %118)
%120 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 4
%121 = load float, float* %120
%122 = load float, float* %16
%123 = fadd float %121, %122
%124 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 4
store float %123, float* %124
br label %200
125: ; preds = %105
%126 = load [3 x i8]*, [3 x i8]** %2
%127 = load i32, i32* %3
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [3 x i8], [3 x i8]* %126, i64 %128
%130 = getelementptr inbounds [3 x i8], [3 x i8]* %129, i64 0, i64 0
%131 = call i32 @strcmp(i8* %130, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %145
133: ; preds = %125
%134 = load i32, i32* %9
%135 = add nsw i32 %134, 1
store i32 %135, i32* %9
%136 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 5
%137 = getelementptr inbounds [30 x i8], [30 x i8]* %136, i64 0, i64 0
%138 = getelementptr inbounds [2 x i8], [2 x i8]* %13, i64 0, i64 0
%139 = call i8* @strcat(i8* %137, i8* %138)
%140 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 5
%141 = load float, float* %140
%142 = load float, float* %16
%143 = fadd float %141, %142
%144 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 5
store float %143, float* %144
br label %199
145: ; preds = %125
%146 = load [3 x i8]*, [3 x i8]** %2
%147 = load i32, i32* %3
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [3 x i8], [3 x i8]* %146, i64 %148
%150 = getelementptr inbounds [3 x i8], [3 x i8]* %149, i64 0, i64 0
%151 = call i32 @strcmp(i8* %150, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%152 = icmp eq i32 %151, 0
br i1 %152, label %153, label %165
153: ; preds = %145
%154 = load i32, i32* %10
%155 = add nsw i32 %154, 1
store i32 %155, i32* %10
%156 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 6
%157 = getelementptr inbounds [30 x i8], [30 x i8]* %156, i64 0, i64 0
%158 = getelementptr inbounds [2 x i8], [2 x i8]* %13, i64 0, i64 0
%159 = call i8* @strcat(i8* %157, i8* %158)
%160 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 6
%161 = load float, float* %160
%162 = load float, float* %16
%163 = fadd float %161, %162
%164 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 6
store float %163, float* %164
br label %198
165: ; preds = %145
%166 = load [3 x i8]*, [3 x i8]** %2
%167 = load i32, i32* %3
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [3 x i8], [3 x i8]* %166, i64 %168
%170 = getelementptr inbounds [3 x i8], [3 x i8]* %169, i64 0, i64 0
%171 = call i32 @strcmp(i8* %170, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%172 = icmp eq i32 %171, 0
br i1 %172, label %173, label %185
173: ; preds = %165
%174 = load i32, i32* %11
%175 = add nsw i32 %174, 1
store i32 %175, i32* %11
%176 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 7
%177 = getelementptr inbounds [30 x i8], [30 x i8]* %176, i64 0, i64 0
%178 = getelementptr inbounds [2 x i8], [2 x i8]* %13, i64 0, i64 0
%179 = call i8* @strcat(i8* %177, i8* %178)
%180 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 7
%181 = load float, float* %180
%182 = load float, float* %16
%183 = fadd float %181, %182
%184 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 7
store float %183, float* %184
br label %197
185: ; preds = %165
%186 = load i32, i32* %12
%187 = add nsw i32 %186, 1
store i32 %187, i32* %12
%188 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 8
%189 = getelementptr inbounds [30 x i8], [30 x i8]* %188, i64 0, i64 0
%190 = getelementptr inbounds [2 x i8], [2 x i8]* %13, i64 0, i64 0
%191 = call i8* @strcat(i8* %189, i8* %190)
%192 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 8
%193 = load float, float* %192
%194 = load float, float* %16
%195 = fadd float %193, %194
%196 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 8
store float %195, float* %196
br label %197
197: ; preds = %185, %173
br label %198
198: ; preds = %197, %153
br label %199
199: ; preds = %198, %133
br label %200
200: ; preds = %199, %113
br label %201
201: ; preds = %200, %93
br label %202
202: ; preds = %201, %73
br label %203
203: ; preds = %202, %53
br label %204
204: ; preds = %203, %33
br label %205
205: ; preds = %204
%206 = load i32, i32* %3
%207 = add nsw i32 %206, 1
store i32 %207, i32* %3
br label %22
208: ; preds = %22
store i32 0, i32* %3
br label %209
209: ; preds = %218, %208
%210 = load i32, i32* %3
%211 = icmp slt i32 %210, 9
br i1 %211, label %212, label %221
212: ; preds = %209
%213 = load i32, i32* %3
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 %214
%216 = load float, float* %215
%217 = call float @llvm.round.f32(float %216)
br label %218
218: ; preds = %212
%219 = load i32, i32* %3
%220 = add nsw i32 %219, 1
store i32 %220, i32* %3
br label %209
221: ; preds = %209
%222 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
%223 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.9, i64 0, i64 0), i32 100)
%224 = getelementptr inbounds [9 x [3 x i8]], [9 x [3 x i8]]* %15, i64 0, i64 0
%225 = getelementptr inbounds [3 x i8], [3 x i8]* %224, i64 0, i64 0
%226 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 0
%227 = getelementptr inbounds [30 x i8], [30 x i8]* %226, i64 0, i64 0
%228 = load i32, i32* %4
%229 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 0
%230 = load float, float* %229
%231 = fpext float %230 to double
%232 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0), i8* %225, i8* %227, i32 %228, double %231)
%233 = getelementptr inbounds [9 x [3 x i8]], [9 x [3 x i8]]* %15, i64 0, i64 1
%234 = getelementptr inbounds [3 x i8], [3 x i8]* %233, i64 0, i64 0
%235 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 1
%236 = getelementptr inbounds [30 x i8], [30 x i8]* %235, i64 0, i64 0
%237 = load i32, i32* %5
%238 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 1
%239 = load float, float* %238
%240 = fpext float %239 to double
%241 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0), i8* %234, i8* %236, i32 %237, double %240)
%242 = getelementptr inbounds [9 x [3 x i8]], [9 x [3 x i8]]* %15, i64 0, i64 2
%243 = getelementptr inbounds [3 x i8], [3 x i8]* %242, i64 0, i64 0
%244 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 2
%245 = getelementptr inbounds [30 x i8], [30 x i8]* %244, i64 0, i64 0
%246 = load i32, i32* %6
%247 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 2
%248 = load float, float* %247
%249 = fpext float %248 to double
%250 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0), i8* %243, i8* %245, i32 %246, double %249)
%251 = getelementptr inbounds [9 x [3 x i8]], [9 x [3 x i8]]* %15, i64 0, i64 3
%252 = getelementptr inbounds [3 x i8], [3 x i8]* %251, i64 0, i64 0
%253 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 3
%254 = getelementptr inbounds [30 x i8], [30 x i8]* %253, i64 0, i64 0
%255 = load i32, i32* %7
%256 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 3
%257 = load float, float* %256
%258 = fpext float %257 to double
%259 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.12, i64 0, i64 0), i8* %252, i8* %254, i32 %255, double %258)
%260 = getelementptr inbounds [9 x [3 x i8]], [9 x [3 x i8]]* %15, i64 0, i64 4
%261 = getelementptr inbounds [3 x i8], [3 x i8]* %260, i64 0, i64 0
%262 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 4
%263 = getelementptr inbounds [30 x i8], [30 x i8]* %262, i64 0, i64 0
%264 = load i32, i32* %8
%265 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 4
%266 = load float, float* %265
%267 = fpext float %266 to double
%268 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0), i8* %261, i8* %263, i32 %264, double %267)
%269 = getelementptr inbounds [9 x [3 x i8]], [9 x [3 x i8]]* %15, i64 0, i64 5
%270 = getelementptr inbounds [3 x i8], [3 x i8]* %269, i64 0, i64 0
%271 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 5
%272 = getelementptr inbounds [30 x i8], [30 x i8]* %271, i64 0, i64 0
%273 = load i32, i32* %9
%274 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 5
%275 = load float, float* %274
%276 = fpext float %275 to double
%277 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0), i8* %270, i8* %272, i32 %273, double %276)
%278 = getelementptr inbounds [9 x [3 x i8]], [9 x [3 x i8]]* %15, i64 0, i64 6
%279 = getelementptr inbounds [3 x i8], [3 x i8]* %278, i64 0, i64 0
%280 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 6
%281 = getelementptr inbounds [30 x i8], [30 x i8]* %280, i64 0, i64 0
%282 = load i32, i32* %10
%283 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 6
%284 = load float, float* %283
%285 = fpext float %284 to double
%286 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.15, i64 0, i64 0), i8* %279, i8* %281, i32 %282, double %285)
%287 = getelementptr inbounds [9 x [3 x i8]], [9 x [3 x i8]]* %15, i64 0, i64 7
%288 = getelementptr inbounds [3 x i8], [3 x i8]* %287, i64 0, i64 0
%289 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 7
%290 = getelementptr inbounds [30 x i8], [30 x i8]* %289, i64 0, i64 0
%291 = load i32, i32* %11
%292 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 7
%293 = load float, float* %292
%294 = fpext float %293 to double
%295 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0), i8* %288, i8* %290, i32 %291, double %294)
%296 = getelementptr inbounds [9 x [3 x i8]], [9 x [3 x i8]]* %15, i64 0, i64 8
%297 = getelementptr inbounds [3 x i8], [3 x i8]* %296, i64 0, i64 0
%298 = getelementptr inbounds [9 x [30 x i8]], [9 x [30 x i8]]* %14, i64 0, i64 8
%299 = getelementptr inbounds [30 x i8], [30 x i8]* %298, i64 0, i64 0
%300 = load i32, i32* %12
%301 = getelementptr inbounds [9 x float], [9 x float]* %17, i64 0, i64 8
%302 = load float, float* %301
%303 = fpext float %302 to double
%304 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.16, i64 0, i64 0), i8* %297, i8* %299, i32 %300, double %303)
ret void
}

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