#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 */
struct timespec {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ CLOCK_MONOTONIC_RAW;
double RAND_MAX;
int /*<<< orphan*/ clock_gettime(int /*<<< orphan*/, struct timespec *);
int /*<<< orphan*/ elapsed_time_hr(struct timespec, struct timespec, char *);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(unsigned int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ rand();
int /*<<< orphan*/ rapl_deinit();
int /*<<< orphan*/ rapl_end();
int /*<<< orphan*/ rapl_init();
int /*<<< orphan*/ rapl_start();
int /*<<< orphan*/ srand(int);
scalar_t__ time(int /*<<< orphan*/ *);
int double_axpy(unsigned int size) {
  int i;
  double a;
  double *x = (double *)malloc(size * sizeof(double));
  double *y = (double *)malloc(size * sizeof(double));
  if (x == NULL || y == NULL) {
    printf("Out Of Memory: could not allocate space for the two arrays.\n");
    return 0;
  }
  srand((int)time(NULL));
  a = (double)rand() / (double)(RAND_MAX / 10.0);
  for (i = 0; i < size; i++) {
    x[i] = (double)rand() / (double)(RAND_MAX / 10.0);
    y[i] = (double)rand() / (double)(RAND_MAX / 10.0);
  }
  struct timespec start, end;
  rapl_init();
  rapl_start();
  clock_gettime(CLOCK_MONOTONIC_RAW, &start);
  for (i = 0; i < size; i++) {
    y[i] = a * x[i] + y[i];
  }
  clock_gettime(CLOCK_MONOTONIC_RAW, &end);
  rapl_end();
  rapl_deinit();
  elapsed_time_hr(start, end, "Double AXPY.");
  printf("APXY result = %f\n", y[0]);
  free(x);
  free(y);
  return 0;
}


x86 assembly (clang, -O0):
<double_axpy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x3,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x3,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1205 <double_axpy+0x45>
cmpq   $0x0,-0x28(%rbp)
jne    121f <double_axpy+0x5f>
lea    0xdfc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ba <double_axpy+0x1fa>
xor    %eax,%eax
mov    %eax,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1080 <srand@plt>
mov    $0x0,%al
call   10e0 <rand@plt>
cvtsi2sd %rax,%xmm0
mov    0x2da6(%rip),%rax
movsd  (%rax),%xmm1
movsd  0xdb2(%rip),%xmm2
divsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    12e4 <double_axpy+0x124>
mov    $0x0,%al
call   10e0 <rand@plt>
cvtsi2sd %rax,%xmm0
mov    0x2d67(%rip),%rax
movsd  (%rax),%xmm1
movsd  0xd73(%rip),%xmm2
divsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    $0x0,%al
call   10e0 <rand@plt>
cvtsi2sd %rax,%xmm0
mov    0x2d33(%rip),%rax
movsd  (%rax),%xmm1
movsd  0xd3f(%rip),%xmm2
divsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1262 <double_axpy+0xa2>
mov    $0x0,%al
call   10c0 <rapl_init@plt>
mov    $0x0,%al
call   1070 <rapl_start@plt>
mov    0x2ce7(%rip),%rax
mov    (%rax),%edi
lea    -0x30(%rbp),%rsi
call   1050 <clock_gettime@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1359 <double_axpy+0x199>
movsd  -0x18(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x28(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    130b <double_axpy+0x14b>
mov    0x2c80(%rip),%rax
mov    (%rax),%edi
lea    -0x38(%rbp),%rsi
call   1050 <clock_gettime@plt>
mov    $0x0,%al
call   10b0 <rapl_end@plt>
mov    $0x0,%al
call   10d0 <rapl_deinit@plt>
mov    -0x30(%rbp),%edi
mov    -0x38(%rbp),%esi
lea    0xcbf(%rip),%rdx
call   1030 <elapsed_time_hr@plt>
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
lea    0xcb8(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <free@plt>
mov    -0x28(%rbp),%rdi
call   1040 <free@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<double_axpy>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %edi,%r15d
lea    0x0(,%r15,8),%ebx
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    %rax,%r14
mov    %ebx,%edi
call   10b0 <malloc@plt>
test   %r14,%r14
je     1379 <double_axpy+0x1a9>
mov    %rax,%rbx
test   %rax,%rax
je     1379 <double_axpy+0x1a9>
xor    %edi,%edi
call   10a0 <time@plt>
mov    %eax,%edi
call   1090 <srand@plt>
xor    %eax,%eax
call   10f0 <rand@plt>
mov    %rax,0x18(%rsp)
mov    0x2db8(%rip),%rbp
movsd  0x0(%rbp),%xmm0
movsd  %xmm0,0x20(%rsp)
mov    %r15d,%r13d
test   %r15d,%r15d
je     12a9 <double_axpy+0xd9>
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   10f0 <rand@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
movsd  0x0(%rbp),%xmm1
movsd  0xd94(%rip),%xmm2
divsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,(%r14,%r12,8)
xor    %eax,%eax
call   10f0 <rand@plt>
movsd  0x0(%rbp),%xmm0
divsd  0xd72(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sd %rax,%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%r12,8)
add    $0x1,%r12
cmp    %r12,%r13
jne    1250 <double_axpy+0x80>
xor    %eax,%eax
call   10d0 <rapl_init@plt>
xor    %eax,%eax
call   1080 <rapl_start@plt>
mov    0x2d22(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0x10(%rsp),%rsi
call   1060 <clock_gettime@plt>
test   %r15d,%r15d
je     1474 <double_axpy+0x2a4>
xorps  %xmm0,%xmm0
cvtsi2sdq 0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
divsd  0xd14(%rip),%xmm1
divsd  %xmm1,%xmm0
cmp    $0x4,%r15d
jb     1310 <double_axpy+0x140>
lea    (%r14,%r13,8),%rax
cmp    %rax,%rbx
jae    138a <double_axpy+0x1ba>
lea    (%rbx,%r13,8),%rax
cmp    %rax,%r14
jae    138a <double_axpy+0x1ba>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
test   $0x1,%r13b
je     1336 <double_axpy+0x166>
movsd  (%r14,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rbx,%rax,8),%xmm1
movsd  %xmm1,(%rbx,%rax,8)
or     $0x1,%rax
add    %r13,%rcx
je     1474 <double_axpy+0x2a4>
nop
movsd  (%r14,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rbx,%rax,8),%xmm1
movsd  %xmm1,(%rbx,%rax,8)
movsd  0x8(%r14,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%rbx,%rax,8),%xmm1
movsd  %xmm1,0x8(%rbx,%rax,8)
add    $0x2,%rax
cmp    %rax,%r13
jne    1340 <double_axpy+0x170>
jmp    1474 <double_axpy+0x2a4>
lea    0xca7(%rip),%rdi
call   1050 <puts@plt>
jmp    14c5 <double_axpy+0x2f5>
mov    %r13d,%eax
and    $0xfffffffc,%eax
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x4(%rax),%rcx
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rcx,%rcx
je     14d6 <double_axpy+0x306>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %ecx,%ecx
nopl   0x0(%rax)
movupd (%r14,%rcx,8),%xmm2
movupd 0x10(%r14,%rcx,8),%xmm3
mulpd  %xmm1,%xmm2
movupd (%rbx,%rcx,8),%xmm4
addpd  %xmm2,%xmm4
movupd 0x10(%rbx,%rcx,8),%xmm2
movupd 0x20(%rbx,%rcx,8),%xmm5
movupd 0x30(%rbx,%rcx,8),%xmm6
mulpd  %xmm1,%xmm3
addpd  %xmm2,%xmm3
movupd %xmm4,(%rbx,%rcx,8)
movupd %xmm3,0x10(%rbx,%rcx,8)
movupd 0x20(%r14,%rcx,8),%xmm2
movupd 0x30(%r14,%rcx,8),%xmm3
mulpd  %xmm1,%xmm2
addpd  %xmm5,%xmm2
mulpd  %xmm1,%xmm3
addpd  %xmm6,%xmm3
movupd %xmm2,0x20(%rbx,%rcx,8)
movupd %xmm3,0x30(%rbx,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rsi
jne    13c0 <double_axpy+0x1f0>
test   $0x1,%dl
je     146b <double_axpy+0x29b>
movupd (%r14,%rcx,8),%xmm2
movupd 0x10(%r14,%rcx,8),%xmm3
movupd (%rbx,%rcx,8),%xmm4
movupd 0x10(%rbx,%rcx,8),%xmm5
mulpd  %xmm1,%xmm2
addpd  %xmm4,%xmm2
mulpd  %xmm1,%xmm3
addpd  %xmm5,%xmm3
movupd %xmm2,(%rbx,%rcx,8)
movupd %xmm3,0x10(%rbx,%rcx,8)
cmp    %r13,%rax
jne    1312 <double_axpy+0x142>
mov    0x0(%rbp),%edi
lea    0x8(%rsp),%rsi
call   1060 <clock_gettime@plt>
xor    %eax,%eax
call   10c0 <rapl_end@plt>
xor    %eax,%eax
call   10e0 <rapl_deinit@plt>
mov    0x10(%rsp),%edi
mov    0x8(%rsp),%esi
lea    0xb6a(%rip),%rdx
call   1030 <elapsed_time_hr@plt>
movsd  (%rbx),%xmm0
lea    0xb67(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
mov    %r14,%rdi
call   1040 <free@plt>
mov    %rbx,%rdi
call   1040 <free@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ecx,%ecx
test   $0x1,%dl
jne    1438 <double_axpy+0x268>
jmp    146b <double_axpy+0x29b>

LLVM IR (-O0):
%struct.timespec = type { i32 }
@.str = [61 x i8] c"Out Of Memory: could not allocate space for the two arrays.\0A\00"
@RAND_MAX = global double 0.000000e+00
@CLOCK_MONOTONIC_RAW = global i32 0
@.str.1 = [13 x i8] c"Double AXPY.\00"
@.str.2 = [18 x i8] c"APXY result = %f\0A\00"
define i32 @double_axpy(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca double
%6 = alloca double*
%7 = alloca double*
%8 = alloca %struct.timespec
%9 = alloca %struct.timespec
store i32 %0, i32* %3
%10 = load i32, i32* %3
%11 = zext i32 %10 to i64
%12 = mul i64 %11, 8
%13 = trunc i64 %12 to i32
%14 = call i64 @malloc(i32 %13)
%15 = inttoptr i64 %14 to double*
store double* %15, double** %6
%16 = load i32, i32* %3
%17 = zext i32 %16 to i64
%18 = mul i64 %17, 8
%19 = trunc i64 %18 to i32
%20 = call i64 @malloc(i32 %19)
%21 = inttoptr i64 %20 to double*
store double* %21, double** %7
%22 = load double*, double** %6
%23 = icmp eq double* %22, null
br i1 %23, label %27, label %24
24: ; preds = %1
%25 = load double*, double** %7
%26 = icmp eq double* %25, null
br i1 %26, label %27, label %29
27: ; preds = %24, %1
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %111
29: ; preds = %24
%30 = call i64 @time(i32* null)
%31 = trunc i64 %30 to i32
%32 = call i32 @srand(i32 %31)
%33 = call i64 (...) @rand()
%34 = sitofp i64 %33 to double
%35 = load double, double* @RAND_MAX
%36 = fdiv double %35, 1.000000e+01
%37 = fdiv double %34, %36
store double %37, double* %5
store i32 0, i32* %4
br label %38
38: ; preds = %61, %29
%39 = load i32, i32* %4
%40 = load i32, i32* %3
%41 = icmp ult i32 %39, %40
br i1 %41, label %42, label %64
42: ; preds = %38
%43 = call i64 (...) @rand()
%44 = sitofp i64 %43 to double
%45 = load double, double* @RAND_MAX
%46 = fdiv double %45, 1.000000e+01
%47 = fdiv double %44, %46
%48 = load double*, double** %6
%49 = load i32, i32* %4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, double* %48, i64 %50
store double %47, double* %51
%52 = call i64 (...) @rand()
%53 = sitofp i64 %52 to double
%54 = load double, double* @RAND_MAX
%55 = fdiv double %54, 1.000000e+01
%56 = fdiv double %53, %55
%57 = load double*, double** %7
%58 = load i32, i32* %4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, double* %57, i64 %59
store double %56, double* %60
br label %61
61: ; preds = %42
%62 = load i32, i32* %4
%63 = add nsw i32 %62, 1
store i32 %63, i32* %4
br label %38
64: ; preds = %38
%65 = call i32 (...) @rapl_init()
%66 = call i32 (...) @rapl_start()
%67 = load i32, i32* @CLOCK_MONOTONIC_RAW
%68 = call i32 @clock_gettime(i32 %67, %struct.timespec* %8)
store i32 0, i32* %4
br label %69
69: ; preds = %90, %64
%70 = load i32, i32* %4
%71 = load i32, i32* %3
%72 = icmp ult i32 %70, %71
br i1 %72, label %73, label %93
73: ; preds = %69
%74 = load double, double* %5
%75 = load double*, double** %6
%76 = load i32, i32* %4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, double* %75, i64 %77
%79 = load double, double* %78
%80 = load double*, double** %7
%81 = load i32, i32* %4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %80, i64 %82
%84 = load double, double* %83
%85 = call double @llvm.fmuladd.f64(double %74, double %79, double %84)
%86 = load double*, double** %7
%87 = load i32, i32* %4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds double, double* %86, i64 %88
store double %85, double* %89
br label %90
90: ; preds = %73
%91 = load i32, i32* %4
%92 = add nsw i32 %91, 1
store i32 %92, i32* %4
br label %69
93: ; preds = %69
%94 = load i32, i32* @CLOCK_MONOTONIC_RAW
%95 = call i32 @clock_gettime(i32 %94, %struct.timespec* %9)
%96 = call i32 (...) @rapl_end()
%97 = call i32 (...) @rapl_deinit()
%98 = getelementptr inbounds %struct.timespec, %struct.timespec* %8, i32 0, i32 0
%99 = load i32, i32* %98
%100 = getelementptr inbounds %struct.timespec, %struct.timespec* %9, i32 0, i32 0
%101 = load i32, i32* %100
%102 = call i32 @elapsed_time_hr(i32 %99, i32 %101, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%103 = load double*, double** %7
%104 = getelementptr inbounds double, double* %103, i64 0
%105 = load double, double* %104
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), double %105)
%107 = load double*, double** %6
%108 = call i32 @free(double* %107)
%109 = load double*, double** %7
%110 = call i32 @free(double* %109)
store i32 0, i32* %2
br label %111
111: ; preds = %93, %27
%112 = load i32, i32* %2
ret i32 %112
}

LLVM IR (-O2):
%struct.timespec = type { i32 }
@RAND_MAX = global double 0.000000e+00
@CLOCK_MONOTONIC_RAW = global i32 0
@.str.1 = [13 x i8] c"Double AXPY.\00"
@.str.2 = [18 x i8] c"APXY result = %f\0A\00"
@str = [60 x i8] c"Out Of Memory: could not allocate space for the two arrays.\00"
define i32 @double_axpy(i32 %0) {
%2 = alloca %struct.timespec
%3 = alloca %struct.timespec
%4 = shl i32 %0, 3
%5 = tail call i64 @malloc(i32 %4)
%6 = inttoptr i64 %5 to double*
%7 = inttoptr i64 %5 to i8*
%8 = tail call i64 @malloc(i32 %4)
%9 = inttoptr i64 %8 to double*
%10 = inttoptr i64 %8 to i8*
%11 = icmp eq i64 %5, 0
%12 = icmp eq i64 %8, 0
%13 = select i1 %11, i1 true, i1 %12
br i1 %13, label %14, label %16
14: ; preds = %1
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str, i64 0, i64 0))
br label %181
16: ; preds = %1
%17 = tail call i64 @time(i32* null)
%18 = trunc i64 %17 to i32
%19 = tail call i32 @srand(i32 %18)
%20 = tail call i64 (...) @rand()
%21 = sitofp i64 %20 to double
%22 = load double, double* @RAND_MAX
%23 = fdiv double %22, 1.000000e+01
%24 = fdiv double %21, %23
%25 = icmp eq i32 %0, 0
br i1 %25, label %44, label %26
26: ; preds = %16
%27 = zext i32 %0 to i64
br label %28
28: ; preds = %26, %28
%29 = phi i64 [ 0, %26 ], [ %42, %28 ]
%30 = tail call i64 (...) @rand()
%31 = sitofp i64 %30 to double
%32 = load double, double* @RAND_MAX
%33 = fdiv double %32, 1.000000e+01
%34 = fdiv double %31, %33
%35 = getelementptr inbounds double, double* %6, i64 %29
store double %34, double* %35
%36 = tail call i64 (...) @rand()
%37 = sitofp i64 %36 to double
%38 = load double, double* @RAND_MAX
%39 = fdiv double %38, 1.000000e+01
%40 = fdiv double %37, %39
%41 = getelementptr inbounds double, double* %9, i64 %29
store double %40, double* %41
%42 = add nuw nsw i64 %29, 1
%43 = icmp eq i64 %42, %27
br i1 %43, label %44, label %28
44: ; preds = %28, %16
%45 = bitcast %struct.timespec* %2 to i8*
%46 = bitcast %struct.timespec* %3 to i8*
%47 = tail call i32 (...) @rapl_init()
%48 = tail call i32 (...) @rapl_start()
%49 = load i32, i32* @CLOCK_MONOTONIC_RAW
%50 = call i32 @clock_gettime(i32 %49, %struct.timespec* %2)
br i1 %25, label %167, label %51
51: ; preds = %44
%52 = zext i32 %0 to i64
%53 = icmp ult i32 %0, 4
br i1 %53, label %136, label %54
54: ; preds = %51
%55 = getelementptr double, double* %9, i64 %52
%56 = bitcast double* %55 to i8*
%57 = getelementptr double, double* %6, i64 %52
%58 = bitcast double* %57 to i8*
%59 = icmp ult i8* %10, %58
%60 = icmp ult i8* %7, %56
%61 = and i1 %59, %60
br i1 %61, label %136, label %62
62: ; preds = %54
%63 = and i64 %52, 4294967292
%64 = insertelement <2 x double> poison, double %24, i64 0
%65 = shufflevector <2 x double> %64, <2 x double> poison, <2 x i32> zeroinitializer
%66 = insertelement <2 x double> poison, double %24, i64 0
%67 = shufflevector <2 x double> %66, <2 x double> poison, <2 x i32> zeroinitializer
%68 = add nsw i64 %63, -4
%69 = lshr exact i64 %68, 2
%70 = add nuw nsw i64 %69, 1
%71 = and i64 %70, 1
%72 = icmp eq i64 %68, 0
br i1 %72, label %114, label %73
73: ; preds = %62
%74 = and i64 %70, 9223372036854775806
br label %75
75: ; preds = %75, %73
%76 = phi i64 [ 0, %73 ], [ %111, %75 ]
%77 = phi i64 [ 0, %73 ], [ %112, %75 ]
%78 = getelementptr inbounds double, double* %6, i64 %76
%79 = bitcast double* %78 to <2 x double>*
%80 = load <2 x double>, <2 x double>* %79
%81 = getelementptr inbounds double, double* %78, i64 2
%82 = bitcast double* %81 to <2 x double>*
%83 = load <2 x double>, <2 x double>* %82
%84 = getelementptr inbounds double, double* %9, i64 %76
%85 = bitcast double* %84 to <2 x double>*
%86 = load <2 x double>, <2 x double>* %85
%87 = getelementptr inbounds double, double* %84, i64 2
%88 = bitcast double* %87 to <2 x double>*
%89 = load <2 x double>, <2 x double>* %88
%90 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %65, <2 x double> %80, <2 x double> %86)
%91 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %67, <2 x double> %83, <2 x double> %89)
%92 = bitcast double* %84 to <2 x double>*
store <2 x double> %90, <2 x double>* %92
%93 = bitcast double* %87 to <2 x double>*
store <2 x double> %91, <2 x double>* %93
%94 = or i64 %76, 4
%95 = getelementptr inbounds double, double* %6, i64 %94
%96 = bitcast double* %95 to <2 x double>*
%97 = load <2 x double>, <2 x double>* %96
%98 = getelementptr inbounds double, double* %95, i64 2
%99 = bitcast double* %98 to <2 x double>*
%100 = load <2 x double>, <2 x double>* %99
%101 = getelementptr inbounds double, double* %9, i64 %94
%102 = bitcast double* %101 to <2 x double>*
%103 = load <2 x double>, <2 x double>* %102
%104 = getelementptr inbounds double, double* %101, i64 2
%105 = bitcast double* %104 to <2 x double>*
%106 = load <2 x double>, <2 x double>* %105
%107 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %65, <2 x double> %97, <2 x double> %103)
%108 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %67, <2 x double> %100, <2 x double> %106)
%109 = bitcast double* %101 to <2 x double>*
store <2 x double> %107, <2 x double>* %109
%110 = bitcast double* %104 to <2 x double>*
store <2 x double> %108, <2 x double>* %110
%111 = add nuw i64 %76, 8
%112 = add i64 %77, 2
%113 = icmp eq i64 %112, %74
br i1 %113, label %114, label %75
114: ; preds = %75, %62
%115 = phi i64 [ 0, %62 ], [ %111, %75 ]
%116 = icmp eq i64 %71, 0
br i1 %116, label %134, label %117
117: ; preds = %114
%118 = getelementptr inbounds double, double* %6, i64 %115
%119 = bitcast double* %118 to <2 x double>*
%120 = load <2 x double>, <2 x double>* %119
%121 = getelementptr inbounds double, double* %118, i64 2
%122 = bitcast double* %121 to <2 x double>*
%123 = load <2 x double>, <2 x double>* %122
%124 = getelementptr inbounds double, double* %9, i64 %115
%125 = bitcast double* %124 to <2 x double>*
%126 = load <2 x double>, <2 x double>* %125
%127 = getelementptr inbounds double, double* %124, i64 2
%128 = bitcast double* %127 to <2 x double>*
%129 = load <2 x double>, <2 x double>* %128
%130 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %65, <2 x double> %120, <2 x double> %126)
%131 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %67, <2 x double> %123, <2 x double> %129)
%132 = bitcast double* %124 to <2 x double>*
store <2 x double> %130, <2 x double>* %132
%133 = bitcast double* %127 to <2 x double>*
store <2 x double> %131, <2 x double>* %133
br label %134
134: ; preds = %114, %117
%135 = icmp eq i64 %63, %52
br i1 %135, label %167, label %136
136: ; preds = %54, %51, %134
%137 = phi i64 [ 0, %54 ], [ 0, %51 ], [ %63, %134 ]
%138 = xor i64 %137, -1
%139 = and i64 %52, 1
%140 = icmp eq i64 %139, 0
br i1 %140, label %148, label %141
141: ; preds = %136
%142 = getelementptr inbounds double, double* %6, i64 %137
%143 = load double, double* %142
%144 = getelementptr inbounds double, double* %9, i64 %137
%145 = load double, double* %144
%146 = call double @llvm.fmuladd.f64(double %24, double %143, double %145)
store double %146, double* %144
%147 = or i64 %137, 1
br label %148
148: ; preds = %141, %136
%149 = phi i64 [ %137, %136 ], [ %147, %141 ]
%150 = sub nsw i64 0, %52
%151 = icmp eq i64 %138, %150
br i1 %151, label %167, label %152
152: ; preds = %148, %152
%153 = phi i64 [ %165, %152 ], [ %149, %148 ]
%154 = getelementptr inbounds double, double* %6, i64 %153
%155 = load double, double* %154
%156 = getelementptr inbounds double, double* %9, i64 %153
%157 = load double, double* %156
%158 = call double @llvm.fmuladd.f64(double %24, double %155, double %157)
store double %158, double* %156
%159 = add nuw nsw i64 %153, 1
%160 = getelementptr inbounds double, double* %6, i64 %159
%161 = load double, double* %160
%162 = getelementptr inbounds double, double* %9, i64 %159
%163 = load double, double* %162
%164 = call double @llvm.fmuladd.f64(double %24, double %161, double %163)
store double %164, double* %162
%165 = add nuw nsw i64 %153, 2
%166 = icmp eq i64 %165, %52
br i1 %166, label %167, label %152
167: ; preds = %148, %152, %134, %44
%168 = load i32, i32* @CLOCK_MONOTONIC_RAW
%169 = call i32 @clock_gettime(i32 %168, %struct.timespec* %3)
%170 = call i32 (...) @rapl_end()
%171 = call i32 (...) @rapl_deinit()
%172 = getelementptr inbounds %struct.timespec, %struct.timespec* %2, i64 0, i32 0
%173 = load i32, i32* %172
%174 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i64 0, i32 0
%175 = load i32, i32* %174
%176 = call i32 @elapsed_time_hr(i32 %173, i32 %175, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%177 = load double, double* %9
%178 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), double %177)
%179 = call i32 @free(double* %6)
%180 = call i32 @free(double* %9)
br label %181
181: ; preds = %167, %14
ret i32 0
}