#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 */
double fabs(double);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int vectVectAddCheckResultGMDP(double *h_VectA, double *h_VectB, double *output,
                               int row) {
  int i, j, k, flag = 0;
  double *temp_Out;
  double errorNorm = 0.0;
  double eps = 1.0e-15;
  double relativeError = 0.0;
  temp_Out = (double *)malloc(sizeof(double) * row);
  for (j = 0; j < row; j++) {
    temp_Out[j] = h_VectA[j] + h_VectB[j];
  }
  for (j = 0; j < row; j++) {
    if (fabs(temp_Out[j]) > fabs(output[j]))
      relativeError = fabs((temp_Out[j] - output[j]) / temp_Out[j]);
    else
      relativeError = fabs((output[j] - temp_Out[j]) / output[j]);
    if (relativeError > eps && relativeError != 0.0e+00) {
      if (errorNorm < relativeError) {
        errorNorm = relativeError;
        flag = 1;
      }
    }
  }
  if (flag == 1) {
    printf(" \n Results verfication : Failed");
    printf(" \n Considered machine precision : %e", eps);
    printf(" \n Relative Error                  : %e", errorNorm);
  }
  if (flag == 0) {
    printf("\n\n\t\t Result Verification success\n\n");
  }
  free(temp_Out);
  return 0;
}


x86 assembly (clang, -O0):
<vectVectAddCheckResultGMDP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movl   $0x0,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xea2(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    11c6 <vectVectAddCheckResultGMDP+0x96>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1185 <vectVectAddCheckResultGMDP+0x55>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12f0 <vectVectAddCheckResultGMDP+0x1c0>
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe23(%rip),%xmm1
pand   %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xe0b(%rip),%xmm2
pand   %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    124f <vectVectAddCheckResultGMDP+0x11f>
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
movaps 0xdcf(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    1286 <vectVectAddCheckResultGMDP+0x156>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
movaps 0xd93(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
ucomisd -0x48(%rbp),%xmm0
jbe    12dd <vectVectAddCheckResultGMDP+0x1ad>
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12b3 <vectVectAddCheckResultGMDP+0x183>
jp     12b3 <vectVectAddCheckResultGMDP+0x183>
jmp    12dd <vectVectAddCheckResultGMDP+0x1ad>
movsd  -0x40(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    12d8 <vectVectAddCheckResultGMDP+0x1a8>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x1,-0x2c(%rbp)
jmp    12dd <vectVectAddCheckResultGMDP+0x1ad>
jmp    12e2 <vectVectAddCheckResultGMDP+0x1b2>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11cd <vectVectAddCheckResultGMDP+0x9d>
cmpl   $0x1,-0x2c(%rbp)
jne    132e <vectVectAddCheckResultGMDP+0x1fe>
lea    0xd1f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x48(%rbp),%xmm0
lea    0xd2c(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x40(%rbp),%xmm0
lea    0xd3e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x2c(%rbp)
jne    1346 <vectVectAddCheckResultGMDP+0x216>
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vectVectAddCheckResultGMDP>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %ecx,%r15d
mov    %rdx,%r14
mov    %rsi,%r13
mov    %rdi,%rbx
lea    0x0(,%r15,8),%edi
call   1060 <malloc@plt>
mov    %rax,%r12
test   %r15d,%r15d
jle    1445 <vectVectAddCheckResultGMDP+0x305>
mov    %r15d,%r9d
cmp    $0x4,%r15d
jae    122c <vectVectAddCheckResultGMDP+0xec>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %r9,%rdx
mov    %r9,%rsi
and    $0x3,%rsi
je     11bc <vectVectAddCheckResultGMDP+0x7c>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rbx,%rcx,8),%xmm0
addsd  0x0(%r13,%rcx,8),%xmm0
movsd  %xmm0,(%r12,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    11a0 <vectVectAddCheckResultGMDP+0x60>
cmp    $0x3,%rdx
jb     1345 <vectVectAddCheckResultGMDP+0x205>
cs nopw 0x0(%rax,%rax,1)
movsd  (%rbx,%rcx,8),%xmm0
addsd  0x0(%r13,%rcx,8),%xmm0
movsd  %xmm0,(%r12,%rcx,8)
movsd  0x8(%rbx,%rcx,8),%xmm0
addsd  0x8(%r13,%rcx,8),%xmm0
movsd  %xmm0,0x8(%r12,%rcx,8)
movsd  0x10(%rbx,%rcx,8),%xmm0
addsd  0x10(%r13,%rcx,8),%xmm0
movsd  %xmm0,0x10(%r12,%rcx,8)
movsd  0x18(%rbx,%rcx,8),%xmm0
addsd  0x18(%r13,%rcx,8),%xmm0
movsd  %xmm0,0x18(%r12,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%r9
jne    11d0 <vectVectAddCheckResultGMDP+0x90>
jmp    1345 <vectVectAddCheckResultGMDP+0x205>
lea    (%r12,%r9,8),%rcx
lea    (%rbx,%r9,8),%rdx
cmp    %rdx,%r12
setb   %dil
cmp    %rbx,%rcx
seta   %r8b
lea    0x0(,%r9,8),%rdx
add    %r13,%rdx
cmp    %rdx,%r12
setb   %dl
cmp    %r13,%rcx
seta   %sil
xor    %ecx,%ecx
test   %r8b,%dil
jne    1181 <vectVectAddCheckResultGMDP+0x41>
and    %sil,%dl
jne    1181 <vectVectAddCheckResultGMDP+0x41>
mov    %r9d,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     1469 <vectVectAddCheckResultGMDP+0x329>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nop
movupd (%rbx,%rdx,8),%xmm0
movupd 0x10(%rbx,%rdx,8),%xmm1
movupd 0x0(%r13,%rdx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%r13,%rdx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,(%r12,%rdx,8)
movupd %xmm0,0x10(%r12,%rdx,8)
movupd 0x20(%rbx,%rdx,8),%xmm0
movupd 0x30(%rbx,%rdx,8),%xmm1
movupd 0x20(%r13,%rdx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x30(%r13,%rdx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,0x20(%r12,%rdx,8)
movupd %xmm0,0x30(%r12,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rdi
jne    12a0 <vectVectAddCheckResultGMDP+0x160>
test   $0x1,%sil
je     133c <vectVectAddCheckResultGMDP+0x1fc>
movupd (%rbx,%rdx,8),%xmm0
movupd 0x10(%rbx,%rdx,8),%xmm1
movupd 0x0(%r13,%rdx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%r13,%rdx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,(%r12,%rdx,8)
movupd %xmm0,0x10(%r12,%rdx,8)
cmp    %r9,%rcx
jne    1181 <vectVectAddCheckResultGMDP+0x41>
test   %r15d,%r15d
jle    1445 <vectVectAddCheckResultGMDP+0x305>
xor    %ecx,%ecx
xorpd  %xmm8,%xmm8
movapd 0xca3(%rip),%xmm1
movapd 0xc9b(%rip),%xmm2
movsd  0xca3(%rip),%xmm3
mov    $0x1,%esi
xorpd  %xmm4,%xmm4
xor    %edi,%edi
jmp    138d <vectVectAddCheckResultGMDP+0x24d>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rcx
movapd %xmm0,%xmm4
cmp    %rcx,%r9
je     13fe <vectVectAddCheckResultGMDP+0x2be>
movsd  (%r12,%rcx,8),%xmm6
movapd %xmm6,%xmm5
andpd  %xmm1,%xmm5
movsd  (%r14,%rcx,8),%xmm0
movapd %xmm0,%xmm7
andpd  %xmm1,%xmm7
ucomisd %xmm7,%xmm5
jbe    13c0 <vectVectAddCheckResultGMDP+0x280>
movapd %xmm6,%xmm5
subsd  %xmm0,%xmm5
divsd  %xmm6,%xmm5
jmp    13cc <vectVectAddCheckResultGMDP+0x28c>
nopl   (%rax)
movapd %xmm0,%xmm5
subsd  %xmm6,%xmm5
divsd  %xmm0,%xmm5
movapd %xmm5,%xmm0
andpd  %xmm2,%xmm0
ucomisd %xmm3,%xmm0
seta   %bl
ucomisd %xmm8,%xmm5
setp   %al
setne  %dl
or     %al,%dl
and    %bl,%dl
ucomisd %xmm4,%xmm0
seta   %al
test   %al,%dl
cmovne %esi,%edi
jne    1380 <vectVectAddCheckResultGMDP+0x240>
movapd %xmm4,%xmm0
jmp    1380 <vectVectAddCheckResultGMDP+0x240>
test   %edi,%edi
je     1445 <vectVectAddCheckResultGMDP+0x305>
cmp    $0x1,%edi
jne    1451 <vectVectAddCheckResultGMDP+0x311>
lea    0xc0a(%rip),%rdi
xor    %eax,%eax
movapd %xmm0,(%rsp)
call   1050 <printf@plt>
lea    0xc17(%rip),%rdi
movsd  0xbe7(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xc26(%rip),%rdi
movapd (%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
jmp    1451 <vectVectAddCheckResultGMDP+0x311>
lea    0xc39(%rip),%rdi
call   1040 <puts@plt>
mov    %r12,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
xor    %edx,%edx
test   $0x1,%sil
jne    130e <vectVectAddCheckResultGMDP+0x1ce>
jmp    133c <vectVectAddCheckResultGMDP+0x1fc>

LLVM IR (-O0):
@.str = [32 x i8] c" \0A Results verfication : Failed\00"
@.str.1 = [37 x i8] c" \0A Considered machine precision : %e\00"
@.str.2 = [40 x i8] c" \0A Relative Error : %e\00"
@.str.3 = [35 x i8] c"\0A\0A\09\09 Result Verification success\0A\0A\00"
define i32 @vectVectAddCheckResultGMDP(double* %0, double* %1, double* %2, i32 %3) {
%5 = alloca double*
%6 = alloca double*
%7 = alloca double*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca double*
%14 = alloca double
%15 = alloca double
%16 = alloca double
store double* %0, double** %5
store double* %1, double** %6
store double* %2, double** %7
store i32 %3, i32* %8
store i32 0, i32* %12
store double 0.000000e+00, double* %14
store double 1.000000e-15, double* %15
store double 0.000000e+00, double* %16
%17 = load i32, i32* %8
%18 = sext i32 %17 to i64
%19 = mul i64 8, %18
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 %20)
%22 = inttoptr i64 %21 to double*
store double* %22, double** %13
store i32 0, i32* %10
br label %23
23: ; preds = %43, %4
%24 = load i32, i32* %10
%25 = load i32, i32* %8
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %46
27: ; preds = %23
%28 = load double*, double** %5
%29 = load i32, i32* %10
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, double* %28, i64 %30
%32 = load double, double* %31
%33 = load double*, double** %6
%34 = load i32, i32* %10
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, double* %33, i64 %35
%37 = load double, double* %36
%38 = fadd double %32, %37
%39 = load double*, double** %13
%40 = load i32, i32* %10
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, double* %39, i64 %41
store double %38, double* %42
br label %43
43: ; preds = %27
%44 = load i32, i32* %10
%45 = add nsw i32 %44, 1
store i32 %45, i32* %10
br label %23
46: ; preds = %23
store i32 0, i32* %10
br label %47
47: ; preds = %118, %46
%48 = load i32, i32* %10
%49 = load i32, i32* %8
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %121
51: ; preds = %47
%52 = load double*, double** %13
%53 = load i32, i32* %10
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, double* %52, i64 %54
%56 = load double, double* %55
%57 = call double @llvm.fabs.f64(double %56)
%58 = load double*, double** %7
%59 = load i32, i32* %10
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %58, i64 %60
%62 = load double, double* %61
%63 = call double @llvm.fabs.f64(double %62)
%64 = fcmp ogt double %57, %63
br i1 %64, label %65, label %84
65: ; preds = %51
%66 = load double*, double** %13
%67 = load i32, i32* %10
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %66, i64 %68
%70 = load double, double* %69
%71 = load double*, double** %7
%72 = load i32, i32* %10
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds double, double* %71, i64 %73
%75 = load double, double* %74
%76 = fsub double %70, %75
%77 = load double*, double** %13
%78 = load i32, i32* %10
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, double* %77, i64 %79
%81 = load double, double* %80
%82 = fdiv double %76, %81
%83 = call double @llvm.fabs.f64(double %82)
store double %83, double* %16
br label %103
84: ; preds = %51
%85 = load double*, double** %7
%86 = load i32, i32* %10
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds double, double* %85, i64 %87
%89 = load double, double* %88
%90 = load double*, double** %13
%91 = load i32, i32* %10
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, double* %90, i64 %92
%94 = load double, double* %93
%95 = fsub double %89, %94
%96 = load double*, double** %7
%97 = load i32, i32* %10
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, double* %96, i64 %98
%100 = load double, double* %99
%101 = fdiv double %95, %100
%102 = call double @llvm.fabs.f64(double %101)
store double %102, double* %16
br label %103
103: ; preds = %84, %65
%104 = load double, double* %16
%105 = load double, double* %15
%106 = fcmp ogt double %104, %105
br i1 %106, label %107, label %117
107: ; preds = %103
%108 = load double, double* %16
%109 = fcmp une double %108, 0.000000e+00
br i1 %109, label %110, label %117
110: ; preds = %107
%111 = load double, double* %14
%112 = load double, double* %16
%113 = fcmp olt double %111, %112
br i1 %113, label %114, label %116
114: ; preds = %110
%115 = load double, double* %16
store double %115, double* %14
store i32 1, i32* %12
br label %116
116: ; preds = %114, %110
br label %117
117: ; preds = %116, %107, %103
br label %118
118: ; preds = %117
%119 = load i32, i32* %10
%120 = add nsw i32 %119, 1
store i32 %120, i32* %10
br label %47
121: ; preds = %47
%122 = load i32, i32* %12
%123 = icmp eq i32 %122, 1
br i1 %123, label %124, label %130
124: ; preds = %121
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%126 = load double, double* %15
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), double %126)
%128 = load double, double* %14
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), double %128)
br label %130
130: ; preds = %124, %121
%131 = load i32, i32* %12
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %135
133: ; preds = %130
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
br label %135
135: ; preds = %133, %130
%136 = load double*, double** %13
%137 = call i32 @free(double* %136)
ret i32 0
}

LLVM IR (-O2):
@.str = [32 x i8] c" \0A Results verfication : Failed\00"
@.str.1 = [37 x i8] c" \0A Considered machine precision : %e\00"
@.str.2 = [40 x i8] c" \0A Relative Error : %e\00"
@str = [34 x i8] c"\0A\0A\09\09 Result Verification success\0A\00"
define i32 @vectVectAddCheckResultGMDP(double* nocapture %0, double* nocapture %1, double* nocapture %2, i32 %3) {
%5 = shl i32 %3, 3
%6 = tail call i64 @malloc(i32 %5)
%7 = inttoptr i64 %6 to double*
%8 = inttoptr i64 %6 to i8*
%9 = icmp sgt i32 %3, 0
br i1 %9, label %10, label %191
10: ; preds = %4
%11 = zext i32 %3 to i64
%12 = icmp ult i32 %3, 4
br i1 %12, label %102, label %13
13: ; preds = %10
%14 = getelementptr double, double* %7, i64 %11
%15 = getelementptr double, double* %0, i64 %11
%16 = bitcast double* %15 to i8*
%17 = getelementptr double, double* %1, i64 %11
%18 = bitcast double* %17 to i8*
%19 = icmp ult i8* %8, %16
%20 = icmp ugt double* %14, %0
%21 = and i1 %19, %20
%22 = icmp ult i8* %8, %18
%23 = icmp ugt double* %14, %1
%24 = and i1 %22, %23
%25 = or i1 %21, %24
br i1 %25, label %102, label %26
26: ; preds = %13
%27 = and i64 %11, 4294967292
%28 = add nsw i64 %27, -4
%29 = lshr exact i64 %28, 2
%30 = add nuw nsw i64 %29, 1
%31 = and i64 %30, 1
%32 = icmp eq i64 %28, 0
br i1 %32, label %78, label %33
33: ; preds = %26
%34 = and i64 %30, 9223372036854775806
br label %35
35: ; preds = %35, %33
%36 = phi i64 [ 0, %33 ], [ %75, %35 ]
%37 = phi i64 [ 0, %33 ], [ %76, %35 ]
%38 = getelementptr inbounds double, double* %0, i64 %36
%39 = bitcast double* %38 to <2 x double>*
%40 = load <2 x double>, <2 x double>* %39
%41 = getelementptr inbounds double, double* %38, i64 2
%42 = bitcast double* %41 to <2 x double>*
%43 = load <2 x double>, <2 x double>* %42
%44 = getelementptr inbounds double, double* %1, i64 %36
%45 = bitcast double* %44 to <2 x double>*
%46 = load <2 x double>, <2 x double>* %45
%47 = getelementptr inbounds double, double* %44, i64 2
%48 = bitcast double* %47 to <2 x double>*
%49 = load <2 x double>, <2 x double>* %48
%50 = fadd <2 x double> %40, %46
%51 = fadd <2 x double> %43, %49
%52 = getelementptr inbounds double, double* %7, i64 %36
%53 = bitcast double* %52 to <2 x double>*
store <2 x double> %50, <2 x double>* %53
%54 = getelementptr inbounds double, double* %52, i64 2
%55 = bitcast double* %54 to <2 x double>*
store <2 x double> %51, <2 x double>* %55
%56 = or i64 %36, 4
%57 = getelementptr inbounds double, double* %0, i64 %56
%58 = bitcast double* %57 to <2 x double>*
%59 = load <2 x double>, <2 x double>* %58
%60 = getelementptr inbounds double, double* %57, i64 2
%61 = bitcast double* %60 to <2 x double>*
%62 = load <2 x double>, <2 x double>* %61
%63 = getelementptr inbounds double, double* %1, i64 %56
%64 = bitcast double* %63 to <2 x double>*
%65 = load <2 x double>, <2 x double>* %64
%66 = getelementptr inbounds double, double* %63, i64 2
%67 = bitcast double* %66 to <2 x double>*
%68 = load <2 x double>, <2 x double>* %67
%69 = fadd <2 x double> %59, %65
%70 = fadd <2 x double> %62, %68
%71 = getelementptr inbounds double, double* %7, i64 %56
%72 = bitcast double* %71 to <2 x double>*
store <2 x double> %69, <2 x double>* %72
%73 = getelementptr inbounds double, double* %71, i64 2
%74 = bitcast double* %73 to <2 x double>*
store <2 x double> %70, <2 x double>* %74
%75 = add nuw i64 %36, 8
%76 = add i64 %37, 2
%77 = icmp eq i64 %76, %34
br i1 %77, label %78, label %35
78: ; preds = %35, %26
%79 = phi i64 [ 0, %26 ], [ %75, %35 ]
%80 = icmp eq i64 %31, 0
br i1 %80, label %100, label %81
81: ; preds = %78
%82 = getelementptr inbounds double, double* %0, i64 %79
%83 = bitcast double* %82 to <2 x double>*
%84 = load <2 x double>, <2 x double>* %83
%85 = getelementptr inbounds double, double* %82, i64 2
%86 = bitcast double* %85 to <2 x double>*
%87 = load <2 x double>, <2 x double>* %86
%88 = getelementptr inbounds double, double* %1, i64 %79
%89 = bitcast double* %88 to <2 x double>*
%90 = load <2 x double>, <2 x double>* %89
%91 = getelementptr inbounds double, double* %88, i64 2
%92 = bitcast double* %91 to <2 x double>*
%93 = load <2 x double>, <2 x double>* %92
%94 = fadd <2 x double> %84, %90
%95 = fadd <2 x double> %87, %93
%96 = getelementptr inbounds double, double* %7, i64 %79
%97 = bitcast double* %96 to <2 x double>*
store <2 x double> %94, <2 x double>* %97
%98 = getelementptr inbounds double, double* %96, i64 2
%99 = bitcast double* %98 to <2 x double>*
store <2 x double> %95, <2 x double>* %99
br label %100
100: ; preds = %78, %81
%101 = icmp eq i64 %27, %11
br i1 %101, label %123, label %102
102: ; preds = %13, %10, %100
%103 = phi i64 [ 0, %13 ], [ 0, %10 ], [ %27, %100 ]
%104 = xor i64 %103, -1
%105 = add nsw i64 %104, %11
%106 = and i64 %11, 3
%107 = icmp eq i64 %106, 0
br i1 %107, label %120, label %108
108: ; preds = %102, %108
%109 = phi i64 [ %117, %108 ], [ %103, %102 ]
%110 = phi i64 [ %118, %108 ], [ 0, %102 ]
%111 = getelementptr inbounds double, double* %0, i64 %109
%112 = load double, double* %111
%113 = getelementptr inbounds double, double* %1, i64 %109
%114 = load double, double* %113
%115 = fadd double %112, %114
%116 = getelementptr inbounds double, double* %7, i64 %109
store double %115, double* %116
%117 = add nuw nsw i64 %109, 1
%118 = add i64 %110, 1
%119 = icmp eq i64 %118, %106
br i1 %119, label %120, label %108
120: ; preds = %108, %102
%121 = phi i64 [ %103, %102 ], [ %117, %108 ]
%122 = icmp ult i64 %105, 3
br i1 %122, label %123, label %126
123: ; preds = %120, %126, %100
br i1 %9, label %124, label %191
124: ; preds = %123
%125 = zext i32 %3 to i64
br label %157
126: ; preds = %120, %126
%127 = phi i64 [ %155, %126 ], [ %121, %120 ]
%128 = getelementptr inbounds double, double* %0, i64 %127
%129 = load double, double* %128
%130 = getelementptr inbounds double, double* %1, i64 %127
%131 = load double, double* %130
%132 = fadd double %129, %131
%133 = getelementptr inbounds double, double* %7, i64 %127
store double %132, double* %133
%134 = add nuw nsw i64 %127, 1
%135 = getelementptr inbounds double, double* %0, i64 %134
%136 = load double, double* %135
%137 = getelementptr inbounds double, double* %1, i64 %134
%138 = load double, double* %137
%139 = fadd double %136, %138
%140 = getelementptr inbounds double, double* %7, i64 %134
store double %139, double* %140
%141 = add nuw nsw i64 %127, 2
%142 = getelementptr inbounds double, double* %0, i64 %141
%143 = load double, double* %142
%144 = getelementptr inbounds double, double* %1, i64 %141
%145 = load double, double* %144
%146 = fadd double %143, %145
%147 = getelementptr inbounds double, double* %7, i64 %141
store double %146, double* %147
%148 = add nuw nsw i64 %127, 3
%149 = getelementptr inbounds double, double* %0, i64 %148
%150 = load double, double* %149
%151 = getelementptr inbounds double, double* %1, i64 %148
%152 = load double, double* %151
%153 = fadd double %150, %152
%154 = getelementptr inbounds double, double* %7, i64 %148
store double %153, double* %154
%155 = add nuw nsw i64 %127, 4
%156 = icmp eq i64 %155, %11
br i1 %156, label %123, label %126
157: ; preds = %124, %174
%158 = phi i64 [ 0, %124 ], [ %184, %174 ]
%159 = phi double [ 0.000000e+00, %124 ], [ %183, %174 ]
%160 = phi i32 [ 0, %124 ], [ %182, %174 ]
%161 = getelementptr inbounds double, double* %7, i64 %158
%162 = load double, double* %161
%163 = tail call double @llvm.fabs.f64(double %162)
%164 = getelementptr inbounds double, double* %2, i64 %158
%165 = load double, double* %164
%166 = tail call double @llvm.fabs.f64(double %165)
%167 = fcmp ogt double %163, %166
br i1 %167, label %168, label %171
168: ; preds = %157
%169 = fsub double %162, %165
%170 = fdiv double %169, %162
br label %174
171: ; preds = %157
%172 = fsub double %165, %162
%173 = fdiv double %172, %165
br label %174
174: ; preds = %171, %168
%175 = phi double [ %173, %171 ], [ %170, %168 ]
%176 = tail call double @llvm.fabs.f64(double %175)
%177 = fcmp ogt double %176, 1.000000e-15
%178 = fcmp une double %175, 0.000000e+00
%179 = and i1 %177, %178
%180 = fcmp olt double %159, %176
%181 = select i1 %179, i1 %180, i1 false
%182 = select i1 %181, i32 1, i32 %160
%183 = select i1 %181, double %176, double %159
%184 = add nuw nsw i64 %158, 1
%185 = icmp eq i64 %184, %125
br i1 %185, label %186, label %157
186: ; preds = %174
switch i32 %182, label %193 [
i32 1, label %187
i32 0, label %191
]
187: ; preds = %186
%188 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%189 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), double 1.000000e-15)
%190 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), double %183)
br label %193
191: ; preds = %4, %123, %186
%192 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
br label %193
193: ; preds = %187, %186, %191
%194 = tail call i32 @free(double* %7)
ret i32 0
}