#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*/ EXIT_FAILURE;
int /*<<< orphan*/ _mm_free(double *);
double *_mm_malloc(long long, int);
int /*<<< orphan*/ assert(int /*<<< orphan*/);
long long atoll(char *);
size_t check(double, long long);
double dotproduct(double *, double *, long long);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
double omp_get_wtime();
int /*<<< orphan*/ printf(char *, double, ...);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  char *awnser[] = {"bad", "ok"};
  long long int i, n;
  double elapsed, start, end;
  double r;
  if (argc != 2) {
    fprintf(stderr, "Usage: %s <number of elements>\n", argv[0]);
    exit(EXIT_FAILURE);
  }
  n = atoll(argv[1]);
  n = n % 8 == 0 ? n : n + (8 - n % 8);
  printf("number of elements: %lld\n", n);
  double *va = _mm_malloc(n * sizeof(double), 64);
  assert(va != NULL);
  double *vb = _mm_malloc(n * sizeof(double), 64);
  assert(vb != NULL);
  for (i = 0; i < n; i++) {
    va[i] = 1;
    vb[i] = 2;
  }
  start = omp_get_wtime();
  r = dotproduct(va, vb, n);
  end = omp_get_wtime();
  elapsed = end - start;
  printf("output is %lf, which is %s\ntime: %.3lf seconds\n", r,
         awnser[check(r, n)], elapsed);
  _mm_free(va);
  _mm_free(vb);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2c40(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2c3d(%rip),%rax
mov    %rax,-0x18(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1203 <main+0x63>
mov    0x2e00(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe27(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x2ddc(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <atoll@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    $0x8,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1239 <main+0x99>
mov    -0x30(%rbp),%rax
mov    %rax,-0x68(%rbp)
jmp    1262 <main+0xc2>
mov    -0x30(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x30(%rbp),%rax
mov    $0x8,%ecx
cqto
idiv   %rcx
mov    -0x70(%rbp),%rax
mov    $0x8,%ecx
sub    %rdx,%rcx
add    %rcx,%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0x30(%rbp)
cvtsi2sdq -0x30(%rbp),%xmm0
lea    0xdc0(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdi
shl    $0x3,%rdi
mov    $0x40,%esi
call   10b0 <_mm_malloc@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x30(%rbp),%rdi
shl    $0x3,%rdi
mov    $0x40,%esi
call   10b0 <_mm_malloc@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x60(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
movq   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    131f <main+0x17f>
mov    -0x58(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0xd14(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0xcf7(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    12d6 <main+0x136>
mov    $0x0,%al
call   1040 <omp_get_wtime@plt>
movsd  %xmm0,-0x40(%rbp)
mov    -0x58(%rbp),%rdi
mov    -0x60(%rbp),%rsi
mov    -0x30(%rbp),%rdx
call   1030 <dotproduct@plt>
movsd  %xmm0,-0x50(%rbp)
mov    $0x0,%al
call   1040 <omp_get_wtime@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    -0x30(%rbp),%rdi
call   1090 <check@plt>
movsd  -0x78(%rbp),%xmm0
mov    -0x20(%rbp,%rax,8),%rsi
movsd  -0x38(%rbp),%xmm1
lea    0xcc7(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    -0x58(%rbp),%rdi
call   10c0 <_mm_free@plt>
mov    -0x60(%rbp),%rdi
call   10c0 <_mm_free@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
cmp    $0x2,%edi
jne    1478 <main+0x2d8>
mov    0x8(%rsi),%rdi
call   1060 <atoll@plt>
lea    0x7(%rax),%rcx
test   %rax,%rax
cmovns %rax,%rcx
and    $0xfffffffffffffff8,%rcx
mov    %rax,%rdx
sub    %rcx,%rdx
mov    $0x8,%r14d
sub    %rdx,%r14
test   %rdx,%rdx
cmove  %rdx,%r14
add    %rax,%r14
cvtsi2sd %r14,%xmm0
lea    0xe58(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0x0(,%r14,8),%rbx
mov    %rbx,%rdi
mov    $0x40,%esi
call   10b0 <_mm_malloc@plt>
mov    %rax,%r15
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   1070 <assert@plt>
mov    %rbx,%rdi
mov    $0x40,%esi
call   10b0 <_mm_malloc@plt>
mov    %rax,%rbx
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   1070 <assert@plt>
test   %r14,%r14
jle    13f6 <main+0x256>
cmp    $0x4,%r14
jb     1263 <main+0xc3>
lea    (%rbx,%r14,8),%rax
cmp    %rax,%r15
jae    12e4 <main+0x144>
lea    (%r15,%r14,8),%rax
cmp    %rax,%rbx
jae    12e4 <main+0x144>
xor    %eax,%eax
mov    %rax,%rsi
not    %rsi
add    %r14,%rsi
mov    %r14,%rdi
movabs $0x3ff0000000000000,%rcx
movabs $0x4000000000000000,%rdx
and    $0x3,%rdi
je     12a2 <main+0x102>
nopl   0x0(%rax,%rax,1)
mov    %rcx,(%r15,%rax,8)
mov    %rdx,(%rbx,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rdi
jne    1290 <main+0xf0>
cmp    $0x3,%rsi
jb     13f6 <main+0x256>
nopl   0x0(%rax)
mov    %rcx,(%r15,%rax,8)
mov    %rdx,(%rbx,%rax,8)
mov    %rcx,0x8(%r15,%rax,8)
mov    %rdx,0x8(%rbx,%rax,8)
mov    %rcx,0x10(%r15,%rax,8)
mov    %rdx,0x10(%rbx,%rax,8)
mov    %rcx,0x18(%r15,%rax,8)
mov    %rdx,0x18(%rbx,%rax,8)
add    $0x4,%rax
cmp    %rax,%r14
jne    12b0 <main+0x110>
jmp    13f6 <main+0x256>
mov    %r14,%rax
and    $0xfffffffffffffffc,%rax
lea    -0x4(%rax),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %edx,%ecx
and    $0x3,%ecx
cmp    $0xc,%rsi
jae    130c <main+0x16c>
xor    %esi,%esi
jmp    1398 <main+0x1f8>
and    $0xfffffffffffffffc,%rdx
xor    %esi,%esi
movapd 0xce6(%rip),%xmm0
movaps 0xcef(%rip),%xmm1
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd %xmm0,(%r15,%rsi,8)
movupd %xmm0,0x10(%r15,%rsi,8)
movups %xmm1,(%rbx,%rsi,8)
movups %xmm1,0x10(%rbx,%rsi,8)
movupd %xmm0,0x20(%r15,%rsi,8)
movupd %xmm0,0x30(%r15,%rsi,8)
movups %xmm1,0x20(%rbx,%rsi,8)
movups %xmm1,0x30(%rbx,%rsi,8)
movupd %xmm0,0x40(%r15,%rsi,8)
movupd %xmm0,0x50(%r15,%rsi,8)
movups %xmm1,0x40(%rbx,%rsi,8)
movups %xmm1,0x50(%rbx,%rsi,8)
movupd %xmm0,0x60(%r15,%rsi,8)
movupd %xmm0,0x70(%r15,%rsi,8)
movups %xmm1,0x60(%rbx,%rsi,8)
movups %xmm1,0x70(%rbx,%rsi,8)
add    $0x10,%rsi
add    $0xfffffffffffffffc,%rdx
jne    1330 <main+0x190>
test   %rcx,%rcx
je     13ed <main+0x24d>
lea    (%rbx,%rsi,8),%rdx
add    $0x10,%rdx
lea    (%r15,%rsi,8),%rsi
add    $0x10,%rsi
shl    $0x5,%rcx
xor    %edi,%edi
movapd 0xc45(%rip),%xmm0
movaps 0xc4e(%rip),%xmm1
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movupd %xmm0,-0x10(%rsi,%rdi,1)
movupd %xmm0,(%rsi,%rdi,1)
movups %xmm1,-0x10(%rdx,%rdi,1)
movups %xmm1,(%rdx,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rcx
jne    13d0 <main+0x230>
cmp    %rax,%r14
jne    1265 <main+0xc5>
xor    %eax,%eax
call   1040 <omp_get_wtime@plt>
movsd  %xmm0,(%rsp)
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <dotproduct@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1040 <omp_get_wtime@plt>
subsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
mov    %r14,%rdi
call   1090 <check@plt>
lea    0xc58(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
lea    0xc17(%rip),%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x2,%al
call   1050 <printf@plt>
mov    %r15,%rdi
call   10c0 <_mm_free@plt>
mov    %rbx,%rdi
call   10c0 <_mm_free@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
mov    0x2b61(%rip),%rax
mov    (%rax),%edi
mov    (%rsi),%rdx
lea    0xb9c(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x2b41(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"bad\00"
@.str.1 = [3 x i8] c"ok\00"
@__const.main.awnser = [2 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0)]
@stderr = global i32 0
@.str.2 = [32 x i8] c"Usage: %s <number of elements>\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [26 x i8] c"number of elements: %lld\0A\00"
@.str.4 = [48 x i8] c"output is %lf, which is %s\0Atime: %.3lf seconds\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [2 x i8*]
%7 = alloca i64
%8 = alloca i64
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double*
%14 = alloca double*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = bitcast [2 x i8*]* %6 to i8*
%16 = load i32, i32* %4
%17 = icmp ne i32 %16, 2
br i1 %17, label %18, label %26
18: ; preds = %2
%19 = load i32, i32* @stderr
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 0
%22 = load i8*, i8** %21
%23 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %22)
%24 = load i32, i32* @EXIT_FAILURE
%25 = call i32 @exit(i32 %24)
unreachable
26: ; preds = %2
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = call i64 @atoll(i8* %29)
store i64 %30, i64* %8
%31 = load i64, i64* %8
%32 = srem i64 %31, 8
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %26
%35 = load i64, i64* %8
br label %42
36: ; preds = %26
%37 = load i64, i64* %8
%38 = load i64, i64* %8
%39 = srem i64 %38, 8
%40 = sub nsw i64 8, %39
%41 = add nsw i64 %37, %40
br label %42
42: ; preds = %36, %34
%43 = phi i64 [ %35, %34 ], [ %41, %36 ]
store i64 %43, i64* %8
%44 = load i64, i64* %8
%45 = sitofp i64 %44 to double
%46 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), double %45)
%47 = load i64, i64* %8
%48 = mul i64 %47, 8
%49 = call double* @_mm_malloc(i64 %48, i32 64)
store double* %49, double** %13
%50 = load double*, double** %13
%51 = icmp ne double* %50, null
%52 = zext i1 %51 to i32
%53 = call i32 @assert(i32 %52)
%54 = load i64, i64* %8
%55 = mul i64 %54, 8
%56 = call double* @_mm_malloc(i64 %55, i32 64)
store double* %56, double** %14
%57 = load double*, double** %14
%58 = icmp ne double* %57, null
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
store i64 0, i64* %7
br label %61
61: ; preds = %72, %42
%62 = load i64, i64* %7
%63 = load i64, i64* %8
%64 = icmp slt i64 %62, %63
br i1 %64, label %65, label %75
65: ; preds = %61
%66 = load double*, double** %13
%67 = load i64, i64* %7
%68 = getelementptr inbounds double, double* %66, i64 %67
store double 1.000000e+00, double* %68
%69 = load double*, double** %14
%70 = load i64, i64* %7
%71 = getelementptr inbounds double, double* %69, i64 %70
store double 2.000000e+00, double* %71
br label %72
72: ; preds = %65
%73 = load i64, i64* %7
%74 = add nsw i64 %73, 1
store i64 %74, i64* %7
br label %61
75: ; preds = %61
%76 = call double (...) @omp_get_wtime()
store double %76, double* %10
%77 = load double*, double** %13
%78 = load double*, double** %14
%79 = load i64, i64* %8
%80 = call double @dotproduct(double* %77, double* %78, i64 %79)
store double %80, double* %12
%81 = call double (...) @omp_get_wtime()
store double %81, double* %11
%82 = load double, double* %11
%83 = load double, double* %10
%84 = fsub double %82, %83
store double %84, double* %9
%85 = load double, double* %12
%86 = load double, double* %12
%87 = load i64, i64* %8
%88 = call i64 @check(double %86, i64 %87)
%89 = getelementptr inbounds [2 x i8*], [2 x i8*]* %6, i64 0, i64 %88
%90 = load i8*, i8** %89
%91 = load double, double* %9
%92 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), double %85, i8* %90, double %91)
%93 = load double*, double** %13
%94 = call i32 @_mm_free(double* %93)
%95 = load double*, double** %14
%96 = call i32 @_mm_free(double* %95)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"bad\00"
@.str.1 = [3 x i8] c"ok\00"
@reltable.main = [2 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str to i64), i64 ptrtoint ([2 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.1 to i64), i64 ptrtoint ([2 x i32]* @reltable.main to i64)) to i32)]
@stderr = global i32 0
@.str.2 = [32 x i8] c"Usage: %s <number of elements>\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [26 x i8] c"number of elements: %lld\0A\00"
@.str.4 = [48 x i8] c"output is %lf, which is %s\0Atime: %.3lf seconds\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %10, label %4
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %1
%7 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %6)
%8 = load i32, i32* @EXIT_FAILURE
%9 = tail call i32 @exit(i32 %8)
unreachable
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i64 @atoll(i8* %12)
%14 = srem i64 %13, 8
%15 = icmp eq i64 %14, 0
%16 = sub nsw i64 8, %14
%17 = select i1 %15, i64 0, i64 %16
%18 = add nsw i64 %17, %13
%19 = sitofp i64 %18 to double
%20 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), double %19)
%21 = shl i64 %18, 3
%22 = tail call double* @_mm_malloc(i64 %21, i32 64)
%23 = icmp ne double* %22, null
%24 = zext i1 %23 to i32
%25 = tail call i32 @assert(i32 %24)
%26 = tail call double* @_mm_malloc(i64 %21, i32 64)
%27 = icmp ne double* %26, null
%28 = zext i1 %27 to i32
%29 = tail call i32 @assert(i32 %28)
%30 = icmp sgt i64 %18, 0
br i1 %30, label %31, label %141
31: ; preds = %10
%32 = icmp ult i64 %18, 4
br i1 %32, label %108, label %33
33: ; preds = %31
%34 = getelementptr double, double* %22, i64 %18
%35 = getelementptr double, double* %26, i64 %18
%36 = icmp ult double* %22, %35
%37 = icmp ult double* %26, %34
%38 = and i1 %36, %37
br i1 %38, label %108, label %39
39: ; preds = %33
%40 = and i64 %18, -4
%41 = add i64 %40, -4
%42 = lshr exact i64 %41, 2
%43 = add nuw nsw i64 %42, 1
%44 = and i64 %43, 3
%45 = icmp ult i64 %41, 12
br i1 %45, label %89, label %46
46: ; preds = %39
%47 = and i64 %43, 9223372036854775804
br label %48
48: ; preds = %48, %46
%49 = phi i64 [ 0, %46 ], [ %86, %48 ]
%50 = phi i64 [ 0, %46 ], [ %87, %48 ]
%51 = getelementptr inbounds double, double* %22, i64 %49
%52 = bitcast double* %51 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %52
%53 = getelementptr inbounds double, double* %51, i64 2
%54 = bitcast double* %53 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %54
%55 = getelementptr inbounds double, double* %26, i64 %49
%56 = bitcast double* %55 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %56
%57 = getelementptr inbounds double, double* %55, i64 2
%58 = bitcast double* %57 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %58
%59 = or i64 %49, 4
%60 = getelementptr inbounds double, double* %22, i64 %59
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %61
%62 = getelementptr inbounds double, double* %60, i64 2
%63 = bitcast double* %62 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %63
%64 = getelementptr inbounds double, double* %26, i64 %59
%65 = bitcast double* %64 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %65
%66 = getelementptr inbounds double, double* %64, i64 2
%67 = bitcast double* %66 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %67
%68 = or i64 %49, 8
%69 = getelementptr inbounds double, double* %22, i64 %68
%70 = bitcast double* %69 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %70
%71 = getelementptr inbounds double, double* %69, i64 2
%72 = bitcast double* %71 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %72
%73 = getelementptr inbounds double, double* %26, i64 %68
%74 = bitcast double* %73 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %74
%75 = getelementptr inbounds double, double* %73, i64 2
%76 = bitcast double* %75 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %76
%77 = or i64 %49, 12
%78 = getelementptr inbounds double, double* %22, i64 %77
%79 = bitcast double* %78 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %79
%80 = getelementptr inbounds double, double* %78, i64 2
%81 = bitcast double* %80 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %81
%82 = getelementptr inbounds double, double* %26, i64 %77
%83 = bitcast double* %82 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %83
%84 = getelementptr inbounds double, double* %82, i64 2
%85 = bitcast double* %84 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %85
%86 = add nuw i64 %49, 16
%87 = add nuw i64 %50, 4
%88 = icmp eq i64 %87, %47
br i1 %88, label %89, label %48
89: ; preds = %48, %39
%90 = phi i64 [ 0, %39 ], [ %86, %48 ]
%91 = icmp eq i64 %44, 0
br i1 %91, label %106, label %92
92: ; preds = %89, %92
%93 = phi i64 [ %103, %92 ], [ %90, %89 ]
%94 = phi i64 [ %104, %92 ], [ 0, %89 ]
%95 = getelementptr inbounds double, double* %22, i64 %93
%96 = bitcast double* %95 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %96
%97 = getelementptr inbounds double, double* %95, i64 2
%98 = bitcast double* %97 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %98
%99 = getelementptr inbounds double, double* %26, i64 %93
%100 = bitcast double* %99 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %100
%101 = getelementptr inbounds double, double* %99, i64 2
%102 = bitcast double* %101 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %102
%103 = add nuw i64 %93, 4
%104 = add i64 %94, 1
%105 = icmp eq i64 %104, %44
br i1 %105, label %106, label %92
106: ; preds = %92, %89
%107 = icmp eq i64 %18, %40
br i1 %107, label %141, label %108
108: ; preds = %33, %31, %106
%109 = phi i64 [ 0, %33 ], [ 0, %31 ], [ %40, %106 ]
%110 = add i64 %17, %13
%111 = xor i64 %109, -1
%112 = add i64 %110, %111
%113 = and i64 %110, 3
%114 = icmp eq i64 %113, 0
br i1 %114, label %123, label %115
115: ; preds = %108, %115
%116 = phi i64 [ %120, %115 ], [ %109, %108 ]
%117 = phi i64 [ %121, %115 ], [ 0, %108 ]
%118 = getelementptr inbounds double, double* %22, i64 %116
store double 1.000000e+00, double* %118
%119 = getelementptr inbounds double, double* %26, i64 %116
store double 2.000000e+00, double* %119
%120 = add nuw nsw i64 %116, 1
%121 = add i64 %117, 1
%122 = icmp eq i64 %121, %113
br i1 %122, label %123, label %115
123: ; preds = %115, %108
%124 = phi i64 [ %109, %108 ], [ %120, %115 ]
%125 = icmp ult i64 %112, 3
br i1 %125, label %141, label %126
126: ; preds = %123, %126
%127 = phi i64 [ %139, %126 ], [ %124, %123 ]
%128 = getelementptr inbounds double, double* %22, i64 %127
store double 1.000000e+00, double* %128
%129 = getelementptr inbounds double, double* %26, i64 %127
store double 2.000000e+00, double* %129
%130 = add nuw nsw i64 %127, 1
%131 = getelementptr inbounds double, double* %22, i64 %130
store double 1.000000e+00, double* %131
%132 = getelementptr inbounds double, double* %26, i64 %130
store double 2.000000e+00, double* %132
%133 = add nuw nsw i64 %127, 2
%134 = getelementptr inbounds double, double* %22, i64 %133
store double 1.000000e+00, double* %134
%135 = getelementptr inbounds double, double* %26, i64 %133
store double 2.000000e+00, double* %135
%136 = add nuw nsw i64 %127, 3
%137 = getelementptr inbounds double, double* %22, i64 %136
store double 1.000000e+00, double* %137
%138 = getelementptr inbounds double, double* %26, i64 %136
store double 2.000000e+00, double* %138
%139 = add nuw nsw i64 %127, 4
%140 = icmp eq i64 %139, %18
br i1 %140, label %141, label %126
141: ; preds = %123, %126, %106, %10
%142 = tail call double (...) @omp_get_wtime()
%143 = tail call double @dotproduct(double* %22, double* %26, i64 %18)
%144 = tail call double (...) @omp_get_wtime()
%145 = fsub double %144, %142
%146 = tail call i64 @check(double %143, i64 %18)
%147 = shl i64 %146, 2
%148 = call i8* @llvm.load.relative.i64(i8* bitcast ([2 x i32]* @reltable.main to i8*), i64 %147)
%149 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), double %143, i8* %148, double %145)
%150 = tail call i32 @_mm_free(double* %22)
%151 = tail call i32 @_mm_free(double* %26)
ret i32 0
}