#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 */
scalar_t__ calloc(int, int);
int /*<<< orphan*/ free(double *);
double sqrt(double);
double evmax(double *a, double *u, int n) {
  double *p, *q, *qm, *r, *s, *t;
  double ev, evm, c, h;
  int kc;
  q = (double *)calloc(n, sizeof(double));
  qm = q + n;
  *(qm - 1) = 1.;
  ev = 0.;
  for (kc = 0; kc < 200; ++kc) {
    h = c = 0.;
    evm = ev;
    for (p = u, r = a, s = q; s < qm;) {
      *p = 0.;
      for (t = q; t < qm;)
        *p += *r++ * *t++;
      c += *p * *p;
      h += *p++ * *s++;
    }
    ev = c / h;
    c = sqrt(c);
    for (p = u, s = q; s < qm;) {
      *p /= c;
      *s++ = *p++;
    }
    if (((c = ev - evm) < 0. ? -c : c) < 1.e-16 * (ev < 0. ? -ev : ev)) {
      free(q);
      return ev;
    }
  }
  free(q);
  for (kc = 0; kc < n;)
    u[kc++] = 0.;
  return 0.;
}


x86 assembly (clang, -O0):
<evmax>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movsd  0xe8a(%rip),%xmm0
movsd  %xmm0,-0x8(%rax)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x0,-0x74(%rbp)
cmpl   $0xc8,-0x74(%rbp)
jge    1400 <evmax+0x2d0>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x38(%rbp),%rax
jae    1296 <evmax+0x166>
mov    -0x28(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
cmp    -0x38(%rbp),%rax
jae    1237 <evmax+0x107>
mov    -0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x40(%rbp)
movsd  (%rax),%xmm0
mov    -0x50(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x50(%rbp)
movsd  (%rax),%xmm2
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
jmp    11ea <evmax+0xba>
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x28(%rbp)
movsd  (%rax),%xmm0
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  (%rax),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
jmp    11c9 <evmax+0x99>
movsd  -0x68(%rbp),%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x68(%rbp),%xmm0
call   1050 <sqrt@plt>
movsd  %xmm0,-0x68(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x38(%rbp),%rax
jae    1312 <evmax+0x1e2>
movsd  -0x68(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x28(%rbp)
movsd  (%rax),%xmm0
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  %xmm0,(%rax)
jmp    12c4 <evmax+0x194>
movsd  -0x58(%rbp),%xmm1
subsd  -0x60(%rbp),%xmm1
movsd  %xmm1,-0x68(%rbp)
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    1354 <evmax+0x224>
movsd  -0x68(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    135e <evmax+0x22e>
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
xorps  %xmm0,%xmm0
ucomisd -0x58(%rbp),%xmm0
jbe    13a2 <evmax+0x272>
movsd  -0x58(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
jmp    13af <evmax+0x27f>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0x90(%rbp),%xmm2
ff
movsd  0xc41(%rip),%xmm0
mulsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    13ed <evmax+0x2bd>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1443 <evmax+0x313>
jmp    13f2 <evmax+0x2c2>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    118a <evmax+0x5a>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x74(%rbp)
mov    -0x74(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    143b <evmax+0x30b>
mov    -0x18(%rbp),%rax
mov    -0x74(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x74(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    1410 <evmax+0x2e0>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<evmax>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %edx,%r15d
mov    %rsi,%r12
mov    %rdi,0x68(%rsp)
mov    %edx,%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,%rbp
movslq %r15d,%rax
lea    0x0(,%rax,8),%rbx
add    %rbp,%rbx
movabs $0x3ff0000000000000,%rcx
mov    %rcx,-0x8(%rbp,%rax,8)
lea    0x8(%rbp),%rax
cmp    %rax,%rbx
cmova  %rbx,%rax
mov    %rbp,%r13
not    %r13
add    %rax,%r13
mov    %r13,%rax
shr    $0x3,%rax
lea    0x1(%rax),%rdx
lea    (%r12,%rax,8),%rcx
add    $0x8,%rcx
lea    0x8(,%rax,8),%rax
add    %rbp,%rax
mov    %rdx,0x58(%rsp)
and    $0xfffffffffffffffe,%rdx
lea    -0x2(%rdx),%rsi
mov    %rsi,0x48(%rsp)
shr    %rsi
add    $0x1,%rsi
cmp    %r12,%rax
seta   %al
cmp    %rcx,%rbp
setb   %cl
and    %al,%cl
mov    %cl,0xf(%rsp)
lea    0x0(,%rdx,8),%rax
add    %rbp,%rax
mov    %rax,0x38(%rsp)
mov    %rdx,0x50(%rsp)
lea    (%r12,%rdx,8),%rax
mov    %rax,0x30(%rsp)
mov    %rsi,%rax
mov    %rsi,0x40(%rsp)
and    $0xfffffffffffffffe,%rsi
mov    %rsi,0x28(%rsp)
xorpd  %xmm4,%xmm4
xor    %r14d,%r14d
movsd  0xddc(%rip),%xmm8
movapd 0xde4(%rip),%xmm5
movsd  0xdd4(%rip),%xmm6
xorpd  %xmm3,%xmm3
nopl   0x0(%rax,%rax,1)
movapd %xmm8,%xmm7
test   %r15d,%r15d
jle    13ed <evmax+0x2ad>
xorpd  %xmm2,%xmm2
mov    %rbp,%rax
mov    0x68(%rsp),%rcx
mov    %r12,%rdx
nopl   (%rax)
movq   $0x0,(%rdx)
xorpd  %xmm0,%xmm0
mov    %rbp,%rsi
xchg   %ax,%ax
movsd  (%rcx),%xmm1
add    $0x8,%rcx
mulsd  (%rsi),%xmm1
add    $0x8,%rsi
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rdx)
cmp    %rbx,%rsi
jb     1270 <evmax+0x130>
add    $0x8,%rdx
movsd  (%rax),%xmm1
add    $0x8,%rax
unpcklpd %xmm0,%xmm1
unpcklpd %xmm0,%xmm0
mulpd  %xmm1,%xmm0
addpd  %xmm0,%xmm2
cmp    %rbx,%rax
jb     1260 <evmax+0x120>
movapd %xmm2,%xmm7
unpckhpd %xmm2,%xmm7
ucomisd %xmm4,%xmm7
jb     12d0 <evmax+0x190>
xorps  %xmm0,%xmm0
sqrtsd %xmm7,%xmm0
jmp    131a <evmax+0x1da>
cs nopw 0x0(%rax,%rax,1)
nop
movapd %xmm7,%xmm0
movsd  %xmm3,0x60(%rsp)
movapd %xmm7,0x10(%rsp)
movapd %xmm2,0x70(%rsp)
call   1060 <sqrt@plt>
movapd 0x70(%rsp),%xmm2
movapd 0x10(%rsp),%xmm7
movsd  0x60(%rsp),%xmm3
movsd  0xd03(%rip),%xmm6
movapd 0xd03(%rip),%xmm5
movsd  0xcea(%rip),%xmm8
xorpd  %xmm4,%xmm4
divsd  %xmm2,%xmm7
test   %r15d,%r15d
jle    13ed <evmax+0x2ad>
cmp    $0x8,%r13
setb   %al
or     0xf(%rsp),%al
mov    %rbp,%rax
mov    %r12,%rcx
jne    13d0 <evmax+0x290>
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
cmpq   $0x0,0x48(%rsp)
je     1450 <evmax+0x310>
mov    0x28(%rsp),%rcx
xor    %eax,%eax
nopl   0x0(%rax)
movupd (%r12,%rax,8),%xmm2
divpd  %xmm1,%xmm2
movupd %xmm2,(%r12,%rax,8)
movupd %xmm2,0x0(%rbp,%rax,8)
movupd 0x10(%r12,%rax,8),%xmm2
divpd  %xmm1,%xmm2
movupd %xmm2,0x10(%r12,%rax,8)
movupd %xmm2,0x10(%rbp,%rax,8)
add    $0x4,%rax
add    $0xfffffffffffffffe,%rcx
jne    1360 <evmax+0x220>
testb  $0x1,0x40(%rsp)
je     13b5 <evmax+0x275>
movupd (%r12,%rax,8),%xmm2
divpd  %xmm1,%xmm2
movupd %xmm2,(%r12,%rax,8)
movupd %xmm2,0x0(%rbp,%rax,8)
mov    0x38(%rsp),%rax
mov    0x30(%rsp),%rcx
mov    0x50(%rsp),%rdx
cmp    %rdx,0x58(%rsp)
je     13ed <evmax+0x2ad>
nopl   0x0(%rax,%rax,1)
movsd  (%rcx),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rcx)
add    $0x8,%rcx
movsd  %xmm1,(%rax)
add    $0x8,%rax
cmp    %rbx,%rax
jb     13d0 <evmax+0x290>
movapd %xmm7,%xmm0
subsd  %xmm3,%xmm0
movapd %xmm0,%xmm1
xorpd  %xmm5,%xmm1
movapd %xmm0,%xmm2
cmpltsd %xmm4,%xmm2
andpd  %xmm2,%xmm1
andnpd %xmm0,%xmm2
orpd   %xmm1,%xmm2
movapd %xmm7,%xmm0
xorpd  %xmm5,%xmm0
movapd %xmm7,%xmm1
cmpltsd %xmm4,%xmm1
andpd  %xmm1,%xmm0
andnpd %xmm7,%xmm1
orpd   %xmm0,%xmm1
mulsd  %xmm6,%xmm1
ucomisd %xmm2,%xmm1
ja     1462 <evmax+0x322>
add    $0x1,%r14d
movapd %xmm7,%xmm3
cmp    $0xc8,%r14d
jne    1240 <evmax+0x100>
jmp    1478 <evmax+0x338>
xor    %eax,%eax
testb  $0x1,0x40(%rsp)
jne    139f <evmax+0x25f>
jmp    13b5 <evmax+0x275>
mov    %rbp,%rdi
movapd %xmm7,0x10(%rsp)
call   1030 <free@plt>
movapd 0x10(%rsp),%xmm0
jmp    149e <evmax+0x35e>
mov    %rbp,%rdi
call   1030 <free@plt>
xorpd  %xmm0,%xmm0
test   %r15d,%r15d
jle    149e <evmax+0x35e>
mov    %r15d,%edx
shl    $0x3,%rdx
mov    %r12,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
xorpd  %xmm0,%xmm0
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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