#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*/ getchar();
int /*<<< orphan*/ printf(char *, ...);
int rand();
void main() {
  printf("Este programa foi escrito por Jessica Cristina Cacau Patricio.\n\n");
  float notas[6][5];
  int i, j;
  printf("           Notas originais\n"
         "           Nota 1  Nota 2  Nota 3  Nota 4  Nota 5\n");
  for (i = 0; i < 6; i++) {
    for (j = 0; j < 5; j++) {
      notas[i][j] = rand() % 10;
      if (j == 0)
        printf("Aluno %d  -  %.1f", i + 1, notas[i][j]);
      else
        printf("  -  %.1f", notas[i][j]);
    }
    printf("\n");
  }
  printf("\n           Notas alteradas\n"
         "           Nota 1  Nota 2  Nota 3  Nota 4  Nota 5\n");
  for (i = 0; i < 6; i++) {
    for (j = 0; j < 5; j++) {
      if (j == 1) {
        notas[i][j] -= 1.0;
        if (notas[i][j] < 0)
          notas[i][j] = 0.0;
      }
      if (j == 4) {
        notas[i][j] += 1.5;
        if (notas[i][j] > 10)
          notas[i][j] = 10.0;
      }
      if (i == 3) {
        notas[i][j] -= 2.0;
        if (notas[i][j] < 0)
          notas[i][j] = 0.0;
      }
      if (j == 0)
        printf("Aluno %d  -  %.1f", i + 1, notas[i][j]);
      else
        printf("  -  %.1f", notas[i][j]);
    }
    printf("\n");
  }
  getchar();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x84(%rbp)
cmpl   $0x6,-0x84(%rbp)
jge    126c <main+0x13c>
movl   $0x0,-0x88(%rbp)
cmpl   $0x5,-0x88(%rbp)
jge    124a <main+0x11a>
mov    $0x0,%al
call   1050 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
cvtsi2ss %edx,%xmm0
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
cmpl   $0x0,-0x88(%rbp)
jne    1201 <main+0xd1>
mov    -0x84(%rbp),%esi
add    $0x1,%esi
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeb6(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1231 <main+0x101>
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe89(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1236 <main+0x106>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    1178 <main+0x48>
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1161 <main+0x31>
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x84(%rbp)
cmpl   $0x6,-0x84(%rbp)
jge    151c <main+0x3ec>
movl   $0x0,-0x88(%rbp)
cmpl   $0x5,-0x88(%rbp)
jge    14fa <main+0x3ca>
cmpl   $0x1,-0x88(%rbp)
jne    1338 <main+0x208>
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd21(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
xorps  %xmm0,%xmm0
ucomiss (%rax,%rcx,4),%xmm0
jbe    1333 <main+0x203>
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
jmp    1338 <main+0x208>
cmpl   $0x4,-0x88(%rbp)
jne    13d6 <main+0x2a6>
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc99(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  0xc76(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    13d1 <main+0x2a1>
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
movss  0xc4c(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
jmp    13d6 <main+0x2a6>
cmpl   $0x3,-0x84(%rbp)
jne    1466 <main+0x336>
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc03(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
xorps  %xmm0,%xmm0
ucomiss (%rax,%rcx,4),%xmm0
jbe    1461 <main+0x331>
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
jmp    1466 <main+0x336>
cmpl   $0x0,-0x88(%rbp)
jne    14b1 <main+0x381>
mov    -0x84(%rbp),%esi
add    $0x1,%esi
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc06(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    14e1 <main+0x3b1>
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbd9(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    14e6 <main+0x3b6>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    129b <main+0x16b>
lea    0xb5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1284 <main+0x154>
mov    $0x0,%al
call   1040 <getchar@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x78,%rsp
lea    0xec5(%rip),%rdi
call   1040 <puts@plt>
lea    0xef9(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%ebx
lea    0xe96(%rip),%r14
lea    0xe97(%rip),%r15
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,(%rsp,%rbp,1)
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x4(%rsp,%rbp,1)
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x8(%rsp,%rbp,1)
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0xc(%rsp,%rbp,1)
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x10(%rsp,%rbp,1)
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x14,%rbp
add    $0x1,%ebx
cmp    $0x78,%rbp
jne    1190 <main+0x40>
lea    0xdc5(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%ebp
xor    %ebx,%ebx
lea    0xd13(%rip),%r14
lea    0xd14(%rip),%r15
jmp    133f <main+0x1ef>
nopw   0x0(%rax,%rax,1)
movss  0x10(%rsp,%rbx,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x14,%rbx
add    $0x1,%ebp
cmp    $0x78,%rbx
je     14f4 <main+0x3a4>
cmp    $0x3c,%rbx
jne    1369 <main+0x219>
movss  0x3c(%rsp),%xmm0
addss  0xcad(%rip),%xmm0
movss  %xmm0,0x3c(%rsp)
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jbe    1369 <main+0x219>
movl   $0x0,0x3c(%rsp)
movss  (%rsp,%rbx,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    %ebp,%esi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x4(%rsp,%rbx,1),%xmm0
addss  0xc78(%rip),%xmm0
movss  %xmm0,0x4(%rsp,%rbx,1)
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jbe    13a2 <main+0x252>
movl   $0x0,0x4(%rsp,%rbx,1)
cmp    $0x3c,%rbx
jne    1410 <main+0x2c0>
movss  0x40(%rsp),%xmm0
addss  0xc4a(%rip),%xmm0
movss  %xmm0,0x40(%rsp)
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jbe    13cc <main+0x27c>
movl   $0x0,0x40(%rsp)
movss  0x4(%rsp,%rbx,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
cmp    $0x3c,%rbx
jne    1470 <main+0x320>
movss  0x44(%rsp),%xmm0
addss  0xc08(%rip),%xmm0
movss  %xmm0,0x44(%rsp)
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jbe    1424 <main+0x2d4>
movl   $0x0,0x44(%rsp)
jmp    1424 <main+0x2d4>
movss  0x4(%rsp,%rbx,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x8(%rsp,%rbx,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
cmp    $0x3c,%rbx
jne    1484 <main+0x334>
movss  0x48(%rsp),%xmm0
addss  0xbb4(%rip),%xmm0
movss  %xmm0,0x48(%rsp)
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jbe    1484 <main+0x334>
movl   $0x0,0x48(%rsp)
jmp    1484 <main+0x334>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movss  0x8(%rsp,%rbx,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0xc(%rsp,%rbx,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x10(%rsp,%rbx,1),%xmm0
addss  0xb62(%rip),%xmm0
movss  %xmm0,0x10(%rsp,%rbx,1)
ucomiss 0xb59(%rip),%xmm0
jbe    14bd <main+0x36d>
movl   $0x41200000,0x10(%rsp,%rbx,1)
41
cmp    $0x3c,%rbx
jne    1310 <main+0x1c0>
movss  0x4c(%rsp),%xmm0
addss  0xb2b(%rip),%xmm0
movss  %xmm0,0x4c(%rsp)
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jbe    1310 <main+0x1c0>
movl   $0x0,0x4c(%rsp)
jmp    1310 <main+0x1c0>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <getchar@plt>

LLVM IR (-O0):
@.str = [65 x i8] c"Este programa foi escrito por Jessica Cristina Cacau Patricio.\0A\0A\00"
@.str.1 = [78 x i8] c" Notas originais\0A Nota 1 Nota 2 Nota 3 Nota 4 Nota 5\0A\00"
@.str.2 = [18 x i8] c"Aluno %d - %.1f\00"
@.str.3 = [10 x i8] c" - %.1f\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [79 x i8] c"\0A Notas alteradas\0A Nota 1 Nota 2 Nota 3 Nota 4 Nota 5\0A\00"
define void @main() {
%1 = alloca [6 x [5 x float]]
%2 = alloca i32
%3 = alloca i32
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %6
6: ; preds = %53, %0
%7 = load i32, i32* %2
%8 = icmp slt i32 %7, 6
br i1 %8, label %9, label %56
9: ; preds = %6
store i32 0, i32* %3
br label %10
10: ; preds = %48, %9
%11 = load i32, i32* %3
%12 = icmp slt i32 %11, 5
br i1 %12, label %13, label %51
13: ; preds = %10
%14 = call i32 (...) @rand()
%15 = srem i32 %14, 10
%16 = sitofp i32 %15 to float
%17 = load i32, i32* %2
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %18
%20 = load i32, i32* %3
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [5 x float], [5 x float]* %19, i64 0, i64 %21
store float %16, float* %22
%23 = load i32, i32* %3
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %37
25: ; preds = %13
%26 = load i32, i32* %2
%27 = add nsw i32 %26, 1
%28 = load i32, i32* %2
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %29
%31 = load i32, i32* %3
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [5 x float], [5 x float]* %30, i64 0, i64 %32
%34 = load float, float* %33
%35 = fpext float %34 to double
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %27, double %35)
br label %47
37: ; preds = %13
%38 = load i32, i32* %2
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %39
%41 = load i32, i32* %3
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [5 x float], [5 x float]* %40, i64 0, i64 %42
%44 = load float, float* %43
%45 = fpext float %44 to double
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %45)
br label %47
47: ; preds = %37, %25
br label %48
48: ; preds = %47
%49 = load i32, i32* %3
%50 = add nsw i32 %49, 1
store i32 %50, i32* %3
br label %10
51: ; preds = %10
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %53
53: ; preds = %51
%54 = load i32, i32* %2
%55 = add nsw i32 %54, 1
store i32 %55, i32* %2
br label %6
56: ; preds = %6
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %2
br label %58
58: ; preds = %186, %56
%59 = load i32, i32* %2
%60 = icmp slt i32 %59, 6
br i1 %60, label %61, label %189
61: ; preds = %58
store i32 0, i32* %3
br label %62
62: ; preds = %181, %61
%63 = load i32, i32* %3
%64 = icmp slt i32 %63, 5
br i1 %64, label %65, label %184
65: ; preds = %62
%66 = load i32, i32* %3
%67 = icmp eq i32 %66, 1
br i1 %67, label %68, label %95
68: ; preds = %65
%69 = load i32, i32* %2
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %70
%72 = load i32, i32* %3
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [5 x float], [5 x float]* %71, i64 0, i64 %73
%75 = load float, float* %74
%76 = fpext float %75 to double
%77 = fsub double %76, 1.000000e+00
%78 = fptrunc double %77 to float
store float %78, float* %74
%79 = load i32, i32* %2
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %80
%82 = load i32, i32* %3
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [5 x float], [5 x float]* %81, i64 0, i64 %83
%85 = load float, float* %84
%86 = fcmp olt float %85, 0.000000e+00
br i1 %86, label %87, label %94
87: ; preds = %68
%88 = load i32, i32* %2
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %89
%91 = load i32, i32* %3
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [5 x float], [5 x float]* %90, i64 0, i64 %92
store float 0.000000e+00, float* %93
br label %94
94: ; preds = %87, %68
br label %95
95: ; preds = %94, %65
%96 = load i32, i32* %3
%97 = icmp eq i32 %96, 4
br i1 %97, label %98, label %125
98: ; preds = %95
%99 = load i32, i32* %2
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %100
%102 = load i32, i32* %3
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [5 x float], [5 x float]* %101, i64 0, i64 %103
%105 = load float, float* %104
%106 = fpext float %105 to double
%107 = fadd double %106, 1.500000e+00
%108 = fptrunc double %107 to float
store float %108, float* %104
%109 = load i32, i32* %2
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %110
%112 = load i32, i32* %3
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [5 x float], [5 x float]* %111, i64 0, i64 %113
%115 = load float, float* %114
%116 = fcmp ogt float %115, 1.000000e+01
br i1 %116, label %117, label %124
117: ; preds = %98
%118 = load i32, i32* %2
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %119
%121 = load i32, i32* %3
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [5 x float], [5 x float]* %120, i64 0, i64 %122
store float 1.000000e+01, float* %123
br label %124
124: ; preds = %117, %98
br label %125
125: ; preds = %124, %95
%126 = load i32, i32* %2
%127 = icmp eq i32 %126, 3
br i1 %127, label %128, label %155
128: ; preds = %125
%129 = load i32, i32* %2
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %130
%132 = load i32, i32* %3
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [5 x float], [5 x float]* %131, i64 0, i64 %133
%135 = load float, float* %134
%136 = fpext float %135 to double
%137 = fsub double %136, 2.000000e+00
%138 = fptrunc double %137 to float
store float %138, float* %134
%139 = load i32, i32* %2
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %140
%142 = load i32, i32* %3
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [5 x float], [5 x float]* %141, i64 0, i64 %143
%145 = load float, float* %144
%146 = fcmp olt float %145, 0.000000e+00
br i1 %146, label %147, label %154
147: ; preds = %128
%148 = load i32, i32* %2
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %149
%151 = load i32, i32* %3
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [5 x float], [5 x float]* %150, i64 0, i64 %152
store float 0.000000e+00, float* %153
br label %154
154: ; preds = %147, %128
br label %155
155: ; preds = %154, %125
%156 = load i32, i32* %3
%157 = icmp eq i32 %156, 0
br i1 %157, label %158, label %170
158: ; preds = %155
%159 = load i32, i32* %2
%160 = add nsw i32 %159, 1
%161 = load i32, i32* %2
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %162
%164 = load i32, i32* %3
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [5 x float], [5 x float]* %163, i64 0, i64 %165
%167 = load float, float* %166
%168 = fpext float %167 to double
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %160, double %168)
br label %180
170: ; preds = %155
%171 = load i32, i32* %2
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %172
%174 = load i32, i32* %3
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds [5 x float], [5 x float]* %173, i64 0, i64 %175
%177 = load float, float* %176
%178 = fpext float %177 to double
%179 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %178)
br label %180
180: ; preds = %170, %158
br label %181
181: ; preds = %180
%182 = load i32, i32* %3
%183 = add nsw i32 %182, 1
store i32 %183, i32* %3
br label %62
184: ; preds = %62
%185 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %186
186: ; preds = %184
%187 = load i32, i32* %2
%188 = add nsw i32 %187, 1
store i32 %188, i32* %2
br label %58
189: ; preds = %58
%190 = call i32 (...) @getchar()
ret void
}

LLVM IR (-O2):
@.str.2 = [18 x i8] c"Aluno %d - %.1f\00"
@.str.3 = [10 x i8] c" - %.1f\00"
@str = [64 x i8] c"Este programa foi escrito por Jessica Cristina Cacau Patricio.\0A\00"
@str.6 = [77 x i8] c" Notas originais\0A Nota 1 Nota 2 Nota 3 Nota 4 Nota 5\00"
@str.7 = [78 x i8] c"\0A Notas alteradas\0A Nota 1 Nota 2 Nota 3 Nota 4 Nota 5\00"
define void @main() {
%1 = alloca [6 x [5 x float]]
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str, i64 0, i64 0))
%3 = bitcast [6 x [5 x float]]* %1 to i8*
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.6, i64 0, i64 0))
br label %5
5: ; preds = %0, %5
%6 = phi i64 [ 0, %0 ], [ %7, %5 ]
%7 = add nuw nsw i64 %6, 1
%8 = tail call i32 (...) @rand()
%9 = srem i32 %8, 10
%10 = sitofp i32 %9 to float
%11 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %6, i64 0
store float %10, float* %11
%12 = fpext float %10 to double
%13 = trunc i64 %7 to i32
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %13, double %12)
%15 = tail call i32 (...) @rand()
%16 = srem i32 %15, 10
%17 = sitofp i32 %16 to float
%18 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %6, i64 1
store float %17, float* %18
%19 = fpext float %17 to double
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %19)
%21 = tail call i32 (...) @rand()
%22 = srem i32 %21, 10
%23 = sitofp i32 %22 to float
%24 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %6, i64 2
store float %23, float* %24
%25 = fpext float %23 to double
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %25)
%27 = tail call i32 (...) @rand()
%28 = srem i32 %27, 10
%29 = sitofp i32 %28 to float
%30 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %6, i64 3
store float %29, float* %30
%31 = fpext float %29 to double
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %31)
%33 = tail call i32 (...) @rand()
%34 = srem i32 %33, 10
%35 = sitofp i32 %34 to float
%36 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %6, i64 4
store float %35, float* %36
%37 = fpext float %35 to double
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %37)
%39 = tail call i32 @putchar(i32 10)
%40 = icmp eq i64 %7, 6
br i1 %40, label %41, label %5
41: ; preds = %5
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.7, i64 0, i64 0))
%43 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 3, i64 0
%44 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 3, i64 1
%45 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 3, i64 2
%46 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 3, i64 3
%47 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 3, i64 4
br label %48
48: ; preds = %120, %41
%49 = phi i64 [ 0, %41 ], [ %53, %120 ]
%50 = icmp eq i64 %49, 3
%51 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %49, i64 4
%52 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %49, i64 1
%53 = add nuw nsw i64 %49, 1
%54 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %49, i64 0
br i1 %50, label %55, label %60
55: ; preds = %48
%56 = load float, float* %43
%57 = fadd float %56, -2.000000e+00
store float %57, float* %43
%58 = fcmp olt float %57, 0.000000e+00
br i1 %58, label %59, label %60
59: ; preds = %55
store float 0.000000e+00, float* %43
br label %60
60: ; preds = %48, %55, %59
%61 = load float, float* %54
%62 = fpext float %61 to double
%63 = trunc i64 %53 to i32
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %63, double %62)
%65 = load float, float* %52
%66 = fadd float %65, -1.000000e+00
store float %66, float* %52
%67 = fcmp olt float %66, 0.000000e+00
br i1 %67, label %68, label %69
68: ; preds = %60
store float 0.000000e+00, float* %52
br label %69
69: ; preds = %68, %60
br i1 %50, label %70, label %85
70: ; preds = %69
%71 = load float, float* %44
%72 = fadd float %71, -2.000000e+00
store float %72, float* %44
%73 = fcmp olt float %72, 0.000000e+00
br i1 %73, label %74, label %75
74: ; preds = %70
store float 0.000000e+00, float* %44
br label %75
75: ; preds = %70, %74
%76 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %49, i64 1
%77 = load float, float* %76
%78 = fpext float %77 to double
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %78)
br i1 %50, label %80, label %100
80: ; preds = %75
%81 = load float, float* %45
%82 = fadd float %81, -2.000000e+00
store float %82, float* %45
%83 = fcmp olt float %82, 0.000000e+00
br i1 %83, label %84, label %90
84: ; preds = %80
store float 0.000000e+00, float* %45
br label %90
85: ; preds = %69
%86 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %49, i64 1
%87 = load float, float* %86
%88 = fpext float %87 to double
%89 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %88)
br label %90
90: ; preds = %85, %84, %80
%91 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %49, i64 2
%92 = load float, float* %91
%93 = fpext float %92 to double
%94 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %93)
br i1 %50, label %95, label %105
95: ; preds = %90
%96 = load float, float* %46
%97 = fadd float %96, -2.000000e+00
store float %97, float* %46
%98 = fcmp olt float %97, 0.000000e+00
br i1 %98, label %99, label %105
99: ; preds = %95
store float 0.000000e+00, float* %46
br label %105
100: ; preds = %75
%101 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %49, i64 2
%102 = load float, float* %101
%103 = fpext float %102 to double
%104 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %103)
br label %105
105: ; preds = %100, %99, %95, %90
%106 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %49, i64 3
%107 = load float, float* %106
%108 = fpext float %107 to double
%109 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %108)
%110 = load float, float* %51
%111 = fadd float %110, 1.500000e+00
store float %111, float* %51
%112 = fcmp ogt float %111, 1.000000e+01
br i1 %112, label %113, label %114
113: ; preds = %105
store float 1.000000e+01, float* %51
br label %114
114: ; preds = %113, %105
br i1 %50, label %115, label %120
115: ; preds = %114
%116 = load float, float* %47
%117 = fadd float %116, -2.000000e+00
store float %117, float* %47
%118 = fcmp olt float %117, 0.000000e+00
br i1 %118, label %119, label %120
119: ; preds = %115
store float 0.000000e+00, float* %47
br label %120
120: ; preds = %119, %115, %114
%121 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %49, i64 4
%122 = load float, float* %121
%123 = fpext float %122 to double
%124 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %123)
%125 = tail call i32 @putchar(i32 10)
%126 = icmp eq i64 %53, 6
br i1 %126, label %127, label %48
127: ; preds = %120
%128 = tail call i32 (...) @getchar()
ret void
}