#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 *, int *, int *, int *, int *, int *);
int main(void) {
  int a[5][5];
  int sum = 0;
  int low;
  int high;
  for (int i = 0; i < 5; i += 1) {
    printf("Enter student %d's 5 quiz scores: ", i + 1);
    scanf("%d %d %d %d %d", &a[i][0], &a[i][1], &a[i][2], &a[i][3], &a[i][4]);
  }
  printf("Student quiz averages:\n");
  for (int i = 0; i < 5; i += 1) {
    sum = 0;
    for (int j = 0; j < 5; j += 1) {
      sum += a[i][j];
    }
    printf("Student %d's Total: %d Average: %d \n", i, sum, sum / 5);
  }
  printf("Quiz stats:\n");
  for (int j = 0; j < 5; j += 1) {
    sum = 0;
    high = 0;
    low = 101;
    for (int i = 0; i < 5; i += 1) {
      sum += a[i][j];
      if (a[i][j] > high) {
        high = a[i][j];
      }
      if (a[i][j] < low) {
        low = a[i][j];
      }
    }
    printf("Quiz %d: High: %d Low: %d Avg: %d\n", j, high, low, sum / 5);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x74(%rbp)
movl   $0x0,-0x80(%rbp)
cmpl   $0x5,-0x80(%rbp)
jge    11d3 <main+0xb3>
mov    -0x80(%rbp),%esi
add    $0x1,%esi
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x80(%rbp),%rax
lea    -0x70(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
movslq -0x80(%rbp),%rax
lea    -0x70(%rbp),%rdx
imul   $0x14,%rax,%rax
add    %rax,%rdx
add    $0x4,%rdx
movslq -0x80(%rbp),%rax
lea    -0x70(%rbp),%rcx
imul   $0x14,%rax,%rax
add    %rax,%rcx
add    $0x8,%rcx
movslq -0x80(%rbp),%rax
lea    -0x70(%rbp),%r8
imul   $0x14,%rax,%rax
add    %rax,%r8
add    $0xc,%r8
movslq -0x80(%rbp),%rax
lea    -0x70(%rbp),%r9
imul   $0x14,%rax,%rax
add    %rax,%r9
add    $0x10,%r9
lea    0xe63(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x80(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x80(%rbp)
jmp    1140 <main+0x20>
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x84(%rbp)
cmpl   $0x5,-0x84(%rbp)
jge    1290 <main+0x170>
movl   $0x0,-0x74(%rbp)
movl   $0x0,-0x88(%rbp)
cmpl   $0x5,-0x88(%rbp)
jge    124c <main+0x12c>
movslq -0x84(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    -0x74(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    1209 <main+0xe9>
mov    -0x84(%rbp),%esi
mov    -0x74(%rbp),%eax
mov    %eax,-0x94(%rbp)
mov    -0x74(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    -0x94(%rbp),%edx
mov    %eax,%ecx
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    11eb <main+0xcb>
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8c(%rbp)
cmpl   $0x5,-0x8c(%rbp)
jge    13ec <main+0x2cc>
movl   $0x0,-0x74(%rbp)
movl   $0x0,-0x7c(%rbp)
movl   $0x65,-0x78(%rbp)
movl   $0x0,-0x90(%rbp)
cmpl   $0x5,-0x90(%rbp)
jge    13a4 <main+0x284>
movslq -0x90(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x8c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    -0x74(%rbp),%eax
mov    %eax,-0x74(%rbp)
movslq -0x90(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x8c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x7c(%rbp),%eax
jle    1347 <main+0x227>
movslq -0x90(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x8c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x7c(%rbp)
movslq -0x90(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x8c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x78(%rbp),%eax
jge    138b <main+0x26b>
movslq -0x90(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x8c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x78(%rbp)
jmp    1390 <main+0x270>
mov    -0x90(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x90(%rbp)
jmp    12d4 <main+0x1b4>
mov    -0x8c(%rbp),%esi
mov    -0x7c(%rbp),%eax
mov    %eax,-0x98(%rbp)
mov    -0x78(%rbp),%ecx
mov    -0x74(%rbp),%eax
mov    $0x5,%edi
cltd
idiv   %edi
mov    -0x98(%rbp),%edx
mov    %eax,%r8d
lea    0xcab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    12a8 <main+0x188>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x68,%rsp
lea    0xec2(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x10(%rsp),%r9
lea    0xebb(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x14(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x1c(%rsp),%rcx
lea    0x20(%rsp),%r8
lea    0x24(%rsp),%r9
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x28(%rsp),%rsi
lea    0x2c(%rsp),%rdx
lea    0x30(%rsp),%rcx
lea    0x34(%rsp),%r8
lea    0x38(%rsp),%r9
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x3c(%rsp),%rsi
lea    0x40(%rsp),%rdx
lea    0x44(%rsp),%rcx
lea    0x48(%rsp),%r8
lea    0x4c(%rsp),%r9
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x50(%rsp),%rsi
lea    0x54(%rsp),%rdx
lea    0x58(%rsp),%rcx
lea    0x5c(%rsp),%r8
lea    0x60(%rsp),%r9
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xe40(%rip),%rdi
call   1030 <puts@plt>
movdqu 0x4(%rsp),%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%eax
add    (%rsp),%eax
movslq %eax,%rdx
imul   $0x66666667,%rdx,%rcx
mov    %rcx,%rax
shr    $0x3f,%rax
sar    $0x21,%rcx
add    %eax,%ecx
lea    0xdb6(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movdqu 0x18(%rsp),%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%eax
add    0x14(%rsp),%eax
movslq %eax,%rdx
imul   $0x66666667,%rdx,%rcx
mov    %rcx,%rax
shr    $0x3f,%rax
sar    $0x21,%rcx
add    %eax,%ecx
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movdqu 0x2c(%rsp),%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%eax
add    0x28(%rsp),%eax
movslq %eax,%rdx
imul   $0x66666667,%rdx,%rcx
mov    %rcx,%rax
shr    $0x3f,%rax
sar    $0x21,%rcx
add    %eax,%ecx
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movdqa 0x40(%rsp),%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%eax
add    0x3c(%rsp),%eax
movslq %eax,%rdx
imul   $0x66666667,%rdx,%rcx
mov    %rcx,%rax
shr    $0x3f,%rax
sar    $0x21,%rcx
add    %eax,%ecx
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movdqu 0x54(%rsp),%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%eax
add    0x50(%rsp),%eax
movslq %eax,%rdx
imul   $0x66666667,%rdx,%rcx
mov    %rcx,%rax
shr    $0x3f,%rax
sar    $0x21,%rcx
add    %eax,%ecx
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcea(%rip),%rdi
call   1030 <puts@plt>
lea    0xca4(%rip),%r14
xor    %ebx,%ebx
jmp    13ed <main+0x2bd>
nopw   0x0(%rax,%rax,1)
cltq
imul   $0x66666667,%rax,%r8
mov    %r8,%rax
shr    $0x3f,%rax
sar    $0x21,%r8
add    %eax,%r8d
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    $0x5,%rbx
je     1452 <main+0x322>
mov    (%rsp,%rbx,4),%eax
mov    0x14(%rsp,%rbx,4),%ecx
test   %eax,%eax
mov    $0x0,%edi
cmovns %eax,%edi
cmp    $0x65,%eax
mov    $0x65,%esi
cmovl  %eax,%esi
add    %ecx,%eax
cmp    %edi,%ecx
cmovg  %ecx,%edi
cmp    %esi,%ecx
cmovl  %ecx,%esi
mov    0x28(%rsp,%rbx,4),%ecx
add    %ecx,%eax
cmp    %edi,%ecx
cmovg  %ecx,%edi
cmp    %esi,%ecx
cmovl  %ecx,%esi
mov    0x3c(%rsp,%rbx,4),%ecx
add    %ecx,%eax
cmp    %edi,%ecx
cmovg  %ecx,%edi
cmp    %esi,%ecx
cmovl  %ecx,%esi
mov    0x50(%rsp,%rbx,4),%ecx
mov    %ecx,%edx
cmp    %edi,%ecx
jg     1441 <main+0x311>
mov    %edi,%edx
add    %ecx,%eax
cmp    %esi,%ecx
jl     13c0 <main+0x290>
mov    %esi,%ecx
jmp    13c0 <main+0x290>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [35 x i8] c"Enter student %d's 5 quiz scores: \00"
@.str.1 = [15 x i8] c"%d %d %d %d %d\00"
@.str.2 = [24 x i8] c"Student quiz averages:\0A\00"
@.str.3 = [37 x i8] c"Student %d's Total: %d Average: %d \0A\00"
@.str.4 = [13 x i8] c"Quiz stats:\0A\00"
@.str.5 = [35 x i8] c"Quiz %d: High: %d Low: %d Avg: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x [5 x i32]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
store i32 0, i32* %6
br label %11
11: ; preds = %39, %0
%12 = load i32, i32* %6
%13 = icmp slt i32 %12, 5
br i1 %13, label %14, label %42
14: ; preds = %11
%15 = load i32, i32* %6
%16 = add nsw i32 %15, 1
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %16)
%18 = load i32, i32* %6
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %19
%21 = getelementptr inbounds [5 x i32], [5 x i32]* %20, i64 0, i64 0
%22 = load i32, i32* %6
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %23
%25 = getelementptr inbounds [5 x i32], [5 x i32]* %24, i64 0, i64 1
%26 = load i32, i32* %6
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %27
%29 = getelementptr inbounds [5 x i32], [5 x i32]* %28, i64 0, i64 2
%30 = load i32, i32* %6
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %31
%33 = getelementptr inbounds [5 x i32], [5 x i32]* %32, i64 0, i64 3
%34 = load i32, i32* %6
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %35
%37 = getelementptr inbounds [5 x i32], [5 x i32]* %36, i64 0, i64 4
%38 = call i32 @scanf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32* %21, i32* %25, i32* %29, i32* %33, i32* %37)
br label %39
39: ; preds = %14
%40 = load i32, i32* %6
%41 = add nsw i32 %40, 1
store i32 %41, i32* %6
br label %11
42: ; preds = %11
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %7
br label %44
44: ; preds = %70, %42
%45 = load i32, i32* %7
%46 = icmp slt i32 %45, 5
br i1 %46, label %47, label %73
47: ; preds = %44
store i32 0, i32* %3
store i32 0, i32* %8
br label %48
48: ; preds = %61, %47
%49 = load i32, i32* %8
%50 = icmp slt i32 %49, 5
br i1 %50, label %51, label %64
51: ; preds = %48
%52 = load i32, i32* %7
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %53
%55 = load i32, i32* %8
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [5 x i32], [5 x i32]* %54, i64 0, i64 %56
%58 = load i32, i32* %57
%59 = load i32, i32* %3
%60 = add nsw i32 %59, %58
store i32 %60, i32* %3
br label %61
61: ; preds = %51
%62 = load i32, i32* %8
%63 = add nsw i32 %62, 1
store i32 %63, i32* %8
br label %48
64: ; preds = %48
%65 = load i32, i32* %7
%66 = load i32, i32* %3
%67 = load i32, i32* %3
%68 = sdiv i32 %67, 5
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %65, i32 %66, i32 %68)
br label %70
70: ; preds = %64
%71 = load i32, i32* %7
%72 = add nsw i32 %71, 1
store i32 %72, i32* %7
br label %44
73: ; preds = %44
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %9
br label %75
75: ; preds = %138, %73
%76 = load i32, i32* %9
%77 = icmp slt i32 %76, 5
br i1 %77, label %78, label %141
78: ; preds = %75
store i32 0, i32* %3
store i32 0, i32* %5
store i32 101, i32* %4
store i32 0, i32* %10
br label %79
79: ; preds = %128, %78
%80 = load i32, i32* %10
%81 = icmp slt i32 %80, 5
br i1 %81, label %82, label %131
82: ; preds = %79
%83 = load i32, i32* %10
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %84
%86 = load i32, i32* %9
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [5 x i32], [5 x i32]* %85, i64 0, i64 %87
%89 = load i32, i32* %88
%90 = load i32, i32* %3
%91 = add nsw i32 %90, %89
store i32 %91, i32* %3
%92 = load i32, i32* %10
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %93
%95 = load i32, i32* %9
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [5 x i32], [5 x i32]* %94, i64 0, i64 %96
%98 = load i32, i32* %97
%99 = load i32, i32* %5
%100 = icmp sgt i32 %98, %99
br i1 %100, label %101, label %109
101: ; preds = %82
%102 = load i32, i32* %10
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %103
%105 = load i32, i32* %9
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [5 x i32], [5 x i32]* %104, i64 0, i64 %106
%108 = load i32, i32* %107
store i32 %108, i32* %5
br label %109
109: ; preds = %101, %82
%110 = load i32, i32* %10
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %111
%113 = load i32, i32* %9
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [5 x i32], [5 x i32]* %112, i64 0, i64 %114
%116 = load i32, i32* %115
%117 = load i32, i32* %4
%118 = icmp slt i32 %116, %117
br i1 %118, label %119, label %127
119: ; preds = %109
%120 = load i32, i32* %10
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %121
%123 = load i32, i32* %9
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [5 x i32], [5 x i32]* %122, i64 0, i64 %124
%126 = load i32, i32* %125
store i32 %126, i32* %4
br label %127
127: ; preds = %119, %109
br label %128
128: ; preds = %127
%129 = load i32, i32* %10
%130 = add nsw i32 %129, 1
store i32 %130, i32* %10
br label %79
131: ; preds = %79
%132 = load i32, i32* %9
%133 = load i32, i32* %5
%134 = load i32, i32* %4
%135 = load i32, i32* %3
%136 = sdiv i32 %135, 5
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %132, i32 %133, i32 %134, i32 %136)
br label %138
138: ; preds = %131
%139 = load i32, i32* %9
%140 = add nsw i32 %139, 1
store i32 %140, i32* %9
br label %75
141: ; preds = %75
ret i32 0
}

LLVM IR (-O2):
@.str = [35 x i8] c"Enter student %d's 5 quiz scores: \00"
@.str.1 = [15 x i8] c"%d %d %d %d %d\00"
@.str.3 = [37 x i8] c"Student %d's Total: %d Average: %d \0A\00"
@.str.5 = [35 x i8] c"Quiz %d: High: %d Low: %d Avg: %d\0A\00"
@str = [23 x i8] c"Student quiz averages:\00"
@str.6 = [12 x i8] c"Quiz stats:\00"
define i32 @main() {
%1 = alloca [5 x [5 x i32]]
%2 = bitcast [5 x [5 x i32]]* %1 to i8*
%3 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 0, i64 0
%5 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 0, i64 1
%6 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 0, i64 2
%7 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 0, i64 3
%8 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 0, i64 4
%9 = call i32 @scanf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32* %4, i32* %5, i32* %6, i32* %7, i32* %8)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 2)
%11 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 1, i64 0
%12 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 1, i64 1
%13 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 1, i64 2
%14 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 1, i64 3
%15 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 1, i64 4
%16 = call i32 @scanf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32* %11, i32* %12, i32* %13, i32* %14, i32* %15)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 3)
%18 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 2, i64 0
%19 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 2, i64 1
%20 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 2, i64 2
%21 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 2, i64 3
%22 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 2, i64 4
%23 = call i32 @scanf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32* %18, i32* %19, i32* %20, i32* %21, i32* %22)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 4)
%25 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 3, i64 0
%26 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 3, i64 1
%27 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 3, i64 2
%28 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 3, i64 3
%29 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 3, i64 4
%30 = call i32 @scanf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32* %25, i32* %26, i32* %27, i32* %28, i32* %29)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 5)
%32 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 4, i64 0
%33 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 4, i64 1
%34 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 4, i64 2
%35 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 4, i64 3
%36 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 4, i64 4
%37 = call i32 @scanf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32* %32, i32* %33, i32* %34, i32* %35, i32* %36)
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%39 = load i32, i32* %4
%40 = bitcast i32* %5 to <4 x i32>*
%41 = load <4 x i32>, <4 x i32>* %40
%42 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %41)
%43 = add nsw i32 %42, %39
%44 = sdiv i32 %43, 5
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 0, i32 %43, i32 %44)
%46 = load i32, i32* %11
%47 = bitcast i32* %12 to <4 x i32>*
%48 = load <4 x i32>, <4 x i32>* %47
%49 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %48)
%50 = add nsw i32 %49, %46
%51 = sdiv i32 %50, 5
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 %50, i32 %51)
%53 = load i32, i32* %18
%54 = bitcast i32* %19 to <4 x i32>*
%55 = load <4 x i32>, <4 x i32>* %54
%56 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %55)
%57 = add nsw i32 %56, %53
%58 = sdiv i32 %57, 5
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 2, i32 %57, i32 %58)
%60 = load i32, i32* %25
%61 = bitcast i32* %26 to <4 x i32>*
%62 = load <4 x i32>, <4 x i32>* %61
%63 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %62)
%64 = add nsw i32 %63, %60
%65 = sdiv i32 %64, 5
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 3, i32 %64, i32 %65)
%67 = load i32, i32* %32
%68 = bitcast i32* %33 to <4 x i32>*
%69 = load <4 x i32>, <4 x i32>* %68
%70 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %69)
%71 = add nsw i32 %70, %67
%72 = sdiv i32 %71, 5
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 4, i32 %71, i32 %72)
%74 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.6, i64 0, i64 0))
br label %75
75: ; preds = %0, %75
%76 = phi i64 [ 0, %0 ], [ %114, %75 ]
%77 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 0, i64 %76
%78 = load i32, i32* %77
%79 = icmp sgt i32 %78, 0
%80 = select i1 %79, i32 %78, i32 0
%81 = icmp slt i32 %78, 101
%82 = select i1 %81, i32 %78, i32 101
%83 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 1, i64 %76
%84 = load i32, i32* %83
%85 = add nsw i32 %84, %78
%86 = icmp sgt i32 %84, %80
%87 = select i1 %86, i32 %84, i32 %80
%88 = icmp slt i32 %84, %82
%89 = select i1 %88, i32 %84, i32 %82
%90 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 2, i64 %76
%91 = load i32, i32* %90
%92 = add nsw i32 %91, %85
%93 = icmp sgt i32 %91, %87
%94 = select i1 %93, i32 %91, i32 %87
%95 = icmp slt i32 %91, %89
%96 = select i1 %95, i32 %91, i32 %89
%97 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 3, i64 %76
%98 = load i32, i32* %97
%99 = add nsw i32 %98, %92
%100 = icmp sgt i32 %98, %94
%101 = select i1 %100, i32 %98, i32 %94
%102 = icmp slt i32 %98, %96
%103 = select i1 %102, i32 %98, i32 %96
%104 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 4, i64 %76
%105 = load i32, i32* %104
%106 = add nsw i32 %105, %99
%107 = icmp sgt i32 %105, %101
%108 = select i1 %107, i32 %105, i32 %101
%109 = icmp slt i32 %105, %103
%110 = select i1 %109, i32 %105, i32 %103
%111 = sdiv i32 %106, 5
%112 = trunc i64 %76 to i32
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %112, i32 %108, i32 %110, i32 %111)
%114 = add nuw nsw i64 %76, 1
%115 = icmp eq i64 %114, 5
br i1 %115, label %116, label %75
116: ; preds = %75
ret i32 0
}