#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*/ avaliacao(char *, int);
int /*<<< orphan*/ free(float *);
int /*<<< orphan*/ inicializacao();
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ rand();
int /*<<< orphan*/ srand(int);
int main() {
  int i;
  float *x, *y, *z, *a;
  x = (float *)malloc(sizeof(float) * 50000000);
  y = (float *)malloc(sizeof(float) * 50000000);
  z = (float *)malloc(sizeof(float) * 50000000);
  a = (float *)malloc(sizeof(float) * 50000000);
  srand(424242);
  for (i = 0; i < 50000000; i++) {
    x[i] = (float)rand() / 10000000.0;
    y[i] = (float)rand() / 10000000.0;
    z[i] = (float)rand() / 10000000.0;
    a[i] = (float)rand() / 10000000.0;
  }
  inicializacao();
  for (i = 0; i < 50000000 - 1; i++) {
    a[i] = x[i + 1] + 1.0;
    x[i] = y[i] + z[i];
  }
  avaliacao("Exercicio B - Modificado", 50000000);
  for (i = 50000000 - 10; i < 50000000; i++) {
    printf("%.2f ", a[i]);
    ;
  }
  printf("\n");
  ;
  for (i = 50000000 - 10; i < 50000000; i++) {
    printf("%.2f ", x[i]);
    ;
  }
  printf("\n");
  ;
  free(x);
  free(y);
  free(z);
  free(a);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xbebc200,%edi
call   1070 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    $0xbebc200,%edi
call   1070 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    $0xbebc200,%edi
call   1070 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    $0xbebc200,%edi
call   1070 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    $0x67932,%edi
call   1060 <srand@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x2faf080,-0x8(%rbp)
jge    1297 <main+0x127>
mov    $0x0,%al
call   1090 <rand@plt>
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe1b(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    $0x0,%al
call   1090 <rand@plt>
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdee(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    $0x0,%al
call   1090 <rand@plt>
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdc1(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    $0x0,%al
call   1090 <rand@plt>
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd94(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11c8 <main+0x58>
mov    $0x0,%al
call   1080 <inicializacao@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x2faf07f,-0x8(%rbp)
jge    131a <main+0x1aa>
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd30(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
addss  (%rax,%rcx,4),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12a5 <main+0x135>
lea    0xcef(%rip),%rdi
mov    $0x2faf080,%esi
call   1030 <avaliacao@plt>
movl   $0x2faf076,-0x8(%rbp)
cmpl   $0x2faf080,-0x8(%rbp)
jge    136c <main+0x1fc>
mov    -0x28(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcd2(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1332 <main+0x1c2>
lea    0xcbc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x2faf076,-0x8(%rbp)
cmpl   $0x2faf080,-0x8(%rbp)
jge    13bb <main+0x24b>
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc83(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1381 <main+0x211>
lea    0xc6d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1040 <free@plt>
mov    -0x18(%rbp),%rdi
call   1040 <free@plt>
mov    -0x20(%rbp),%rdi
call   1040 <free@plt>
mov    -0x28(%rbp),%rdi
call   1040 <free@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0xbebc200,%edi
call   1080 <malloc@plt>
mov    %rax,%rbp
mov    $0xbebc200,%edi
call   1080 <malloc@plt>
mov    %rax,%r14
mov    $0xbebc200,%edi
call   1080 <malloc@plt>
mov    %rax,%r15
mov    $0xbebc200,%edi
call   1080 <malloc@plt>
mov    %rax,%r12
mov    $0x67932,%edi
call   1070 <srand@plt>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   10a0 <rand@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  0xe19(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,0x0(%rbp,%rbx,4)
xor    %eax,%eax
call   10a0 <rand@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
divss  0xdf8(%rip),%xmm0
movss  %xmm0,(%r14,%rbx,4)
xor    %eax,%eax
call   10a0 <rand@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
divss  0xddb(%rip),%xmm0
movss  %xmm0,(%r15,%rbx,4)
xor    %eax,%eax
call   10a0 <rand@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
divss  0xdbe(%rip),%xmm0
movss  %xmm0,(%r12,%rbx,4)
add    $0x1,%rbx
cmp    $0x2faf080,%rbx
jne    11d0 <main+0x50>
xor    %ebx,%ebx
xor    %eax,%eax
call   1090 <inicializacao@plt>
lea    0xbebc1fc(%r12),%rdx
0b
lea    0xbebc200(%rbp),%rdi
lea    0xbebc1fc(%r14),%rsi
lea    0xbebc1fc(%r15),%rcx
cmp    %rdi,%r12
setb   %r10b
cmp    %rdx,%rbp
setb   %r9b
cmp    %rsi,%r12
setb   %al
cmp    %rdx,%r14
setb   %r11b
cmp    %rcx,%r12
setb   %r13b
cmp    %rdx,%r15
setb   %r8b
cmp    %rsi,%rbp
setb   %dl
cmp    %rdi,%r14
setb   0x7(%rsp)
cmp    %rcx,%rbp
setb   %sil
cmp    %rdi,%r15
setb   %cl
test   %r9b,%r10b
jne    1344 <main+0x1c4>
and    %r11b,%al
jne    1344 <main+0x1c4>
and    %r8b,%r13b
jne    1344 <main+0x1c4>
and    0x7(%rsp),%dl
jne    1344 <main+0x1c4>
and    %cl,%sil
jne    1344 <main+0x1c4>
xor    %eax,%eax
movaps 0xd2a(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
movups 0x4(%rbp,%rax,4),%xmm1
addps  %xmm0,%xmm1
movups %xmm1,(%r12,%rax,4)
movups (%r14,%rax,4),%xmm1
movups (%r15,%rax,4),%xmm2
addps  %xmm1,%xmm2
movups %xmm2,0x0(%rbp,%rax,4)
cmp    $0x2faf078,%rax
je     133f <main+0x1bf>
movups 0x14(%rbp,%rax,4),%xmm1
addps  %xmm0,%xmm1
movups %xmm1,0x10(%r12,%rax,4)
movups 0x10(%r14,%rax,4),%xmm1
movups 0x10(%r15,%rax,4),%xmm2
addps  %xmm1,%xmm2
movups %xmm2,0x10(%rbp,%rax,4)
add    $0x8,%rax
jmp    12f0 <main+0x170>
mov    $0x2faf07c,%ebx
lea    0x0(,%rbx,4),%rax
or     $0x4,%rax
movss  0x0(%rbp,%rax,1),%xmm0
addss  0xca6(%rip),%xmm0
movss  %xmm0,(%r12,%rbx,4)
movss  (%r14,%rbx,4),%xmm0
addss  (%r15,%rbx,4),%xmm0
movss  %xmm0,0x0(%rbp,%rbx,4)
add    $0xfffffffffd050f82,%rbx
movss  0xc7f(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nop
movss  0xbebc200(%rbp,%rbx,4),%xmm1
eb 0b
addss  %xmm0,%xmm1
movss  %xmm1,0xbebc1fc(%r12,%rbx,4)
c1 eb 0b
movss  0xbebc1fc(%r14,%rbx,4),%xmm1
c1 eb 0b
addss  0xbebc1fc(%r15,%rbx,4),%xmm1
c1 eb 0b
movss  %xmm1,0xbebc1fc(%rbp,%rbx,4)
eb 0b
movss  0xbebc204(%rbp,%rbx,4),%xmm1
eb 0b
addss  %xmm0,%xmm1
movss  %xmm1,0xbebc200(%r12,%rbx,4)
c2 eb 0b
movss  0xbebc200(%r14,%rbx,4),%xmm1
c2 eb 0b
addss  0xbebc200(%r15,%rbx,4),%xmm1
c2 eb 0b
movss  %xmm1,0xbebc200(%rbp,%rbx,4)
eb 0b
add    $0x2,%rbx
jne    1390 <main+0x210>
lea    0xc1b(%rip),%rdi
mov    $0x2faf080,%esi
call   1030 <avaliacao@plt>
movss  0xbebc1d8(%r12),%xmm0
c1 eb 0b
cvtss2sd %xmm0,%xmm0
lea    0xc15(%rip),%r13
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1dc(%r12),%xmm0
c1 eb 0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1e0(%r12),%xmm0
c1 eb 0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1e4(%r12),%xmm0
c1 eb 0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1e8(%r12),%xmm0
c1 eb 0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1ec(%r12),%xmm0
c1 eb 0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1f0(%r12),%xmm0
c1 eb 0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1f4(%r12),%xmm0
c1 eb 0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1f8(%r12),%xmm0
c1 eb 0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1fc(%r12),%xmm0
c1 eb 0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1050 <putchar@plt>
movss  0xbebc1d8(%rbp),%xmm0
0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1dc(%rbp),%xmm0
0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1e0(%rbp),%xmm0
0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1e4(%rbp),%xmm0
0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1e8(%rbp),%xmm0
0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1ec(%rbp),%xmm0
0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1f0(%rbp),%xmm0
0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1f4(%rbp),%xmm0
0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1f8(%rbp),%xmm0
0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xbebc1fc(%rbp),%xmm0
0b
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1050 <putchar@plt>
mov    %rbp,%rdi
call   1040 <free@plt>
mov    %r14,%rdi
call   1040 <free@plt>
mov    %r15,%rdi
call   1040 <free@plt>
mov    %r12,%rdi
call   1040 <free@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [25 x i8] c"Exercicio B - Modificado\00"
@.str.1 = [6 x i8] c"%.2f \00"
define i32 @main() {
%1 = tail call i64 @malloc(i32 200000000)
%2 = inttoptr i64 %1 to float*
%3 = inttoptr i64 %1 to i8*
%4 = tail call i64 @malloc(i32 200000000)
%5 = inttoptr i64 %4 to float*
%6 = inttoptr i64 %4 to i8*
%7 = tail call i64 @malloc(i32 200000000)
%8 = inttoptr i64 %7 to float*
%9 = inttoptr i64 %7 to i8*
%10 = tail call i64 @malloc(i32 200000000)
%11 = inttoptr i64 %10 to float*
%12 = inttoptr i64 %10 to i8*
%13 = tail call i32 @srand(i32 424242)
br label %14
14: ; preds = %0, %14
%15 = phi i64 [ 0, %0 ], [ %32, %14 ]
%16 = tail call i64 (...) @rand()
%17 = sitofp i64 %16 to float
%18 = fdiv float %17, 1.000000e+07
%19 = getelementptr inbounds float, float* %2, i64 %15
store float %18, float* %19
%20 = tail call i64 (...) @rand()
%21 = sitofp i64 %20 to float
%22 = fdiv float %21, 1.000000e+07
%23 = getelementptr inbounds float, float* %5, i64 %15
store float %22, float* %23
%24 = tail call i64 (...) @rand()
%25 = sitofp i64 %24 to float
%26 = fdiv float %25, 1.000000e+07
%27 = getelementptr inbounds float, float* %8, i64 %15
store float %26, float* %27
%28 = tail call i64 (...) @rand()
%29 = sitofp i64 %28 to float
%30 = fdiv float %29, 1.000000e+07
%31 = getelementptr inbounds float, float* %11, i64 %15
store float %30, float* %31
%32 = add nuw nsw i64 %15, 1
%33 = icmp eq i64 %32, 50000000
br i1 %33, label %34, label %14
34: ; preds = %14
%35 = tail call i32 (...) @inicializacao()
%36 = getelementptr float, float* %11, i64 49999999
%37 = bitcast float* %36 to i8*
%38 = getelementptr float, float* %2, i64 50000000
%39 = bitcast float* %38 to i8*
%40 = getelementptr float, float* %5, i64 49999999
%41 = bitcast float* %40 to i8*
%42 = getelementptr float, float* %8, i64 49999999
%43 = bitcast float* %42 to i8*
%44 = icmp ult i8* %12, %39
%45 = icmp ult i8* %3, %37
%46 = and i1 %44, %45
%47 = icmp ult i8* %12, %41
%48 = icmp ult i8* %6, %37
%49 = and i1 %47, %48
%50 = or i1 %46, %49
%51 = icmp ult i8* %12, %43
%52 = icmp ult i8* %9, %37
%53 = and i1 %51, %52
%54 = or i1 %50, %53
%55 = icmp ult i8* %3, %41
%56 = icmp ult i8* %6, %39
%57 = and i1 %55, %56
%58 = or i1 %54, %57
%59 = icmp ult i8* %3, %43
%60 = icmp ult i8* %9, %39
%61 = and i1 %59, %60
%62 = or i1 %58, %61
br i1 %62, label %101, label %63
63: ; preds = %34, %83
%64 = phi i64 [ %100, %83 ], [ 0, %34 ]
%65 = or i64 %64, 1
%66 = getelementptr inbounds float, float* %2, i64 %65
%67 = bitcast float* %66 to <4 x float>*
%68 = load <4 x float>, <4 x float>* %67
%69 = fadd <4 x float> %68, <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>
%70 = getelementptr inbounds float, float* %11, i64 %64
%71 = bitcast float* %70 to <4 x float>*
store <4 x float> %69, <4 x float>* %71
%72 = getelementptr inbounds float, float* %5, i64 %64
%73 = bitcast float* %72 to <4 x float>*
%74 = load <4 x float>, <4 x float>* %73
%75 = getelementptr inbounds float, float* %8, i64 %64
%76 = bitcast float* %75 to <4 x float>*
%77 = load <4 x float>, <4 x float>* %76
%78 = fadd <4 x float> %74, %77
%79 = getelementptr inbounds float, float* %2, i64 %64
%80 = bitcast float* %79 to <4 x float>*
store <4 x float> %78, <4 x float>* %80
%81 = or i64 %64, 4
%82 = icmp eq i64 %81, 49999996
br i1 %82, label %101, label %83
83: ; preds = %63
%84 = or i64 %64, 5
%85 = getelementptr inbounds float, float* %2, i64 %84
%86 = bitcast float* %85 to <4 x float>*
%87 = load <4 x float>, <4 x float>* %86
%88 = fadd <4 x float> %87, <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>
%89 = getelementptr inbounds float, float* %11, i64 %81
%90 = bitcast float* %89 to <4 x float>*
store <4 x float> %88, <4 x float>* %90
%91 = getelementptr inbounds float, float* %5, i64 %81
%92 = bitcast float* %91 to <4 x float>*
%93 = load <4 x float>, <4 x float>* %92
%94 = getelementptr inbounds float, float* %8, i64 %81
%95 = bitcast float* %94 to <4 x float>*
%96 = load <4 x float>, <4 x float>* %95
%97 = fadd <4 x float> %93, %96
%98 = getelementptr inbounds float, float* %2, i64 %81
%99 = bitcast float* %98 to <4 x float>*
store <4 x float> %97, <4 x float>* %99
%100 = add nuw nsw i64 %64, 8
br label %63
101: ; preds = %63, %34
%102 = phi i64 [ 0, %34 ], [ 49999996, %63 ]
%103 = or i64 %102, 1
%104 = getelementptr inbounds float, float* %2, i64 %103
%105 = load float, float* %104
%106 = fadd float %105, 1.000000e+00
%107 = getelementptr inbounds float, float* %11, i64 %102
store float %106, float* %107
%108 = getelementptr inbounds float, float* %5, i64 %102
%109 = load float, float* %108
%110 = getelementptr inbounds float, float* %8, i64 %102
%111 = load float, float* %110
%112 = fadd float %109, %111
%113 = getelementptr inbounds float, float* %2, i64 %102
store float %112, float* %113
br label %114
114: ; preds = %114, %101
%115 = phi i64 [ %103, %101 ], [ %127, %114 ]
%116 = add nuw nsw i64 %115, 1
%117 = getelementptr inbounds float, float* %2, i64 %116
%118 = load float, float* %117
%119 = fadd float %118, 1.000000e+00
%120 = getelementptr inbounds float, float* %11, i64 %115
store float %119, float* %120
%121 = getelementptr inbounds float, float* %5, i64 %115
%122 = load float, float* %121
%123 = getelementptr inbounds float, float* %8, i64 %115
%124 = load float, float* %123
%125 = fadd float %122, %124
%126 = getelementptr inbounds float, float* %2, i64 %115
store float %125, float* %126
%127 = add nuw nsw i64 %115, 2
%128 = getelementptr inbounds float, float* %2, i64 %127
%129 = load float, float* %128
%130 = fadd float %129, 1.000000e+00
%131 = getelementptr inbounds float, float* %11, i64 %116
store float %130, float* %131
%132 = getelementptr inbounds float, float* %5, i64 %116
%133 = load float, float* %132
%134 = getelementptr inbounds float, float* %8, i64 %116
%135 = load float, float* %134
%136 = fadd float %133, %135
%137 = getelementptr inbounds float, float* %2, i64 %116
store float %136, float* %137
%138 = icmp eq i64 %127, 49999999
br i1 %138, label %139, label %114
139: ; preds = %114
%140 = tail call i32 @avaliacao(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 50000000)
%141 = getelementptr inbounds float, float* %11, i64 49999990
%142 = load float, float* %141
%143 = fpext float %142 to double
%144 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %143)
%145 = getelementptr inbounds float, float* %11, i64 49999991
%146 = load float, float* %145
%147 = fpext float %146 to double
%148 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %147)
%149 = getelementptr inbounds float, float* %11, i64 49999992
%150 = load float, float* %149
%151 = fpext float %150 to double
%152 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %151)
%153 = getelementptr inbounds float, float* %11, i64 49999993
%154 = load float, float* %153
%155 = fpext float %154 to double
%156 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %155)
%157 = getelementptr inbounds float, float* %11, i64 49999994
%158 = load float, float* %157
%159 = fpext float %158 to double
%160 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %159)
%161 = getelementptr inbounds float, float* %11, i64 49999995
%162 = load float, float* %161
%163 = fpext float %162 to double
%164 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %163)
%165 = getelementptr inbounds float, float* %11, i64 49999996
%166 = load float, float* %165
%167 = fpext float %166 to double
%168 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %167)
%169 = getelementptr inbounds float, float* %11, i64 49999997
%170 = load float, float* %169
%171 = fpext float %170 to double
%172 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %171)
%173 = getelementptr inbounds float, float* %11, i64 49999998
%174 = load float, float* %173
%175 = fpext float %174 to double
%176 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %175)
%177 = getelementptr inbounds float, float* %11, i64 49999999
%178 = load float, float* %177
%179 = fpext float %178 to double
%180 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %179)
%181 = tail call i32 @putchar(i32 10)
%182 = getelementptr inbounds float, float* %2, i64 49999990
%183 = load float, float* %182
%184 = fpext float %183 to double
%185 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %184)
%186 = getelementptr inbounds float, float* %2, i64 49999991
%187 = load float, float* %186
%188 = fpext float %187 to double
%189 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %188)
%190 = getelementptr inbounds float, float* %2, i64 49999992
%191 = load float, float* %190
%192 = fpext float %191 to double
%193 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %192)
%194 = getelementptr inbounds float, float* %2, i64 49999993
%195 = load float, float* %194
%196 = fpext float %195 to double
%197 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %196)
%198 = getelementptr inbounds float, float* %2, i64 49999994
%199 = load float, float* %198
%200 = fpext float %199 to double
%201 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %200)
%202 = getelementptr inbounds float, float* %2, i64 49999995
%203 = load float, float* %202
%204 = fpext float %203 to double
%205 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %204)
%206 = getelementptr inbounds float, float* %2, i64 49999996
%207 = load float, float* %206
%208 = fpext float %207 to double
%209 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %208)
%210 = getelementptr inbounds float, float* %2, i64 49999997
%211 = load float, float* %210
%212 = fpext float %211 to double
%213 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %212)
%214 = getelementptr inbounds float, float* %2, i64 49999998
%215 = load float, float* %214
%216 = fpext float %215 to double
%217 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %216)
%218 = getelementptr inbounds float, float* %2, i64 49999999
%219 = load float, float* %218
%220 = fpext float %219 to double
%221 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %220)
%222 = tail call i32 @putchar(i32 10)
%223 = tail call i32 @free(float* %2)
%224 = tail call i32 @free(float* %5)
%225 = tail call i32 @free(float* %8)
%226 = tail call i32 @free(float* %11)
ret i32 0
}