#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 /*<<< orphan*/ scanf(char *, float *);
void main() {
  int i, j;
  float score[5 + 1][4 + 1] = {0};
  for (i = 0; i < 5; i++)
    for (j = 0; j < 4; j++) {
      printf("input the mark of %dth courseof %dth student: ", j + 1, i + 1);
      scanf("%f", &score[i][j]);
    }
  for (i = 0; i < 5; i++) {
    for (j = 0; j < 4; j++) {
      score[i][4] += score[i][j];
      score[5][j] += score[i][j];
    }
    score[i][4] /= 4;
  }
  for (j = 0; j < 4; j++)
    score[5][j] /= 5;
  printf(" NO.       C1      C2      C3      C4     AVER\n");
  for (i = 0; i < 5; i++) {
    printf("STU%d\t", i + 1);
    for (j = 0; j < 4 + 1; j++)
      printf("%6.1f\t", score[i][j]);
    printf("\n");
  }
  printf("---------------------------------------");
  printf("\nAVER_C  ");
  for (j = 0; j < 4; j++)
    printf("%6.1f\t", score[5][j]);
  printf("\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x78,%edx
call   1040 <memset@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x5,-0x4(%rbp)
jge    11ce <main+0x9e>
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    11bb <main+0x8b>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    -0x4(%rbp),%edx
add    $0x1,%edx
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x4(%rbp),%rax
lea    -0x80(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
movslq -0x8(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe8f(%rip),%rdi
call   1050 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1163 <main+0x33>
jmp    11c0 <main+0x90>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1152 <main+0x22>
movl   $0x0,-0x4(%rbp)
cmpl   $0x5,-0x4(%rbp)
jge    128a <main+0x15a>
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    1257 <main+0x127>
movslq -0x4(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movslq -0x4(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
addss  0x10(%rax),%xmm0
movss  %xmm0,0x10(%rax)
movslq -0x4(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movslq -0x8(%rbp),%rax
addss  -0x1c(%rbp,%rax,4),%xmm0
movss  %xmm0,-0x1c(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11e6 <main+0xb6>
movslq -0x4(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movss  0x10(%rax),%xmm0
movss  0xd91(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,0x10(%rax)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11d5 <main+0xa5>
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    12c5 <main+0x195>
movslq -0x8(%rbp),%rax
movss  -0x1c(%rbp,%rax,4),%xmm0
movss  0xd53(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1291 <main+0x161>
lea    0xd6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x5,-0x4(%rbp)
jge    135d <main+0x22d>
mov    -0x4(%rbp),%esi
add    $0x1,%esi
lea    0xd79(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    1341 <main+0x211>
movslq -0x4(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd45(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12ff <main+0x1cf>
lea    0xd20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    12da <main+0x1aa>
lea    0xd14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    13b4 <main+0x284>
movslq -0x8(%rbp),%rax
movss  -0x1c(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcd2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1380 <main+0x250>
lea    0xcad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
movq   $0x0,0x70(%rsp)
lea    0x40(%rsp),%rbx
lea    0x30(%rsp),%rbp
lea    0x20(%rsp),%r12
lea    0xe8e(%rip),%r14
mov    $0x1,%r13d
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe9c(%rip),%r15
mov    %rsp,%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x18(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1c(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x3,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x28(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
mov    $0x3,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x2c(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
mov    $0x3,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x3,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x34(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x3c(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x44(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x48(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
lea    0x50(%rsp),%rsi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x54(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x58(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x5c(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
movups 0x64(%rsp),%xmm0
movaps (%rsp),%xmm2
movss  0x10(%rsp),%xmm1
addss  %xmm2,%xmm1
addps  %xmm2,%xmm0
movaps %xmm2,%xmm3
shufps $0x55,%xmm2,%xmm3
addss  %xmm1,%xmm3
movaps %xmm2,%xmm1
unpckhpd %xmm2,%xmm1
addss  %xmm3,%xmm1
shufps $0xff,%xmm2,%xmm2
addss  %xmm1,%xmm2
movups %xmm0,0x64(%rsp)
movss  0xb94(%rip),%xmm1
mulss  %xmm1,%xmm2
movss  %xmm2,0x10(%rsp)
movups 0x14(%rsp),%xmm2
movss  0x24(%rsp),%xmm3
addss  %xmm2,%xmm3
addps  %xmm2,%xmm0
movaps %xmm2,%xmm4
shufps $0x55,%xmm2,%xmm4
addss  %xmm3,%xmm4
movaps %xmm2,%xmm3
unpckhpd %xmm2,%xmm3
addss  %xmm4,%xmm3
shufps $0xff,%xmm2,%xmm2
addss  %xmm3,%xmm2
mulss  %xmm1,%xmm2
movss  %xmm2,0x24(%rsp)
movups 0x28(%rsp),%xmm2
movss  0x38(%rsp),%xmm3
addss  %xmm2,%xmm3
addps  %xmm2,%xmm0
movaps %xmm2,%xmm4
shufps $0x55,%xmm2,%xmm4
addss  %xmm3,%xmm4
movaps %xmm2,%xmm3
unpckhpd %xmm2,%xmm3
addss  %xmm4,%xmm3
shufps $0xff,%xmm2,%xmm2
addss  %xmm3,%xmm2
mulss  %xmm1,%xmm2
movss  %xmm2,0x38(%rsp)
movups 0x3c(%rsp),%xmm2
movss  0x4c(%rsp),%xmm3
addss  %xmm2,%xmm3
addps  %xmm2,%xmm0
movaps %xmm2,%xmm4
shufps $0x55,%xmm2,%xmm4
addss  %xmm3,%xmm4
movaps %xmm2,%xmm3
unpckhpd %xmm2,%xmm3
addss  %xmm4,%xmm3
shufps $0xff,%xmm2,%xmm2
addss  %xmm3,%xmm2
movups %xmm0,0x64(%rsp)
mulss  %xmm1,%xmm2
movss  %xmm2,0x4c(%rsp)
movaps 0x50(%rsp),%xmm2
movss  0x60(%rsp),%xmm3
addss  %xmm2,%xmm3
addps  %xmm2,%xmm0
movaps %xmm2,%xmm4
shufps $0x55,%xmm2,%xmm4
addss  %xmm3,%xmm4
movaps %xmm2,%xmm3
unpckhpd %xmm2,%xmm3
addss  %xmm4,%xmm3
shufps $0xff,%xmm2,%xmm2
addss  %xmm3,%xmm2
mulss  %xmm1,%xmm2
movss  %xmm2,0x60(%rsp)
divps  0xaa6(%rip),%xmm0
movups %xmm0,0x64(%rsp)
lea    0xb1c(%rip),%rdi
call   1040 <puts@plt>
mov    $0x10,%ebx
lea    0xacb(%rip),%r14
lea    0xacb(%rip),%rbp
xchg   %ax,%ax
mov    %r14,%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movss  -0x10(%rsp,%rbx,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0xc(%rsp,%rbx,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x8(%rsp,%rbx,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x4(%rsp,%rbx,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp,%rbx,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x14,%rbx
add    $0x1,%r13d
cmp    $0x74,%rbx
jne    1590 <main+0x450>
lea    0xa3d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xa57(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movss  0x64(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xa10(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x68(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x6c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x70(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [47 x i8] c"input the mark of %dth courseof %dth student: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [48 x i8] c" NO. C1 C2 C3 C4 AVER\0A\00"
@.str.3 = [7 x i8] c"STU%d\09\00"
@.str.4 = [7 x i8] c"%6.1f\09\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [40 x i8] c"---------------------------------------\00"
@.str.7 = [10 x i8] c"\0AAVER_C \00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [6 x [5 x float]]
%4 = bitcast [6 x [5 x float]]* %3 to i8*
store i32 0, i32* %1
br label %5
5: ; preds = %29, %0
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 5
br i1 %7, label %8, label %32
8: ; preds = %5
store i32 0, i32* %2
br label %9
9: ; preds = %25, %8
%10 = load i32, i32* %2
%11 = icmp slt i32 %10, 4
br i1 %11, label %12, label %28
12: ; preds = %9
%13 = load i32, i32* %2
%14 = add nsw i32 %13, 1
%15 = load i32, i32* %1
%16 = add nsw i32 %15, 1
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %16)
%18 = load i32, i32* %1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %3, i64 0, i64 %19
%21 = load i32, i32* %2
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [5 x float], [5 x float]* %20, i64 0, i64 %22
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %23)
br label %25
25: ; preds = %12
%26 = load i32, i32* %2
%27 = add nsw i32 %26, 1
store i32 %27, i32* %2
br label %9
28: ; preds = %9
br label %29
29: ; preds = %28
%30 = load i32, i32* %1
%31 = add nsw i32 %30, 1
store i32 %31, i32* %1
br label %5
32: ; preds = %5
store i32 0, i32* %1
br label %33
33: ; preds = %77, %32
%34 = load i32, i32* %1
%35 = icmp slt i32 %34, 5
br i1 %35, label %36, label %80
36: ; preds = %33
store i32 0, i32* %2
br label %37
37: ; preds = %67, %36
%38 = load i32, i32* %2
%39 = icmp slt i32 %38, 4
br i1 %39, label %40, label %70
40: ; preds = %37
%41 = load i32, i32* %1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %3, i64 0, i64 %42
%44 = load i32, i32* %2
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [5 x float], [5 x float]* %43, i64 0, i64 %45
%47 = load float, float* %46
%48 = load i32, i32* %1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %3, i64 0, i64 %49
%51 = getelementptr inbounds [5 x float], [5 x float]* %50, i64 0, i64 4
%52 = load float, float* %51
%53 = fadd float %52, %47
store float %53, float* %51
%54 = load i32, i32* %1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %3, i64 0, i64 %55
%57 = load i32, i32* %2
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [5 x float], [5 x float]* %56, i64 0, i64 %58
%60 = load float, float* %59
%61 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %3, i64 0, i64 5
%62 = load i32, i32* %2
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [5 x float], [5 x float]* %61, i64 0, i64 %63
%65 = load float, float* %64
%66 = fadd float %65, %60
store float %66, float* %64
br label %67
67: ; preds = %40
%68 = load i32, i32* %2
%69 = add nsw i32 %68, 1
store i32 %69, i32* %2
br label %37
70: ; preds = %37
%71 = load i32, i32* %1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %3, i64 0, i64 %72
%74 = getelementptr inbounds [5 x float], [5 x float]* %73, i64 0, i64 4
%75 = load float, float* %74
%76 = fdiv float %75, 4.000000e+00
store float %76, float* %74
br label %77
77: ; preds = %70
%78 = load i32, i32* %1
%79 = add nsw i32 %78, 1
store i32 %79, i32* %1
br label %33
80: ; preds = %33
store i32 0, i32* %2
br label %81
81: ; preds = %91, %80
%82 = load i32, i32* %2
%83 = icmp slt i32 %82, 4
br i1 %83, label %84, label %94
84: ; preds = %81
%85 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %3, i64 0, i64 5
%86 = load i32, i32* %2
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [5 x float], [5 x float]* %85, i64 0, i64 %87
%89 = load float, float* %88
%90 = fdiv float %89, 5.000000e+00
store float %90, float* %88
br label %91
91: ; preds = %84
%92 = load i32, i32* %2
%93 = add nsw i32 %92, 1
store i32 %93, i32* %2
br label %81
94: ; preds = %81
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %1
br label %96
96: ; preds = %121, %94
%97 = load i32, i32* %1
%98 = icmp slt i32 %97, 5
br i1 %98, label %99, label %124
99: ; preds = %96
%100 = load i32, i32* %1
%101 = add nsw i32 %100, 1
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %101)
store i32 0, i32* %2
br label %103
103: ; preds = %116, %99
%104 = load i32, i32* %2
%105 = icmp slt i32 %104, 5
br i1 %105, label %106, label %119
106: ; preds = %103
%107 = load i32, i32* %1
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %3, i64 0, i64 %108
%110 = load i32, i32* %2
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [5 x float], [5 x float]* %109, i64 0, i64 %111
%113 = load float, float* %112
%114 = fpext float %113 to double
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %114)
br label %116
116: ; preds = %106
%117 = load i32, i32* %2
%118 = add nsw i32 %117, 1
store i32 %118, i32* %2
br label %103
119: ; preds = %103
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %121
121: ; preds = %119
%122 = load i32, i32* %1
%123 = add nsw i32 %122, 1
store i32 %123, i32* %1
br label %96
124: ; preds = %96
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %2
br label %127
127: ; preds = %138, %124
%128 = load i32, i32* %2
%129 = icmp slt i32 %128, 4
br i1 %129, label %130, label %141
130: ; preds = %127
%131 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %3, i64 0, i64 5
%132 = load i32, i32* %2
%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 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %136)
br label %138
138: ; preds = %130
%139 = load i32, i32* %2
%140 = add nsw i32 %139, 1
store i32 %140, i32* %2
br label %127
141: ; preds = %127
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [47 x i8] c"input the mark of %dth courseof %dth student: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.3 = [7 x i8] c"STU%d\09\00"
@.str.4 = [7 x i8] c"%6.1f\09\00"
@.str.6 = [40 x i8] c"---------------------------------------\00"
@.str.7 = [10 x i8] c"\0AAVER_C \00"
@str = [47 x i8] c" NO. C1 C2 C3 C4 AVER\00"
define void @main() {
%1 = alloca [6 x [5 x float]]
%2 = bitcast [6 x [5 x float]]* %1 to i8*
%3 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 1, i32 1)
%4 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, 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 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 2, i32 1)
%7 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 0, i64 1
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %7)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 3, i32 1)
%10 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 0, i64 2
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %10)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 4, i32 1)
%13 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 0, i64 3
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %13)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 1, i32 2)
%16 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 1, i64 0
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %16)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 2, i32 2)
%19 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 1, i64 1
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %19)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 3, i32 2)
%22 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 1, i64 2
%23 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %22)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 4, i32 2)
%25 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 1, i64 3
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %25)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 1, i32 3)
%28 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 2, i64 0
%29 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %28)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 2, i32 3)
%31 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 2, i64 1
%32 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %31)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 3, i32 3)
%34 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 2, i64 2
%35 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %34)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 4, i32 3)
%37 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 2, i64 3
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %37)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 1, i32 4)
%40 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 3, i64 0
%41 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %40)
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 2, i32 4)
%43 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 3, i64 1
%44 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %43)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 3, i32 4)
%46 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 3, i64 2
%47 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %46)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 4, i32 4)
%49 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 3, i64 3
%50 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %49)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 1, i32 5)
%52 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 4, i64 0
%53 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %52)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 2, i32 5)
%55 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 4, i64 1
%56 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %55)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 3, i32 5)
%58 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 4, i64 2
%59 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %58)
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 4, i32 5)
%61 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 4, i64 3
%62 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %61)
%63 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 5, i64 0
%64 = bitcast float* %63 to <4 x float>*
%65 = load <4 x float>, <4 x float>* %64
%66 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 0, i64 4
%67 = load float, float* %66
%68 = bitcast [6 x [5 x float]]* %1 to <4 x float>*
%69 = load <4 x float>, <4 x float>* %68
%70 = extractelement <4 x float> %69, i64 0
%71 = fadd float %70, %67
%72 = fadd <4 x float> %69, %65
%73 = extractelement <4 x float> %69, i64 1
%74 = fadd float %73, %71
%75 = extractelement <4 x float> %69, i64 2
%76 = fadd float %75, %74
%77 = extractelement <4 x float> %69, i64 3
%78 = fadd float %77, %76
%79 = bitcast float* %63 to <4 x float>*
store <4 x float> %72, <4 x float>* %79
%80 = fmul float %78, 2.500000e-01
store float %80, float* %66
%81 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 1, i64 4
%82 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 1, i64 0
%83 = load float, float* %81
%84 = bitcast float* %82 to <4 x float>*
%85 = load <4 x float>, <4 x float>* %84
%86 = extractelement <4 x float> %85, i64 0
%87 = fadd float %86, %83
%88 = fadd <4 x float> %85, %72
%89 = extractelement <4 x float> %85, i64 1
%90 = fadd float %89, %87
%91 = extractelement <4 x float> %85, i64 2
%92 = fadd float %91, %90
%93 = extractelement <4 x float> %85, i64 3
%94 = fadd float %93, %92
%95 = bitcast float* %63 to <4 x float>*
store <4 x float> %88, <4 x float>* %95
%96 = fmul float %94, 2.500000e-01
store float %96, float* %81
%97 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 2, i64 4
%98 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 2, i64 0
%99 = load float, float* %97
%100 = bitcast float* %98 to <4 x float>*
%101 = load <4 x float>, <4 x float>* %100
%102 = extractelement <4 x float> %101, i64 0
%103 = fadd float %102, %99
%104 = fadd <4 x float> %101, %88
%105 = extractelement <4 x float> %101, i64 1
%106 = fadd float %105, %103
%107 = extractelement <4 x float> %101, i64 2
%108 = fadd float %107, %106
%109 = extractelement <4 x float> %101, i64 3
%110 = fadd float %109, %108
%111 = bitcast float* %63 to <4 x float>*
store <4 x float> %104, <4 x float>* %111
%112 = fmul float %110, 2.500000e-01
store float %112, float* %97
%113 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 3, i64 4
%114 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 3, i64 0
%115 = load float, float* %113
%116 = bitcast float* %114 to <4 x float>*
%117 = load <4 x float>, <4 x float>* %116
%118 = extractelement <4 x float> %117, i64 0
%119 = fadd float %118, %115
%120 = fadd <4 x float> %117, %104
%121 = extractelement <4 x float> %117, i64 1
%122 = fadd float %121, %119
%123 = extractelement <4 x float> %117, i64 2
%124 = fadd float %123, %122
%125 = extractelement <4 x float> %117, i64 3
%126 = fadd float %125, %124
%127 = bitcast float* %63 to <4 x float>*
store <4 x float> %120, <4 x float>* %127
%128 = fmul float %126, 2.500000e-01
store float %128, float* %113
%129 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 4, i64 4
%130 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 4, i64 0
%131 = load float, float* %129
%132 = bitcast float* %130 to <4 x float>*
%133 = load <4 x float>, <4 x float>* %132
%134 = extractelement <4 x float> %133, i64 0
%135 = fadd float %134, %131
%136 = fadd <4 x float> %133, %120
%137 = extractelement <4 x float> %133, i64 1
%138 = fadd float %137, %135
%139 = extractelement <4 x float> %133, i64 2
%140 = fadd float %139, %138
%141 = extractelement <4 x float> %133, i64 3
%142 = fadd float %141, %140
%143 = bitcast float* %63 to <4 x float>*
store <4 x float> %136, <4 x float>* %143
%144 = fmul float %142, 2.500000e-01
store float %144, float* %129
%145 = fdiv <4 x float> %136, <float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00>
%146 = bitcast float* %63 to <4 x float>*
store <4 x float> %145, <4 x float>* %146
%147 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str, i64 0, i64 0))
br label %148
148: ; preds = %0, %148
%149 = phi i64 [ 0, %0 ], [ %150, %148 ]
%150 = add nuw nsw i64 %149, 1
%151 = trunc i64 %150 to i32
%152 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %151)
%153 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %149, i64 0
%154 = load float, float* %153
%155 = fpext float %154 to double
%156 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %155)
%157 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %149, i64 1
%158 = load float, float* %157
%159 = fpext float %158 to double
%160 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %159)
%161 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %149, i64 2
%162 = load float, float* %161
%163 = fpext float %162 to double
%164 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %163)
%165 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %149, i64 3
%166 = load float, float* %165
%167 = fpext float %166 to double
%168 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %167)
%169 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 %149, i64 4
%170 = load float, float* %169
%171 = fpext float %170 to double
%172 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %171)
%173 = call i32 @putchar(i32 10)
%174 = icmp eq i64 %150, 5
br i1 %174, label %175, label %148
175: ; preds = %148
%176 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 5, i64 3
%177 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 5, i64 2
%178 = getelementptr inbounds [6 x [5 x float]], [6 x [5 x float]]* %1, i64 0, i64 5, i64 1
%179 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%180 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%181 = load float, float* %63
%182 = fpext float %181 to double
%183 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %182)
%184 = load float, float* %178
%185 = fpext float %184 to double
%186 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %185)
%187 = load float, float* %177
%188 = fpext float %187 to double
%189 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %188)
%190 = load float, float* %176
%191 = fpext float %190 to double
%192 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %191)
%193 = call i32 @putchar(i32 10)
ret void
}