#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(float *);
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 float_axpy(unsigned int size) {
  int i;
  float a;
  float *x = (float *)malloc(size * sizeof(float));
  float *y = (float *)malloc(size * sizeof(float));
  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 = (float)rand() / (float)(RAND_MAX / 10.0);
  for (i = 0; i < size; i++) {
    x[i] = (float)rand() / (float)(RAND_MAX / 10.0);
    y[i] = (float)rand() / (float)(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, "Float AXPY.");
  printf("APXY result = %f\n", y[0]);
  free(x);
  free(y);
  return 0;
}


x86 assembly (clang, -O0):
<float_axpy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x2,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x2,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1205 <float_axpy+0x45>
cmpq   $0x0,-0x20(%rbp)
jne    121f <float_axpy+0x5f>
lea    0xdfc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ca <float_axpy+0x20a>
xor    %eax,%eax
mov    %eax,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1080 <srand@plt>
mov    $0x0,%al
call   10e0 <rand@plt>
cvtsi2ss %rax,%xmm0
mov    0x2da6(%rip),%rax
movsd  (%rax),%xmm1
movsd  0xdb2(%rip),%xmm2
divsd  %xmm2,%xmm1
cvtsd2ss %xmm1,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    12f0 <float_axpy+0x130>
mov    $0x0,%al
call   10e0 <rand@plt>
cvtsi2ss %rax,%xmm0
mov    0x2d63(%rip),%rax
movsd  (%rax),%xmm1
movsd  0xd6f(%rip),%xmm2
divsd  %xmm2,%xmm1
cvtsd2ss %xmm1,%xmm1
divss  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    $0x0,%al
call   10e0 <rand@plt>
cvtsi2ss %rax,%xmm0
mov    0x2d2b(%rip),%rax
movsd  (%rax),%xmm1
movsd  0xd37(%rip),%xmm2
divsd  %xmm2,%xmm1
cvtsd2ss %xmm1,%xmm1
divss  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1266 <float_axpy+0xa6>
mov    $0x0,%al
call   10c0 <rapl_init@plt>
mov    $0x0,%al
call   1070 <rapl_start@plt>
mov    0x2cdb(%rip),%rax
mov    (%rax),%edi
lea    -0x28(%rbp),%rsi
call   1050 <clock_gettime@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1365 <float_axpy+0x1a5>
movss  -0x10(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
mov    -0x20(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1317 <float_axpy+0x157>
mov    0x2c74(%rip),%rax
mov    (%rax),%edi
lea    -0x30(%rbp),%rsi
call   1050 <clock_gettime@plt>
mov    $0x0,%al
call   10b0 <rapl_end@plt>
mov    $0x0,%al
call   10d0 <rapl_deinit@plt>
mov    -0x28(%rbp),%edi
mov    -0x30(%rbp),%esi
lea    0xcb3(%rip),%rdx
call   1030 <elapsed_time_hr@plt>
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xca7(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1040 <free@plt>
mov    -0x20(%rbp),%rdi
call   1040 <free@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<float_axpy>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %edi,%r15d
lea    0x0(,%r15,4),%ebx
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    %rax,%r14
mov    %ebx,%edi
call   10b0 <malloc@plt>
test   %r14,%r14
je     1389 <float_axpy+0x1b9>
mov    %rax,%rbx
test   %rax,%rax
je     1389 <float_axpy+0x1b9>
xor    %edi,%edi
call   10a0 <time@plt>
mov    %eax,%edi
call   1090 <srand@plt>
xor    %eax,%eax
call   10f0 <rand@plt>
mov    %rax,0x20(%rsp)
mov    0x2db8(%rip),%rbp
movsd  0x0(%rbp),%xmm0
movsd  %xmm0,0x18(%rsp)
mov    %r15d,%r13d
test   %r15d,%r15d
je     12b1 <float_axpy+0xe1>
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   10f0 <rand@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movsd  0x0(%rbp),%xmm1
movsd  0xd94(%rip),%xmm2
divsd  %xmm2,%xmm1
cvtsd2ss %xmm1,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,(%r14,%r12,4)
xor    %eax,%eax
call   10f0 <rand@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movsd  0x0(%rbp),%xmm1
divsd  0xd66(%rip),%xmm1
cvtsd2ss %xmm1,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,(%rbx,%r12,4)
add    $0x1,%r12
cmp    %r12,%r13
jne    1250 <float_axpy+0x80>
xor    %eax,%eax
call   10d0 <rapl_init@plt>
xor    %eax,%eax
call   1080 <rapl_start@plt>
mov    0x2d1a(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0x10(%rsp),%rsi
call   1060 <clock_gettime@plt>
test   %r15d,%r15d
je     1466 <float_axpy+0x296>
movsd  0x18(%rsp),%xmm1
divsd  0xd16(%rip),%xmm1
xorps  %xmm0,%xmm0
cvtsi2ssq 0x20(%rsp),%xmm0
cvtsd2ss %xmm1,%xmm1
divss  %xmm1,%xmm0
cmp    $0x8,%r15d
jb     131c <float_axpy+0x14c>
lea    (%r14,%r13,4),%rax
cmp    %rax,%rbx
jae    139a <float_axpy+0x1ca>
lea    (%rbx,%r13,4),%rax
cmp    %rax,%r14
jae    139a <float_axpy+0x1ca>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
test   $0x1,%r13b
je     1342 <float_axpy+0x172>
movss  (%r14,%rax,4),%xmm1
mulss  %xmm0,%xmm1
addss  (%rbx,%rax,4),%xmm1
movss  %xmm1,(%rbx,%rax,4)
or     $0x1,%rax
add    %r13,%rcx
je     1466 <float_axpy+0x296>
nopl   0x0(%rax,%rax,1)
movss  (%r14,%rax,4),%xmm1
mulss  %xmm0,%xmm1
addss  (%rbx,%rax,4),%xmm1
movss  %xmm1,(%rbx,%rax,4)
movss  0x4(%r14,%rax,4),%xmm1
mulss  %xmm0,%xmm1
addss  0x4(%rbx,%rax,4),%xmm1
movss  %xmm1,0x4(%rbx,%rax,4)
add    $0x2,%rax
cmp    %rax,%r13
jne    1350 <float_axpy+0x180>
jmp    1466 <float_axpy+0x296>
lea    0xc96(%rip),%rdi
call   1050 <puts@plt>
jmp    14bb <float_axpy+0x2eb>
mov    %r13d,%eax
and    $0xfffffff8,%eax
movaps %xmm0,%xmm1
shufps $0x0,%xmm0,%xmm1
lea    -0x8(%rax),%rcx
mov    %rcx,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
test   %rcx,%rcx
je     14cc <float_axpy+0x2fc>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movups (%r14,%rcx,4),%xmm2
movups 0x10(%r14,%rcx,4),%xmm3
mulps  %xmm1,%xmm2
movups (%rbx,%rcx,4),%xmm4
addps  %xmm2,%xmm4
movups 0x10(%rbx,%rcx,4),%xmm2
movups 0x20(%rbx,%rcx,4),%xmm5
movups 0x30(%rbx,%rcx,4),%xmm6
mulps  %xmm1,%xmm3
addps  %xmm2,%xmm3
movups %xmm4,(%rbx,%rcx,4)
movups %xmm3,0x10(%rbx,%rcx,4)
movups 0x20(%r14,%rcx,4),%xmm2
movups 0x30(%r14,%rcx,4),%xmm3
mulps  %xmm1,%xmm2
addps  %xmm5,%xmm2
mulps  %xmm1,%xmm3
addps  %xmm6,%xmm3
movups %xmm2,0x20(%rbx,%rcx,4)
movups %xmm3,0x30(%rbx,%rcx,4)
add    $0x10,%rcx
add    $0xfffffffffffffffe,%rsi
jne    13d0 <float_axpy+0x200>
test   $0x1,%dl
je     145d <float_axpy+0x28d>
movups (%r14,%rcx,4),%xmm2
movups 0x10(%r14,%rcx,4),%xmm3
movups (%rbx,%rcx,4),%xmm4
movups 0x10(%rbx,%rcx,4),%xmm5
mulps  %xmm1,%xmm2
addps  %xmm4,%xmm2
mulps  %xmm1,%xmm3
addps  %xmm5,%xmm3
movups %xmm2,(%rbx,%rcx,4)
movups %xmm3,0x10(%rbx,%rcx,4)
cmp    %r13,%rax
jne    131e <float_axpy+0x14e>
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    0xb78(%rip),%rdx
call   1030 <elapsed_time_hr@plt>
movss  (%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb70(%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    1434 <float_axpy+0x264>
jmp    145d <float_axpy+0x28d>

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

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