#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*/ LC_ALL;
int /*<<< orphan*/ getch();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
main() {
  setlocale(LC_ALL, "Portuguese");
  int nalunos;
  printf("Digite a quantidade de aluno(s): ");
  scanf("%d", &nalunos);
  int x = 1;
  int i;
  char nomealunos[nalunos][1000];
  float nota1[nalunos];
  float nota2[nalunos];
  float nota3[nalunos];
  float media[nalunos];
  int cont = 0;
  for (i = 0; i < nalunos; i++) {
    printf("digite o nome do %dº aluno : ", x);
    scanf("%s", &nomealunos[i]);
    printf("Entre a primeira nota deste aluno: ");
    scanf("%f", &nota1[i]);
    printf("Entre a segunda nota deste aluno: ");
    scanf("%f", &nota2[i]);
    printf("Entre a terceira nota deste aluno: ");
    scanf("%f", &nota3[i]);
    media[i] = (nota1[i] + nota2[i] + nota3[i]) / 3;
    x++;
    printf("\n");
  }
  for (i = 0; i < nalunos; i++) {
    if (media[i] >= 5) {
      cont++;
    }
  }
  if (cont > 0) {
    printf("temos %d aluno(s) acima da média!!", cont);
  } else {
    printf("não temos alunos com a nota acima da média!!");
  }
  getch();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e87(%rip),%rax
mov    (%rax),%edi
lea    0xea6(%rip),%rsi
call   1040 <setlocale@plt>
lea    0xea5(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x71(%rbp)
call   1030 <printf@plt>
mov    -0x71(%rbp),%al
lea    0xeb3(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
imul   $0x3e8,%rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x70(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x68(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    136d <main+0x22d>
mov    -0xc(%rbp),%esi
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x70(%rbp),%rsi
movslq -0x10(%rbp),%rax
imul   $0x3e8,%rax,%rax
add    %rax,%rsi
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x68(%rbp),%rsi
movslq -0x10(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xdc8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x60(%rbp),%rsi
movslq -0x10(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xda8(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%rsi
movslq -0x10(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xd7d(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x68(%rbp),%rsi
mov    -0x60(%rbp),%rdx
mov    -0x58(%rbp),%rcx
mov    -0x50(%rbp),%rax
movslq -0x10(%rbp),%rdi
movss  (%rsi,%rdi,4),%xmm0
movslq -0x10(%rbp),%rsi
addss  (%rdx,%rsi,4),%xmm0
movslq -0x10(%rbp),%rdx
addss  (%rcx,%rdx,4),%xmm0
movss  0xcc9(%rip),%xmm1
divss  %xmm1,%xmm0
movslq -0x10(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
lea    0xd70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    124a <main+0x10a>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13ba <main+0x27a>
mov    -0x50(%rbp),%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  0xc6b(%rip),%xmm1
ucomiss %xmm1,%xmm0
jb     13a7 <main+0x267>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    13ac <main+0x26c>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1374 <main+0x234>
cmpl   $0x0,-0x44(%rbp)
jle    13da <main+0x29a>
mov    -0x44(%rbp),%esi
lea    0xcfc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13e8 <main+0x2a8>
lea    0xd0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <getch@plt>
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    0x2e78(%rip),%rax
mov    (%rax),%edi
lea    0xeaf(%rip),%rsi
call   1050 <setlocale@plt>
lea    0xeae(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec2(%rip),%rdi
lea    -0x2c(%rbp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %rsp,%r14
mov    -0x2c(%rbp),%eax
mov    %rsp,%r15
imul   $0x3e8,%rax,%rax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r15
mov    %r15,%rsp
mov    -0x2c(%rbp),%eax
mov    %rsp,%r12
lea    0xf(,%rax,4),%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%r12
mov    %r12,%rsp
mov    %rsp,%rbx
sub    %rcx,%rbx
mov    %rbx,%rsp
mov    %rsp,%rsi
sub    %rcx,%rsi
mov    %rsi,%rsp
mov    %rsp,%rdx
sub    %rcx,%rdx
mov    %rdx,%rsp
test   %eax,%eax
jle    13f8 <main+0x2a8>
mov    %r14,-0x48(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %rsi,%r14
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15,-0x50(%rbp)
add    $0x1,%r13
lea    0xe31(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe3f(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe31(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe47(%rip),%r15
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe36(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe3e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movss  (%r12),%xmm0
addss  (%rbx),%xmm0
addss  (%r14),%xmm0
divss  0xd57(%rip),%xmm0
mov    -0x38(%rbp),%r15
movss  %xmm0,(%r15)
mov    $0xa,%edi
call   1030 <putchar@plt>
movslq -0x2c(%rbp),%rax
add    $0x4,%r15
mov    %r15,-0x38(%rbp)
mov    -0x50(%rbp),%r15
add    $0x4,%r14
add    $0x4,%rbx
add    $0x4,%r12
add    $0x3e8,%r15
cmp    %rax,%r13
jl     1210 <main+0xc0>
mov    %eax,%eax
test   %eax,%eax
mov    -0x48(%rbp),%r14
mov    -0x40(%rbp),%rbx
jle    13f8 <main+0x2a8>
cmp    $0x8,%eax
jae    1308 <main+0x1b8>
xor    %ecx,%ecx
xor    %esi,%esi
jmp    13be <main+0x26e>
mov    %eax,%ecx
and    $0xfffffff8,%ecx
lea    -0x8(%rcx),%rsi
mov    %rsi,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
test   %rsi,%rsi
je     1421 <main+0x2d1>
mov    %rdx,%rdi
and    $0xfffffffffffffffe,%rdi
xorps  %xmm0,%xmm0
xor    %esi,%esi
movaps 0xcd8(%rip),%xmm2
pxor   %xmm1,%xmm1
nopl   0x0(%rax)
movaps %xmm2,%xmm3
cmpleps (%rbx,%rsi,4),%xmm3
psubd  %xmm3,%xmm0
movaps %xmm2,%xmm3
cmpleps 0x10(%rbx,%rsi,4),%xmm3
psubd  %xmm3,%xmm1
movaps %xmm2,%xmm3
cmpleps 0x20(%rbx,%rsi,4),%xmm3
movaps %xmm2,%xmm4
cmpleps 0x30(%rbx,%rsi,4),%xmm4
psubd  %xmm3,%xmm0
psubd  %xmm4,%xmm1
add    $0x10,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1340 <main+0x1f0>
test   $0x1,%dl
je     139f <main+0x24f>
movaps 0xc87(%rip),%xmm2
movaps %xmm2,%xmm3
cmpleps (%rbx,%rsi,4),%xmm3
psubd  %xmm3,%xmm0
cmpleps 0x10(%rbx,%rsi,4),%xmm2
psubd  %xmm2,%xmm1
paddd  %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%esi
cmp    %rax,%rcx
je     13e4 <main+0x294>
movss  0xc3e(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
movss  (%rbx,%rcx,4),%xmm1
ucomiss %xmm0,%xmm1
sbb    $0xffffffff,%esi
add    $0x1,%rcx
cmp    %rcx,%rax
jne    13d0 <main+0x280>
test   %esi,%esi
je     13f8 <main+0x2a8>
lea    0xcf1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1406 <main+0x2b6>
lea    0xd05(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <getch@plt>
mov    %r14,%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xorps  %xmm0,%xmm0
xor    %esi,%esi
pxor   %xmm1,%xmm1
test   $0x1,%dl
jne    1382 <main+0x232>
jmp    139f <main+0x24f>

LLVM IR (-O0):
@LC_ALL = global i32 0
@.str = [11 x i8] c"Portuguese\00"
@.str.1 = [34 x i8] c"Digite a quantidade de aluno(s): \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [31 x i8] c"digite o nome do %d\C2\BA aluno : \00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [36 x i8] c"Entre a primeira nota deste aluno: \00"
@.str.6 = [3 x i8] c"%f\00"
@.str.7 = [35 x i8] c"Entre a segunda nota deste aluno: \00"
@.str.8 = [36 x i8] c"Entre a terceira nota deste aluno: \00"
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [36 x i8] c"temos %d aluno(s) acima da m\C3\A9dia!!\00"
@.str.11 = [47 x i8] c"n\C3\A3o temos alunos com a nota acima da m\C3\A9dia!!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i32
store i32 0, i32* %1
%12 = load i32, i32* @LC_ALL
%13 = call i32 @setlocale(i32 %12, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
store i32 1, i32* %3
%16 = load i32, i32* %2
%17 = zext i32 %16 to i64
%18 = call i8* @llvm.stacksave()
store i8* %18, i8** %5
%19 = alloca [1000 x i8], i64 %17
store i64 %17, i64* %6
%20 = load i32, i32* %2
%21 = zext i32 %20 to i64
%22 = alloca float, i64 %21
store i64 %21, i64* %7
%23 = load i32, i32* %2
%24 = zext i32 %23 to i64
%25 = alloca float, i64 %24
store i64 %24, i64* %8
%26 = load i32, i32* %2
%27 = zext i32 %26 to i64
%28 = alloca float, i64 %27
store i64 %27, i64* %9
%29 = load i32, i32* %2
%30 = zext i32 %29 to i64
%31 = alloca float, i64 %30
store i64 %30, i64* %10
store i32 0, i32* %11
store i32 0, i32* %4
br label %32
32: ; preds = %79, %0
%33 = load i32, i32* %4
%34 = load i32, i32* %2
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %82
36: ; preds = %32
%37 = load i32, i32* %3
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i32 %37)
%39 = load i32, i32* %4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [1000 x i8], [1000 x i8]* %19, i64 %40
%42 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), [1000 x i8]* %41)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%44 = load i32, i32* %4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds float, float* %22, i64 %45
%47 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %46)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%49 = load i32, i32* %4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds float, float* %25, i64 %50
%52 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %51)
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%54 = load i32, i32* %4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds float, float* %28, i64 %55
%57 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %56)
%58 = load i32, i32* %4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds float, float* %22, i64 %59
%61 = load float, float* %60
%62 = load i32, i32* %4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds float, float* %25, i64 %63
%65 = load float, float* %64
%66 = fadd float %61, %65
%67 = load i32, i32* %4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds float, float* %28, i64 %68
%70 = load float, float* %69
%71 = fadd float %66, %70
%72 = fdiv float %71, 3.000000e+00
%73 = load i32, i32* %4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds float, float* %31, i64 %74
store float %72, float* %75
%76 = load i32, i32* %3
%77 = add nsw i32 %76, 1
store i32 %77, i32* %3
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %79
79: ; preds = %36
%80 = load i32, i32* %4
%81 = add nsw i32 %80, 1
store i32 %81, i32* %4
br label %32
82: ; preds = %32
store i32 0, i32* %4
br label %83
83: ; preds = %97, %82
%84 = load i32, i32* %4
%85 = load i32, i32* %2
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %100
87: ; preds = %83
%88 = load i32, i32* %4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds float, float* %31, i64 %89
%91 = load float, float* %90
%92 = fcmp oge float %91, 5.000000e+00
br i1 %92, label %93, label %96
93: ; preds = %87
%94 = load i32, i32* %11
%95 = add nsw i32 %94, 1
store i32 %95, i32* %11
br label %96
96: ; preds = %93, %87
br label %97
97: ; preds = %96
%98 = load i32, i32* %4
%99 = add nsw i32 %98, 1
store i32 %99, i32* %4
br label %83
100: ; preds = %83
%101 = load i32, i32* %11
%102 = icmp sgt i32 %101, 0
br i1 %102, label %103, label %106
103: ; preds = %100
%104 = load i32, i32* %11
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i32 %104)
br label %108
106: ; preds = %100
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0))
br label %108
108: ; preds = %106, %103
%109 = call i32 (...) @getch()
%110 = load i8*, i8** %5
%111 = load i32, i32* %1
ret i32 %111
}

LLVM IR (-O2):
@LC_ALL = global i32 0
@.str = [11 x i8] c"Portuguese\00"
@.str.1 = [34 x i8] c"Digite a quantidade de aluno(s): \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [31 x i8] c"digite o nome do %d\C2\BA aluno : \00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [36 x i8] c"Entre a primeira nota deste aluno: \00"
@.str.6 = [3 x i8] c"%f\00"
@.str.7 = [35 x i8] c"Entre a segunda nota deste aluno: \00"
@.str.8 = [36 x i8] c"Entre a terceira nota deste aluno: \00"
@.str.10 = [36 x i8] c"temos %d aluno(s) acima da m\C3\A9dia!!\00"
@.str.11 = [47 x i8] c"n\C3\A3o temos alunos com a nota acima da m\C3\A9dia!!\00"
define i32 @main() {
%1 = alloca i32
%2 = load i32, i32* @LC_ALL
%3 = tail call i32 @setlocale(i32 %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%4 = bitcast i32* %1 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%7 = load i32, i32* %1
%8 = zext i32 %7 to i64
%9 = call i8* @llvm.stacksave()
%10 = alloca [1000 x i8], i64 %8
%11 = load i32, i32* %1
%12 = zext i32 %11 to i64
%13 = alloca float, i64 %12
%14 = alloca float, i64 %12
%15 = alloca float, i64 %12
%16 = alloca float, i64 %12
%17 = icmp sgt i32 %11, 0
br i1 %17, label %94, label %137
18: ; preds = %94
%19 = icmp sgt i32 %119, 0
br i1 %19, label %20, label %137
20: ; preds = %18
%21 = zext i32 %119 to i64
%22 = icmp ult i32 %119, 8
br i1 %22, label %91, label %23
23: ; preds = %20
%24 = and i64 %21, 4294967288
%25 = add nsw i64 %24, -8
%26 = lshr exact i64 %25, 3
%27 = add nuw nsw i64 %26, 1
%28 = and i64 %27, 1
%29 = icmp eq i64 %25, 0
br i1 %29, label %65, label %30
30: ; preds = %23
%31 = and i64 %27, 4611686018427387902
br label %32
32: ; preds = %32, %30
%33 = phi i64 [ 0, %30 ], [ %62, %32 ]
%34 = phi <4 x i32> [ zeroinitializer, %30 ], [ %60, %32 ]
%35 = phi <4 x i32> [ zeroinitializer, %30 ], [ %61, %32 ]
%36 = phi i64 [ 0, %30 ], [ %63, %32 ]
%37 = getelementptr inbounds float, float* %16, i64 %33
%38 = bitcast float* %37 to <4 x float>*
%39 = load <4 x float>, <4 x float>* %38
%40 = getelementptr inbounds float, float* %37, i64 4
%41 = bitcast float* %40 to <4 x float>*
%42 = load <4 x float>, <4 x float>* %41
%43 = fcmp oge <4 x float> %39, <float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00>
%44 = fcmp oge <4 x float> %42, <float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00>
%45 = zext <4 x i1> %43 to <4 x i32>
%46 = zext <4 x i1> %44 to <4 x i32>
%47 = add <4 x i32> %34, %45
%48 = add <4 x i32> %35, %46
%49 = or i64 %33, 8
%50 = getelementptr inbounds float, float* %16, i64 %49
%51 = bitcast float* %50 to <4 x float>*
%52 = load <4 x float>, <4 x float>* %51
%53 = getelementptr inbounds float, float* %50, i64 4
%54 = bitcast float* %53 to <4 x float>*
%55 = load <4 x float>, <4 x float>* %54
%56 = fcmp oge <4 x float> %52, <float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00>
%57 = fcmp oge <4 x float> %55, <float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00>
%58 = zext <4 x i1> %56 to <4 x i32>
%59 = zext <4 x i1> %57 to <4 x i32>
%60 = add <4 x i32> %47, %58
%61 = add <4 x i32> %48, %59
%62 = add nuw i64 %33, 16
%63 = add i64 %36, 2
%64 = icmp eq i64 %63, %31
br i1 %64, label %65, label %32
65: ; preds = %32, %23
%66 = phi <4 x i32> [ undef, %23 ], [ %60, %32 ]
%67 = phi <4 x i32> [ undef, %23 ], [ %61, %32 ]
%68 = phi i64 [ 0, %23 ], [ %62, %32 ]
%69 = phi <4 x i32> [ zeroinitializer, %23 ], [ %60, %32 ]
%70 = phi <4 x i32> [ zeroinitializer, %23 ], [ %61, %32 ]
%71 = icmp eq i64 %28, 0
br i1 %71, label %85, label %72
72: ; preds = %65
%73 = getelementptr inbounds float, float* %16, i64 %68
%74 = bitcast float* %73 to <4 x float>*
%75 = load <4 x float>, <4 x float>* %74
%76 = getelementptr inbounds float, float* %73, i64 4
%77 = bitcast float* %76 to <4 x float>*
%78 = load <4 x float>, <4 x float>* %77
%79 = fcmp oge <4 x float> %75, <float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00>
%80 = fcmp oge <4 x float> %78, <float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00>
%81 = zext <4 x i1> %79 to <4 x i32>
%82 = zext <4 x i1> %80 to <4 x i32>
%83 = add <4 x i32> %69, %81
%84 = add <4 x i32> %70, %82
br label %85
85: ; preds = %65, %72
%86 = phi <4 x i32> [ %66, %65 ], [ %83, %72 ]
%87 = phi <4 x i32> [ %67, %65 ], [ %84, %72 ]
%88 = add <4 x i32> %87, %86
%89 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %88)
%90 = icmp eq i64 %24, %21
br i1 %90, label %132, label %91
91: ; preds = %20, %85
%92 = phi i64 [ 0, %20 ], [ %24, %85 ]
%93 = phi i32 [ 0, %20 ], [ %89, %85 ]
br label %122
94: ; preds = %0, %94
%95 = phi i64 [ %118, %94 ], [ 0, %0 ]
%96 = phi i32 [ %116, %94 ], [ 1, %0 ]
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i32 %96)
%98 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 %95
%99 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), [1000 x i8]* %98)
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%101 = getelementptr inbounds float, float* %13, i64 %95
%102 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %101)
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%104 = getelementptr inbounds float, float* %14, i64 %95
%105 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %104)
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%107 = getelementptr inbounds float, float* %15, i64 %95
%108 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %107)
%109 = load float, float* %101
%110 = load float, float* %104
%111 = fadd float %109, %110
%112 = load float, float* %107
%113 = fadd float %111, %112
%114 = fdiv float %113, 3.000000e+00
%115 = getelementptr inbounds float, float* %16, i64 %95
store float %114, float* %115
%116 = add nuw nsw i32 %96, 1
%117 = call i32 @putchar(i32 10)
%118 = add nuw nsw i64 %95, 1
%119 = load i32, i32* %1
%120 = sext i32 %119 to i64
%121 = icmp slt i64 %118, %120
br i1 %121, label %94, label %18
122: ; preds = %91, %122
%123 = phi i64 [ %130, %122 ], [ %92, %91 ]
%124 = phi i32 [ %129, %122 ], [ %93, %91 ]
%125 = getelementptr inbounds float, float* %16, i64 %123
%126 = load float, float* %125
%127 = fcmp oge float %126, 5.000000e+00
%128 = zext i1 %127 to i32
%129 = add nuw nsw i32 %124, %128
%130 = add nuw nsw i64 %123, 1
%131 = icmp eq i64 %130, %21
br i1 %131, label %132, label %122
132: ; preds = %122, %85
%133 = phi i32 [ %89, %85 ], [ %129, %122 ]
%134 = icmp eq i32 %133, 0
br i1 %134, label %137, label %135
135: ; preds = %132
%136 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i32 %133)
br label %139
137: ; preds = %0, %18, %132
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0))
br label %139
139: ; preds = %137, %135
%140 = call i32 (...) @getch()
ret i32 0
}