#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 */
scalar_t__ CLOCKS_PER_SEC;
scalar_t__ clock();
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  int i, j, k;
  double tStart, tSetup, tEnd, setup, kernel;
  double x[50000];
  double y[50000];
  setup = 0.0;
  kernel = 0.0;
  for (k = 1; k < 1000; k++) {
    tStart = (double)clock() / (double)CLOCKS_PER_SEC;
    for (i = 0; i < 50000; i++) {
      x[i] = 2.0 * i;
    }
    tSetup = (double)clock() / (double)CLOCKS_PER_SEC;
    for (i = 0; i < 50000; i++) {
      y[i] = x[i];
    }
    for (i = 1; i < 50000 - 1; i++) {
      x[i] = y[i - 1] / 4 + y[i] / 2 + y[i + 1] / 4;
    }
    tEnd = (double)clock() / (double)CLOCKS_PER_SEC;
    setup += tSetup - tStart;
    kernel += tEnd - tSetup;
  }
  printf("\nTwo values for validation");
  printf("\n=========================");
  printf("\nX[1]  = %e", x[1]);
  printf("\nX[%d] = %e\n", 50000 - 2, x[50000 - 2]);
  printf("\nExecution times");
  printf("\n=========================");
  printf("\nSetup Time  = %le", setup);
  printf("\nKernel Time = %le\n\n", kernel);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc3550,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x1,-0x1c(%rbp)
cmpl   $0x3e8,-0x1c(%rbp)
jge    12fc <main+0x1dc>
mov    $0x0,%al
call   1030 <clock@plt>
cvtsi2sd %rax,%xmm0
mov    0x2e78(%rip),%rax
cvtsi2sdq (%rax),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0xc350,-0x14(%rbp)
jge    11be <main+0x9e>
cvtsi2sdl -0x14(%rbp),%xmm1
movsd  0xe69(%rip),%xmm0
mulsd  %xmm1,%xmm0
movslq -0x14(%rbp),%rax
movsd  %xmm0,-0x61ad0(%rbp,%rax,8)
f9 ff
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1185 <main+0x65>
mov    $0x0,%al
call   1030 <clock@plt>
cvtsi2sd %rax,%xmm0
mov    0x2e17(%rip),%rax
cvtsi2sdq (%rax),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0xc350,-0x14(%rbp)
jge    121b <main+0xfb>
movslq -0x14(%rbp),%rax
movsd  -0x61ad0(%rbp,%rax,8),%xmm0
f9 ff
movslq -0x14(%rbp),%rax
movsd  %xmm0,-0xc3550(%rbp,%rax,8)
f3 ff
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11e6 <main+0xc6>
movl   $0x1,-0x14(%rbp)
cmpl   $0xc34f,-0x14(%rbp)
jge    12a5 <main+0x185>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
cltq
movsd  -0xc3550(%rbp,%rax,8),%xmm0
f3 ff
movsd  0xdb8(%rip),%xmm1
divsd  %xmm1,%xmm0
movslq -0x14(%rbp),%rax
movsd  -0xc3550(%rbp,%rax,8),%xmm1
f3 ff
movsd  0xda7(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
mov    -0x14(%rbp),%eax
add    $0x1,%eax
cltq
movsd  -0xc3550(%rbp,%rax,8),%xmm1
f3 ff
movsd  0xd7e(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movslq -0x14(%rbp),%rax
movsd  %xmm0,-0x61ad0(%rbp,%rax,8)
f9 ff
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1222 <main+0x102>
mov    $0x0,%al
call   1030 <clock@plt>
cvtsi2sd %rax,%xmm0
mov    0x2d30(%rip),%rax
cvtsi2sdq (%rax),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x30(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
addsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1150 <main+0x30>
lea    0xd0d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x61ac8(%rbp),%xmm0
ff
lea    0xd1f(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x60(%rbp),%xmm0
lea    0xd18(%rip),%rdi
mov    $0xc34e,%esi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xd12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xcd0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x40(%rbp),%xmm0
lea    0xd02(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x48(%rbp),%xmm0
lea    0xd02(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0xc3550,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xc3550,%rsp
xorpd  %xmm0,%xmm0
movapd %xmm0,(%rsp)
mov    $0x1,%ebp
mov    0x2e94(%rip),%r12
lea    0x61ad0(%rsp),%r14
lea    0x50(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <clock@plt>
xorps  %xmm0,%xmm0
cvtsi2sdq (%r12),%xmm0
movsd  %xmm0,0x28(%rsp)
mov    $0x6,%ecx
movdqa 0xe6d(%rip),%xmm0
movdqa 0xe75(%rip),%xmm4
movdqa 0xe7d(%rip),%xmm5
movdqa 0xe85(%rip),%xmm6
movdqa 0xe8d(%rip),%xmm7
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movdqa %xmm0,%xmm1
cvtdq2pd %xmm0,%xmm2
paddd  %xmm4,%xmm1
cvtdq2pd %xmm1,%xmm1
addpd  %xmm2,%xmm2
addpd  %xmm1,%xmm1
movapd %xmm2,0x20(%rsp,%rcx,8)
movdqa %xmm0,%xmm2
paddd  %xmm5,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm6,%xmm3
cvtdq2pd %xmm2,%xmm2
cvtdq2pd %xmm3,%xmm3
movapd %xmm1,0x30(%rsp,%rcx,8)
addpd  %xmm2,%xmm2
addpd  %xmm3,%xmm3
movapd %xmm2,0x40(%rsp,%rcx,8)
movapd %xmm3,0x50(%rsp,%rcx,8)
paddd  %xmm7,%xmm0
add    $0x8,%rcx
cmp    $0xc356,%rcx
jne    11c0 <main+0x90>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
movapd %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1030 <clock@plt>
mov    %rax,%rbx
xorps  %xmm0,%xmm0
cvtsi2sdq (%r12),%xmm0
movapd %xmm0,0x40(%rsp)
mov    $0x61a80,%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <memcpy@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rbx,%xmm0
movapd %xmm0,0x30(%rsp)
movsd  0x61ad0(%rsp),%xmm0
movsd  0x61ad8(%rsp),%xmm1
xor    %eax,%eax
movsd  0xdce(%rip),%xmm5
movsd  0xdce(%rip),%xmm6
nopw   0x0(%rax,%rax,1)
mulsd  %xmm5,%xmm0
movapd %xmm1,%xmm2
mulsd  %xmm6,%xmm2
addsd  %xmm0,%xmm2
movsd  0x61ae0(%rsp,%rax,8),%xmm0
movsd  0x61ae8(%rsp,%rax,8),%xmm3
movapd %xmm0,%xmm4
mulsd  %xmm5,%xmm4
addsd  %xmm2,%xmm4
movsd  %xmm4,0x58(%rsp,%rax,8)
mulsd  %xmm5,%xmm1
movapd %xmm0,%xmm2
mulsd  %xmm6,%xmm2
addsd  %xmm1,%xmm2
movapd %xmm3,%xmm1
mulsd  %xmm5,%xmm3
addsd  %xmm2,%xmm3
movsd  %xmm3,0x60(%rsp,%rax,8)
add    $0x2,%rax
cmp    $0xc34e,%rax
jne    1290 <main+0x160>
movapd 0x10(%rsp),%xmm0
divsd  0x28(%rsp),%xmm0
movapd %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1030 <clock@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdq (%r12),%xmm1
unpcklpd 0x30(%rsp),%xmm0
unpcklpd 0x40(%rsp),%xmm1
divpd  %xmm1,%xmm0
movapd %xmm0,%xmm1
shufpd $0x1,0x10(%rsp),%xmm1
subpd  %xmm1,%xmm0
movapd (%rsp),%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
add    $0x1,%ebp
cmp    $0x3e8,%ebp
jne    1170 <main+0x40>
lea    0xd01(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd0e(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x58(%rsp),%xmm0
lea    0xd12(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0x61ac0(%rsp),%xmm0
lea    0xd07(%rip),%rdi
mov    $0xc34e,%esi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xd01(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movaps (%rsp),%xmm0
movhlps %xmm0,%xmm0
lea    0xcf3(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xcf8(%rip),%rdi
movaps (%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0xc3550,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@CLOCKS_PER_SEC = global i64 0
@.str = [27 x i8] c"\0ATwo values for validation\00"
@.str.1 = [27 x i8] c"\0A=========================\00"
@.str.2 = [12 x i8] c"\0AX[1] = %e\00"
@.str.3 = [13 x i8] c"\0AX[%d] = %e\0A\00"
@.str.4 = [17 x i8] c"\0AExecution times\00"
@.str.5 = [19 x i8] c"\0ASetup Time = %le\00"
@.str.6 = [21 x i8] c"\0AKernel Time = %le\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca [50000 x double]
%15 = alloca [50000 x double]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double 0.000000e+00, double* %12
store double 0.000000e+00, double* %13
store i32 1, i32* %8
br label %16
16: ; preds = %104, %2
%17 = load i32, i32* %8
%18 = icmp slt i32 %17, 1000
br i1 %18, label %19, label %107
19: ; preds = %16
%20 = call i64 (...) @clock()
%21 = sitofp i64 %20 to double
%22 = load i64, i64* @CLOCKS_PER_SEC
%23 = sitofp i64 %22 to double
%24 = fdiv double %21, %23
store double %24, double* %9
store i32 0, i32* %6
br label %25
25: ; preds = %35, %19
%26 = load i32, i32* %6
%27 = icmp slt i32 %26, 50000
br i1 %27, label %28, label %38
28: ; preds = %25
%29 = load i32, i32* %6
%30 = sitofp i32 %29 to double
%31 = fmul double 2.000000e+00, %30
%32 = load i32, i32* %6
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [50000 x double], [50000 x double]* %14, i64 0, i64 %33
store double %31, double* %34
br label %35
35: ; preds = %28
%36 = load i32, i32* %6
%37 = add nsw i32 %36, 1
store i32 %37, i32* %6
br label %25
38: ; preds = %25
%39 = call i64 (...) @clock()
%40 = sitofp i64 %39 to double
%41 = load i64, i64* @CLOCKS_PER_SEC
%42 = sitofp i64 %41 to double
%43 = fdiv double %40, %42
store double %43, double* %10
store i32 0, i32* %6
br label %44
44: ; preds = %55, %38
%45 = load i32, i32* %6
%46 = icmp slt i32 %45, 50000
br i1 %46, label %47, label %58
47: ; preds = %44
%48 = load i32, i32* %6
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [50000 x double], [50000 x double]* %14, i64 0, i64 %49
%51 = load double, double* %50
%52 = load i32, i32* %6
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [50000 x double], [50000 x double]* %15, i64 0, i64 %53
store double %51, double* %54
br label %55
55: ; preds = %47
%56 = load i32, i32* %6
%57 = add nsw i32 %56, 1
store i32 %57, i32* %6
br label %44
58: ; preds = %44
store i32 1, i32* %6
br label %59
59: ; preds = %85, %58
%60 = load i32, i32* %6
%61 = icmp slt i32 %60, 49999
br i1 %61, label %62, label %88
62: ; preds = %59
%63 = load i32, i32* %6
%64 = sub nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [50000 x double], [50000 x double]* %15, i64 0, i64 %65
%67 = load double, double* %66
%68 = fdiv double %67, 4.000000e+00
%69 = load i32, i32* %6
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [50000 x double], [50000 x double]* %15, i64 0, i64 %70
%72 = load double, double* %71
%73 = fdiv double %72, 2.000000e+00
%74 = fadd double %68, %73
%75 = load i32, i32* %6
%76 = add nsw i32 %75, 1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [50000 x double], [50000 x double]* %15, i64 0, i64 %77
%79 = load double, double* %78
%80 = fdiv double %79, 4.000000e+00
%81 = fadd double %74, %80
%82 = load i32, i32* %6
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [50000 x double], [50000 x double]* %14, i64 0, i64 %83
store double %81, double* %84
br label %85
85: ; preds = %62
%86 = load i32, i32* %6
%87 = add nsw i32 %86, 1
store i32 %87, i32* %6
br label %59
88: ; preds = %59
%89 = call i64 (...) @clock()
%90 = sitofp i64 %89 to double
%91 = load i64, i64* @CLOCKS_PER_SEC
%92 = sitofp i64 %91 to double
%93 = fdiv double %90, %92
store double %93, double* %11
%94 = load double, double* %10
%95 = load double, double* %9
%96 = fsub double %94, %95
%97 = load double, double* %12
%98 = fadd double %97, %96
store double %98, double* %12
%99 = load double, double* %11
%100 = load double, double* %10
%101 = fsub double %99, %100
%102 = load double, double* %13
%103 = fadd double %102, %101
store double %103, double* %13
br label %104
104: ; preds = %88
%105 = load i32, i32* %8
%106 = add nsw i32 %105, 1
store i32 %106, i32* %8
br label %16
107: ; preds = %16
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%110 = getelementptr inbounds [50000 x double], [50000 x double]* %14, i64 0, i64 1
%111 = load double, double* %110
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), double %111)
%113 = getelementptr inbounds [50000 x double], [50000 x double]* %14, i64 0, i64 49998
%114 = load double, double* %113
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 49998, double %114)
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%118 = load double, double* %12
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), double %118)
%120 = load double, double* %13
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), double %120)
ret i32 0
}

LLVM IR (-O2):
@CLOCKS_PER_SEC = global i64 0
@.str = [27 x i8] c"\0ATwo values for validation\00"
@.str.1 = [27 x i8] c"\0A=========================\00"
@.str.2 = [12 x i8] c"\0AX[1] = %e\00"
@.str.3 = [13 x i8] c"\0AX[%d] = %e\0A\00"
@.str.4 = [17 x i8] c"\0AExecution times\00"
@.str.5 = [19 x i8] c"\0ASetup Time = %le\00"
@.str.6 = [21 x i8] c"\0AKernel Time = %le\0A\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [50000 x double]
%4 = bitcast [50000 x double]* %3 to i8*
%5 = alloca [50000 x double]
%6 = bitcast [50000 x double]* %5 to i8*
%7 = getelementptr inbounds [50000 x double], [50000 x double]* %5, i64 0, i64 0
%8 = getelementptr inbounds [50000 x double], [50000 x double]* %5, i64 0, i64 1
br label %9
9: ; preds = %2, %72
%10 = phi i32 [ 1, %2 ], [ %88, %72 ]
%11 = phi <2 x double> [ zeroinitializer, %2 ], [ %87, %72 ]
%12 = tail call i64 (...) @clock()
%13 = load i64, i64* @CLOCKS_PER_SEC
%14 = sitofp i64 %13 to double
br label %15
15: ; preds = %15, %9
%16 = phi i64 [ 0, %9 ], [ %38, %15 ]
%17 = phi <2 x i32> [ <i32 0, i32 1>, %9 ], [ %39, %15 ]
%18 = add <2 x i32> %17, <i32 2, i32 2>
%19 = sitofp <2 x i32> %17 to <2 x double>
%20 = sitofp <2 x i32> %18 to <2 x double>
%21 = fmul <2 x double> %19, <double 2.000000e+00, double 2.000000e+00>
%22 = fmul <2 x double> %20, <double 2.000000e+00, double 2.000000e+00>
%23 = getelementptr inbounds [50000 x double], [50000 x double]* %3, i64 0, i64 %16
%24 = bitcast double* %23 to <2 x double>*
store <2 x double> %21, <2 x double>* %24
%25 = getelementptr inbounds double, double* %23, i64 2
%26 = bitcast double* %25 to <2 x double>*
store <2 x double> %22, <2 x double>* %26
%27 = or i64 %16, 4
%28 = add <2 x i32> %17, <i32 4, i32 4>
%29 = add <2 x i32> %17, <i32 6, i32 6>
%30 = sitofp <2 x i32> %28 to <2 x double>
%31 = sitofp <2 x i32> %29 to <2 x double>
%32 = fmul <2 x double> %30, <double 2.000000e+00, double 2.000000e+00>
%33 = fmul <2 x double> %31, <double 2.000000e+00, double 2.000000e+00>
%34 = getelementptr inbounds [50000 x double], [50000 x double]* %3, i64 0, i64 %27
%35 = bitcast double* %34 to <2 x double>*
store <2 x double> %32, <2 x double>* %35
%36 = getelementptr inbounds double, double* %34, i64 2
%37 = bitcast double* %36 to <2 x double>*
store <2 x double> %33, <2 x double>* %37
%38 = add nuw nsw i64 %16, 8
%39 = add <2 x i32> %17, <i32 8, i32 8>
%40 = icmp eq i64 %38, 50000
br i1 %40, label %41, label %15
41: ; preds = %15
%42 = sitofp i64 %12 to double
%43 = tail call i64 (...) @clock()
%44 = load i64, i64* @CLOCKS_PER_SEC
%45 = sitofp i64 %44 to double
%46 = sitofp i64 %43 to double
%47 = load double, double* %7
%48 = load double, double* %8
br label %49
49: ; preds = %49, %41
%50 = phi double [ %48, %41 ], [ %67, %49 ]
%51 = phi double [ %47, %41 ], [ %58, %49 ]
%52 = phi i64 [ 1, %41 ], [ %65, %49 ]
%53 = fmul double %51, 2.500000e-01
%54 = fmul double %50, 5.000000e-01
%55 = fadd double %53, %54
%56 = add nuw nsw i64 %52, 1
%57 = getelementptr inbounds [50000 x double], [50000 x double]* %5, i64 0, i64 %56
%58 = load double, double* %57
%59 = fmul double %58, 2.500000e-01
%60 = fadd double %55, %59
%61 = getelementptr inbounds [50000 x double], [50000 x double]* %3, i64 0, i64 %52
store double %60, double* %61
%62 = fmul double %50, 2.500000e-01
%63 = fmul double %58, 5.000000e-01
%64 = fadd double %62, %63
%65 = add nuw nsw i64 %52, 2
%66 = getelementptr inbounds [50000 x double], [50000 x double]* %5, i64 0, i64 %65
%67 = load double, double* %66
%68 = fmul double %67, 2.500000e-01
%69 = fadd double %64, %68
%70 = getelementptr inbounds [50000 x double], [50000 x double]* %3, i64 0, i64 %56
store double %69, double* %70
%71 = icmp eq i64 %65, 49999
br i1 %71, label %72, label %49
72: ; preds = %49
%73 = fdiv double %42, %14
%74 = tail call i64 (...) @clock()
%75 = sitofp i64 %74 to double
%76 = load i64, i64* @CLOCKS_PER_SEC
%77 = sitofp i64 %76 to double
%78 = insertelement <2 x double> poison, double %75, i64 0
%79 = insertelement <2 x double> %78, double %46, i64 1
%80 = insertelement <2 x double> poison, double %77, i64 0
%81 = insertelement <2 x double> %80, double %45, i64 1
%82 = fdiv <2 x double> %79, %81
%83 = extractelement <2 x double> %82, i64 1
%84 = insertelement <2 x double> poison, double %83, i64 0
%85 = insertelement <2 x double> %84, double %73, i64 1
%86 = fsub <2 x double> %82, %85
%87 = fadd <2 x double> %11, %86
%88 = add nuw nsw i32 %10, 1
%89 = icmp eq i32 %88, 1000
br i1 %89, label %90, label %9
90: ; preds = %72
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%92 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%93 = getelementptr inbounds [50000 x double], [50000 x double]* %3, i64 0, i64 1
%94 = load double, double* %93
%95 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), double %94)
%96 = getelementptr inbounds [50000 x double], [50000 x double]* %3, i64 0, i64 49998
%97 = load double, double* %96
%98 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 49998, double %97)
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%100 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%101 = extractelement <2 x double> %87, i64 1
%102 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), double %101)
%103 = extractelement <2 x double> %87, i64 0
%104 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), double %103)
ret i32 0
}