#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*/ assert(int /*<<< orphan*/);
scalar_t__ isnan(double);
int /*<<< orphan*/ printf(char *, ...);
double sqrt(double);
double testFreq(double *vect1, double *vect2, int n) {
  int i;
  double avg1 = 0.0, avg2 = 0.0, sum_xy = 0.0, sum_x = 0.0, sum_y = 0.0,
         corr = 0.0;
  for (i = 0; i < n; i++) {
    avg1 += vect1[i];
    avg2 += vect2[i];
  }
  avg1 /= ((double)n);
  avg2 /= ((double)n);
  printf("Average %f %f\n", avg1, avg2);
  for (i = 0; i < n; i++) {
    sum_xy += ((vect1[i] - avg1) * (vect2[i] - avg2));
    sum_x += ((vect1[i] - avg1) * (vect1[i] - avg1));
    sum_y += ((vect2[i] - avg2) * (vect2[i] - avg2));
  }
  corr = sum_xy / (sqrt(sum_x) * sqrt(sum_y));
  if (isnan(corr)) {
    printf("Numerical Error pearson correlation is not a number\n");
    assert(0);
  }
  return corr;
}


x86 assembly (clang, -O0):
<testFreq>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11d2 <testFreq+0x92>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    118a <testFreq+0x4a>
cvtsi2sdl -0x14(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
cvtsi2sdl -0x14(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
lea    0xdf7(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12d3 <testFreq+0x193>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x20(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
subsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
subsd  -0x20(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x28(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
subsd  -0x28(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1217 <testFreq+0xd7>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1060 <sqrt@plt>
movsd  -0x58(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x50(%rbp),%xmm0
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1050 <isnan@plt>
cmp    $0x0,%rax
je     1339 <testFreq+0x1f9>
lea    0xce4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <assert@plt>
movsd  -0x48(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testFreq>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %edx,%ebp
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %edx,%r15d
xorpd  %xmm1,%xmm1
test   %edx,%edx
jle    1217 <testFreq+0xc7>
lea    -0x1(%r15),%rcx
mov    %r15d,%eax
and    $0x3,%eax
cmp    $0x3,%rcx
jae    1189 <testFreq+0x39>
xorpd  %xmm1,%xmm1
xor    %ecx,%ecx
jmp    11ef <testFreq+0x9f>
mov    %r15d,%edx
and    $0xfffffffc,%edx
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%rbx,%rcx,8),%xmm4
movsd  0x8(%rbx,%rcx,8),%xmm2
movsd  0x10(%rbx,%rcx,8),%xmm3
movsd  0x18(%rbx,%rcx,8),%xmm1
movhpd (%r14,%rcx,8),%xmm4
addpd  %xmm0,%xmm4
movhpd 0x8(%r14,%rcx,8),%xmm2
addpd  %xmm4,%xmm2
movhpd 0x10(%r14,%rcx,8),%xmm3
movhpd 0x18(%r14,%rcx,8),%xmm1
addpd  %xmm2,%xmm3
addpd  %xmm3,%xmm1
add    $0x4,%rcx
movapd %xmm1,%xmm0
cmp    %rcx,%rdx
jne    11a0 <testFreq+0x50>
test   %rax,%rax
je     1217 <testFreq+0xc7>
lea    (%rbx,%rcx,8),%rdx
lea    (%r14,%rcx,8),%rcx
xor    %esi,%esi
xchg   %ax,%ax
movsd  (%rdx,%rsi,8),%xmm0
movhpd (%rcx,%rsi,8),%xmm0
addpd  %xmm0,%xmm1
add    $0x1,%rsi
cmp    %rsi,%rax
jne    1200 <testFreq+0xb0>
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
unpcklpd %xmm0,%xmm0
divpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
lea    0xdc6(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movapd (%rsp),%xmm6
xorpd  %xmm5,%xmm5
xorpd  %xmm1,%xmm1
xorpd  %xmm4,%xmm4
test   %ebp,%ebp
jle    131e <testFreq+0x1ce>
cmp    $0x1,%ebp
jne    1278 <testFreq+0x128>
xorpd  %xmm0,%xmm0
xorpd  %xmm4,%xmm4
xor    %eax,%eax
test   $0x1,%r15b
jne    12f7 <testFreq+0x1a7>
jmp    131e <testFreq+0x1ce>
mov    %r15d,%ecx
and    $0xfffffffe,%ecx
xorpd  %xmm0,%xmm0
xorpd  %xmm4,%xmm4
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rax,8),%xmm3
movhpd (%r14,%rax,8),%xmm3
subpd  %xmm6,%xmm3
movapd %xmm3,%xmm2
unpckhpd %xmm3,%xmm2
mulpd  %xmm3,%xmm2
mulsd  %xmm3,%xmm3
addsd  %xmm4,%xmm3
movsd  0x8(%rbx,%rax,8),%xmm4
addpd  %xmm0,%xmm2
movhpd 0x8(%r14,%rax,8),%xmm4
subpd  %xmm6,%xmm4
movapd %xmm4,%xmm5
unpckhpd %xmm4,%xmm5
mulpd  %xmm4,%xmm5
movapd %xmm5,%xmm0
addpd  %xmm2,%xmm0
mulsd  %xmm4,%xmm4
addsd  %xmm3,%xmm4
add    $0x2,%rax
cmp    %rax,%rcx
jne    1290 <testFreq+0x140>
addpd  %xmm2,%xmm5
test   $0x1,%r15b
je     131e <testFreq+0x1ce>
movsd  (%rbx,%rax,8),%xmm2
movhpd (%r14,%rax,8),%xmm2
subpd  %xmm6,%xmm2
movapd %xmm2,%xmm5
unpckhpd %xmm2,%xmm5
mulpd  %xmm2,%xmm5
addpd  %xmm0,%xmm5
mulsd  %xmm2,%xmm2
addsd  %xmm2,%xmm4
movapd %xmm5,%xmm0
unpckhpd %xmm5,%xmm0
ucomisd %xmm1,%xmm0
movapd %xmm5,(%rsp)
jb     133a <testFreq+0x1ea>
xorps  %xmm2,%xmm2
sqrtsd %xmm0,%xmm2
jmp    134f <testFreq+0x1ff>
movapd %xmm4,0x10(%rsp)
call   1070 <sqrt@plt>
movapd 0x10(%rsp),%xmm4
movapd %xmm0,%xmm2
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm4
jb     1362 <testFreq+0x212>
xorps  %xmm0,%xmm0
sqrtsd %xmm4,%xmm0
jmp    1377 <testFreq+0x227>
movapd %xmm4,%xmm0
movsd  %xmm2,0x10(%rsp)
call   1070 <sqrt@plt>
movsd  0x10(%rsp),%xmm2
movapd (%rsp),%xmm1
mulsd  %xmm0,%xmm2
divsd  %xmm2,%xmm1
movapd %xmm1,(%rsp)
movapd %xmm1,%xmm0
call   1060 <isnan@plt>
test   %rax,%rax
je     13aa <testFreq+0x25a>
lea    0xc71(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <assert@plt>
movaps (%rsp),%xmm0
add    $0x28,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [15 x i8] c"Average %f %f\0A\00"
@.str.1 = [53 x i8] c"Numerical Error pearson correlation is not a number\0A\00"
define double @testFreq(double* %0, double* %1, i32 %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
store double* %0, double** %4
store double* %1, double** %5
store i32 %2, i32* %6
store double 0.000000e+00, double* %8
store double 0.000000e+00, double* %9
store double 0.000000e+00, double* %10
store double 0.000000e+00, double* %11
store double 0.000000e+00, double* %12
store double 0.000000e+00, double* %13
store i32 0, i32* %7
br label %14
14: ; preds = %33, %3
%15 = load i32, i32* %7
%16 = load i32, i32* %6
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %36
18: ; preds = %14
%19 = load double*, double** %4
%20 = load i32, i32* %7
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, double* %19, i64 %21
%23 = load double, double* %22
%24 = load double, double* %8
%25 = fadd double %24, %23
store double %25, double* %8
%26 = load double*, double** %5
%27 = load i32, i32* %7
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds double, double* %26, i64 %28
%30 = load double, double* %29
%31 = load double, double* %9
%32 = fadd double %31, %30
store double %32, double* %9
br label %33
33: ; preds = %18
%34 = load i32, i32* %7
%35 = add nsw i32 %34, 1
store i32 %35, i32* %7
br label %14
36: ; preds = %14
%37 = load i32, i32* %6
%38 = sitofp i32 %37 to double
%39 = load double, double* %8
%40 = fdiv double %39, %38
store double %40, double* %8
%41 = load i32, i32* %6
%42 = sitofp i32 %41 to double
%43 = load double, double* %9
%44 = fdiv double %43, %42
store double %44, double* %9
%45 = load double, double* %8
%46 = load double, double* %9
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), double %45, double %46)
store i32 0, i32* %7
br label %48
48: ; preds = %101, %36
%49 = load i32, i32* %7
%50 = load i32, i32* %6
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %104
52: ; preds = %48
%53 = load double*, double** %4
%54 = load i32, i32* %7
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %53, i64 %55
%57 = load double, double* %56
%58 = load double, double* %8
%59 = fsub double %57, %58
%60 = load double*, double** %5
%61 = load i32, i32* %7
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, double* %60, i64 %62
%64 = load double, double* %63
%65 = load double, double* %9
%66 = fsub double %64, %65
%67 = load double, double* %10
%68 = call double @llvm.fmuladd.f64(double %59, double %66, double %67)
store double %68, double* %10
%69 = load double*, double** %4
%70 = load i32, i32* %7
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, double* %69, i64 %71
%73 = load double, double* %72
%74 = load double, double* %8
%75 = fsub double %73, %74
%76 = load double*, double** %4
%77 = load i32, i32* %7
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double, double* %76, i64 %78
%80 = load double, double* %79
%81 = load double, double* %8
%82 = fsub double %80, %81
%83 = load double, double* %11
%84 = call double @llvm.fmuladd.f64(double %75, double %82, double %83)
store double %84, double* %11
%85 = load double*, double** %5
%86 = load i32, i32* %7
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds double, double* %85, i64 %87
%89 = load double, double* %88
%90 = load double, double* %9
%91 = fsub double %89, %90
%92 = load double*, double** %5
%93 = load i32, i32* %7
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %92, i64 %94
%96 = load double, double* %95
%97 = load double, double* %9
%98 = fsub double %96, %97
%99 = load double, double* %12
%100 = call double @llvm.fmuladd.f64(double %91, double %98, double %99)
store double %100, double* %12
br label %101
101: ; preds = %52
%102 = load i32, i32* %7
%103 = add nsw i32 %102, 1
store i32 %103, i32* %7
br label %48
104: ; preds = %48
%105 = load double, double* %10
%106 = load double, double* %11
%107 = call double @sqrt(double %106)
%108 = load double, double* %12
%109 = call double @sqrt(double %108)
%110 = fmul double %107, %109
%111 = fdiv double %105, %110
store double %111, double* %13
%112 = load double, double* %13
%113 = call i64 @isnan(double %112)
%114 = icmp ne i64 %113, 0
br i1 %114, label %115, label %118
115: ; preds = %104
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0))
%117 = call i32 @assert(i32 0)
br label %118
118: ; preds = %115, %104
%119 = load double, double* %13
ret double %119
}

LLVM IR (-O2):
@.str = [15 x i8] c"Average %f %f\0A\00"
@str = [52 x i8] c"Numerical Error pearson correlation is not a number\00"
define double @testFreq(double* nocapture %0, double* nocapture %1, i32 %2) {
%4 = icmp sgt i32 %2, 0
br i1 %4, label %5, label %69
5: ; preds = %3
%6 = zext i32 %2 to i64
%7 = add nsw i64 %6, -1
%8 = and i64 %6, 3
%9 = icmp ult i64 %7, 3
br i1 %9, label %50, label %10
10: ; preds = %5
%11 = and i64 %6, 4294967292
br label %12
12: ; preds = %12, %10
%13 = phi i64 [ 0, %10 ], [ %47, %12 ]
%14 = phi <2 x double> [ zeroinitializer, %10 ], [ %46, %12 ]
%15 = phi i64 [ 0, %10 ], [ %48, %12 ]
%16 = getelementptr inbounds double, double* %0, i64 %13
%17 = load double, double* %16
%18 = getelementptr inbounds double, double* %1, i64 %13
%19 = load double, double* %18
%20 = insertelement <2 x double> poison, double %19, i64 0
%21 = insertelement <2 x double> %20, double %17, i64 1
%22 = fadd <2 x double> %14, %21
%23 = or i64 %13, 1
%24 = getelementptr inbounds double, double* %0, i64 %23
%25 = load double, double* %24
%26 = getelementptr inbounds double, double* %1, i64 %23
%27 = load double, double* %26
%28 = insertelement <2 x double> poison, double %27, i64 0
%29 = insertelement <2 x double> %28, double %25, i64 1
%30 = fadd <2 x double> %22, %29
%31 = or i64 %13, 2
%32 = getelementptr inbounds double, double* %0, i64 %31
%33 = load double, double* %32
%34 = getelementptr inbounds double, double* %1, i64 %31
%35 = load double, double* %34
%36 = insertelement <2 x double> poison, double %35, i64 0
%37 = insertelement <2 x double> %36, double %33, i64 1
%38 = fadd <2 x double> %30, %37
%39 = or i64 %13, 3
%40 = getelementptr inbounds double, double* %0, i64 %39
%41 = load double, double* %40
%42 = getelementptr inbounds double, double* %1, i64 %39
%43 = load double, double* %42
%44 = insertelement <2 x double> poison, double %43, i64 0
%45 = insertelement <2 x double> %44, double %41, i64 1
%46 = fadd <2 x double> %38, %45
%47 = add nuw nsw i64 %13, 4
%48 = add i64 %15, 4
%49 = icmp eq i64 %48, %11
br i1 %49, label %50, label %12
50: ; preds = %12, %5
%51 = phi <2 x double> [ undef, %5 ], [ %46, %12 ]
%52 = phi i64 [ 0, %5 ], [ %47, %12 ]
%53 = phi <2 x double> [ zeroinitializer, %5 ], [ %46, %12 ]
%54 = icmp eq i64 %8, 0
br i1 %54, label %69, label %55
55: ; preds = %50, %55
%56 = phi i64 [ %66, %55 ], [ %52, %50 ]
%57 = phi <2 x double> [ %65, %55 ], [ %53, %50 ]
%58 = phi i64 [ %67, %55 ], [ 0, %50 ]
%59 = getelementptr inbounds double, double* %0, i64 %56
%60 = load double, double* %59
%61 = getelementptr inbounds double, double* %1, i64 %56
%62 = load double, double* %61
%63 = insertelement <2 x double> poison, double %62, i64 0
%64 = insertelement <2 x double> %63, double %60, i64 1
%65 = fadd <2 x double> %57, %64
%66 = add nuw nsw i64 %56, 1
%67 = add i64 %58, 1
%68 = icmp eq i64 %67, %8
br i1 %68, label %69, label %55
69: ; preds = %50, %55, %3
%70 = phi <2 x double> [ zeroinitializer, %3 ], [ %51, %50 ], [ %65, %55 ]
%71 = sitofp i32 %2 to double
%72 = insertelement <2 x double> poison, double %71, i64 0
%73 = shufflevector <2 x double> %72, <2 x double> poison, <2 x i32> zeroinitializer
%74 = fdiv <2 x double> %70, %73
%75 = extractelement <2 x double> %74, i64 0
%76 = extractelement <2 x double> %74, i64 1
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), double %76, double %75)
br i1 %4, label %78, label %136
78: ; preds = %69
%79 = zext i32 %2 to i64
%80 = and i64 %79, 1
%81 = icmp eq i32 %2, 1
br i1 %81, label %117, label %82
82: ; preds = %78
%83 = and i64 %79, 4294967294
br label %84
84: ; preds = %84, %82
%85 = phi i64 [ 0, %82 ], [ %112, %84 ]
%86 = phi double [ 0.000000e+00, %82 ], [ %111, %84 ]
%87 = phi <2 x double> [ zeroinitializer, %82 ], [ %109, %84 ]
%88 = phi i64 [ 0, %82 ], [ %113, %84 ]
%89 = getelementptr inbounds double, double* %0, i64 %85
%90 = load double, double* %89
%91 = getelementptr inbounds double, double* %1, i64 %85
%92 = load double, double* %91
%93 = insertelement <2 x double> poison, double %92, i64 0
%94 = insertelement <2 x double> %93, double %90, i64 1
%95 = fsub <2 x double> %94, %74
%96 = shufflevector <2 x double> %95, <2 x double> undef, <2 x i32> <i32 1, i32 1>
%97 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %96, <2 x double> %95, <2 x double> %87)
%98 = extractelement <2 x double> %95, i64 0
%99 = tail call double @llvm.fmuladd.f64(double %98, double %98, double %86)
%100 = or i64 %85, 1
%101 = getelementptr inbounds double, double* %0, i64 %100
%102 = load double, double* %101
%103 = getelementptr inbounds double, double* %1, i64 %100
%104 = load double, double* %103
%105 = insertelement <2 x double> poison, double %104, i64 0
%106 = insertelement <2 x double> %105, double %102, i64 1
%107 = fsub <2 x double> %106, %74
%108 = shufflevector <2 x double> %107, <2 x double> undef, <2 x i32> <i32 1, i32 1>
%109 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %108, <2 x double> %107, <2 x double> %97)
%110 = extractelement <2 x double> %107, i64 0
%111 = tail call double @llvm.fmuladd.f64(double %110, double %110, double %99)
%112 = add nuw nsw i64 %85, 2
%113 = add i64 %88, 2
%114 = icmp eq i64 %113, %83
br i1 %114, label %115, label %84
115: ; preds = %84
%116 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %108, <2 x double> %107, <2 x double> %97)
br label %117
117: ; preds = %115, %78
%118 = phi <2 x double> [ undef, %78 ], [ %116, %115 ]
%119 = phi double [ undef, %78 ], [ %111, %115 ]
%120 = phi i64 [ 0, %78 ], [ %112, %115 ]
%121 = phi double [ 0.000000e+00, %78 ], [ %111, %115 ]
%122 = phi <2 x double> [ zeroinitializer, %78 ], [ %109, %115 ]
%123 = icmp eq i64 %80, 0
br i1 %123, label %136, label %124
124: ; preds = %117
%125 = getelementptr inbounds double, double* %0, i64 %120
%126 = load double, double* %125
%127 = getelementptr inbounds double, double* %1, i64 %120
%128 = load double, double* %127
%129 = insertelement <2 x double> poison, double %128, i64 0
%130 = insertelement <2 x double> %129, double %126, i64 1
%131 = fsub <2 x double> %130, %74
%132 = shufflevector <2 x double> %131, <2 x double> undef, <2 x i32> <i32 1, i32 1>
%133 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %132, <2 x double> %131, <2 x double> %122)
%134 = extractelement <2 x double> %131, i64 0
%135 = tail call double @llvm.fmuladd.f64(double %134, double %134, double %121)
br label %136
136: ; preds = %124, %117, %69
%137 = phi double [ 0.000000e+00, %69 ], [ %119, %117 ], [ %135, %124 ]
%138 = phi <2 x double> [ zeroinitializer, %69 ], [ %118, %117 ], [ %133, %124 ]
%139 = extractelement <2 x double> %138, i64 1
%140 = tail call double @sqrt(double %139)
%141 = tail call double @sqrt(double %137)
%142 = fmul double %140, %141
%143 = extractelement <2 x double> %138, i64 0
%144 = fdiv double %143, %142
%145 = tail call i64 @isnan(double %144)
%146 = icmp eq i64 %145, 0
br i1 %146, label %150, label %147
147: ; preds = %136
%148 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str, i64 0, i64 0))
%149 = tail call i32 @assert(i32 0)
br label %150
150: ; preds = %147, %136
ret double %144
}