#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 cos(double);
double exp(double);
int pow(double, double);
double sqrt(int);
double kernel_estimate(long KDEtype, double h, double x_est, double x_exp) {
  double u, KE = 0.0;
  const double pi = 3.14159265359;
  u = (x_est - x_exp) / h;
  if (KDEtype == 0) {
    KE = exp(-0.5 * u * u) / sqrt(2. * pi) / h;
  }
  if (KDEtype == 1) {
    if (u > -1.0 && u < 1.0) {
      KE = 1.0 - sqrt(u * u) / h;
    }
  }
  if (KDEtype == 2) {
    if (u > -1.0 && u < 1.0) {
      KE = 3. / 4. * (1.0 - u * u) / h;
    }
  }
  if (KDEtype == 3) {
    if (u > -1.0 && u < 1.0) {
      KE = 15. / 16. * pow((1.0 - u * u), 2.0) / h;
    }
  }
  if (KDEtype == 4) {
    if (u > -1.0 && u < 1.0) {
      KE = 35. / 32. * pow((1.0 - u * u), 3.0) / h;
    }
  }
  if (KDEtype == 5) {
    if (u > -1.0 && u < 1.0) {
      KE = 70. / 81. * pow((1.0 - sqrt(pow(u, 6.0))), 3.0) / h;
    }
  }
  if (KDEtype == 6) {
    if (u > -1.0 && u < 1.0) {
      KE = 0.25 * pi * cos(0.5 * pi * u) / h;
    }
  }
  if (KDEtype == 7) {
    if (u > -1.0 && u < 1.0) {
      KE = 0.5 / h;
    }
  }
  return KE;
}


x86 assembly (clang, -O0):
<kernel_estimate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe95(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x20(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    11cb <kernel_estimate+0x8b>
movsd  0xe71(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1030 <exp@plt>
movsd  %xmm0,-0x40(%rbp)
mov    $0x6,%edi
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
divsd  %xmm1,%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
cmpq   $0x1,-0x8(%rbp)
jne    1231 <kernel_estimate+0xf1>
movsd  -0x28(%rbp),%xmm0
movsd  0xe2d(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    122c <kernel_estimate+0xec>
movsd  0xe23(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    122c <kernel_estimate+0xec>
movsd  -0x28(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
divsd  -0x10(%rbp),%xmm1
movsd  0xdf5(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    1231 <kernel_estimate+0xf1>
cmpq   $0x2,-0x8(%rbp)
jne    12b2 <kernel_estimate+0x172>
movsd  -0x28(%rbp),%xmm0
movsd  0xdc7(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    12ad <kernel_estimate+0x16d>
movsd  0xdbd(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    12ad <kernel_estimate+0x16d>
movsd  -0x28(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xd85(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xd81(%rip),%xmm0
mulsd  %xmm1,%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    12b2 <kernel_estimate+0x172>
cmpq   $0x3,-0x8(%rbp)
jne    1344 <kernel_estimate+0x204>
movsd  -0x28(%rbp),%xmm0
movsd  0xd46(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    133f <kernel_estimate+0x1ff>
movsd  0xd3c(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    133f <kernel_estimate+0x1ff>
movsd  -0x28(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xd04(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xd10(%rip),%xmm1
call   1050 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xcf7(%rip),%xmm0
mulsd  %xmm1,%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    1344 <kernel_estimate+0x204>
cmpq   $0x4,-0x8(%rbp)
jne    13d6 <kernel_estimate+0x296>
movsd  -0x28(%rbp),%xmm0
movsd  0xcb4(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    13d1 <kernel_estimate+0x291>
movsd  0xcaa(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    13d1 <kernel_estimate+0x291>
movsd  -0x28(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xc72(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xc8e(%rip),%xmm1
call   1050 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xc75(%rip),%xmm0
mulsd  %xmm1,%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    13d6 <kernel_estimate+0x296>
cmpq   $0x5,-0x8(%rbp)
jne    145f <kernel_estimate+0x31f>
movsd  -0x28(%rbp),%xmm0
movsd  0xc22(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    145a <kernel_estimate+0x31a>
movsd  0xc18(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    145a <kernel_estimate+0x31a>
movsd  -0x28(%rbp),%xmm0
movsd  0xc38(%rip),%xmm1
call   1050 <pow@plt>
mov    %eax,%edi
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xbe9(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  0xc05(%rip),%xmm1
call   1050 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xbfc(%rip),%xmm0
mulsd  %xmm1,%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    145f <kernel_estimate+0x31f>
cmpq   $0x6,-0x8(%rbp)
jne    14c4 <kernel_estimate+0x384>
movsd  -0x28(%rbp),%xmm0
movsd  0xb99(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    14bf <kernel_estimate+0x37f>
movsd  0xb8f(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    14bf <kernel_estimate+0x37f>
movsd  0xbc4(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  0xba7(%rip),%xmm0
mulsd  %xmm1,%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    14c4 <kernel_estimate+0x384>
cmpq   $0x7,-0x8(%rbp)
jne    1510 <kernel_estimate+0x3d0>
movsd  -0x28(%rbp),%xmm0
movsd  0xb34(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    150b <kernel_estimate+0x3cb>
movsd  0xb2a(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    150b <kernel_estimate+0x3cb>
movsd  0xb67(%rip),%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    1510 <kernel_estimate+0x3d0>
movsd  -0x30(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_estimate>:
sub    $0x18,%rsp
xorpd  %xmm4,%xmm4
cmp    $0x7,%rdi
ja     13bb <kernel_estimate+0x27b>
movapd %xmm0,%xmm3
subsd  %xmm2,%xmm1
divsd  %xmm0,%xmm1
lea    0xf03(%rip),%rax
movslq (%rax,%rdi,4),%rcx
add    %rax,%rcx
jmp    *%rcx
movsd  0xeea(%rip),%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm3,0x8(%rsp)
call   1030 <exp@plt>
movsd  %xmm0,0x10(%rsp)
mov    $0x6,%edi
call   1060 <sqrt@plt>
movsd  0x10(%rsp),%xmm4
divsd  %xmm0,%xmm4
divsd  0x8(%rsp),%xmm4
jmp    13bb <kernel_estimate+0x27b>
ucomisd 0xe4a(%rip),%xmm1
jbe    13bb <kernel_estimate+0x27b>
movsd  0xe44(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    13bb <kernel_estimate+0x27b>
mulsd  %xmm1,%xmm1
cvttsd2si %xmm1,%edi
movsd  %xmm3,0x8(%rsp)
call   1060 <sqrt@plt>
divsd  0x8(%rsp),%xmm0
movsd  0xe19(%rip),%xmm4
subsd  %xmm0,%xmm4
jmp    13bb <kernel_estimate+0x27b>
ucomisd 0xe00(%rip),%xmm1
jbe    13bb <kernel_estimate+0x27b>
movsd  0xdfa(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    13bb <kernel_estimate+0x27b>
mulsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
mulsd  0xe30(%rip),%xmm0
divsd  %xmm3,%xmm0
movapd %xmm0,%xmm4
jmp    13bb <kernel_estimate+0x27b>
ucomisd 0xdc3(%rip),%xmm1
jbe    13bb <kernel_estimate+0x27b>
movsd  0xdbd(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    13bb <kernel_estimate+0x27b>
mulsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
movsd  0xde3(%rip),%xmm1
movsd  %xmm3,0x8(%rsp)
call   1050 <pow@plt>
xorps  %xmm4,%xmm4
cvtsi2sd %eax,%xmm4
mulsd  0xdd1(%rip),%xmm4
divsd  0x8(%rsp),%xmm4
jmp    13bb <kernel_estimate+0x27b>
ucomisd 0xd6e(%rip),%xmm1
jbe    13bb <kernel_estimate+0x27b>
movsd  0xd68(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    13bb <kernel_estimate+0x27b>
mulsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
movsd  0xd76(%rip),%xmm1
movsd  %xmm3,0x8(%rsp)
call   1050 <pow@plt>
xorps  %xmm4,%xmm4
cvtsi2sd %eax,%xmm4
mulsd  0xd6c(%rip),%xmm4
divsd  0x8(%rsp),%xmm4
jmp    13bb <kernel_estimate+0x27b>
ucomisd 0xd19(%rip),%xmm1
jbe    13bb <kernel_estimate+0x27b>
movsd  0xd13(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    13bb <kernel_estimate+0x27b>
movsd  0xd21(%rip),%xmm2
movapd %xmm1,%xmm0
movaps %xmm2,%xmm1
movsd  %xmm3,0x8(%rsp)
call   1050 <pow@plt>
mov    %eax,%edi
call   1060 <sqrt@plt>
movsd  0xce0(%rip),%xmm2
subsd  %xmm0,%xmm2
movsd  0xcfc(%rip),%xmm1
movapd %xmm2,%xmm0
call   1050 <pow@plt>
xorps  %xmm4,%xmm4
cvtsi2sd %eax,%xmm4
mulsd  0xcec(%rip),%xmm4
divsd  0x8(%rsp),%xmm4
jmp    13bb <kernel_estimate+0x27b>
ucomisd 0xca4(%rip),%xmm1
jbe    13bb <kernel_estimate+0x27b>
movsd  0xca2(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    13bb <kernel_estimate+0x27b>
mulsd  0xca4(%rip),%xmm1
movapd %xmm1,%xmm0
movsd  %xmm3,0x8(%rsp)
call   1040 <cos@plt>
movapd %xmm0,%xmm4
mulsd  0xc91(%rip),%xmm4
divsd  0x8(%rsp),%xmm4
jmp    13bb <kernel_estimate+0x27b>
ucomisd 0xc61(%rip),%xmm1
jbe    13bb <kernel_estimate+0x27b>
movsd  0xc5f(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    13bb <kernel_estimate+0x27b>
movsd  0xc59(%rip),%xmm4
divsd  %xmm3,%xmm4
movapd %xmm4,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @kernel_estimate(i64 %0, double %1, double %2, double %3) {
%5 = alloca i64
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
store i64 %0, i64* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
store double 0.000000e+00, double* %10
store double 0x400921FB54442EEA, double* %11
%12 = load double, double* %7
%13 = load double, double* %8
%14 = fsub double %12, %13
%15 = load double, double* %6
%16 = fdiv double %14, %15
store double %16, double* %9
%17 = load i64, i64* %5
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %29
19: ; preds = %4
%20 = load double, double* %9
%21 = fmul double -5.000000e-01, %20
%22 = load double, double* %9
%23 = fmul double %21, %22
%24 = call double @exp(double %23)
%25 = call double @sqrt(i32 6)
%26 = fdiv double %24, %25
%27 = load double, double* %6
%28 = fdiv double %26, %27
store double %28, double* %10
br label %29
29: ; preds = %19, %4
%30 = load i64, i64* %5
%31 = icmp eq i64 %30, 1
br i1 %31, label %32, label %48
32: ; preds = %29
%33 = load double, double* %9
%34 = fcmp ogt double %33, -1.000000e+00
br i1 %34, label %35, label %47
35: ; preds = %32
%36 = load double, double* %9
%37 = fcmp olt double %36, 1.000000e+00
br i1 %37, label %38, label %47
38: ; preds = %35
%39 = load double, double* %9
%40 = load double, double* %9
%41 = fmul double %39, %40
%42 = fptosi double %41 to i32
%43 = call double @sqrt(i32 %42)
%44 = load double, double* %6
%45 = fdiv double %43, %44
%46 = fsub double 1.000000e+00, %45
store double %46, double* %10
br label %47
47: ; preds = %38, %35, %32
br label %48
48: ; preds = %47, %29
%49 = load i64, i64* %5
%50 = icmp eq i64 %49, 2
br i1 %50, label %51, label %66
51: ; preds = %48
%52 = load double, double* %9
%53 = fcmp ogt double %52, -1.000000e+00
br i1 %53, label %54, label %65
54: ; preds = %51
%55 = load double, double* %9
%56 = fcmp olt double %55, 1.000000e+00
br i1 %56, label %57, label %65
57: ; preds = %54
%58 = load double, double* %9
%59 = load double, double* %9
%60 = fneg double %58
%61 = call double @llvm.fmuladd.f64(double %60, double %59, double 1.000000e+00)
%62 = fmul double 7.500000e-01, %61
%63 = load double, double* %6
%64 = fdiv double %62, %63
store double %64, double* %10
br label %65
65: ; preds = %57, %54, %51
br label %66
66: ; preds = %65, %48
%67 = load i64, i64* %5
%68 = icmp eq i64 %67, 3
br i1 %68, label %69, label %86
69: ; preds = %66
%70 = load double, double* %9
%71 = fcmp ogt double %70, -1.000000e+00
br i1 %71, label %72, label %85
72: ; preds = %69
%73 = load double, double* %9
%74 = fcmp olt double %73, 1.000000e+00
br i1 %74, label %75, label %85
75: ; preds = %72
%76 = load double, double* %9
%77 = load double, double* %9
%78 = fneg double %76
%79 = call double @llvm.fmuladd.f64(double %78, double %77, double 1.000000e+00)
%80 = call i32 @pow(double %79, double 2.000000e+00)
%81 = sitofp i32 %80 to double
%82 = fmul double 9.375000e-01, %81
%83 = load double, double* %6
%84 = fdiv double %82, %83
store double %84, double* %10
br label %85
85: ; preds = %75, %72, %69
br label %86
86: ; preds = %85, %66
%87 = load i64, i64* %5
%88 = icmp eq i64 %87, 4
br i1 %88, label %89, label %106
89: ; preds = %86
%90 = load double, double* %9
%91 = fcmp ogt double %90, -1.000000e+00
br i1 %91, label %92, label %105
92: ; preds = %89
%93 = load double, double* %9
%94 = fcmp olt double %93, 1.000000e+00
br i1 %94, label %95, label %105
95: ; preds = %92
%96 = load double, double* %9
%97 = load double, double* %9
%98 = fneg double %96
%99 = call double @llvm.fmuladd.f64(double %98, double %97, double 1.000000e+00)
%100 = call i32 @pow(double %99, double 3.000000e+00)
%101 = sitofp i32 %100 to double
%102 = fmul double 1.093750e+00, %101
%103 = load double, double* %6
%104 = fdiv double %102, %103
store double %104, double* %10
br label %105
105: ; preds = %95, %92, %89
br label %106
106: ; preds = %105, %86
%107 = load i64, i64* %5
%108 = icmp eq i64 %107, 5
br i1 %108, label %109, label %126
109: ; preds = %106
%110 = load double, double* %9
%111 = fcmp ogt double %110, -1.000000e+00
br i1 %111, label %112, label %125
112: ; preds = %109
%113 = load double, double* %9
%114 = fcmp olt double %113, 1.000000e+00
br i1 %114, label %115, label %125
115: ; preds = %112
%116 = load double, double* %9
%117 = call i32 @pow(double %116, double 6.000000e+00)
%118 = call double @sqrt(i32 %117)
%119 = fsub double 1.000000e+00, %118
%120 = call i32 @pow(double %119, double 3.000000e+00)
%121 = sitofp i32 %120 to double
%122 = fmul double 0x3FEBA781948B0FCD, %121
%123 = load double, double* %6
%124 = fdiv double %122, %123
store double %124, double* %10
br label %125
125: ; preds = %115, %112, %109
br label %126
126: ; preds = %125, %106
%127 = load i64, i64* %5
%128 = icmp eq i64 %127, 6
br i1 %128, label %129, label %143
129: ; preds = %126
%130 = load double, double* %9
%131 = fcmp ogt double %130, -1.000000e+00
br i1 %131, label %132, label %142
132: ; preds = %129
%133 = load double, double* %9
%134 = fcmp olt double %133, 1.000000e+00
br i1 %134, label %135, label %142
135: ; preds = %132
%136 = load double, double* %9
%137 = fmul double 0x3FF921FB54442EEA, %136
%138 = call double @cos(double %137)
%139 = fmul double 0x3FE921FB54442EEA, %138
%140 = load double, double* %6
%141 = fdiv double %139, %140
store double %141, double* %10
br label %142
142: ; preds = %135, %132, %129
br label %143
143: ; preds = %142, %126
%144 = load i64, i64* %5
%145 = icmp eq i64 %144, 7
br i1 %145, label %146, label %156
146: ; preds = %143
%147 = load double, double* %9
%148 = fcmp ogt double %147, -1.000000e+00
br i1 %148, label %149, label %155
149: ; preds = %146
%150 = load double, double* %9
%151 = fcmp olt double %150, 1.000000e+00
br i1 %151, label %152, label %155
152: ; preds = %149
%153 = load double, double* %6
%154 = fdiv double 5.000000e-01, %153
store double %154, double* %10
br label %155
155: ; preds = %152, %149, %146
br label %156
156: ; preds = %155, %143
%157 = load double, double* %10
ret double %157
}

LLVM IR (-O2):
define double @kernel_estimate(i64 %0, double %1, double %2, double %3) {
%5 = fsub double %2, %3
%6 = fdiv double %5, %1
switch i64 %0, label %82 [
i64 0, label %7
i64 1, label %14
i64 2, label %24
i64 3, label %33
i64 4, label %44
i64 5, label %55
i64 6, label %67
i64 7, label %76
]
7: ; preds = %4
%8 = fmul double %6, -5.000000e-01
%9 = fmul double %6, %8
%10 = tail call double @exp(double %9)
%11 = tail call double @sqrt(i32 6)
%12 = fdiv double %10, %11
%13 = fdiv double %12, %1
br label %82
14: ; preds = %4
%15 = fcmp ogt double %6, -1.000000e+00
%16 = fcmp olt double %6, 1.000000e+00
%17 = and i1 %15, %16
br i1 %17, label %18, label %82
18: ; preds = %14
%19 = fmul double %6, %6
%20 = fptosi double %19 to i32
%21 = tail call double @sqrt(i32 %20)
%22 = fdiv double %21, %1
%23 = fsub double 1.000000e+00, %22
br label %82
24: ; preds = %4
%25 = fcmp ogt double %6, -1.000000e+00
%26 = fcmp olt double %6, 1.000000e+00
%27 = and i1 %25, %26
br i1 %27, label %28, label %82
28: ; preds = %24
%29 = fneg double %6
%30 = tail call double @llvm.fmuladd.f64(double %29, double %6, double 1.000000e+00)
%31 = fmul double %30, 7.500000e-01
%32 = fdiv double %31, %1
br label %82
33: ; preds = %4
%34 = fcmp ogt double %6, -1.000000e+00
%35 = fcmp olt double %6, 1.000000e+00
%36 = and i1 %34, %35
br i1 %36, label %37, label %82
37: ; preds = %33
%38 = fneg double %6
%39 = tail call double @llvm.fmuladd.f64(double %38, double %6, double 1.000000e+00)
%40 = tail call i32 @pow(double %39, double 2.000000e+00)
%41 = sitofp i32 %40 to double
%42 = fmul double %41, 9.375000e-01
%43 = fdiv double %42, %1
br label %82
44: ; preds = %4
%45 = fcmp ogt double %6, -1.000000e+00
%46 = fcmp olt double %6, 1.000000e+00
%47 = and i1 %45, %46
br i1 %47, label %48, label %82
48: ; preds = %44
%49 = fneg double %6
%50 = tail call double @llvm.fmuladd.f64(double %49, double %6, double 1.000000e+00)
%51 = tail call i32 @pow(double %50, double 3.000000e+00)
%52 = sitofp i32 %51 to double
%53 = fmul double %52, 1.093750e+00
%54 = fdiv double %53, %1
br label %82
55: ; preds = %4
%56 = fcmp ogt double %6, -1.000000e+00
%57 = fcmp olt double %6, 1.000000e+00
%58 = and i1 %56, %57
br i1 %58, label %59, label %82
59: ; preds = %55
%60 = tail call i32 @pow(double %6, double 6.000000e+00)
%61 = tail call double @sqrt(i32 %60)
%62 = fsub double 1.000000e+00, %61
%63 = tail call i32 @pow(double %62, double 3.000000e+00)
%64 = sitofp i32 %63 to double
%65 = fmul double %64, 0x3FEBA781948B0FCD
%66 = fdiv double %65, %1
br label %82
67: ; preds = %4
%68 = fcmp ogt double %6, -1.000000e+00
%69 = fcmp olt double %6, 1.000000e+00
%70 = and i1 %68, %69
br i1 %70, label %71, label %82
71: ; preds = %67
%72 = fmul double %6, 0x3FF921FB54442EEA
%73 = tail call double @cos(double %72)
%74 = fmul double %73, 0x3FE921FB54442EEA
%75 = fdiv double %74, %1
br label %82
76: ; preds = %4
%77 = fcmp ogt double %6, -1.000000e+00
%78 = fcmp olt double %6, 1.000000e+00
%79 = and i1 %77, %78
br i1 %79, label %80, label %82
80: ; preds = %76
%81 = fdiv double 5.000000e-01, %1
br label %82
82: ; preds = %4, %18, %14, %7, %28, %24, %37, %33, %48, %44, %59, %55, %71, %67, %76, %80
%83 = phi double [ %81, %80 ], [ 0.000000e+00, %76 ], [ 0.000000e+00, %67 ], [ %75, %71 ], [ 0.000000e+00, %55 ], [ %66, %59 ], [ 0.000000e+00, %44 ], [ %54, %48 ], [ 0.000000e+00, %33 ], [ %43, %37 ], [ 0.000000e+00, %24 ], [ %32, %28 ], [ %13, %7 ], [ 0.000000e+00, %14 ], [ %23, %18 ], [ 0.000000e+00, %4 ]
ret double %83
}