#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 pow(double, int);
double sqrt(double);
void NormalizeVector(int const size, double vector[], double prob_vec[]) {
  int i;
  double mean = 0;
  double stdev = 0;
  if (prob_vec == NULL) {
    for (i = 0; i < size; i++) {
      mean += vector[i];
      stdev += pow(vector[i], 2);
    }
    mean /= (double)size;
    stdev /= (double)size;
  } else {
    for (i = 0; i < size; i++) {
      mean += prob_vec[i] * vector[i];
      stdev += prob_vec[i] * pow(vector[i], 2);
    }
  }
  stdev = sqrt(stdev - pow(mean, 2));
  for (i = 0; i < size; i++)
    vector[i] = (vector[i] - mean) / stdev;
}


x86 assembly (clang, -O0):
<NormalizeVector>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11d2 <NormalizeVector+0xb2>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11a7 <NormalizeVector+0x87>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1155 <NormalizeVector+0x35>
cvtsi2sdl -0x4(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    1267 <NormalizeVector+0x147>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1262 <NormalizeVector+0x142>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x28(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm2
movsd  -0x38(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11d9 <NormalizeVector+0xb9>
jmp    1267 <NormalizeVector+0x147>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
subsd  %xmm1,%xmm0
call   1040 <sqrt@plt>
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12db <NormalizeVector+0x1bb>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x28(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    129d <NormalizeVector+0x17d>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<NormalizeVector>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%rbx
mov    %edi,%r14d
mov    %edi,%r15d
test   %rdx,%rdx
je     115f <NormalizeVector+0x3f>
test   %r14d,%r14d
jle    1188 <NormalizeVector+0x68>
mov    %rdx,%r12
cmp    $0x1,%r14d
jne    1191 <NormalizeVector+0x71>
xorpd  %xmm3,%xmm3
xor    %ebp,%ebp
test   $0x1,%r15b
jne    124d <NormalizeVector+0x12d>
jmp    13b8 <NormalizeVector+0x298>
test   %r14d,%r14d
jle    1294 <NormalizeVector+0x174>
lea    -0x1(%r15),%rax
mov    %r15d,%r12d
and    $0x3,%r12d
cmp    $0x3,%rax
jae    129d <NormalizeVector+0x17d>
xorpd  %xmm1,%xmm1
xor    %ebp,%ebp
jmp    1364 <NormalizeVector+0x244>
xorpd  %xmm1,%xmm1
jmp    13b8 <NormalizeVector+0x298>
mov    %r15d,%r13d
and    $0xfffffffe,%r13d
xorpd  %xmm3,%xmm3
xor    %ebp,%ebp
xchg   %ax,%ax
movapd %xmm3,0x20(%rsp)
movsd  (%rbx,%rbp,8),%xmm0
movapd %xmm0,0x10(%rsp)
movsd  (%r12,%rbp,8),%xmm1
movaps %xmm1,(%rsp)
mov    $0x2,%edi
call   1030 <pow@plt>
movapd (%rsp),%xmm2
unpcklpd %xmm2,%xmm2
movapd 0x10(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  %xmm2,%xmm1
addpd  0x20(%rsp),%xmm1
movapd %xmm1,0x10(%rsp)
movsd  0x8(%rbx,%rbp,8),%xmm1
movapd %xmm1,(%rsp)
movsd  0x8(%r12,%rbp,8),%xmm0
movaps %xmm0,0x20(%rsp)
movapd %xmm1,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movapd 0x10(%rsp),%xmm2
movapd (%rsp),%xmm1
movapd 0x20(%rsp),%xmm3
unpcklpd %xmm3,%xmm3
unpcklpd %xmm0,%xmm1
mulpd  %xmm3,%xmm1
movapd %xmm1,%xmm3
addpd  %xmm2,%xmm3
add    $0x2,%rbp
cmp    %rbp,%r13
jne    11a0 <NormalizeVector+0x80>
addpd  %xmm2,%xmm1
test   $0x1,%r15b
je     13b8 <NormalizeVector+0x298>
movsd  (%rbx,%rbp,8),%xmm0
movapd %xmm0,(%rsp)
movsd  (%r12,%rbp,8),%xmm1
movaps %xmm1,0x10(%rsp)
movapd %xmm3,0x20(%rsp)
mov    $0x2,%edi
call   1030 <pow@plt>
movapd (%rsp),%xmm1
movapd 0x10(%rsp),%xmm2
unpcklpd %xmm2,%xmm2
unpcklpd %xmm0,%xmm1
mulpd  %xmm2,%xmm1
addpd  0x20(%rsp),%xmm1
jmp    13b8 <NormalizeVector+0x298>
xorpd  %xmm1,%xmm1
jmp    13a8 <NormalizeVector+0x288>
mov    %r15d,%r13d
and    $0xfffffffc,%r13d
xorpd  %xmm1,%xmm1
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movapd %xmm1,(%rsp)
movsd  (%rbx,%rbp,8),%xmm0
movapd %xmm0,0x10(%rsp)
mov    $0x2,%edi
call   1030 <pow@plt>
movapd 0x10(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
addpd  (%rsp),%xmm1
movapd %xmm1,0x10(%rsp)
movsd  0x8(%rbx,%rbp,8),%xmm0
movapd %xmm0,(%rsp)
mov    $0x2,%edi
call   1030 <pow@plt>
movapd (%rsp),%xmm1
unpcklpd %xmm0,%xmm1
addpd  0x10(%rsp),%xmm1
movapd %xmm1,(%rsp)
movsd  0x10(%rbx,%rbp,8),%xmm0
movapd %xmm0,0x10(%rsp)
mov    $0x2,%edi
call   1030 <pow@plt>
movapd 0x10(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
addpd  (%rsp),%xmm1
movapd %xmm1,0x10(%rsp)
movsd  0x18(%rbx,%rbp,8),%xmm0
movapd %xmm0,(%rsp)
mov    $0x2,%edi
call   1030 <pow@plt>
movapd (%rsp),%xmm1
unpcklpd %xmm0,%xmm1
addpd  0x10(%rsp),%xmm1
add    $0x4,%rbp
cmp    %rbp,%r13
jne    12b0 <NormalizeVector+0x190>
test   %r12,%r12
je     13a8 <NormalizeVector+0x288>
lea    (%rbx,%rbp,8),%r13
xor    %ebp,%ebp
nop
movapd %xmm1,(%rsp)
movsd  0x0(%r13,%rbp,8),%xmm0
movapd %xmm0,0x10(%rsp)
mov    $0x2,%edi
call   1030 <pow@plt>
movapd (%rsp),%xmm1
movapd 0x10(%rsp),%xmm2
unpcklpd %xmm0,%xmm2
addpd  %xmm2,%xmm1
add    $0x1,%rbp
cmp    %rbp,%r12
jne    1370 <NormalizeVector+0x250>
xorps  %xmm0,%xmm0
cvtsi2sd %r14d,%xmm0
unpcklpd %xmm0,%xmm0
divpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
movapd %xmm1,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movapd (%rsp),%xmm5
movapd %xmm0,%xmm1
movapd %xmm5,%xmm0
unpckhpd %xmm5,%xmm0
subsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     13f8 <NormalizeVector+0x2d8>
sqrtsd %xmm0,%xmm0
test   %r14d,%r14d
jg     140b <NormalizeVector+0x2eb>
jmp    14bb <NormalizeVector+0x39b>
call   1040 <sqrt@plt>
movapd (%rsp),%xmm5
test   %r14d,%r14d
jle    14bb <NormalizeVector+0x39b>
cmp    $0x1,%r14d
jne    1418 <NormalizeVector+0x2f8>
xor    %eax,%eax
jmp    14a0 <NormalizeVector+0x380>
mov    %r15d,%eax
and    $0xfffffffe,%eax
movapd %xmm5,%xmm1
unpcklpd %xmm5,%xmm1
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
lea    -0x2(%rax),%rdx
mov    %rdx,%rcx
shr    %rcx
add    $0x1,%rcx
test   %rdx,%rdx
je     14ca <NormalizeVector+0x3aa>
mov    %rcx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %edx,%edx
xchg   %ax,%ax
movupd (%rbx,%rdx,8),%xmm3
movupd 0x10(%rbx,%rdx,8),%xmm4
subpd  %xmm1,%xmm3
divpd  %xmm2,%xmm3
movupd %xmm3,(%rbx,%rdx,8)
subpd  %xmm1,%xmm4
divpd  %xmm2,%xmm4
movupd %xmm4,0x10(%rbx,%rdx,8)
add    $0x4,%rdx
add    $0xfffffffffffffffe,%rsi
jne    1450 <NormalizeVector+0x330>
test   $0x1,%cl
je     1497 <NormalizeVector+0x377>
movupd (%rbx,%rdx,8),%xmm3
subpd  %xmm1,%xmm3
divpd  %xmm2,%xmm3
movupd %xmm3,(%rbx,%rdx,8)
cmp    %r15,%rax
je     14bb <NormalizeVector+0x39b>
nopl   0x0(%rax)
movsd  (%rbx,%rax,8),%xmm1
subsd  %xmm5,%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r15
jne    14a0 <NormalizeVector+0x380>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edx,%edx
test   $0x1,%cl
jne    1485 <NormalizeVector+0x365>
jmp    1497 <NormalizeVector+0x377>

LLVM IR (-O0):
define void @NormalizeVector(i32 %0, double* %1, double* %2) {
%4 = alloca i32
%5 = alloca double*
%6 = alloca double*
%7 = alloca i32
%8 = alloca double
%9 = alloca double
store i32 %0, i32* %4
store double* %1, double** %5
store double* %2, double** %6
store double 0.000000e+00, double* %8
store double 0.000000e+00, double* %9
%10 = load double*, double** %6
%11 = icmp eq double* %10, null
br i1 %11, label %12, label %45
12: ; preds = %3
store i32 0, i32* %7
br label %13
13: ; preds = %33, %12
%14 = load i32, i32* %7
%15 = load i32, i32* %4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %36
17: ; preds = %13
%18 = load double*, double** %5
%19 = load i32, i32* %7
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds double, double* %18, i64 %20
%22 = load double, double* %21
%23 = load double, double* %8
%24 = fadd double %23, %22
store double %24, double* %8
%25 = load double*, double** %5
%26 = load i32, i32* %7
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, double* %25, i64 %27
%29 = load double, double* %28
%30 = call double @pow(double %29, i32 2)
%31 = load double, double* %9
%32 = fadd double %31, %30
store double %32, double* %9
br label %33
33: ; preds = %17
%34 = load i32, i32* %7
%35 = add nsw i32 %34, 1
store i32 %35, i32* %7
br label %13
36: ; preds = %13
%37 = load i32, i32* %4
%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* %4
%42 = sitofp i32 %41 to double
%43 = load double, double* %9
%44 = fdiv double %43, %42
store double %44, double* %9
br label %80
45: ; preds = %3
store i32 0, i32* %7
br label %46
46: ; preds = %76, %45
%47 = load i32, i32* %7
%48 = load i32, i32* %4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %79
50: ; preds = %46
%51 = load double*, double** %6
%52 = load i32, i32* %7
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, double* %51, i64 %53
%55 = load double, double* %54
%56 = load double*, double** %5
%57 = load i32, i32* %7
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, double* %56, i64 %58
%60 = load double, double* %59
%61 = load double, double* %8
%62 = call double @llvm.fmuladd.f64(double %55, double %60, double %61)
store double %62, double* %8
%63 = load double*, double** %6
%64 = load i32, i32* %7
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double, double* %63, i64 %65
%67 = load double, double* %66
%68 = load double*, double** %5
%69 = load i32, i32* %7
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %68, i64 %70
%72 = load double, double* %71
%73 = call double @pow(double %72, i32 2)
%74 = load double, double* %9
%75 = call double @llvm.fmuladd.f64(double %67, double %73, double %74)
store double %75, double* %9
br label %76
76: ; preds = %50
%77 = load i32, i32* %7
%78 = add nsw i32 %77, 1
store i32 %78, i32* %7
br label %46
79: ; preds = %46
br label %80
80: ; preds = %79, %36
%81 = load double, double* %9
%82 = load double, double* %8
%83 = call double @pow(double %82, i32 2)
%84 = fsub double %81, %83
%85 = call double @sqrt(double %84)
store double %85, double* %9
store i32 0, i32* %7
br label %86
86: ; preds = %104, %80
%87 = load i32, i32* %7
%88 = load i32, i32* %4
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %107
90: ; preds = %86
%91 = load double*, double** %5
%92 = load i32, i32* %7
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, double* %91, i64 %93
%95 = load double, double* %94
%96 = load double, double* %8
%97 = fsub double %95, %96
%98 = load double, double* %9
%99 = fdiv double %97, %98
%100 = load double*, double** %5
%101 = load i32, i32* %7
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, double* %100, i64 %102
store double %99, double* %103
br label %104
104: ; preds = %90
%105 = load i32, i32* %7
%106 = add nsw i32 %105, 1
store i32 %106, i32* %7
br label %86
107: ; preds = %86
ret void
}

LLVM IR (-O2):
define void @NormalizeVector(i32 %0, double* nocapture %1, double* %2) {
%4 = icmp eq double* %2, null
%5 = icmp sgt i32 %0, 0
br i1 %4, label %13, label %6
6: ; preds = %3
br i1 %5, label %7, label %125
7: ; preds = %6
%8 = zext i32 %0 to i64
%9 = and i64 %8, 1
%10 = icmp eq i32 %0, 1
br i1 %10, label %109, label %11
11: ; preds = %7
%12 = and i64 %8, 4294967294
br label %79
13: ; preds = %3
br i1 %5, label %14, label %73
14: ; preds = %13
%15 = zext i32 %0 to i64
%16 = add nsw i64 %15, -1
%17 = and i64 %15, 3
%18 = icmp ult i64 %16, 3
br i1 %18, label %55, label %19
19: ; preds = %14
%20 = and i64 %15, 4294967292
br label %21
21: ; preds = %21, %19
%22 = phi i64 [ 0, %19 ], [ %52, %21 ]
%23 = phi <2 x double> [ zeroinitializer, %19 ], [ %51, %21 ]
%24 = phi i64 [ 0, %19 ], [ %53, %21 ]
%25 = getelementptr inbounds double, double* %1, i64 %22
%26 = load double, double* %25
%27 = tail call double @pow(double %26, i32 2)
%28 = insertelement <2 x double> poison, double %26, i64 0
%29 = insertelement <2 x double> %28, double %27, i64 1
%30 = fadd <2 x double> %23, %29
%31 = or i64 %22, 1
%32 = getelementptr inbounds double, double* %1, i64 %31
%33 = load double, double* %32
%34 = tail call double @pow(double %33, i32 2)
%35 = insertelement <2 x double> poison, double %33, i64 0
%36 = insertelement <2 x double> %35, double %34, i64 1
%37 = fadd <2 x double> %30, %36
%38 = or i64 %22, 2
%39 = getelementptr inbounds double, double* %1, i64 %38
%40 = load double, double* %39
%41 = tail call double @pow(double %40, i32 2)
%42 = insertelement <2 x double> poison, double %40, i64 0
%43 = insertelement <2 x double> %42, double %41, i64 1
%44 = fadd <2 x double> %37, %43
%45 = or i64 %22, 3
%46 = getelementptr inbounds double, double* %1, i64 %45
%47 = load double, double* %46
%48 = tail call double @pow(double %47, i32 2)
%49 = insertelement <2 x double> poison, double %47, i64 0
%50 = insertelement <2 x double> %49, double %48, i64 1
%51 = fadd <2 x double> %44, %50
%52 = add nuw nsw i64 %22, 4
%53 = add i64 %24, 4
%54 = icmp eq i64 %53, %20
br i1 %54, label %55, label %21
55: ; preds = %21, %14
%56 = phi <2 x double> [ undef, %14 ], [ %51, %21 ]
%57 = phi i64 [ 0, %14 ], [ %52, %21 ]
%58 = phi <2 x double> [ zeroinitializer, %14 ], [ %51, %21 ]
%59 = icmp eq i64 %17, 0
br i1 %59, label %73, label %60
60: ; preds = %55, %60
%61 = phi i64 [ %70, %60 ], [ %57, %55 ]
%62 = phi <2 x double> [ %69, %60 ], [ %58, %55 ]
%63 = phi i64 [ %71, %60 ], [ 0, %55 ]
%64 = getelementptr inbounds double, double* %1, i64 %61
%65 = load double, double* %64
%66 = tail call double @pow(double %65, i32 2)
%67 = insertelement <2 x double> poison, double %65, i64 0
%68 = insertelement <2 x double> %67, double %66, i64 1
%69 = fadd <2 x double> %62, %68
%70 = add nuw nsw i64 %61, 1
%71 = add i64 %63, 1
%72 = icmp eq i64 %71, %17
br i1 %72, label %73, label %60
73: ; preds = %55, %60, %13
%74 = phi <2 x double> [ zeroinitializer, %13 ], [ %56, %55 ], [ %69, %60 ]
%75 = sitofp i32 %0 to double
%76 = insertelement <2 x double> poison, double %75, i64 0
%77 = shufflevector <2 x double> %76, <2 x double> poison, <2 x i32> zeroinitializer
%78 = fdiv <2 x double> %74, %77
br label %125
79: ; preds = %79, %11
%80 = phi i64 [ 0, %11 ], [ %104, %79 ]
%81 = phi <2 x double> [ zeroinitializer, %11 ], [ %103, %79 ]
%82 = phi i64 [ 0, %11 ], [ %105, %79 ]
%83 = getelementptr inbounds double, double* %2, i64 %80
%84 = load double, double* %83
%85 = getelementptr inbounds double, double* %1, i64 %80
%86 = load double, double* %85
%87 = tail call double @pow(double %86, i32 2)
%88 = insertelement <2 x double> poison, double %84, i64 0
%89 = shufflevector <2 x double> %88, <2 x double> poison, <2 x i32> zeroinitializer
%90 = insertelement <2 x double> poison, double %86, i64 0
%91 = insertelement <2 x double> %90, double %87, i64 1
%92 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %89, <2 x double> %91, <2 x double> %81)
%93 = or i64 %80, 1
%94 = getelementptr inbounds double, double* %2, i64 %93
%95 = load double, double* %94
%96 = getelementptr inbounds double, double* %1, i64 %93
%97 = load double, double* %96
%98 = tail call double @pow(double %97, i32 2)
%99 = insertelement <2 x double> poison, double %95, i64 0
%100 = shufflevector <2 x double> %99, <2 x double> poison, <2 x i32> zeroinitializer
%101 = insertelement <2 x double> poison, double %97, i64 0
%102 = insertelement <2 x double> %101, double %98, i64 1
%103 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %100, <2 x double> %102, <2 x double> %92)
%104 = add nuw nsw i64 %80, 2
%105 = add i64 %82, 2
%106 = icmp eq i64 %105, %12
br i1 %106, label %107, label %79
107: ; preds = %79
%108 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %100, <2 x double> %102, <2 x double> %92)
br label %109
109: ; preds = %107, %7
%110 = phi <2 x double> [ undef, %7 ], [ %108, %107 ]
%111 = phi i64 [ 0, %7 ], [ %104, %107 ]
%112 = phi <2 x double> [ zeroinitializer, %7 ], [ %103, %107 ]
%113 = icmp eq i64 %9, 0
br i1 %113, label %125, label %114
114: ; preds = %109
%115 = getelementptr inbounds double, double* %2, i64 %111
%116 = load double, double* %115
%117 = getelementptr inbounds double, double* %1, i64 %111
%118 = load double, double* %117
%119 = tail call double @pow(double %118, i32 2)
%120 = insertelement <2 x double> poison, double %116, i64 0
%121 = shufflevector <2 x double> %120, <2 x double> poison, <2 x i32> zeroinitializer
%122 = insertelement <2 x double> poison, double %118, i64 0
%123 = insertelement <2 x double> %122, double %119, i64 1
%124 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %121, <2 x double> %123, <2 x double> %112)
br label %125
125: ; preds = %114, %109, %6, %73
%126 = phi <2 x double> [ %78, %73 ], [ zeroinitializer, %6 ], [ %110, %109 ], [ %124, %114 ]
%127 = extractelement <2 x double> %126, i64 0
%128 = tail call double @pow(double %127, i32 2)
%129 = extractelement <2 x double> %126, i64 1
%130 = fsub double %129, %128
%131 = tail call double @sqrt(double %130)
%132 = icmp sgt i32 %0, 0
br i1 %132, label %133, label %189
133: ; preds = %125
%134 = zext i32 %0 to i64
%135 = icmp eq i32 %0, 1
br i1 %135, label %179, label %136
136: ; preds = %133
%137 = and i64 %134, 4294967294
%138 = shufflevector <2 x double> %126, <2 x double> poison, <2 x i32> zeroinitializer
%139 = insertelement <2 x double> poison, double %131, i64 0
%140 = shufflevector <2 x double> %139, <2 x double> poison, <2 x i32> zeroinitializer
%141 = add nsw i64 %137, -2
%142 = lshr exact i64 %141, 1
%143 = add nuw i64 %142, 1
%144 = and i64 %143, 1
%145 = icmp eq i64 %141, 0
br i1 %145, label %167, label %146
146: ; preds = %136
%147 = and i64 %143, -2
br label %148
148: ; preds = %148, %146
%149 = phi i64 [ 0, %146 ], [ %164, %148 ]
%150 = phi i64 [ 0, %146 ], [ %165, %148 ]
%151 = getelementptr inbounds double, double* %1, i64 %149
%152 = bitcast double* %151 to <2 x double>*
%153 = load <2 x double>, <2 x double>* %152
%154 = fsub <2 x double> %153, %138
%155 = fdiv <2 x double> %154, %140
%156 = bitcast double* %151 to <2 x double>*
store <2 x double> %155, <2 x double>* %156
%157 = or i64 %149, 2
%158 = getelementptr inbounds double, double* %1, i64 %157
%159 = bitcast double* %158 to <2 x double>*
%160 = load <2 x double>, <2 x double>* %159
%161 = fsub <2 x double> %160, %138
%162 = fdiv <2 x double> %161, %140
%163 = bitcast double* %158 to <2 x double>*
store <2 x double> %162, <2 x double>* %163
%164 = add nuw i64 %149, 4
%165 = add nuw i64 %150, 2
%166 = icmp eq i64 %165, %147
br i1 %166, label %167, label %148
167: ; preds = %148, %136
%168 = phi i64 [ 0, %136 ], [ %164, %148 ]
%169 = icmp eq i64 %144, 0
br i1 %169, label %177, label %170
170: ; preds = %167
%171 = getelementptr inbounds double, double* %1, i64 %168
%172 = bitcast double* %171 to <2 x double>*
%173 = load <2 x double>, <2 x double>* %172
%174 = fsub <2 x double> %173, %138
%175 = fdiv <2 x double> %174, %140
%176 = bitcast double* %171 to <2 x double>*
store <2 x double> %175, <2 x double>* %176
br label %177
177: ; preds = %167, %170
%178 = icmp eq i64 %137, %134
br i1 %178, label %189, label %179
179: ; preds = %133, %177
%180 = phi i64 [ 0, %133 ], [ %137, %177 ]
br label %181
181: ; preds = %179, %181
%182 = phi i64 [ %187, %181 ], [ %180, %179 ]
%183 = getelementptr inbounds double, double* %1, i64 %182
%184 = load double, double* %183
%185 = fsub double %184, %127
%186 = fdiv double %185, %131
store double %186, double* %183
%187 = add nuw nsw i64 %182, 1
%188 = icmp eq i64 %187, %134
br i1 %188, label %189, label %181
189: ; preds = %181, %177, %125
ret void
}