#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 *, int);
void excellent(float (*b)[5]) {
  int n[27] = {0}, x[27] = {0};
  int i, j = 0, k, h = 0, f = 0;
  float w;
  for (i = 0; i < 4; i++) {
    h = 0, f = 0;
    w = 0;
    for (k = 0; k < 5; k++) {
      w = w + *(*(b + i) + k);
      if (*(*(b + i) + k) >= 85)
        h++;
      if (h >= 5)
        printf("da yu ba shi wu student %d\n ", i);
    }
    if ((w / 5) >= 90)
      printf("da yu jiu shi student %d\n", i);
  }
}


x86 assembly (clang, -O0):
<excellent>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x6c,%edx
call   1040 <memset@plt>
lea    -0xf0(%rbp),%rdi
xor    %esi,%esi
mov    $0x6c,%edx
call   1040 <memset@plt>
movl   $0x0,-0xf8(%rbp)
movl   $0x0,-0x100(%rbp)
movl   $0x0,-0x104(%rbp)
movl   $0x0,-0xf4(%rbp)
cmpl   $0x4,-0xf4(%rbp)
jge    12b1 <excellent+0x191>
movl   $0x0,-0x100(%rbp)
movl   $0x0,-0x104(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x108(%rbp)
ff
movl   $0x0,-0xfc(%rbp)
cmpl   $0x5,-0xfc(%rbp)
jge    1261 <excellent+0x141>
movss  -0x108(%rbp),%xmm0
ff
mov    -0x8(%rbp),%rax
movslq -0xf4(%rbp),%rcx
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0xfc(%rbp),%rcx
addss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x108(%rbp)
ff
mov    -0x8(%rbp),%rax
movslq -0xf4(%rbp),%rcx
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0xfc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  0xdf7(%rip),%xmm1
ucomiss %xmm1,%xmm0
jb     1229 <excellent+0x109>
mov    -0x100(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x100(%rbp)
cmpl   $0x5,-0x100(%rbp)
jl     1248 <excellent+0x128>
mov    -0xf4(%rbp),%esi
lea    0xdc9(%rip),%rdi
call   1030 <printf@plt>
jmp    124d <excellent+0x12d>
mov    -0xfc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xfc(%rbp)
jmp    11b0 <excellent+0x90>
movss  -0x108(%rbp),%xmm0
ff
movss  0xd93(%rip),%xmm1
divss  %xmm1,%xmm0
movss  0xd83(%rip),%xmm1
ucomiss %xmm1,%xmm0
jb     1298 <excellent+0x178>
mov    -0xf4(%rbp),%esi
lea    0xd96(%rip),%rdi
call   1030 <printf@plt>
jmp    129d <excellent+0x17d>
mov    -0xf4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf4(%rbp)
jmp    117a <excellent+0x5a>
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<excellent>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdi,%r14
add    $0x10,%r14
xor    %ebx,%ebx
lea    0xef5(%rip),%r15
lea    0xf0b(%rip),%r12
jmp    1152 <excellent+0x42>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rbx
add    $0x14,%r14
cmp    $0x4,%rbx
je     120c <excellent+0xfc>
movups -0x10(%r14),%xmm2
movss  (%r14),%xmm3
movaps 0xe9d(%rip),%xmm0
cmpleps %xmm2,%xmm0
movmskps %xmm0,%eax
mov    %eax,%ecx
shr    %cl
and    $0x5,%cl
sub    %cl,%al
mov    %eax,%ecx
and    $0x33,%cl
shr    $0x2,%al
and    $0x33,%al
add    %cl,%al
mov    %eax,%ecx
shr    $0x4,%cl
add    %al,%cl
and    $0xf,%cl
ucomiss 0xe80(%rip),%xmm3
movzbl %cl,%eax
sbb    $0xffffffff,%eax
cmp    $0x5,%eax
jb     11bb <excellent+0xab>
mov    %r15,%rdi
mov    %ebx,%esi
movaps %xmm2,0x10(%rsp)
movss  %xmm3,0xc(%rsp)
call   1030 <printf@plt>
movss  0xc(%rsp),%xmm3
movaps 0x10(%rsp),%xmm2
movaps %xmm2,%xmm0
addss  0xe56(%rip),%xmm0
movaps %xmm2,%xmm1
shufps $0x55,%xmm2,%xmm1
addss  %xmm0,%xmm1
movaps %xmm2,%xmm0
unpckhpd %xmm2,%xmm0
addss  %xmm1,%xmm0
shufps $0xff,%xmm2,%xmm2
addss  %xmm0,%xmm2
addss  %xmm3,%xmm2
divss  0xe24(%rip),%xmm2
ucomiss 0xe21(%rip),%xmm2
jb     1140 <excellent+0x30>
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
jmp    1140 <excellent+0x30>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [29 x i8] c"da yu ba shi wu student %d\0A \00"
@.str.1 = [26 x i8] c"da yu jiu shi student %d\0A\00"
define void @excellent([5 x float]* %0) {
%2 = alloca [5 x float]*
%3 = alloca [27 x i32]
%4 = alloca [27 x i32]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca float
store [5 x float]* %0, [5 x float]** %2
%11 = bitcast [27 x i32]* %3 to i8*
%12 = bitcast [27 x i32]* %4 to i8*
store i32 0, i32* %6
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %5
br label %13
13: ; preds = %63, %1
%14 = load i32, i32* %5
%15 = icmp slt i32 %14, 4
br i1 %15, label %16, label %66
16: ; preds = %13
store i32 0, i32* %8
store i32 0, i32* %9
store float 0.000000e+00, float* %10
store i32 0, i32* %7
br label %17
17: ; preds = %52, %16
%18 = load i32, i32* %7
%19 = icmp slt i32 %18, 5
br i1 %19, label %20, label %55
20: ; preds = %17
%21 = load float, float* %10
%22 = load [5 x float]*, [5 x float]** %2
%23 = load i32, i32* %5
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [5 x float], [5 x float]* %22, i64 %24
%26 = getelementptr inbounds [5 x float], [5 x float]* %25, i64 0, i64 0
%27 = load i32, i32* %7
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds float, float* %26, i64 %28
%30 = load float, float* %29
%31 = fadd float %21, %30
store float %31, float* %10
%32 = load [5 x float]*, [5 x float]** %2
%33 = load i32, i32* %5
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [5 x float], [5 x float]* %32, i64 %34
%36 = getelementptr inbounds [5 x float], [5 x float]* %35, i64 0, i64 0
%37 = load i32, i32* %7
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds float, float* %36, i64 %38
%40 = load float, float* %39
%41 = fcmp oge float %40, 8.500000e+01
br i1 %41, label %42, label %45
42: ; preds = %20
%43 = load i32, i32* %8
%44 = add nsw i32 %43, 1
store i32 %44, i32* %8
br label %45
45: ; preds = %42, %20
%46 = load i32, i32* %8
%47 = icmp sge i32 %46, 5
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load i32, i32* %5
%50 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %49)
br label %51
51: ; preds = %48, %45
br label %52
52: ; preds = %51
%53 = load i32, i32* %7
%54 = add nsw i32 %53, 1
store i32 %54, i32* %7
br label %17
55: ; preds = %17
%56 = load float, float* %10
%57 = fdiv float %56, 5.000000e+00
%58 = fcmp oge float %57, 9.000000e+01
br i1 %58, label %59, label %62
59: ; preds = %55
%60 = load i32, i32* %5
%61 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i32 %60)
br label %62
62: ; preds = %59, %55
br label %63
63: ; preds = %62
%64 = load i32, i32* %5
%65 = add nsw i32 %64, 1
store i32 %65, i32* %5
br label %13
66: ; preds = %13
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"da yu ba shi wu student %d\0A \00"
@.str.1 = [26 x i8] c"da yu jiu shi student %d\0A\00"
define void @excellent([5 x float]* nocapture %0) {
br label %2
2: ; preds = %35, %1
%3 = phi i64 [ 0, %1 ], [ %36, %35 ]
%4 = getelementptr inbounds [5 x float], [5 x float]* %0, i64 %3, i64 0
%5 = bitcast float* %4 to <4 x float>*
%6 = load <4 x float>, <4 x float>* %5
%7 = extractelement <4 x float> %6, i64 0
%8 = fadd float %7, 0.000000e+00
%9 = extractelement <4 x float> %6, i64 1
%10 = fadd float %8, %9
%11 = fcmp oge <4 x float> %6, <float 8.500000e+01, float 8.500000e+01, float 8.500000e+01, float 8.500000e+01>
%12 = extractelement <4 x float> %6, i64 2
%13 = fadd float %10, %12
%14 = extractelement <4 x float> %6, i64 3
%15 = fadd float %13, %14
%16 = getelementptr inbounds [5 x float], [5 x float]* %0, i64 %3, i64 4
%17 = load float, float* %16
%18 = fadd float %15, %17
%19 = fcmp oge float %17, 8.500000e+01
%20 = zext i1 %19 to i32
%21 = bitcast <4 x i1> %11 to i4
%22 = call i4 @llvm.ctpop.i4(i4 %21)
%23 = zext i4 %22 to i32
%24 = add nuw nsw i32 %23, %20
%25 = icmp ugt i32 %24, 4
br i1 %25, label %26, label %29
26: ; preds = %2
%27 = trunc i64 %3 to i32
%28 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %27)
br label %29
29: ; preds = %26, %2
%30 = fdiv float %18, 5.000000e+00
%31 = fcmp ult float %30, 9.000000e+01
br i1 %31, label %35, label %32
32: ; preds = %29
%33 = trunc i64 %3 to i32
%34 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i32 %33)
br label %35
35: ; preds = %29, %32
%36 = add nuw nsw i64 %3, 1
%37 = icmp eq i64 %36, 4
br i1 %37, label %38, label %2
38: ; preds = %35
ret void
}