#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 *dvector(int, int);
int /*<<< orphan*/ free_dvector(double *, int, int);
void vander(double x[], double w[], double q[], int n) {
  int i, j, k;
  double b, s, t, xx;
  double *c;
  c = dvector(1, n);
  if (n == 1)
    w[1] = q[1];
  else {
    for (i = 1; i <= n; i++)
      c[i] = 0.0;
    c[n] = -x[1];
    for (i = 2; i <= n; i++) {
      xx = -x[i];
      for (j = (n + 1 - i); j <= (n - 1); j++)
        c[j] += xx * c[j + 1];
      c[n] += xx;
    }
    for (i = 1; i <= n; i++) {
      xx = x[i];
      t = b = 1.0;
      s = q[n];
      for (k = n; k >= 2; k--) {
        b = c[k] + xx * b;
        s += q[k - 1] * b;
        t = xx * t + b;
      }
      w[i] = s / t;
    }
  }
  free_dvector(c, 1, n);
}


x86 assembly (clang, -O0):
<vander>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x1c(%rbp),%esi
mov    $0x1,%edi
call   1030 <dvector@plt>
mov    %rax,-0x50(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    1169 <vander+0x49>
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
jmp    1386 <vander+0x266>
movl   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     119a <vander+0x7a>
mov    -0x50(%rbp),%rax
movslq -0x20(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1170 <vander+0x50>
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x50(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x2,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     1284 <vander+0x164>
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
sub    -0x20(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     125f <vander+0x13f>
movsd  -0x48(%rbp),%xmm0
mov    -0x50(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x50(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    120f <vander+0xef>
movsd  -0x48(%rbp),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x1c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11ce <vander+0xae>
movl   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     1381 <vander+0x261>
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xd4f(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xd42(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x2,-0x28(%rbp)
jl     135c <vander+0x23c>
mov    -0x50(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x48(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x30(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x28(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x28(%rbp)
jmp    12db <vander+0x1bb>
movsd  -0x38(%rbp),%xmm0
divsd  -0x40(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    128b <vander+0x16b>
jmp    1386 <vander+0x266>
mov    -0x50(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    $0x1,%esi
call   1040 <free_dvector@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vander>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %ecx,%r14d
mov    %rdx,%r12
mov    %rsi,%rbp
mov    %rdi,0x8(%rsp)
mov    $0x1,%edi
mov    %ecx,%esi
call   1040 <dvector@plt>
mov    %rax,%rbx
cmp    $0x1,%r14d
jne    1172 <vander+0x42>
movsd  0x8(%r12),%xmm0
movsd  %xmm0,0x8(%rbp)
jmp    147c <vander+0x34c>
jl     1462 <vander+0x332>
mov    %rbp,0x18(%rsp)
lea    0x8(%rbx),%rdi
mov    %r14d,%ebp
lea    0x0(,%rbp,8),%rdx
xor    %r15d,%r15d
xor    %esi,%esi
call   1030 <memset@plt>
mov    0x8(%rsp),%r8
movsd  0x8(%r8),%xmm2
xorpd  0xe57(%rip),%xmm2
movlpd %xmm2,(%rbx,%rbp,8)
lea    0x1(%r14),%edi
mov    %rbx,%rax
add    $0x38,%rax
mov    %rax,0x20(%rsp)
lea    -0x1(%r14),%edx
mov    $0x2,%esi
movapd 0xe30(%rip),%xmm8
mov    %r14d,%r13d
mov    %r14,0x30(%rsp)
mov    %rdi,0x28(%rsp)
jmp    1203 <vander+0xd3>
nop
movsd  (%rbx,%rbp,8),%xmm2
subsd  %xmm9,%xmm2
movsd  %xmm2,(%rbx,%rbp,8)
add    $0x1,%rsi
add    $0x1,%r15d
add    $0xffffffff,%edx
cmp    %rdi,%rsi
je     13db <vander+0x2ab>
add    $0xffffffff,%r13d
movsd  (%r8,%rsi,8),%xmm9
mov    %edi,%eax
sub    %esi,%eax
cmp    %r14d,%eax
jge    11e5 <vander+0xb5>
movslq %r13d,%rcx
movapd %xmm9,%xmm1
xorpd  %xmm8,%xmm1
movsd  (%rbx,%rcx,8),%xmm3
cmp    $0x3,%r15d
jb     13b0 <vander+0x280>
mov    %r15d,%r10d
add    $0x1,%r10
mov    %r10,%rdi
movabs $0x1fffffffc,%rax
and    %rax,%rdi
mov    %rdi,0x10(%rsp)
lea    -0x4(%rdi),%rax
mov    %rax,%r9
shr    $0x2,%r9
add    $0x1,%r9
unpcklpd %xmm3,%xmm3
movapd %xmm1,%xmm2
unpcklpd %xmm1,%xmm2
test   %rax,%rax
je     133f <vander+0x20f>
movslq %edx,%rax
mov    0x20(%rsp),%rdi
lea    (%rdi,%rax,8),%r14
mov    %r10,%r11
and    $0xfffffffffffffffc,%r11
add    $0xfffffffffffffffc,%r11
shr    $0x2,%r11
add    $0x1,%r11
and    $0xfffffffffffffffe,%r11
xor    %r8d,%r8d
movapd %xmm3,%xmm5
mov    0x10(%rsp),%rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd -0x30(%r14,%r8,8),%xmm6
movupd -0x20(%r14,%r8,8),%xmm7
movupd -0x10(%r14,%r8,8),%xmm0
movupd (%r14,%r8,8),%xmm3
shufpd $0x1,%xmm6,%xmm5
movapd %xmm2,%xmm4
mulpd  %xmm6,%xmm4
shufpd $0x1,%xmm7,%xmm6
addpd  %xmm5,%xmm4
movapd %xmm2,%xmm5
mulpd  %xmm7,%xmm5
addpd  %xmm6,%xmm5
movupd %xmm4,-0x38(%r14,%r8,8)
movupd %xmm5,-0x28(%r14,%r8,8)
shufpd $0x1,%xmm0,%xmm7
movapd %xmm2,%xmm4
mulpd  %xmm0,%xmm4
shufpd $0x1,%xmm3,%xmm0
addpd  %xmm7,%xmm4
movapd %xmm2,%xmm5
mulpd  %xmm3,%xmm5
addpd  %xmm0,%xmm5
movupd %xmm4,-0x18(%r14,%r8,8)
movupd %xmm5,-0x8(%r14,%r8,8)
add    $0x8,%r8
movapd %xmm3,%xmm5
add    $0xfffffffffffffffe,%r11
jne    12b0 <vander+0x180>
jmp    1347 <vander+0x217>
xor    %r8d,%r8d
mov    0x10(%rsp),%rax
test   $0x1,%r9b
mov    0x30(%rsp),%r14
mov    0x28(%rsp),%rdi
je     1397 <vander+0x267>
add    %rcx,%r8
movupd 0x8(%rbx,%r8,8),%xmm0
movupd 0x18(%rbx,%r8,8),%xmm4
shufpd $0x1,%xmm0,%xmm3
movapd %xmm2,%xmm5
mulpd  %xmm0,%xmm5
shufpd $0x1,%xmm4,%xmm0
addpd  %xmm3,%xmm5
mulpd  %xmm4,%xmm2
addpd  %xmm0,%xmm2
movupd %xmm5,(%rbx,%r8,8)
movupd %xmm2,0x10(%rbx,%r8,8)
movapd %xmm4,%xmm3
cmp    %rax,%r10
mov    0x8(%rsp),%r8
je     11e0 <vander+0xb0>
add    %rax,%rcx
unpckhpd %xmm3,%xmm3
nopl   0x0(%rax)
movsd  0x8(%rbx,%rcx,8),%xmm0
movapd %xmm1,%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm3,%xmm2
movsd  %xmm2,(%rbx,%rcx,8)
lea    0x1(%rcx),%rax
movapd %xmm0,%xmm3
mov    %rax,%rcx
cmp    %eax,%ebp
jne    13b0 <vander+0x280>
jmp    11e0 <vander+0xb0>
test   %r14d,%r14d
mov    0x18(%rsp),%r9
jle    147c <vander+0x34c>
mov    %rbp,%rax
add    $0x1,%rax
mov    $0x1,%ecx
movsd  0xc13(%rip),%xmm0
nopl   (%rax)
movsd  (%r8,%rcx,8),%xmm2
movsd  (%r12,%rbp,8),%xmm1
mov    %rax,%rdx
movapd %xmm0,%xmm3
movapd %xmm0,%xmm4
nopw   0x0(%rax,%rax,1)
mulsd  %xmm2,%xmm4
addsd  -0x8(%rbx,%rdx,8),%xmm4
lea    -0x2(%rdx),%esi
movsd  (%r12,%rsi,8),%xmm5
mulsd  %xmm4,%xmm5
addsd  %xmm5,%xmm1
mulsd  %xmm2,%xmm3
addsd  %xmm4,%xmm3
add    $0xffffffffffffffff,%rdx
cmp    $0x2,%rdx
jg     1420 <vander+0x2f0>
divsd  %xmm3,%xmm1
movsd  %xmm1,(%r9,%rcx,8)
add    $0x1,%rcx
cmp    %rdi,%rcx
jne    1400 <vander+0x2d0>
jmp    147c <vander+0x34c>
mov    0x8(%rsp),%rax
movsd  0x8(%rax),%xmm0
xorpd  0xb8c(%rip),%xmm0
movslq %r14d,%rax
movlpd %xmm0,(%rbx,%rax,8)
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r14d,%edx
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <free_dvector@plt>

LLVM IR (-O0):
define void @vander(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 double
%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
%17 = load i32, i32* %8
%18 = call double* @dvector(i32 1, i32 %17)
store double* %18, double** %16
%19 = load i32, i32* %8
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %27
21: ; preds = %4
%22 = load double*, double** %7
%23 = getelementptr inbounds double, double* %22, i64 1
%24 = load double, double* %23
%25 = load double*, double** %6
%26 = getelementptr inbounds double, double* %25, i64 1
store double %24, double* %26
br label %154
27: ; preds = %4
store i32 1, i32* %9
br label %28
28: ; preds = %37, %27
%29 = load i32, i32* %9
%30 = load i32, i32* %8
%31 = icmp sle i32 %29, %30
br i1 %31, label %32, label %40
32: ; preds = %28
%33 = load double*, double** %16
%34 = load i32, i32* %9
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, double* %33, i64 %35
store double 0.000000e+00, double* %36
br label %37
37: ; preds = %32
%38 = load i32, i32* %9
%39 = add nsw i32 %38, 1
store i32 %39, i32* %9
br label %28
40: ; preds = %28
%41 = load double*, double** %5
%42 = getelementptr inbounds double, double* %41, i64 1
%43 = load double, double* %42
%44 = fneg double %43
%45 = load double*, double** %16
%46 = load i32, i32* %8
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, double* %45, i64 %47
store double %44, double* %48
store i32 2, i32* %9
br label %49
49: ; preds = %94, %40
%50 = load i32, i32* %9
%51 = load i32, i32* %8
%52 = icmp sle i32 %50, %51
br i1 %52, label %53, label %97
53: ; preds = %49
%54 = load double*, double** %5
%55 = load i32, i32* %9
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, double* %54, i64 %56
%58 = load double, double* %57
%59 = fneg double %58
store double %59, double* %15
%60 = load i32, i32* %8
%61 = add nsw i32 %60, 1
%62 = load i32, i32* %9
%63 = sub nsw i32 %61, %62
store i32 %63, i32* %10
br label %64
64: ; preds = %83, %53
%65 = load i32, i32* %10
%66 = load i32, i32* %8
%67 = sub nsw i32 %66, 1
%68 = icmp sle i32 %65, %67
br i1 %68, label %69, label %86
69: ; preds = %64
%70 = load double, double* %15
%71 = load double*, double** %16
%72 = load i32, i32* %10
%73 = add nsw i32 %72, 1
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %71, i64 %74
%76 = load double, double* %75
%77 = load double*, double** %16
%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 = call double @llvm.fmuladd.f64(double %70, double %76, double %81)
store double %82, double* %80
br label %83
83: ; preds = %69
%84 = load i32, i32* %10
%85 = add nsw i32 %84, 1
store i32 %85, i32* %10
br label %64
86: ; preds = %64
%87 = load double, double* %15
%88 = load double*, double** %16
%89 = load i32, i32* %8
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, double* %88, i64 %90
%92 = load double, double* %91
%93 = fadd double %92, %87
store double %93, double* %91
br label %94
94: ; preds = %86
%95 = load i32, i32* %9
%96 = add nsw i32 %95, 1
store i32 %96, i32* %9
br label %49
97: ; preds = %49
store i32 1, i32* %9
br label %98
98: ; preds = %150, %97
%99 = load i32, i32* %9
%100 = load i32, i32* %8
%101 = icmp sle i32 %99, %100
br i1 %101, label %102, label %153
102: ; preds = %98
%103 = load double*, double** %5
%104 = load i32, i32* %9
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, double* %103, i64 %105
%107 = load double, double* %106
store double %107, double* %15
store double 1.000000e+00, double* %12
store double 1.000000e+00, double* %14
%108 = load double*, double** %7
%109 = load i32, i32* %8
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds double, double* %108, i64 %110
%112 = load double, double* %111
store double %112, double* %13
%113 = load i32, i32* %8
store i32 %113, i32* %11
br label %114
114: ; preds = %139, %102
%115 = load i32, i32* %11
%116 = icmp sge i32 %115, 2
br i1 %116, label %117, label %142
117: ; preds = %114
%118 = load double*, double** %16
%119 = load i32, i32* %11
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, double* %118, i64 %120
%122 = load double, double* %121
%123 = load double, double* %15
%124 = load double, double* %12
%125 = call double @llvm.fmuladd.f64(double %123, double %124, double %122)
store double %125, double* %12
%126 = load double*, double** %7
%127 = load i32, i32* %11
%128 = sub nsw i32 %127, 1
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds double, double* %126, i64 %129
%131 = load double, double* %130
%132 = load double, double* %12
%133 = load double, double* %13
%134 = call double @llvm.fmuladd.f64(double %131, double %132, double %133)
store double %134, double* %13
%135 = load double, double* %15
%136 = load double, double* %14
%137 = load double, double* %12
%138 = call double @llvm.fmuladd.f64(double %135, double %136, double %137)
store double %138, double* %14
br label %139
139: ; preds = %117
%140 = load i32, i32* %11
%141 = add nsw i32 %140, -1
store i32 %141, i32* %11
br label %114
142: ; preds = %114
%143 = load double, double* %13
%144 = load double, double* %14
%145 = fdiv double %143, %144
%146 = load double*, double** %6
%147 = load i32, i32* %9
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, double* %146, i64 %148
store double %145, double* %149
br label %150
150: ; preds = %142
%151 = load i32, i32* %9
%152 = add nsw i32 %151, 1
store i32 %152, i32* %9
br label %98
153: ; preds = %98
br label %154
154: ; preds = %153, %21
%155 = load double*, double** %16
%156 = load i32, i32* %8
%157 = call i32 @free_dvector(double* %155, i32 1, i32 %156)
ret void
}

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