#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*/ printf(char *, float, ...);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float av1[10];
  float soma = 0, media = 0;
  int i;
  float maior = -999;
  int quantmaior = 0;
  int qtdMaiorMedia6 = 0;
  float percentMedia6;
  for (i = 0; i <= 9; i++) {
    printf("\nEntre com a AV1 do aluno %d: ", i + 1);
    scanf("%f", &av1[i]);
    soma = soma + av1[i];
    if (av1[i] > maior) {
      maior = av1[i];
    }
  }
  media = soma / i;
  printf("\nMedia = %.2f", media);
  for (i = 0; i <= 9; i++) {
    if (av1[i] >= media) {
      printf("\nEsta nota >= media - %.2f", av1[i]);
    }
    if (av1[i] == maior) {
      quantmaior++;
    }
    if (av1[i] = 6) {
      qtdMaiorMedia6++;
    }
  }
  percentMedia6 = (float)qtdMaiorMedia6 / i;
  printf("\n %d alunos tiraram a maior nota = %.2f \n", quantmaior, maior);
  printf("\n Porcentagem de alunos com nota maior media 6 = %.2f%% \n",
         percentMedia6 * 100);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x38(%rbp)
movss  0xeb9(%rip),%xmm0
movss  %xmm0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x9,-0x3c(%rbp)
jg     11e8 <main+0xc8>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
cvtsi2ss %eax,%xmm0
lea    0xe90(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movslq -0x3c(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe92(%rip),%rdi
call   1040 <scanf@plt>
movss  -0x34(%rbp),%xmm0
movslq -0x3c(%rbp),%rax
addss  -0x30(%rbp,%rax,4),%xmm0
movss  %xmm0,-0x34(%rbp)
movslq -0x3c(%rbp),%rax
movss  -0x30(%rbp,%rax,4),%xmm0
ucomiss -0x40(%rbp),%xmm0
jbe    11d5 <main+0xb5>
movslq -0x3c(%rbp),%rax
movss  -0x30(%rbp,%rax,4),%xmm0
movss  %xmm0,-0x40(%rbp)
jmp    11da <main+0xba>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1161 <main+0x41>
movss  -0x34(%rbp),%xmm0
cvtsi2ssl -0x3c(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x38(%rbp),%xmm0
lea    0xe27(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x9,-0x3c(%rbp)
jg     12ab <main+0x18b>
movslq -0x3c(%rbp),%rax
movss  -0x30(%rbp,%rax,4),%xmm0
ucomiss -0x38(%rbp),%xmm0
jb     124b <main+0x12b>
movslq -0x3c(%rbp),%rax
movss  -0x30(%rbp,%rax,4),%xmm0
lea    0xdf8(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movslq -0x3c(%rbp),%rax
movss  -0x30(%rbp,%rax,4),%xmm0
ucomiss -0x40(%rbp),%xmm0
jne    126e <main+0x14e>
jp     126e <main+0x14e>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
movslq -0x3c(%rbp),%rax
movss  0xd8e(%rip),%xmm0
movss  %xmm0,-0x30(%rbp,%rax,4)
mov    $0x1,%al
test   $0x1,%al
jne    128f <main+0x16f>
jmp    1298 <main+0x178>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    129d <main+0x17d>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1215 <main+0xf5>
cvtsi2ssl -0x48(%rbp),%xmm0
cvtsi2ssl -0x3c(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
cvtsi2ssl -0x44(%rbp),%xmm0
movss  -0x40(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xd84(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xd22(%rip),%xmm0
mulss  -0x4c(%rbp),%xmm0
lea    0xd93(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0xd8,%rsp
lea    0xeff(%rip),%r14
movss  0xec7(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xf05(%rip),%rbx
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x10(%rsp),%xmm0
xorps  %xmm1,%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
maxss  0xe92(%rip),%xmm0
movss  %xmm0,0xa0(%rsp)
movss  0xe85(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x14(%rsp),%xmm0
movss  %xmm0,0x80(%rsp)
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0xe4b(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x18(%rsp),%xmm0
movss  %xmm0,0x90(%rsp)
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0xe11(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x1c(%rsp),%xmm0
movss  %xmm0,0x40(%rsp)
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0xdda(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x20(%rsp),%xmm0
movss  %xmm0,0x50(%rsp)
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0xda3(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x24(%rsp),%xmm0
movss  %xmm0,0x60(%rsp)
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0xd6c(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0x28(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x28(%rsp),%xmm0
movss  %xmm0,0x70(%rsp)
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0xd35(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0x2c(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x2c(%rsp),%xmm0
movss  %xmm0,0x38(%rsp)
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0xcfe(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0x30(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x30(%rsp),%xmm0
movss  %xmm0,0x3c(%rsp)
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0xcc7(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0x34(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x34(%rsp),%xmm1
movaps %xmm1,0xb0(%rsp)
movss  0xc(%rsp),%xmm0
addss  %xmm1,%xmm0
divss  0xc90(%rip),%xmm0
movss  %xmm0,0xc(%rsp)
lea    0xcad(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x10(%rsp),%xmm0
ucomiss 0xc(%rsp),%xmm0
jb     13cd <main+0x2ad>
lea    0xca0(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x10(%rsp),%xmm0
movss  0x80(%rsp),%xmm2
maxss  0xa0(%rsp),%xmm2
movl   $0x40c00000,0x10(%rsp)
40
movss  0x14(%rsp),%xmm1
ucomiss 0xc(%rsp),%xmm1
movaps %xmm0,0xc0(%rsp)
jb     1425 <main+0x305>
lea    0xc5d(%rip),%rdi
movaps %xmm1,%xmm0
mov    $0x1,%al
movss  %xmm2,0x80(%rsp)
call   1030 <printf@plt>
movss  0x80(%rsp),%xmm2
movss  0x14(%rsp),%xmm1
movaps %xmm1,0x80(%rsp)
movss  0x90(%rsp),%xmm3
maxss  %xmm2,%xmm3
movl   $0x40c00000,0x14(%rsp)
40
movss  0x18(%rsp),%xmm0
ucomiss 0xc(%rsp),%xmm0
jb     1475 <main+0x355>
lea    0xc0a(%rip),%rdi
movss  %xmm3,0x90(%rsp)
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x90(%rsp),%xmm3
movss  0x18(%rsp),%xmm0
movaps %xmm0,0xa0(%rsp)
movss  0x40(%rsp),%xmm1
maxss  %xmm3,%xmm1
movl   $0x40c00000,0x18(%rsp)
40
movss  0x1c(%rsp),%xmm0
ucomiss 0xc(%rsp),%xmm0
jb     14bc <main+0x39c>
lea    0xbbd(%rip),%rdi
mov    $0x1,%al
movss  %xmm1,0x40(%rsp)
call   1030 <printf@plt>
movss  0x40(%rsp),%xmm1
movss  0x1c(%rsp),%xmm0
movaps %xmm0,0x90(%rsp)
movss  0x50(%rsp),%xmm2
maxss  %xmm1,%xmm2
movl   $0x40c00000,0x1c(%rsp)
40
movss  0x20(%rsp),%xmm0
ucomiss 0xc(%rsp),%xmm0
jb     1503 <main+0x3e3>
lea    0xb76(%rip),%rdi
movss  %xmm2,0x50(%rsp)
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x50(%rsp),%xmm2
movss  0x20(%rsp),%xmm0
movaps %xmm0,0x40(%rsp)
movss  0x60(%rsp),%xmm1
maxss  %xmm2,%xmm1
movl   $0x40c00000,0x20(%rsp)
40
movss  0x24(%rsp),%xmm0
ucomiss 0xc(%rsp),%xmm0
jb     1547 <main+0x427>
lea    0xb32(%rip),%rdi
mov    $0x1,%al
movss  %xmm1,0x60(%rsp)
call   1030 <printf@plt>
movss  0x60(%rsp),%xmm1
movss  0x24(%rsp),%xmm0
movaps %xmm0,0x50(%rsp)
movss  0x70(%rsp),%xmm2
maxss  %xmm1,%xmm2
movl   $0x40c00000,0x24(%rsp)
40
movss  0x28(%rsp),%xmm0
ucomiss 0xc(%rsp),%xmm0
jb     158b <main+0x46b>
lea    0xaee(%rip),%rdi
movss  %xmm2,0x70(%rsp)
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x70(%rsp),%xmm2
movss  0x28(%rsp),%xmm0
movaps %xmm0,0x60(%rsp)
movss  0x38(%rsp),%xmm1
maxss  %xmm2,%xmm1
movl   $0x40c00000,0x28(%rsp)
40
movss  0x2c(%rsp),%xmm0
ucomiss 0xc(%rsp),%xmm0
jb     15cf <main+0x4af>
lea    0xaaa(%rip),%rdi
mov    $0x1,%al
movss  %xmm1,0x38(%rsp)
call   1030 <printf@plt>
movss  0x38(%rsp),%xmm1
movss  0x2c(%rsp),%xmm0
movaps %xmm0,0x70(%rsp)
movss  0x3c(%rsp),%xmm0
maxss  %xmm1,%xmm0
movl   $0x40c00000,0x2c(%rsp)
40
movss  0x30(%rsp),%xmm5
ucomiss 0xc(%rsp),%xmm5
jb     1616 <main+0x4f6>
lea    0xa66(%rip),%rdi
movss  %xmm0,0x3c(%rsp)
movaps %xmm5,%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x3c(%rsp),%xmm0
movss  0x30(%rsp),%xmm5
movaps 0xb0(%rsp),%xmm2
maxss  %xmm0,%xmm2
movl   $0x40c00000,0x30(%rsp)
40
movss  0x34(%rsp),%xmm0
ucomiss 0xc(%rsp),%xmm0
jb     1667 <main+0x547>
lea    0xa22(%rip),%rdi
mov    $0x1,%al
movaps %xmm2,0xb0(%rsp)
movss  %xmm5,0xc(%rsp)
call   1030 <printf@plt>
movss  0xc(%rsp),%xmm5
movaps 0xb0(%rsp),%xmm2
movss  0x34(%rsp),%xmm0
movaps 0x80(%rsp),%xmm1
movaps 0xa0(%rsp),%xmm4
unpcklps 0x90(%rsp),%xmm4
movaps 0xc0(%rsp),%xmm3
unpcklps %xmm1,%xmm3
movlhps %xmm4,%xmm3
movaps 0x60(%rsp),%xmm1
unpcklps 0x70(%rsp),%xmm1
movaps 0x40(%rsp),%xmm4
unpcklps 0x50(%rsp),%xmm4
movlhps %xmm1,%xmm4
movaps %xmm2,%xmm1
shufps $0x0,%xmm2,%xmm1
cmpeqss %xmm2,%xmm5
movd   %xmm5,%eax
cmpeqss %xmm2,%xmm0
movd   %xmm0,%ecx
cmpeqps %xmm1,%xmm4
cmpeqps %xmm3,%xmm1
packssdw %xmm4,%xmm1
packsswb %xmm1,%xmm1
pmovmskb %xmm1,%edx
mov    %edx,%ebx
shr    %bl
and    $0x55,%bl
sub    %bl,%dl
mov    %edx,%ebx
and    $0x33,%bl
shr    $0x2,%dl
and    $0x33,%dl
add    %bl,%dl
mov    %edx,%ebx
shr    $0x4,%bl
add    %dl,%bl
and    $0xf,%bl
movzbl %bl,%edx
sub    %eax,%edx
sub    %ecx,%edx
movl   $0x40c00000,0x34(%rsp)
40
xorps  %xmm0,%xmm0
cvtsi2ss %edx,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm2,%xmm1
lea    0x966(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
lea    0x982(%rip),%rdi
movss  0x901(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [31 x i8] c"\0AEntre com a AV1 do aluno %d: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [14 x i8] c"\0AMedia = %.2f\00"
@.str.3 = [27 x i8] c"\0AEsta nota >= media - %.2f\00"
@.str.4 = [42 x i8] c"\0A %d alunos tiraram a maior nota = %.2f \0A\00"
@.str.5 = [58 x i8] c"\0A Porcentagem de alunos com nota maior media 6 = %.2f%% \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x float]
%3 = alloca float
%4 = alloca float
%5 = alloca i32
%6 = alloca float
%7 = alloca i32
%8 = alloca i32
%9 = alloca float
store i32 0, i32* %1
store float 0.000000e+00, float* %3
store float 0.000000e+00, float* %4
store float -9.990000e+02, float* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %5
br label %10
10: ; preds = %40, %0
%11 = load i32, i32* %5
%12 = icmp sle i32 %11, 9
br i1 %12, label %13, label %43
13: ; preds = %10
%14 = load i32, i32* %5
%15 = add nsw i32 %14, 1
%16 = sitofp i32 %15 to float
%17 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), float %16)
%18 = load i32, i32* %5
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %19
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %20)
%22 = load float, float* %3
%23 = load i32, i32* %5
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %24
%26 = load float, float* %25
%27 = fadd float %22, %26
store float %27, float* %3
%28 = load i32, i32* %5
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %29
%31 = load float, float* %30
%32 = load float, float* %6
%33 = fcmp ogt float %31, %32
br i1 %33, label %34, label %39
34: ; preds = %13
%35 = load i32, i32* %5
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %36
%38 = load float, float* %37
store float %38, float* %6
br label %39
39: ; preds = %34, %13
br label %40
40: ; preds = %39
%41 = load i32, i32* %5
%42 = add nsw i32 %41, 1
store i32 %42, i32* %5
br label %10
43: ; preds = %10
%44 = load float, float* %3
%45 = load i32, i32* %5
%46 = sitofp i32 %45 to float
%47 = fdiv float %44, %46
store float %47, float* %4
%48 = load float, float* %4
%49 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), float %48)
store i32 0, i32* %5
br label %50
50: ; preds = %84, %43
%51 = load i32, i32* %5
%52 = icmp sle i32 %51, 9
br i1 %52, label %53, label %87
53: ; preds = %50
%54 = load i32, i32* %5
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %55
%57 = load float, float* %56
%58 = load float, float* %4
%59 = fcmp oge float %57, %58
br i1 %59, label %60, label %66
60: ; preds = %53
%61 = load i32, i32* %5
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %62
%64 = load float, float* %63
%65 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float %64)
br label %66
66: ; preds = %60, %53
%67 = load i32, i32* %5
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %68
%70 = load float, float* %69
%71 = load float, float* %6
%72 = fcmp oeq float %70, %71
br i1 %72, label %73, label %76
73: ; preds = %66
%74 = load i32, i32* %7
%75 = add nsw i32 %74, 1
store i32 %75, i32* %7
br label %76
76: ; preds = %73, %66
%77 = load i32, i32* %5
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %78
store float 6.000000e+00, float* %79
br i1 true, label %80, label %83
80: ; preds = %76
%81 = load i32, i32* %8
%82 = add nsw i32 %81, 1
store i32 %82, i32* %8
br label %83
83: ; preds = %80, %76
br label %84
84: ; preds = %83
%85 = load i32, i32* %5
%86 = add nsw i32 %85, 1
store i32 %86, i32* %5
br label %50
87: ; preds = %50
%88 = load i32, i32* %8
%89 = sitofp i32 %88 to float
%90 = load i32, i32* %5
%91 = sitofp i32 %90 to float
%92 = fdiv float %89, %91
store float %92, float* %9
%93 = load i32, i32* %7
%94 = sitofp i32 %93 to float
%95 = load float, float* %6
%96 = fpext float %95 to double
%97 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0), float %94, double %96)
%98 = load float, float* %9
%99 = fmul float %98, 1.000000e+02
%100 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), float %99)
ret i32 0
}

LLVM IR (-O2):
@.str = [31 x i8] c"\0AEntre com a AV1 do aluno %d: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [14 x i8] c"\0AMedia = %.2f\00"
@.str.3 = [27 x i8] c"\0AEsta nota >= media - %.2f\00"
@.str.4 = [42 x i8] c"\0A %d alunos tiraram a maior nota = %.2f \0A\00"
@.str.5 = [58 x i8] c"\0A Porcentagem de alunos com nota maior media 6 = %.2f%% \0A\00"
define i32 @main() {
%1 = alloca [10 x float]
%2 = bitcast [10 x float]* %1 to i8*
%3 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), float 1.000000e+00)
%4 = getelementptr inbounds [10 x float], [10 x float]* %1, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %4)
%6 = load float, float* %4
%7 = fadd float %6, 0.000000e+00
%8 = fcmp ogt float %6, -9.990000e+02
%9 = select i1 %8, float %6, float -9.990000e+02
%10 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), float 2.000000e+00)
%11 = getelementptr inbounds [10 x float], [10 x float]* %1, i64 0, i64 1
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %11)
%13 = load float, float* %11
%14 = fadd float %7, %13
%15 = fcmp ogt float %13, %9
%16 = select i1 %15, float %13, float %9
%17 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), float 3.000000e+00)
%18 = getelementptr inbounds [10 x float], [10 x float]* %1, i64 0, i64 2
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %18)
%20 = load float, float* %18
%21 = fadd float %14, %20
%22 = fcmp ogt float %20, %16
%23 = select i1 %22, float %20, float %16
%24 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), float 4.000000e+00)
%25 = getelementptr inbounds [10 x float], [10 x float]* %1, i64 0, i64 3
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %25)
%27 = load float, float* %25
%28 = fadd float %21, %27
%29 = fcmp ogt float %27, %23
%30 = select i1 %29, float %27, float %23
%31 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), float 5.000000e+00)
%32 = getelementptr inbounds [10 x float], [10 x float]* %1, i64 0, i64 4
%33 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %32)
%34 = load float, float* %32
%35 = fadd float %28, %34
%36 = fcmp ogt float %34, %30
%37 = select i1 %36, float %34, float %30
%38 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), float 6.000000e+00)
%39 = getelementptr inbounds [10 x float], [10 x float]* %1, i64 0, i64 5
%40 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %39)
%41 = load float, float* %39
%42 = fadd float %35, %41
%43 = fcmp ogt float %41, %37
%44 = select i1 %43, float %41, float %37
%45 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), float 7.000000e+00)
%46 = getelementptr inbounds [10 x float], [10 x float]* %1, i64 0, i64 6
%47 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %46)
%48 = load float, float* %46
%49 = fadd float %42, %48
%50 = fcmp ogt float %48, %44
%51 = select i1 %50, float %48, float %44
%52 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), float 8.000000e+00)
%53 = getelementptr inbounds [10 x float], [10 x float]* %1, i64 0, i64 7
%54 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %53)
%55 = load float, float* %53
%56 = fadd float %49, %55
%57 = fcmp ogt float %55, %51
%58 = select i1 %57, float %55, float %51
%59 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), float 9.000000e+00)
%60 = getelementptr inbounds [10 x float], [10 x float]* %1, i64 0, i64 8
%61 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %60)
%62 = load float, float* %60
%63 = fadd float %56, %62
%64 = fcmp ogt float %62, %58
%65 = select i1 %64, float %62, float %58
%66 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), float 1.000000e+01)
%67 = getelementptr inbounds [10 x float], [10 x float]* %1, i64 0, i64 9
%68 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %67)
%69 = load float, float* %67
%70 = fadd float %63, %69
%71 = fcmp ogt float %69, %65
%72 = select i1 %71, float %69, float %65
%73 = fdiv float %70, 1.000000e+01
%74 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), float %73)
%75 = load float, float* %4
%76 = fcmp ult float %75, %73
br i1 %76, label %80, label %77
77: ; preds = %0
%78 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float %75)
%79 = load float, float* %4
br label %80
80: ; preds = %77, %0
%81 = phi float [ %79, %77 ], [ %75, %0 ]
store float 6.000000e+00, float* %4
%82 = load float, float* %11
%83 = fcmp ult float %82, %73
br i1 %83, label %87, label %84
84: ; preds = %80
%85 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float %82)
%86 = load float, float* %11
br label %87
87: ; preds = %84, %80
%88 = phi float [ %86, %84 ], [ %82, %80 ]
store float 6.000000e+00, float* %11
%89 = load float, float* %18
%90 = fcmp ult float %89, %73
br i1 %90, label %94, label %91
91: ; preds = %87
%92 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float %89)
%93 = load float, float* %18
br label %94
94: ; preds = %91, %87
%95 = phi float [ %93, %91 ], [ %89, %87 ]
store float 6.000000e+00, float* %18
%96 = load float, float* %25
%97 = fcmp ult float %96, %73
br i1 %97, label %101, label %98
98: ; preds = %94
%99 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float %96)
%100 = load float, float* %25
br label %101
101: ; preds = %98, %94
%102 = phi float [ %100, %98 ], [ %96, %94 ]
store float 6.000000e+00, float* %25
%103 = load float, float* %32
%104 = fcmp ult float %103, %73
br i1 %104, label %108, label %105
105: ; preds = %101
%106 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float %103)
%107 = load float, float* %32
br label %108
108: ; preds = %105, %101
%109 = phi float [ %107, %105 ], [ %103, %101 ]
store float 6.000000e+00, float* %32
%110 = load float, float* %39
%111 = fcmp ult float %110, %73
br i1 %111, label %115, label %112
112: ; preds = %108
%113 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float %110)
%114 = load float, float* %39
br label %115
115: ; preds = %112, %108
%116 = phi float [ %114, %112 ], [ %110, %108 ]
store float 6.000000e+00, float* %39
%117 = load float, float* %46
%118 = fcmp ult float %117, %73
br i1 %118, label %122, label %119
119: ; preds = %115
%120 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float %117)
%121 = load float, float* %46
br label %122
122: ; preds = %119, %115
%123 = phi float [ %121, %119 ], [ %117, %115 ]
store float 6.000000e+00, float* %46
%124 = load float, float* %53
%125 = fcmp ult float %124, %73
br i1 %125, label %129, label %126
126: ; preds = %122
%127 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float %124)
%128 = load float, float* %53
br label %129
129: ; preds = %126, %122
%130 = phi float [ %128, %126 ], [ %124, %122 ]
store float 6.000000e+00, float* %53
%131 = load float, float* %60
%132 = fcmp ult float %131, %73
br i1 %132, label %136, label %133
133: ; preds = %129
%134 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float %131)
%135 = load float, float* %60
br label %136
136: ; preds = %133, %129
%137 = phi float [ %135, %133 ], [ %131, %129 ]
store float 6.000000e+00, float* %60
%138 = load float, float* %67
%139 = fcmp ult float %138, %73
br i1 %139, label %143, label %140
140: ; preds = %136
%141 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float %138)
%142 = load float, float* %67
br label %143
143: ; preds = %140, %136
%144 = phi float [ %142, %140 ], [ %138, %136 ]
%145 = insertelement <8 x float> poison, float %81, i64 0
%146 = insertelement <8 x float> %145, float %88, i64 1
%147 = insertelement <8 x float> %146, float %95, i64 2
%148 = insertelement <8 x float> %147, float %102, i64 3
%149 = insertelement <8 x float> %148, float %109, i64 4
%150 = insertelement <8 x float> %149, float %116, i64 5
%151 = insertelement <8 x float> %150, float %123, i64 6
%152 = insertelement <8 x float> %151, float %130, i64 7
%153 = insertelement <8 x float> poison, float %72, i64 0
%154 = shufflevector <8 x float> %153, <8 x float> poison, <8 x i32> zeroinitializer
%155 = fcmp oeq <8 x float> %152, %154
%156 = fcmp oeq float %137, %72
%157 = zext i1 %156 to i32
%158 = fcmp oeq float %144, %72
%159 = zext i1 %158 to i32
%160 = bitcast <8 x i1> %155 to i8
%161 = call i8 @llvm.ctpop.i8(i8 %160)
%162 = zext i8 %161 to i32
%163 = add nuw nsw i32 %162, %157
%164 = add nuw nsw i32 %163, %159
store float 6.000000e+00, float* %67
%165 = sitofp i32 %164 to float
%166 = fpext float %72 to double
%167 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0), float %165, double %166)
%168 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), float 1.000000e+02)
ret i32 0
}