#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 exp(double);
void fmixed(float x, double a[], double *y, double dyda[], int na) {
  int i;
  double fac, ex, arg, width;
  *y = 0.0;
  for (i = 1; i < na; i += 4) {
    arg = (x - a[i + 1]) / a[i + 2];
    ex = 4 * arg * arg;
    fac = 1.0 / (ex + 1);
    *y += a[i + 3] * a[i] * fac;
    dyda[i] = a[i + 3] * fac;
    dyda[i + 1] = a[i + 3] * 8 * a[i] * fac * fac * arg / a[i + 2];
    dyda[i + 2] = dyda[i + 1] * arg;
    dyda[i + 3] = a[i] * fac;
  }
  for (i = 1; i < na; i += 4) {
    width = a[i + 2] / 1.66510922231539537641;
    arg = (x - a[i + 1]) / width;
    ex = exp(-arg * arg);
    fac = (1.0 - a[i + 3]) * a[i] * ex * 2.0 * arg;
    *y += (1.0 - a[i + 3]) * a[i] * ex;
    dyda[i] += (1.0 - a[i + 3]) * ex;
    dyda[i + 1] += fac / width;
    dyda[i + 2] += fac * arg / width;
    dyda[i + 3] += -a[i] * ex;
  }
}


x86 assembly (clang, -O0):
<fmixed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    12c2 <fmixed+0x1b2>
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe9c(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe65(%rip),%xmm1
addsd  -0x38(%rbp),%xmm1
movsd  0xe58(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  -0x30(%rbp),%xmm2
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x30(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  0xdf6(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x40(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x30(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x28(%rbp)
jmp    113e <fmixed+0x2e>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    14a0 <fmixed+0x390>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xd21(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
divsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x40(%rbp),%xmm0
call   1030 <exp@plt>
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  0xca3(%rip),%xmm0
subsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  0xc8c(%rip),%xmm1
mulsd  %xmm1,%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  0xc61(%rip),%xmm0
subsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  -0x38(%rbp),%xmm2
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  0xc21(%rip),%xmm0
subsd  (%rax,%rcx,8),%xmm0
movsd  -0x38(%rbp),%xmm2
mov    -0x20(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x38(%rbp),%xmm2
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x28(%rbp)
jmp    12c9 <fmixed+0x1b9>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fmixed>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x30,%rsp
movq   $0x0,(%rsi)
cmp    $0x2,%ecx
jl     1319 <fmixed+0x209>
mov    %rdx,%r15
mov    %rsi,%r14
mov    %rdi,%r13
cvtss2sd %xmm0,%xmm8
mov    %ecx,%r12d
xorpd  %xmm3,%xmm3
mov    $0x5,%eax
movsd  0xeb1(%rip),%xmm0
movsd  0xeb1(%rip),%xmm7
movsd  0xeb1(%rip),%xmm1
nop
movaps %xmm8,%xmm2
subsd  -0x18(%r13,%rax,8),%xmm2
divsd  -0x10(%r13,%rax,8),%xmm2
movapd %xmm2,%xmm5
mulsd  %xmm0,%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm7,%xmm5
movapd %xmm7,%xmm4
movsd  -0x8(%r13,%rax,8),%xmm6
mulsd  -0x20(%r13,%rax,8),%xmm6
divsd  %xmm5,%xmm4
mulsd  %xmm4,%xmm6
addsd  %xmm3,%xmm6
movsd  %xmm6,(%r14)
movsd  -0x8(%r13,%rax,8),%xmm3
mulsd  %xmm4,%xmm3
movsd  %xmm3,-0x20(%r15,%rax,8)
movsd  -0x8(%r13,%rax,8),%xmm3
mulsd  %xmm1,%xmm3
mulsd  -0x20(%r13,%rax,8),%xmm3
mulsd  %xmm4,%xmm3
mulsd  %xmm4,%xmm3
mulsd  %xmm2,%xmm3
divsd  -0x10(%r13,%rax,8),%xmm3
movsd  %xmm3,-0x18(%r15,%rax,8)
mulsd  %xmm2,%xmm3
movsd  %xmm3,-0x10(%r15,%rax,8)
mulsd  -0x20(%r13,%rax,8),%xmm4
movsd  %xmm4,-0x8(%r15,%rax,8)
cmp    %r12,%rax
jae    120f <fmixed+0xff>
movsd  (%r14),%xmm3
add    $0x4,%rax
jmp    1160 <fmixed+0x50>
cmp    $0x2,%ecx
jl     1319 <fmixed+0x209>
mov    $0x1,%ebx
movsd  %xmm8,0x8(%rsp)
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x10(%r13,%rbx,8),%xmm0
subsd  0x8(%r13,%rbx,8),%xmm8
divsd  0xdd2(%rip),%xmm0
movapd %xmm0,0x20(%rsp)
divsd  %xmm0,%xmm8
movapd %xmm8,0x10(%rsp)
movapd %xmm8,%xmm0
xorpd  0xdbb(%rip),%xmm0
mulsd  %xmm8,%xmm0
call   1030 <exp@plt>
movsd  0xd91(%rip),%xmm3
movsd  0x8(%rsp),%xmm8
movapd %xmm3,%xmm1
subsd  0x18(%r13,%rbx,8),%xmm1
mulsd  0x0(%r13,%rbx,8),%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,%xmm2
addsd  (%r14),%xmm1
movsd  %xmm1,(%r14)
movapd %xmm3,%xmm1
subsd  0x18(%r13,%rbx,8),%xmm1
addsd  %xmm2,%xmm2
mulsd  %xmm0,%xmm1
addsd  (%r15,%rbx,8),%xmm1
movapd 0x10(%rsp),%xmm3
mulsd  %xmm3,%xmm2
movsd  %xmm1,(%r15,%rbx,8)
mulsd  %xmm2,%xmm3
unpcklpd %xmm3,%xmm2
movapd 0x20(%rsp),%xmm1
unpcklpd %xmm1,%xmm1
divpd  %xmm1,%xmm2
movupd 0x8(%r15,%rbx,8),%xmm1
addpd  %xmm2,%xmm1
movupd %xmm1,0x8(%r15,%rbx,8)
movsd  0x18(%r15,%rbx,8),%xmm1
mulsd  0x0(%r13,%rbx,8),%xmm0
subsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%r15,%rbx,8)
add    $0x4,%rbx
cmp    %r12,%rbx
jb     1230 <fmixed+0x120>
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @fmixed(float %0, double* %1, double* %2, double* %3, i32 %4) {
%6 = alloca float
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca i32
%11 = alloca i32
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
store float %0, float* %6
store double* %1, double** %7
store double* %2, double** %8
store double* %3, double** %9
store i32 %4, i32* %10
%16 = load double*, double** %8
store double 0.000000e+00, double* %16
store i32 1, i32* %11
br label %17
17: ; preds = %129, %5
%18 = load i32, i32* %11
%19 = load i32, i32* %10
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %132
21: ; preds = %17
%22 = load float, float* %6
%23 = fpext float %22 to double
%24 = load double*, double** %7
%25 = load i32, i32* %11
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, double* %24, i64 %27
%29 = load double, double* %28
%30 = fsub double %23, %29
%31 = load double*, double** %7
%32 = load i32, i32* %11
%33 = add nsw i32 %32, 2
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double, double* %31, i64 %34
%36 = load double, double* %35
%37 = fdiv double %30, %36
store double %37, double* %14
%38 = load double, double* %14
%39 = fmul double 4.000000e+00, %38
%40 = load double, double* %14
%41 = fmul double %39, %40
store double %41, double* %13
%42 = load double, double* %13
%43 = fadd double %42, 1.000000e+00
%44 = fdiv double 1.000000e+00, %43
store double %44, double* %12
%45 = load double*, double** %7
%46 = load i32, i32* %11
%47 = add nsw i32 %46, 3
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, double* %45, i64 %48
%50 = load double, double* %49
%51 = load double*, double** %7
%52 = load i32, i32* %11
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, double* %51, i64 %53
%55 = load double, double* %54
%56 = fmul double %50, %55
%57 = load double, double* %12
%58 = load double*, double** %8
%59 = load double, double* %58
%60 = call double @llvm.fmuladd.f64(double %56, double %57, double %59)
store double %60, double* %58
%61 = load double*, double** %7
%62 = load i32, i32* %11
%63 = add nsw i32 %62, 3
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, double* %61, i64 %64
%66 = load double, double* %65
%67 = load double, double* %12
%68 = fmul double %66, %67
%69 = load double*, double** %9
%70 = load i32, i32* %11
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, double* %69, i64 %71
store double %68, double* %72
%73 = load double*, double** %7
%74 = load i32, i32* %11
%75 = add nsw i32 %74, 3
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, double* %73, i64 %76
%78 = load double, double* %77
%79 = fmul double %78, 8.000000e+00
%80 = load double*, double** %7
%81 = load i32, i32* %11
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %80, i64 %82
%84 = load double, double* %83
%85 = fmul double %79, %84
%86 = load double, double* %12
%87 = fmul double %85, %86
%88 = load double, double* %12
%89 = fmul double %87, %88
%90 = load double, double* %14
%91 = fmul double %89, %90
%92 = load double*, double** %7
%93 = load i32, i32* %11
%94 = add nsw i32 %93, 2
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, double* %92, i64 %95
%97 = load double, double* %96
%98 = fdiv double %91, %97
%99 = load double*, double** %9
%100 = load i32, i32* %11
%101 = add nsw i32 %100, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, double* %99, i64 %102
store double %98, double* %103
%104 = load double*, double** %9
%105 = load i32, i32* %11
%106 = add nsw i32 %105, 1
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, double* %104, i64 %107
%109 = load double, double* %108
%110 = load double, double* %14
%111 = fmul double %109, %110
%112 = load double*, double** %9
%113 = load i32, i32* %11
%114 = add nsw i32 %113, 2
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, double* %112, i64 %115
store double %111, double* %116
%117 = load double*, double** %7
%118 = load i32, i32* %11
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double, double* %117, i64 %119
%121 = load double, double* %120
%122 = load double, double* %12
%123 = fmul double %121, %122
%124 = load double*, double** %9
%125 = load i32, i32* %11
%126 = add nsw i32 %125, 3
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds double, double* %124, i64 %127
store double %123, double* %128
br label %129
129: ; preds = %21
%130 = load i32, i32* %11
%131 = add nsw i32 %130, 4
store i32 %131, i32* %11
br label %17
132: ; preds = %17
store i32 1, i32* %11
br label %133
133: ; preds = %246, %132
%134 = load i32, i32* %11
%135 = load i32, i32* %10
%136 = icmp slt i32 %134, %135
br i1 %136, label %137, label %249
137: ; preds = %133
%138 = load double*, double** %7
%139 = load i32, i32* %11
%140 = add nsw i32 %139, 2
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds double, double* %138, i64 %141
%143 = load double, double* %142
%144 = fdiv double %143, 0x3FFAA4499161CD47
store double %144, double* %15
%145 = load float, float* %6
%146 = fpext float %145 to double
%147 = load double*, double** %7
%148 = load i32, i32* %11
%149 = add nsw i32 %148, 1
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds double, double* %147, i64 %150
%152 = load double, double* %151
%153 = fsub double %146, %152
%154 = load double, double* %15
%155 = fdiv double %153, %154
store double %155, double* %14
%156 = load double, double* %14
%157 = fneg double %156
%158 = load double, double* %14
%159 = fmul double %157, %158
%160 = call double @exp(double %159)
store double %160, double* %13
%161 = load double*, double** %7
%162 = load i32, i32* %11
%163 = add nsw i32 %162, 3
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds double, double* %161, i64 %164
%166 = load double, double* %165
%167 = fsub double 1.000000e+00, %166
%168 = load double*, double** %7
%169 = load i32, i32* %11
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double, double* %168, i64 %170
%172 = load double, double* %171
%173 = fmul double %167, %172
%174 = load double, double* %13
%175 = fmul double %173, %174
%176 = fmul double %175, 2.000000e+00
%177 = load double, double* %14
%178 = fmul double %176, %177
store double %178, double* %12
%179 = load double*, double** %7
%180 = load i32, i32* %11
%181 = add nsw i32 %180, 3
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds double, double* %179, i64 %182
%184 = load double, double* %183
%185 = fsub double 1.000000e+00, %184
%186 = load double*, double** %7
%187 = load i32, i32* %11
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds double, double* %186, i64 %188
%190 = load double, double* %189
%191 = fmul double %185, %190
%192 = load double, double* %13
%193 = load double*, double** %8
%194 = load double, double* %193
%195 = call double @llvm.fmuladd.f64(double %191, double %192, double %194)
store double %195, double* %193
%196 = load double*, double** %7
%197 = load i32, i32* %11
%198 = add nsw i32 %197, 3
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds double, double* %196, i64 %199
%201 = load double, double* %200
%202 = fsub double 1.000000e+00, %201
%203 = load double, double* %13
%204 = load double*, double** %9
%205 = load i32, i32* %11
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds double, double* %204, i64 %206
%208 = load double, double* %207
%209 = call double @llvm.fmuladd.f64(double %202, double %203, double %208)
store double %209, double* %207
%210 = load double, double* %12
%211 = load double, double* %15
%212 = fdiv double %210, %211
%213 = load double*, double** %9
%214 = load i32, i32* %11
%215 = add nsw i32 %214, 1
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds double, double* %213, i64 %216
%218 = load double, double* %217
%219 = fadd double %218, %212
store double %219, double* %217
%220 = load double, double* %12
%221 = load double, double* %14
%222 = fmul double %220, %221
%223 = load double, double* %15
%224 = fdiv double %222, %223
%225 = load double*, double** %9
%226 = load i32, i32* %11
%227 = add nsw i32 %226, 2
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds double, double* %225, i64 %228
%230 = load double, double* %229
%231 = fadd double %230, %224
store double %231, double* %229
%232 = load double*, double** %7
%233 = load i32, i32* %11
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds double, double* %232, i64 %234
%236 = load double, double* %235
%237 = fneg double %236
%238 = load double, double* %13
%239 = load double*, double** %9
%240 = load i32, i32* %11
%241 = add nsw i32 %240, 3
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds double, double* %239, i64 %242
%244 = load double, double* %243
%245 = call double @llvm.fmuladd.f64(double %237, double %238, double %244)
store double %245, double* %243
br label %246
246: ; preds = %137
%247 = load i32, i32* %11
%248 = add nsw i32 %247, 4
store i32 %248, i32* %11
br label %133
249: ; preds = %133
ret void
}

LLVM IR (-O2):
define void @fmixed(float %0, double* nocapture %1, double* nocapture %2, double* nocapture %3, i32 %4) {
store double 0.000000e+00, double* %2
%6 = icmp sgt i32 %4, 1
br i1 %6, label %7, label %107
7: ; preds = %5
%8 = fpext float %0 to double
%9 = zext i32 %4 to i64
br label %14
10: ; preds = %14
br i1 %6, label %11, label %107
11: ; preds = %10
%12 = fpext float %0 to double
%13 = zext i32 %4 to i64
br label %58
14: ; preds = %56, %7
%15 = phi double [ 0.000000e+00, %7 ], [ %57, %56 ]
%16 = phi i64 [ 1, %7 ], [ %54, %56 ]
%17 = add nuw nsw i64 %16, 1
%18 = getelementptr inbounds double, double* %1, i64 %17
%19 = load double, double* %18
%20 = fsub double %8, %19
%21 = add nuw nsw i64 %16, 2
%22 = getelementptr inbounds double, double* %1, i64 %21
%23 = load double, double* %22
%24 = fdiv double %20, %23
%25 = fmul double %24, 4.000000e+00
%26 = fmul double %24, %25
%27 = fadd double %26, 1.000000e+00
%28 = fdiv double 1.000000e+00, %27
%29 = add nuw nsw i64 %16, 3
%30 = getelementptr inbounds double, double* %1, i64 %29
%31 = load double, double* %30
%32 = getelementptr inbounds double, double* %1, i64 %16
%33 = load double, double* %32
%34 = fmul double %31, %33
%35 = tail call double @llvm.fmuladd.f64(double %34, double %28, double %15)
store double %35, double* %2
%36 = load double, double* %30
%37 = fmul double %36, %28
%38 = getelementptr inbounds double, double* %3, i64 %16
store double %37, double* %38
%39 = load double, double* %30
%40 = fmul double %39, 8.000000e+00
%41 = load double, double* %32
%42 = fmul double %40, %41
%43 = fmul double %28, %42
%44 = fmul double %28, %43
%45 = fmul double %24, %44
%46 = load double, double* %22
%47 = fdiv double %45, %46
%48 = getelementptr inbounds double, double* %3, i64 %17
store double %47, double* %48
%49 = fmul double %24, %47
%50 = getelementptr inbounds double, double* %3, i64 %21
store double %49, double* %50
%51 = load double, double* %32
%52 = fmul double %28, %51
%53 = getelementptr inbounds double, double* %3, i64 %29
store double %52, double* %53
%54 = add nuw nsw i64 %16, 4
%55 = icmp ult i64 %54, %9
br i1 %55, label %56, label %10
56: ; preds = %14
%57 = load double, double* %2
br label %14
58: ; preds = %11, %58
%59 = phi i64 [ 1, %11 ], [ %105, %58 ]
%60 = add nuw nsw i64 %59, 2
%61 = getelementptr inbounds double, double* %1, i64 %60
%62 = load double, double* %61
%63 = fdiv double %62, 0x3FFAA4499161CD47
%64 = add nuw nsw i64 %59, 1
%65 = getelementptr inbounds double, double* %1, i64 %64
%66 = load double, double* %65
%67 = fsub double %12, %66
%68 = fdiv double %67, %63
%69 = fneg double %68
%70 = fmul double %68, %69
%71 = tail call double @exp(double %70)
%72 = add nuw nsw i64 %59, 3
%73 = getelementptr inbounds double, double* %1, i64 %72
%74 = load double, double* %73
%75 = fsub double 1.000000e+00, %74
%76 = getelementptr inbounds double, double* %1, i64 %59
%77 = load double, double* %76
%78 = fmul double %75, %77
%79 = fmul double %71, %78
%80 = fmul double %79, 2.000000e+00
%81 = fmul double %68, %80
%82 = load double, double* %2
%83 = tail call double @llvm.fmuladd.f64(double %78, double %71, double %82)
store double %83, double* %2
%84 = load double, double* %73
%85 = fsub double 1.000000e+00, %84
%86 = getelementptr inbounds double, double* %3, i64 %59
%87 = load double, double* %86
%88 = tail call double @llvm.fmuladd.f64(double %85, double %71, double %87)
store double %88, double* %86
%89 = getelementptr inbounds double, double* %3, i64 %64
%90 = fmul double %68, %81
%91 = insertelement <2 x double> poison, double %81, i64 0
%92 = insertelement <2 x double> %91, double %90, i64 1
%93 = insertelement <2 x double> poison, double %63, i64 0
%94 = shufflevector <2 x double> %93, <2 x double> poison, <2 x i32> zeroinitializer
%95 = fdiv <2 x double> %92, %94
%96 = bitcast double* %89 to <2 x double>*
%97 = load <2 x double>, <2 x double>* %96
%98 = fadd <2 x double> %95, %97
%99 = bitcast double* %89 to <2 x double>*
store <2 x double> %98, <2 x double>* %99
%100 = load double, double* %76
%101 = fneg double %100
%102 = getelementptr inbounds double, double* %3, i64 %72
%103 = load double, double* %102
%104 = tail call double @llvm.fmuladd.f64(double %101, double %71, double %103)
store double %104, double* %102
%105 = add nuw nsw i64 %59, 4
%106 = icmp ult i64 %105, %13
br i1 %106, label %58, label %107
107: ; preds = %58, %5, %10
ret void
}