#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__ MemAlloc(int);
double exp(double);
double *KDE(double *h16) {
  double *tmp;
  int i, j, k;
  double kernel[31];
  double b, c;
  tmp = (double *)MemAlloc(32768 * sizeof(double));
  c = 2 * (7.0 * 7.0);
  for (i = 0; i < 31; i++) {
    b = i - 15.5;
    b *= b;
    kernel[i] = exp(-b / c);
  }
  c = 0.0;
  for (i = 0; i < 31; i++)
    c += kernel[i];
  for (i = 0; i < 31; i++)
    kernel[i] /= c;
  for (i = 0; i < 32768; i++) {
    tmp[i] = 0.0;
    for (j = 0; j < 31; j++) {
      k = i + j - 15;
      if (k < 0)
        k = 0;
      if (k > 32767)
        k = 32767;
      tmp[i] += kernel[j] * h16[k];
    }
  }
  return tmp;
}


x86 assembly (clang, -O0):
<KDE>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x40000,%edi
call   1040 <MemAlloc@plt>
mov    %rax,-0x10(%rbp)
movsd  0xebb(%rip),%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movl   $0x0,-0x14(%rbp)
cmpl   $0x1f,-0x14(%rbp)
jge    11d6 <KDE+0xb6>
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  0xe9d(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x128(%rbp),%xmm0
ff
mulsd  -0x128(%rbp),%xmm0
ff
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x128(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x130(%rbp),%xmm0
ff
call   1030 <exp@plt>
movslq -0x14(%rbp),%rax
movsd  %xmm0,-0x120(%rbp,%rax,8)
ff ff
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1154 <KDE+0x34>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movl   $0x0,-0x14(%rbp)
cmpl   $0x1f,-0x14(%rbp)
jge    121d <KDE+0xfd>
movslq -0x14(%rbp),%rax
movsd  -0x120(%rbp,%rax,8),%xmm0
ff ff
addsd  -0x130(%rbp),%xmm0
ff
movsd  %xmm0,-0x130(%rbp)
ff
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11e8 <KDE+0xc8>
movl   $0x0,-0x14(%rbp)
cmpl   $0x1f,-0x14(%rbp)
jge    125e <KDE+0x13e>
movsd  -0x130(%rbp),%xmm1
ff
movslq -0x14(%rbp),%rax
movsd  -0x120(%rbp,%rax,8),%xmm0
ff ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x120(%rbp,%rax,8)
ff ff
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1224 <KDE+0x104>
movl   $0x0,-0x14(%rbp)
cmpl   $0x8000,-0x14(%rbp)
jge    1319 <KDE+0x1f9>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x18(%rbp)
cmpl   $0x1f,-0x18(%rbp)
jge    1306 <KDE+0x1e6>
mov    -0x14(%rbp),%eax
add    -0x18(%rbp),%eax
sub    $0xf,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    12b0 <KDE+0x190>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x7fff,-0x1c(%rbp)
jle    12c4 <KDE+0x1a4>
movl   $0x7fff,-0x1c(%rbp)
movslq -0x18(%rbp),%rax
movsd  -0x120(%rbp,%rax,8),%xmm0
ff ff
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1289 <KDE+0x169>
jmp    130b <KDE+0x1eb>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1265 <KDE+0x145>
mov    -0x10(%rbp),%rax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<KDE>:
push   %r15
push   %r14
push   %rbx
sub    $0x100,%rsp
mov    %rdi,%r14
mov    $0x40000,%edi
call   1040 <MemAlloc@plt>
mov    %rax,%r15
xor    %ebx,%ebx
xchg   %ax,%ax
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
addsd  0xeb1(%rip),%xmm0
mulsd  %xmm0,%xmm0
divsd  0xead(%rip),%xmm0
call   1030 <exp@plt>
movsd  %xmm0,(%rsp,%rbx,8)
add    $0x1,%rbx
cmp    $0x1f,%rbx
jne    1140 <KDE+0x20>
movsd  (%rsp),%xmm1
xorpd  %xmm2,%xmm2
movapd %xmm1,%xmm0
addsd  %xmm2,%xmm0
addsd  0x8(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
addsd  0x20(%rsp),%xmm0
addsd  0x28(%rsp),%xmm0
addsd  0x30(%rsp),%xmm0
addsd  0x38(%rsp),%xmm0
addsd  0x40(%rsp),%xmm0
addsd  0x48(%rsp),%xmm0
addsd  0x50(%rsp),%xmm0
addsd  0x58(%rsp),%xmm0
addsd  0x60(%rsp),%xmm0
addsd  0x68(%rsp),%xmm0
addsd  0x70(%rsp),%xmm0
addsd  0x78(%rsp),%xmm0
addsd  0x80(%rsp),%xmm0
addsd  0x88(%rsp),%xmm0
addsd  0x90(%rsp),%xmm0
addsd  0x98(%rsp),%xmm0
addsd  0xa0(%rsp),%xmm0
addsd  0xa8(%rsp),%xmm0
addsd  0xb0(%rsp),%xmm0
addsd  0xb8(%rsp),%xmm0
addsd  0xc0(%rsp),%xmm0
addsd  0xc8(%rsp),%xmm0
addsd  0xd0(%rsp),%xmm0
addsd  0xd8(%rsp),%xmm0
addsd  0xe0(%rsp),%xmm0
addsd  0xe8(%rsp),%xmm0
addsd  0xf0(%rsp),%xmm0
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
unpcklpd %xmm0,%xmm0
movupd 0x8(%rsp),%xmm1
movupd 0x18(%rsp),%xmm2
movupd 0x28(%rsp),%xmm3
movupd 0x38(%rsp),%xmm4
divpd  %xmm0,%xmm1
movupd %xmm1,0x8(%rsp)
divpd  %xmm0,%xmm2
movupd %xmm2,0x18(%rsp)
divpd  %xmm0,%xmm3
movupd %xmm3,0x28(%rsp)
divpd  %xmm0,%xmm4
movupd %xmm4,0x38(%rsp)
movupd 0x48(%rsp),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,0x48(%rsp)
movupd 0x58(%rsp),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,0x58(%rsp)
movupd 0x68(%rsp),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,0x68(%rsp)
movupd 0x78(%rsp),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,0x78(%rsp)
movupd 0x88(%rsp),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,0x88(%rsp)
movupd 0x98(%rsp),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,0x98(%rsp)
movupd 0xa8(%rsp),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,0xa8(%rsp)
movupd 0xb8(%rsp),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,0xb8(%rsp)
movupd 0xc8(%rsp),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,0xc8(%rsp)
movupd 0xd8(%rsp),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,0xd8(%rsp)
movupd 0xe8(%rsp),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,0xe8(%rsp)
xor    %eax,%eax
mov    $0xf,%ecx
mov    $0x7fff,%edx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movq   $0x0,(%r15,%rax,8)
xorpd  %xmm0,%xmm0
xor    %esi,%esi
xchg   %ax,%ax
lea    (%rax,%rsi,1),%rdi
cmp    $0x10,%rdi
cmovb  %ecx,%edi
lea    -0xf(%rdi),%ebx
cmp    $0x800e,%edi
movsd  (%rsp,%rsi,8),%xmm1
movslq %ebx,%rdi
cmovge %rdx,%rdi
mulsd  (%r14,%rdi,8),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r15,%rax,8)
add    $0x1,%rsi
cmp    $0x1f,%rsi
jne    13b0 <KDE+0x290>
add    $0x1,%rax
cmp    $0x8000,%rax
jne    13a0 <KDE+0x280>
mov    %r15,%rax
add    $0x100,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define double* @KDE(double* nocapture %0) {
%2 = alloca [31 x double]
%3 = bitcast [31 x double]* %2 to i8*
%4 = tail call i64 @MemAlloc(i32 262144)
br label %5
5: ; preds = %1, %5
%6 = phi i64 [ 0, %1 ], [ %15, %5 ]
%7 = trunc i64 %6 to i32
%8 = sitofp i32 %7 to double
%9 = fadd double %8, -1.550000e+01
%10 = fneg double %9
%11 = fmul double %9, %10
%12 = fdiv double %11, 9.800000e+01
%13 = tail call double @exp(double %12)
%14 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 %6
store double %13, double* %14
%15 = add nuw nsw i64 %6, 1
%16 = icmp eq i64 %15, 31
br i1 %16, label %17, label %5
17: ; preds = %5
%18 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 0
%19 = load double, double* %18
%20 = fadd double %19, 0.000000e+00
%21 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 1
%22 = load double, double* %21
%23 = fadd double %20, %22
%24 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 2
%25 = load double, double* %24
%26 = fadd double %23, %25
%27 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 3
%28 = load double, double* %27
%29 = fadd double %26, %28
%30 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 4
%31 = load double, double* %30
%32 = fadd double %29, %31
%33 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 5
%34 = load double, double* %33
%35 = fadd double %32, %34
%36 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 6
%37 = load double, double* %36
%38 = fadd double %35, %37
%39 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 7
%40 = load double, double* %39
%41 = fadd double %38, %40
%42 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 8
%43 = load double, double* %42
%44 = fadd double %41, %43
%45 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 9
%46 = load double, double* %45
%47 = fadd double %44, %46
%48 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 10
%49 = load double, double* %48
%50 = fadd double %47, %49
%51 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 11
%52 = load double, double* %51
%53 = fadd double %50, %52
%54 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 12
%55 = load double, double* %54
%56 = fadd double %53, %55
%57 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 13
%58 = load double, double* %57
%59 = fadd double %56, %58
%60 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 14
%61 = load double, double* %60
%62 = fadd double %59, %61
%63 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 15
%64 = load double, double* %63
%65 = fadd double %62, %64
%66 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 16
%67 = load double, double* %66
%68 = fadd double %65, %67
%69 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 17
%70 = load double, double* %69
%71 = fadd double %68, %70
%72 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 18
%73 = load double, double* %72
%74 = fadd double %71, %73
%75 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 19
%76 = load double, double* %75
%77 = fadd double %74, %76
%78 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 20
%79 = load double, double* %78
%80 = fadd double %77, %79
%81 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 21
%82 = load double, double* %81
%83 = fadd double %80, %82
%84 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 22
%85 = load double, double* %84
%86 = fadd double %83, %85
%87 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 23
%88 = load double, double* %87
%89 = fadd double %86, %88
%90 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 24
%91 = load double, double* %90
%92 = fadd double %89, %91
%93 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 25
%94 = load double, double* %93
%95 = fadd double %92, %94
%96 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 26
%97 = load double, double* %96
%98 = fadd double %95, %97
%99 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 27
%100 = load double, double* %99
%101 = fadd double %98, %100
%102 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 28
%103 = load double, double* %102
%104 = fadd double %101, %103
%105 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 29
%106 = load double, double* %105
%107 = fadd double %104, %106
%108 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 30
%109 = load double, double* %108
%110 = fadd double %107, %109
%111 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 0
%112 = fdiv double %19, %110
store double %112, double* %111
%113 = insertelement <2 x double> poison, double %110, i64 0
%114 = shufflevector <2 x double> %113, <2 x double> poison, <2 x i32> zeroinitializer
%115 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 1
%116 = bitcast double* %115 to <2 x double>*
%117 = load <2 x double>, <2 x double>* %116
%118 = fdiv <2 x double> %117, %114
%119 = bitcast double* %115 to <2 x double>*
store <2 x double> %118, <2 x double>* %119
%120 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 3
%121 = bitcast double* %120 to <2 x double>*
%122 = load <2 x double>, <2 x double>* %121
%123 = fdiv <2 x double> %122, %114
%124 = bitcast double* %120 to <2 x double>*
store <2 x double> %123, <2 x double>* %124
%125 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 5
%126 = bitcast double* %125 to <2 x double>*
%127 = load <2 x double>, <2 x double>* %126
%128 = fdiv <2 x double> %127, %114
%129 = bitcast double* %125 to <2 x double>*
store <2 x double> %128, <2 x double>* %129
%130 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 7
%131 = bitcast double* %130 to <2 x double>*
%132 = load <2 x double>, <2 x double>* %131
%133 = fdiv <2 x double> %132, %114
%134 = bitcast double* %130 to <2 x double>*
store <2 x double> %133, <2 x double>* %134
%135 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 9
%136 = bitcast double* %135 to <2 x double>*
%137 = load <2 x double>, <2 x double>* %136
%138 = fdiv <2 x double> %137, %114
%139 = bitcast double* %135 to <2 x double>*
store <2 x double> %138, <2 x double>* %139
%140 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 11
%141 = bitcast double* %140 to <2 x double>*
%142 = load <2 x double>, <2 x double>* %141
%143 = fdiv <2 x double> %142, %114
%144 = bitcast double* %140 to <2 x double>*
store <2 x double> %143, <2 x double>* %144
%145 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 13
%146 = bitcast double* %145 to <2 x double>*
%147 = load <2 x double>, <2 x double>* %146
%148 = fdiv <2 x double> %147, %114
%149 = bitcast double* %145 to <2 x double>*
store <2 x double> %148, <2 x double>* %149
%150 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 15
%151 = bitcast double* %150 to <2 x double>*
%152 = load <2 x double>, <2 x double>* %151
%153 = fdiv <2 x double> %152, %114
%154 = bitcast double* %150 to <2 x double>*
store <2 x double> %153, <2 x double>* %154
%155 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 17
%156 = bitcast double* %155 to <2 x double>*
%157 = load <2 x double>, <2 x double>* %156
%158 = fdiv <2 x double> %157, %114
%159 = bitcast double* %155 to <2 x double>*
store <2 x double> %158, <2 x double>* %159
%160 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 19
%161 = bitcast double* %160 to <2 x double>*
%162 = load <2 x double>, <2 x double>* %161
%163 = fdiv <2 x double> %162, %114
%164 = bitcast double* %160 to <2 x double>*
store <2 x double> %163, <2 x double>* %164
%165 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 21
%166 = bitcast double* %165 to <2 x double>*
%167 = load <2 x double>, <2 x double>* %166
%168 = fdiv <2 x double> %167, %114
%169 = bitcast double* %165 to <2 x double>*
store <2 x double> %168, <2 x double>* %169
%170 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 23
%171 = bitcast double* %170 to <2 x double>*
%172 = load <2 x double>, <2 x double>* %171
%173 = fdiv <2 x double> %172, %114
%174 = bitcast double* %170 to <2 x double>*
store <2 x double> %173, <2 x double>* %174
%175 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 25
%176 = bitcast double* %175 to <2 x double>*
%177 = load <2 x double>, <2 x double>* %176
%178 = fdiv <2 x double> %177, %114
%179 = bitcast double* %175 to <2 x double>*
store <2 x double> %178, <2 x double>* %179
%180 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 27
%181 = bitcast double* %180 to <2 x double>*
%182 = load <2 x double>, <2 x double>* %181
%183 = fdiv <2 x double> %182, %114
%184 = bitcast double* %180 to <2 x double>*
store <2 x double> %183, <2 x double>* %184
%185 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 29
%186 = bitcast double* %185 to <2 x double>*
%187 = load <2 x double>, <2 x double>* %186
%188 = fdiv <2 x double> %187, %114
%189 = bitcast double* %185 to <2 x double>*
store <2 x double> %188, <2 x double>* %189
%190 = inttoptr i64 %4 to double*
br label %191
191: ; preds = %17, %213
%192 = phi i64 [ 0, %17 ], [ %214, %213 ]
%193 = getelementptr inbounds double, double* %190, i64 %192
store double 0.000000e+00, double* %193
br label %194
194: ; preds = %191, %194
%195 = phi double [ 0.000000e+00, %191 ], [ %210, %194 ]
%196 = phi i64 [ 0, %191 ], [ %211, %194 ]
%197 = add nuw nsw i64 %196, %192
%198 = icmp ugt i64 %197, 15
%199 = select i1 %198, i64 %197, i64 15
%200 = trunc i64 %199 to i32
%201 = icmp slt i32 %200, 32782
%202 = getelementptr inbounds [31 x double], [31 x double]* %2, i64 0, i64 %196
%203 = load double, double* %202
%204 = shl i64 %199, 32
%205 = add i64 %204, -64424509440
%206 = ashr exact i64 %205, 32
%207 = select i1 %201, i64 %206, i64 32767
%208 = getelementptr inbounds double, double* %0, i64 %207
%209 = load double, double* %208
%210 = tail call double @llvm.fmuladd.f64(double %203, double %209, double %195)
store double %210, double* %193
%211 = add nuw nsw i64 %196, 1
%212 = icmp eq i64 %211, 31
br i1 %212, label %213, label %194
213: ; preds = %194
%214 = add nuw nsw i64 %192, 1
%215 = icmp eq i64 %214, 32768
br i1 %215, label %216, label %191
216: ; preds = %213
ret double* %190
}