#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 main() {
  int ids[4], i, id;
  double scores[4], high = 0.0;
  for (i = 0; i < 4; i++) {
    printf("Enter student's id --> \n");
    scanf("%d", &ids[i]);
    printf("Enter student's score --> \n");
    scanf("%lf", &scores[i]);
    if (scores[i] > high)
      high = scores[i];
  }
  printf("High score was %5.1lf by ID : ", high);
  for (i = 0; i < 4; i++) {
    if (scores[i] == high)
      printf("\t %d\n", ids[i]);
  }
  double total = 0.0;
  for (i = 0; i < 4; i++) {
    total += scores[i];
  }
  printf("Average test score = %5.1lf\n", total / 4);
  printf("Enter id of desired student --> ");
  scanf("%d", &id);
  i = 0;
  int found = 0;
  while (!found) {
    if (ids[i] == id)
      found = 1;
    else
      i++;
  }
  printf("Score for student # %d is %5.1lf\n", id, scores[i]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    11d5 <main+0xb5>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x24(%rbp),%rax
lea    -0x20(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x24(%rbp),%rax
lea    -0x50(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
movslq -0x24(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm0
ucomisd -0x58(%rbp),%xmm0
jbe    11c2 <main+0xa2>
movslq -0x24(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    11c7 <main+0xa7>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    113e <main+0x1e>
movsd  -0x58(%rbp),%xmm0
lea    0xe63(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    123d <main+0x11d>
movslq -0x24(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm0
ucomisd -0x58(%rbp),%xmm0
jne    122a <main+0x10a>
jp     122a <main+0x10a>
movslq -0x24(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%esi
lea    0xe40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122f <main+0x10f>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11ef <main+0xcf>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    1278 <main+0x158>
movslq -0x24(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    124c <main+0x12c>
movsd  -0x60(%rbp),%xmm0
movsd  0xd7b(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xdd9(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd75(%rip),%rdi
lea    -0x28(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x64(%rbp)
cmpl   $0x0,-0x64(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    12db <main+0x1bb>
jmp    1306 <main+0x1e6>
movslq -0x24(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%eax
cmp    -0x28(%rbp),%eax
jne    12f8 <main+0x1d8>
movl   $0x1,-0x64(%rbp)
jmp    1301 <main+0x1e1>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12c5 <main+0x1a5>
mov    -0x28(%rbp),%esi
movslq -0x24(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm0
lea    0xd8d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x48,%rsp
lea    0xf52(%rip),%r15
mov    %r15,%rdi
call   1030 <puts@plt>
lea    0xeb7(%rip),%r14
lea    0x10(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xf45(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xe95(%rip),%r12
lea    0x20(%rsp),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
movsd  0x20(%rsp),%xmm1
xorpd  %xmm0,%xmm0
maxsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    %r15,%rdi
call   1030 <puts@plt>
lea    0x14(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x28(%rsp),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
movsd  0x28(%rsp),%xmm0
maxsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r15,%rdi
call   1030 <puts@plt>
lea    0x18(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x30(%rsp),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
movsd  0x30(%rsp),%xmm0
maxsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r15,%rdi
call   1030 <puts@plt>
lea    0x1c(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x38(%rsp),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
movsd  0x38(%rsp),%xmm0
maxsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xdaf(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0x20(%rsp),%xmm0
ucomisd 0x8(%rsp),%xmm0
jne    1289 <main+0x159>
jp     1289 <main+0x159>
mov    0x10(%rsp),%esi
lea    0xdac(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x28(%rsp),%xmm0
ucomisd 0x8(%rsp),%xmm0
jne    12ab <main+0x17b>
jp     12ab <main+0x17b>
mov    0x14(%rsp),%esi
lea    0xd8a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x30(%rsp),%xmm0
ucomisd 0x8(%rsp),%xmm0
jne    12cd <main+0x19d>
jp     12cd <main+0x19d>
mov    0x18(%rsp),%esi
lea    0xd68(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x38(%rsp),%xmm1
ucomisd 0x8(%rsp),%xmm1
jne    12f5 <main+0x1c5>
jp     12f5 <main+0x1c5>
mov    0x1c(%rsp),%esi
lea    0xd46(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x38(%rsp),%xmm1
xorpd  %xmm0,%xmm0
addsd  0x20(%rsp),%xmm0
addsd  0x28(%rsp),%xmm0
addsd  0x30(%rsp),%xmm0
addsd  %xmm1,%xmm0
mulsd  0xce9(%rip),%xmm0
lea    0xd16(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xd25(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcce(%rip),%rdi
lea    0x44(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    $0xffffffffffffffff,%rax
mov    0x44(%rsp),%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rax,%rcx
add    $0x1,%rax
cmp    %esi,0x14(%rsp,%rcx,4)
jne    1360 <main+0x230>
setne  %cl
movzbl %cl,%ecx
add    %ecx,%eax
movsd  0x20(%rsp,%rax,8),%xmm0
lea    0xcf0(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [25 x i8] c"Enter student's id --> \0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [28 x i8] c"Enter student's score --> \0A\00"
@.str.3 = [4 x i8] c"%lf\00"
@.str.4 = [31 x i8] c"High score was %5.1lf by ID : \00"
@.str.5 = [6 x i8] c"\09 %d\0A\00"
@.str.6 = [29 x i8] c"Average test score = %5.1lf\0A\00"
@.str.7 = [33 x i8] c"Enter id of desired student --> \00"
@.str.8 = [34 x i8] c"Score for student # %d is %5.1lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca [4 x double]
%6 = alloca double
%7 = alloca double
%8 = alloca i32
store i32 0, i32* %1
store double 0.000000e+00, double* %6
store i32 0, i32* %3
br label %9
9: ; preds = %35, %0
%10 = load i32, i32* %3
%11 = icmp slt i32 %10, 4
br i1 %11, label %12, label %38
12: ; preds = %9
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 %15
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %16)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%19 = load i32, i32* %3
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 0, i64 %20
%22 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %21)
%23 = load i32, i32* %3
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 0, i64 %24
%26 = load double, double* %25
%27 = load double, double* %6
%28 = fcmp ogt double %26, %27
br i1 %28, label %29, label %34
29: ; preds = %12
%30 = load i32, i32* %3
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 0, i64 %31
%33 = load double, double* %32
store double %33, double* %6
br label %34
34: ; preds = %29, %12
br label %35
35: ; preds = %34
%36 = load i32, i32* %3
%37 = add nsw i32 %36, 1
store i32 %37, i32* %3
br label %9
38: ; preds = %9
%39 = load double, double* %6
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), double %39)
store i32 0, i32* %3
br label %41
41: ; preds = %58, %38
%42 = load i32, i32* %3
%43 = icmp slt i32 %42, 4
br i1 %43, label %44, label %61
44: ; preds = %41
%45 = load i32, i32* %3
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 0, i64 %46
%48 = load double, double* %47
%49 = load double, double* %6
%50 = fcmp oeq double %48, %49
br i1 %50, label %51, label %57
51: ; preds = %44
%52 = load i32, i32* %3
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 %53
%55 = load i32, i32* %54
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %55)
br label %57
57: ; preds = %51, %44
br label %58
58: ; preds = %57
%59 = load i32, i32* %3
%60 = add nsw i32 %59, 1
store i32 %60, i32* %3
br label %41
61: ; preds = %41
store double 0.000000e+00, double* %7
store i32 0, i32* %3
br label %62
62: ; preds = %72, %61
%63 = load i32, i32* %3
%64 = icmp slt i32 %63, 4
br i1 %64, label %65, label %75
65: ; preds = %62
%66 = load i32, i32* %3
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 0, i64 %67
%69 = load double, double* %68
%70 = load double, double* %7
%71 = fadd double %70, %69
store double %71, double* %7
br label %72
72: ; preds = %65
%73 = load i32, i32* %3
%74 = add nsw i32 %73, 1
store i32 %74, i32* %3
br label %62
75: ; preds = %62
%76 = load double, double* %7
%77 = fdiv double %76, 4.000000e+00
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), double %77)
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%80 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
store i32 0, i32* %3
store i32 0, i32* %8
br label %81
81: ; preds = %96, %75
%82 = load i32, i32* %8
%83 = icmp ne i32 %82, 0
%84 = xor i1 %83, true
br i1 %84, label %85, label %97
85: ; preds = %81
%86 = load i32, i32* %3
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 %87
%89 = load i32, i32* %88
%90 = load i32, i32* %4
%91 = icmp eq i32 %89, %90
br i1 %91, label %92, label %93
92: ; preds = %85
store i32 1, i32* %8
br label %96
93: ; preds = %85
%94 = load i32, i32* %3
%95 = add nsw i32 %94, 1
store i32 %95, i32* %3
br label %96
96: ; preds = %93, %92
br label %81
97: ; preds = %81
%98 = load i32, i32* %4
%99 = load i32, i32* %3
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 0, i64 %100
%102 = load double, double* %101
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i32 %98, double %102)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [4 x i8] c"%lf\00"
@.str.4 = [31 x i8] c"High score was %5.1lf by ID : \00"
@.str.5 = [6 x i8] c"\09 %d\0A\00"
@.str.6 = [29 x i8] c"Average test score = %5.1lf\0A\00"
@.str.7 = [33 x i8] c"Enter id of desired student --> \00"
@.str.8 = [34 x i8] c"Score for student # %d is %5.1lf\0A\00"
@str = [24 x i8] c"Enter student's id --> \00"
@str.9 = [27 x i8] c"Enter student's score --> \00"
define i32 @main() {
%1 = alloca [4 x i32]
%2 = alloca i32
%3 = alloca [4 x double]
%4 = bitcast [4 x i32]* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast [4 x double]* %3 to i8*
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%8 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 0, i64 0
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.9, i64 0, i64 0))
%11 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 0
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %11)
%13 = load double, double* %11
%14 = fcmp ogt double %13, 0.000000e+00
%15 = select i1 %14, double %13, double 0.000000e+00
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%17 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 0, i64 1
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %17)
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.9, i64 0, i64 0))
%20 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 1
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %20)
%22 = load double, double* %20
%23 = fcmp ogt double %22, %15
%24 = select i1 %23, double %22, double %15
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%26 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 0, i64 2
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %26)
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.9, i64 0, i64 0))
%29 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 2
%30 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %29)
%31 = load double, double* %29
%32 = fcmp ogt double %31, %24
%33 = select i1 %32, double %31, double %24
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%35 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 0, i64 3
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %35)
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.9, i64 0, i64 0))
%38 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 3
%39 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %38)
%40 = load double, double* %38
%41 = fcmp ogt double %40, %33
%42 = select i1 %41, double %40, double %33
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), double %42)
%44 = load double, double* %11
%45 = fcmp oeq double %44, %42
br i1 %45, label %46, label %49
46: ; preds = %0
%47 = load i32, i32* %8
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %47)
br label %49
49: ; preds = %0, %46
%50 = load double, double* %20
%51 = fcmp oeq double %50, %42
br i1 %51, label %52, label %55
52: ; preds = %49
%53 = load i32, i32* %17
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %53)
br label %55
55: ; preds = %52, %49
%56 = load double, double* %29
%57 = fcmp oeq double %56, %42
br i1 %57, label %58, label %61
58: ; preds = %55
%59 = load i32, i32* %26
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %59)
br label %61
61: ; preds = %58, %55
%62 = load double, double* %38
%63 = fcmp oeq double %62, %42
br i1 %63, label %64, label %68
64: ; preds = %61
%65 = load i32, i32* %35
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %65)
%67 = load double, double* %38
br label %68
68: ; preds = %64, %61
%69 = phi double [ %67, %64 ], [ %62, %61 ]
%70 = load double, double* %11
%71 = fadd double %70, 0.000000e+00
%72 = load double, double* %20
%73 = fadd double %71, %72
%74 = load double, double* %29
%75 = fadd double %73, %74
%76 = fadd double %75, %69
%77 = fmul double %76, 2.500000e-01
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), double %77)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%80 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%81 = load i32, i32* %2
br label %82
82: ; preds = %68, %82
%83 = phi i64 [ 0, %68 ], [ %87, %82 ]
%84 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 0, i64 %83
%85 = load i32, i32* %84
%86 = icmp eq i32 %85, %81
%87 = add nuw i64 %83, 1
br i1 %86, label %88, label %82
88: ; preds = %82
%89 = xor i1 %86, true
%90 = zext i1 %89 to i64
%91 = add i64 %83, %90
%92 = and i64 %91, 4294967295
%93 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 %92
%94 = load double, double* %93
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i32 %81, double %94)
ret i32 0
}