#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*/ aver1(float *);
int /*<<< orphan*/ excellent(float **);
int /*<<< orphan*/ fail(float **);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float a[4][5];
  int i, j, k, b, n;
  for (i = 0; i < 4; i++)
    for (j = 0; j < 5; j++)
      scanf("%f", &a[i][j]);
  aver1(*a);
  fail(a);
  excellent(a);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x64(%rbp)
cmpl   $0x4,-0x64(%rbp)
jge    11bb <main+0x7b>
movl   $0x0,-0x68(%rbp)
cmpl   $0x5,-0x68(%rbp)
jge    11a8 <main+0x68>
movslq -0x64(%rbp),%rax
lea    -0x60(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
movslq -0x68(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe6b(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    116a <main+0x2a>
jmp    11ad <main+0x6d>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1159 <main+0x19>
lea    -0x60(%rbp),%rdi
call   1050 <aver1@plt>
lea    -0x60(%rbp),%rdi
call   1030 <fail@plt>
lea    -0x60(%rbp),%rdi
call   1060 <excellent@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x58,%rsp
lea    0xeb2(%rip),%rbx
mov    %rsp,%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x28(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x2c(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x30(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x34(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x38(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x3c(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x40(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x44(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x48(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x4c(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    %r14,%rdi
call   1050 <aver1@plt>
mov    %r14,%rdi
call   1030 <fail@plt>
mov    %r14,%rdi
call   1060 <excellent@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x [5 x float]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
br label %8
8: ; preds = %27, %0
%9 = load i32, i32* %3
%10 = icmp slt i32 %9, 4
br i1 %10, label %11, label %30
11: ; preds = %8
store i32 0, i32* %4
br label %12
12: ; preds = %23, %11
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 5
br i1 %14, label %15, label %26
15: ; preds = %12
%16 = load i32, i32* %3
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %2, i64 0, i64 %17
%19 = load i32, i32* %4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [5 x float], [5 x float]* %18, i64 0, i64 %20
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %21)
br label %23
23: ; preds = %15
%24 = load i32, i32* %4
%25 = add nsw i32 %24, 1
store i32 %25, i32* %4
br label %12
26: ; preds = %12
br label %27
27: ; preds = %26
%28 = load i32, i32* %3
%29 = add nsw i32 %28, 1
store i32 %29, i32* %3
br label %8
30: ; preds = %8
%31 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %2, i64 0, i64 0
%32 = getelementptr inbounds [5 x float], [5 x float]* %31, i64 0, i64 0
%33 = call i32 @aver1(float* %32)
%34 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %2, i64 0, i64 0
%35 = bitcast [5 x float]* %34 to float**
%36 = call i32 @fail(float** %35)
%37 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %2, i64 0, i64 0
%38 = bitcast [5 x float]* %37 to float**
%39 = call i32 @excellent(float** %38)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
define i32 @main() {
%1 = alloca [4 x [5 x float]]
%2 = bitcast [4 x [5 x float]]* %1 to i8*
%3 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 0, i64 0
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%5 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 0, i64 1
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %5)
%7 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 0, i64 2
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %7)
%9 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 0, i64 3
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %9)
%11 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 0, i64 4
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %11)
%13 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 1, i64 0
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %13)
%15 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 1, i64 1
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %15)
%17 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 1, i64 2
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %17)
%19 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 1, i64 3
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %19)
%21 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 1, i64 4
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %21)
%23 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 2, i64 0
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %23)
%25 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 2, i64 1
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %25)
%27 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 2, i64 2
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %27)
%29 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 2, i64 3
%30 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %29)
%31 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 2, i64 4
%32 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %31)
%33 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 3, i64 0
%34 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %33)
%35 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 3, i64 1
%36 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %35)
%37 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 3, i64 2
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %37)
%39 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 3, i64 3
%40 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %39)
%41 = getelementptr inbounds [4 x [5 x float]], [4 x [5 x float]]* %1, i64 0, i64 3, i64 4
%42 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %41)
%43 = call i32 @aver1(float* %3)
%44 = bitcast [4 x [5 x float]]* %1 to float**
%45 = call i32 @fail(float** %44)
%46 = call i32 @excellent(float** %44)
ret i32 0
}