#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 */
typedef scalar_t__ clock_t;
typedef int /*<<< orphan*/ INC;

/* Variables and functions */
double CLOCKS_PER_SEC;
scalar_t__ clock();
double *malloc(int const);
int /*<<< orphan*/ printf(char *, ...);
double sum(double *, int const, int const);
int main() {
  const int N = 50 * 1000 * 1000;
  const int INC[] = {1, 3, 15485867};
  double *array = malloc(N * sizeof(double));
  for (int i = 0; i < N; i++)
    array[i] = i;
  double element_sum = 0.5 * N * (N - 1);
  printf("Establish baseline ...\n");
  const int AVG = 10;
  double exec_for_inc_1 = 0;
  for (int i = 0; i < AVG; i++) {
    clock_t start = clock();
    double s = sum(array, N, 1);
    exec_for_inc_1 += ((double)(clock() - start)) / CLOCKS_PER_SEC;
  }
  exec_for_inc_1 /= AVG;
  for (int r = 0; r < 2; r++) {
    for (int i = 0; i < sizeof(INC) / sizeof(int); i++) {
      clock_t start = clock();
      double s = sum(array, N, INC[i]);
      double exec_time = ((double)(clock() - start)) / CLOCKS_PER_SEC;
      if (s != element_sum)
        printf("INCORRECT RESULT: %g != %g ", s, element_sum);
      printf("%4.1f X time for increment %9d\n", exec_time / exec_for_inc_1,
             INC[i]);
    }
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2faf080,-0x8(%rbp)
mov    0xeb0(%rip),%rax
mov    %rax,-0x14(%rbp)
mov    0xeae(%rip),%eax
mov    %eax,-0xc(%rbp)
mov    $0x17d78400,%edi
call   1060 <malloc@plt>
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x2faf080,-0x24(%rbp)
jge    11af <main+0x6f>
cvtsi2sdl -0x24(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1182 <main+0x42>
movsd  0xe49(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xa,-0x34(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0xa,-0x44(%rbp)
jge    1240 <main+0x100>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x50(%rbp)
mov    -0x20(%rbp),%rdi
mov    $0x2faf080,%esi
mov    $0x1,%edx
call   1050 <sum@plt>
movsd  %xmm0,-0x58(%rbp)
mov    $0x0,%al
call   1030 <clock@plt>
sub    -0x50(%rbp),%rax
cvtsi2sd %rax,%xmm0
mov    0x2dc4(%rip),%rax
divsd  (%rax),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11e0 <main+0xa0>
movsd  -0x40(%rbp),%xmm0
movsd  0xdbb(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x5c(%rbp)
cmpl   $0x2,-0x5c(%rbp)
jge    133f <main+0x1ff>
movl   $0x0,-0x60(%rbp)
movslq -0x60(%rbp),%rax
cmp    $0x3,%rax
jae    1323 <main+0x1e3>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x68(%rbp)
mov    -0x20(%rbp),%rdi
movslq -0x60(%rbp),%rax
mov    -0x14(%rbp,%rax,4),%edx
mov    $0x2faf080,%esi
call   1050 <sum@plt>
movsd  %xmm0,-0x70(%rbp)
mov    $0x0,%al
call   1030 <clock@plt>
sub    -0x68(%rbp),%rax
cvtsi2sd %rax,%xmm0
mov    0x2d2f(%rip),%rax
divsd  (%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x70(%rbp),%xmm0
ucomisd -0x30(%rbp),%xmm0
jne    12dd <main+0x19d>
jp     12dd <main+0x19d>
jmp    12f5 <main+0x1b5>
movsd  -0x70(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
lea    0xd46(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  -0x78(%rbp),%xmm0
divsd  -0x40(%rbp),%xmm0
movslq -0x60(%rbp),%rax
mov    -0x14(%rbp,%rax,4),%esi
lea    0xd42(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    126e <main+0x12e>
lea    0xd08(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    125d <main+0x11d>
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
mov    $0x17d78400,%edi
call   1080 <malloc@plt>
mov    %rax,%r15
movdqa 0xe7f(%rip),%xmm0
mov    $0x6,%eax
movdqa 0xe82(%rip),%xmm1
movdqa 0xe8a(%rip),%xmm2
movdqa 0xe92(%rip),%xmm3
movdqa 0xe9a(%rip),%xmm4
cs nopw 0x0(%rax,%rax,1)
movdqa %xmm0,%xmm5
cvtdq2pd %xmm0,%xmm6
paddd  %xmm1,%xmm5
cvtdq2pd %xmm5,%xmm5
movups %xmm6,-0x30(%r15,%rax,8)
movups %xmm5,-0x20(%r15,%rax,8)
movdqa %xmm0,%xmm5
paddd  %xmm2,%xmm5
movdqa %xmm0,%xmm6
cvtdq2pd %xmm5,%xmm5
paddd  %xmm3,%xmm6
cvtdq2pd %xmm6,%xmm6
movups %xmm5,-0x10(%r15,%rax,8)
movups %xmm6,(%r15,%rax,8)
paddd  %xmm4,%xmm0
add    $0x8,%rax
cmp    $0x2faf086,%rax
jne    11b0 <main+0x50>
lea    0xe96(%rip),%rdi
call   1040 <puts@plt>
pxor   %xmm0,%xmm0
mov    $0xa,%ebp
mov    0x2dcd(%rip),%r12
nopl   0x0(%rax,%rax,1)
movq   %xmm0,0x18(%rsp)
xor    %eax,%eax
call   1050 <clock@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    $0x2faf080,%esi
mov    $0x1,%edx
call   1070 <sum@plt>
xor    %eax,%eax
call   1050 <clock@plt>
sub    %rbx,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  (%r12),%xmm0
movsd  0x18(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movq   0x18(%rsp),%xmm0
add    $0xffffffff,%ebp
jne    1220 <main+0xc0>
divsd  0xdd3(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
xor    %eax,%eax
call   1050 <clock@plt>
mov    %rax,%r14
mov    %r15,%rdi
mov    $0x2faf080,%esi
mov    $0x1,%edx
call   1070 <sum@plt>
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1050 <clock@plt>
movsd  0x10(%rsp),%xmm2
sub    %r14,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  (%r12),%xmm0
ucomisd 0xd8d(%rip),%xmm2
jne    12cf <main+0x16f>
jnp    12f5 <main+0x195>
lea    0xd8a(%rip),%rdi
movq   0xd7a(%rip),%xmm1
movsd  %xmm0,0x8(%rsp)
movapd %xmm2,%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x8(%rsp),%xmm0
divsd  0x18(%rsp),%xmm0
lea    0xd7a(%rip),%rdi
mov    $0x1,%esi
mov    $0x1,%al
call   1060 <printf@plt>
xor    %eax,%eax
call   1050 <clock@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    $0x2faf080,%esi
mov    $0x3,%edx
call   1070 <sum@plt>
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1050 <clock@plt>
movsd  0x10(%rsp),%xmm2
sub    %rbx,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  (%r12),%xmm0
ucomisd 0xd02(%rip),%xmm2
jne    135a <main+0x1fa>
jnp    1380 <main+0x220>
lea    0xcff(%rip),%rdi
movq   0xcef(%rip),%xmm1
movsd  %xmm0,0x8(%rsp)
movapd %xmm2,%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x8(%rsp),%xmm0
divsd  0x18(%rsp),%xmm0
lea    0xcef(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%al
call   1060 <printf@plt>
xor    %eax,%eax
call   1050 <clock@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    $0x2faf080,%esi
mov    $0xec4bab,%edx
call   1070 <sum@plt>
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1050 <clock@plt>
movsd  0x10(%rsp),%xmm2
sub    %rbx,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  (%r12),%xmm0
ucomisd 0xc77(%rip),%xmm2
jne    13e5 <main+0x285>
jnp    140b <main+0x2ab>
lea    0xc74(%rip),%rdi
movq   0xc64(%rip),%xmm1
movsd  %xmm0,0x8(%rsp)
movapd %xmm2,%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x8(%rsp),%xmm0
divsd  0x18(%rsp),%xmm0
lea    0xc64(%rip),%rdi
mov    $0xec4bab,%esi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1050 <clock@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    $0x2faf080,%esi
mov    $0x1,%edx
call   1070 <sum@plt>
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1050 <clock@plt>
movsd  0x10(%rsp),%xmm2
sub    %rbx,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  (%r12),%xmm0
ucomisd 0xbe2(%rip),%xmm2
jne    147a <main+0x31a>
jnp    14a0 <main+0x340>
lea    0xbdf(%rip),%rdi
movq   0xbcf(%rip),%xmm1
movsd  %xmm0,0x8(%rsp)
movapd %xmm2,%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x8(%rsp),%xmm0
divsd  0x18(%rsp),%xmm0
lea    0xbcf(%rip),%rdi
mov    $0x1,%esi
mov    $0x1,%al
call   1060 <printf@plt>
xor    %eax,%eax
call   1050 <clock@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    $0x2faf080,%esi
mov    $0x3,%edx
call   1070 <sum@plt>
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1050 <clock@plt>
movsd  0x10(%rsp),%xmm2
sub    %rbx,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  (%r12),%xmm0
ucomisd 0xb57(%rip),%xmm2
jne    1505 <main+0x3a5>
jnp    152b <main+0x3cb>
lea    0xb54(%rip),%rdi
movq   0xb44(%rip),%xmm1
movsd  %xmm0,0x8(%rsp)
movapd %xmm2,%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x8(%rsp),%xmm0
divsd  0x18(%rsp),%xmm0
lea    0xb44(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%al
call   1060 <printf@plt>
xor    %eax,%eax
call   1050 <clock@plt>
mov    %rax,%r14
mov    %r15,%rdi
mov    $0x2faf080,%esi
mov    $0xec4bab,%edx
call   1070 <sum@plt>
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1050 <clock@plt>
movsd  0x10(%rsp),%xmm0
mov    %rax,%rbx
movsd  (%r12),%xmm1
ucomisd 0xad4(%rip),%xmm0
jne    1588 <main+0x428>
jnp    15aa <main+0x44a>
lea    0xad1(%rip),%rdi
movsd  %xmm1,0x8(%rsp)
movsd  0xabb(%rip),%xmm1
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x8(%rsp),%xmm1
sub    %r14,%rbx
xorps  %xmm0,%xmm0
cvtsi2sd %rbx,%xmm0
divsd  %xmm1,%xmm0
divsd  0x18(%rsp),%xmm0
lea    0xab6(%rip),%rdi
mov    $0xec4bab,%esi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.INC = [3 x i32] [i32 1, i32 3, i32 15485867]
@.str = [24 x i8] c"Establish baseline ...\0A\00"
@CLOCKS_PER_SEC = global double 0.000000e+00
@.str.1 = [28 x i8] c"INCORRECT RESULT: %g != %g \00"
@.str.2 = [32 x i8] c"%4.1f X time for increment %9d\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [3 x i32]
%4 = alloca double*
%5 = alloca i32
%6 = alloca double
%7 = alloca i32
%8 = alloca double
%9 = alloca i32
%10 = alloca i64
%11 = alloca double
%12 = alloca i32
%13 = alloca i32
%14 = alloca i64
%15 = alloca double
%16 = alloca double
store i32 0, i32* %1
store i32 50000000, i32* %2
%17 = bitcast [3 x i32]* %3 to i8*
%18 = call double* @malloc(i32 400000000)
store double* %18, double** %4
store i32 0, i32* %5
br label %19
19: ; preds = %29, %0
%20 = load i32, i32* %5
%21 = icmp slt i32 %20, 50000000
br i1 %21, label %22, label %32
22: ; preds = %19
%23 = load i32, i32* %5
%24 = sitofp i32 %23 to double
%25 = load double*, double** %4
%26 = load i32, i32* %5
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, double* %25, i64 %27
store double %24, double* %28
br label %29
29: ; preds = %22
%30 = load i32, i32* %5
%31 = add nsw i32 %30, 1
store i32 %31, i32* %5
br label %19
32: ; preds = %19
store double 0x4311C37931EA9F00, double* %6
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
store i32 10, i32* %7
store double 0.000000e+00, double* %8
store i32 0, i32* %9
br label %34
34: ; preds = %49, %32
%35 = load i32, i32* %9
%36 = icmp slt i32 %35, 10
br i1 %36, label %37, label %52
37: ; preds = %34
%38 = call i64 (...) @clock()
store i64 %38, i64* %10
%39 = load double*, double** %4
%40 = call double @sum(double* %39, i32 50000000, i32 1)
store double %40, double* %11
%41 = call i64 (...) @clock()
%42 = load i64, i64* %10
%43 = sub nsw i64 %41, %42
%44 = sitofp i64 %43 to double
%45 = load double, double* @CLOCKS_PER_SEC
%46 = fdiv double %44, %45
%47 = load double, double* %8
%48 = fadd double %47, %46
store double %48, double* %8
br label %49
49: ; preds = %37
%50 = load i32, i32* %9
%51 = add nsw i32 %50, 1
store i32 %51, i32* %9
br label %34
52: ; preds = %34
%53 = load double, double* %8
%54 = fdiv double %53, 1.000000e+01
store double %54, double* %8
store i32 0, i32* %12
br label %55
55: ; preds = %98, %52
%56 = load i32, i32* %12
%57 = icmp slt i32 %56, 2
br i1 %57, label %58, label %101
58: ; preds = %55
store i32 0, i32* %13
br label %59
59: ; preds = %93, %58
%60 = load i32, i32* %13
%61 = sext i32 %60 to i64
%62 = icmp ult i64 %61, 3
br i1 %62, label %63, label %96
63: ; preds = %59
%64 = call i64 (...) @clock()
store i64 %64, i64* %14
%65 = load double*, double** %4
%66 = load i32, i32* %13
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 %67
%69 = load i32, i32* %68
%70 = call double @sum(double* %65, i32 50000000, i32 %69)
store double %70, double* %15
%71 = call i64 (...) @clock()
%72 = load i64, i64* %14
%73 = sub nsw i64 %71, %72
%74 = sitofp i64 %73 to double
%75 = load double, double* @CLOCKS_PER_SEC
%76 = fdiv double %74, %75
store double %76, double* %16
%77 = load double, double* %15
%78 = load double, double* %6
%79 = fcmp une double %77, %78
br i1 %79, label %80, label %84
80: ; preds = %63
%81 = load double, double* %15
%82 = load double, double* %6
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), double %81, double %82)
br label %84
84: ; preds = %80, %63
%85 = load double, double* %16
%86 = load double, double* %8
%87 = fdiv double %85, %86
%88 = load i32, i32* %13
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 %89
%91 = load i32, i32* %90
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), double %87, i32 %91)
br label %93
93: ; preds = %84
%94 = load i32, i32* %13
%95 = add nsw i32 %94, 1
store i32 %95, i32* %13
br label %59
96: ; preds = %59
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %98
98: ; preds = %96
%99 = load i32, i32* %12
%100 = add nsw i32 %99, 1
store i32 %100, i32* %12
br label %55
101: ; preds = %55
%102 = load i32, i32* %1
ret i32 %102
}

LLVM IR (-O2):
@CLOCKS_PER_SEC = global double 0.000000e+00
@.str.1 = [28 x i8] c"INCORRECT RESULT: %g != %g \00"
@.str.2 = [32 x i8] c"%4.1f X time for increment %9d\0A\00"
@str = [23 x i8] c"Establish baseline ...\00"
define i32 @main() {
%1 = tail call double* @malloc(i32 400000000)
br label %2
2: ; preds = %2, %0
%3 = phi i64 [ 0, %0 ], [ %21, %2 ]
%4 = phi <2 x i32> [ <i32 0, i32 1>, %0 ], [ %22, %2 ]
%5 = add <2 x i32> %4, <i32 2, i32 2>
%6 = sitofp <2 x i32> %4 to <2 x double>
%7 = sitofp <2 x i32> %5 to <2 x double>
%8 = getelementptr inbounds double, double* %1, i64 %3
%9 = bitcast double* %8 to <2 x double>*
store <2 x double> %6, <2 x double>* %9
%10 = getelementptr inbounds double, double* %8, i64 2
%11 = bitcast double* %10 to <2 x double>*
store <2 x double> %7, <2 x double>* %11
%12 = or i64 %3, 4
%13 = add <2 x i32> %4, <i32 4, i32 4>
%14 = add <2 x i32> %4, <i32 6, i32 6>
%15 = sitofp <2 x i32> %13 to <2 x double>
%16 = sitofp <2 x i32> %14 to <2 x double>
%17 = getelementptr inbounds double, double* %1, i64 %12
%18 = bitcast double* %17 to <2 x double>*
store <2 x double> %15, <2 x double>* %18
%19 = getelementptr inbounds double, double* %17, i64 2
%20 = bitcast double* %19 to <2 x double>*
store <2 x double> %16, <2 x double>* %20
%21 = add nuw nsw i64 %3, 8
%22 = add <2 x i32> %4, <i32 8, i32 8>
%23 = icmp eq i64 %21, 50000000
br i1 %23, label %24, label %2
24: ; preds = %2
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
br label %36
26: ; preds = %36
%27 = fdiv double %46, 1.000000e+01
%28 = tail call i64 (...) @clock()
%29 = tail call double @sum(double* %1, i32 50000000, i32 1)
%30 = tail call i64 (...) @clock()
%31 = sub nsw i64 %30, %28
%32 = sitofp i64 %31 to double
%33 = load double, double* @CLOCKS_PER_SEC
%34 = fdiv double %32, %33
%35 = fcmp une double %29, 0x4311C37931EA9F00
br i1 %35, label %49, label %51
36: ; preds = %24, %36
%37 = phi double [ 0.000000e+00, %24 ], [ %46, %36 ]
%38 = phi i32 [ 0, %24 ], [ %47, %36 ]
%39 = tail call i64 (...) @clock()
%40 = tail call double @sum(double* %1, i32 50000000, i32 1)
%41 = tail call i64 (...) @clock()
%42 = sub nsw i64 %41, %39
%43 = sitofp i64 %42 to double
%44 = load double, double* @CLOCKS_PER_SEC
%45 = fdiv double %43, %44
%46 = fadd double %37, %45
%47 = add nuw nsw i32 %38, 1
%48 = icmp eq i32 %47, 10
br i1 %48, label %26, label %36
49: ; preds = %26
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), double %29, double 0x4311C37931EA9F00)
br label %51
51: ; preds = %49, %26
%52 = fdiv double %34, %27
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), double %52, i32 1)
%54 = tail call i64 (...) @clock()
%55 = tail call double @sum(double* %1, i32 50000000, i32 3)
%56 = tail call i64 (...) @clock()
%57 = sub nsw i64 %56, %54
%58 = sitofp i64 %57 to double
%59 = load double, double* @CLOCKS_PER_SEC
%60 = fdiv double %58, %59
%61 = fcmp une double %55, 0x4311C37931EA9F00
br i1 %61, label %62, label %64
62: ; preds = %51
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), double %55, double 0x4311C37931EA9F00)
br label %64
64: ; preds = %62, %51
%65 = fdiv double %60, %27
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), double %65, i32 3)
%67 = tail call i64 (...) @clock()
%68 = tail call double @sum(double* %1, i32 50000000, i32 15485867)
%69 = tail call i64 (...) @clock()
%70 = sub nsw i64 %69, %67
%71 = sitofp i64 %70 to double
%72 = load double, double* @CLOCKS_PER_SEC
%73 = fdiv double %71, %72
%74 = fcmp une double %68, 0x4311C37931EA9F00
br i1 %74, label %75, label %77
75: ; preds = %64
%76 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), double %68, double 0x4311C37931EA9F00)
br label %77
77: ; preds = %75, %64
%78 = fdiv double %73, %27
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), double %78, i32 15485867)
%80 = tail call i32 @putchar(i32 10)
%81 = tail call i64 (...) @clock()
%82 = tail call double @sum(double* %1, i32 50000000, i32 1)
%83 = tail call i64 (...) @clock()
%84 = sub nsw i64 %83, %81
%85 = sitofp i64 %84 to double
%86 = load double, double* @CLOCKS_PER_SEC
%87 = fdiv double %85, %86
%88 = fcmp une double %82, 0x4311C37931EA9F00
br i1 %88, label %89, label %91
89: ; preds = %77
%90 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), double %82, double 0x4311C37931EA9F00)
br label %91
91: ; preds = %89, %77
%92 = fdiv double %87, %27
%93 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), double %92, i32 1)
%94 = tail call i64 (...) @clock()
%95 = tail call double @sum(double* %1, i32 50000000, i32 3)
%96 = tail call i64 (...) @clock()
%97 = sub nsw i64 %96, %94
%98 = sitofp i64 %97 to double
%99 = load double, double* @CLOCKS_PER_SEC
%100 = fdiv double %98, %99
%101 = fcmp une double %95, 0x4311C37931EA9F00
br i1 %101, label %102, label %104
102: ; preds = %91
%103 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), double %95, double 0x4311C37931EA9F00)
br label %104
104: ; preds = %102, %91
%105 = fdiv double %100, %27
%106 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), double %105, i32 3)
%107 = tail call i64 (...) @clock()
%108 = tail call double @sum(double* %1, i32 50000000, i32 15485867)
%109 = tail call i64 (...) @clock()
%110 = load double, double* @CLOCKS_PER_SEC
%111 = fcmp une double %108, 0x4311C37931EA9F00
br i1 %111, label %112, label %114
112: ; preds = %104
%113 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), double %108, double 0x4311C37931EA9F00)
br label %114
114: ; preds = %112, %104
%115 = sub nsw i64 %109, %107
%116 = sitofp i64 %115 to double
%117 = fdiv double %116, %110
%118 = fdiv double %117, %27
%119 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), double %118, i32 15485867)
%120 = tail call i32 @putchar(i32 10)
ret i32 0
}