#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 */
int exp(double);
double pow(int, double);
double Schoenfeldt_cold(double I_SD, double alpha_SD, double lambda_SD,
                        double alpha_l, double lambda_l, double Exponent,
                        double I_1, double alpha_1, double I_2, double alpha_2,
                        double lambda) {
  return (I_1 * exp(-alpha_1 * lambda) + I_2 * exp(-alpha_2 * lambda)) * 1 /
             pow(1 + exp(alpha_l * (lambda - lambda_l)), -Exponent) +
         I_SD * (1 / lambda) * 1 / (1 + exp(alpha_SD * (lambda - lambda_SD)));
}


x86 assembly (clang, -O0):
<Schoenfeldt_cold>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movsd  0x20(%rbp),%xmm8
movsd  0x18(%rbp),%xmm8
movsd  0x10(%rbp),%xmm8
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  0x20(%rbp),%xmm0
call   1030 <exp@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0x10(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  0x20(%rbp),%xmm0
call   1030 <exp@plt>
movsd  -0x70(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
cvtsi2sd %eax,%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe0e(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0x20(%rbp),%xmm1
subsd  -0x28(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
mov    %eax,%edi
add    $0x1,%edi
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xda9(%rip),%xmm1
divsd  0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd98(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0x20(%rbp),%xmm1
subsd  -0x18(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
movsd  -0x50(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm0
add    $0x1,%eax
cvtsi2sd %eax,%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Schoenfeldt_cold>:
sub    $0x58,%rsp
movsd  %xmm6,0x28(%rsp)
movaps %xmm5,0x10(%rsp)
movsd  %xmm4,0x30(%rsp)
movsd  %xmm3,0x38(%rsp)
movsd  %xmm2,0x48(%rsp)
movsd  %xmm1,0x50(%rsp)
movsd  %xmm0,0x40(%rsp)
xorpd  0xeab(%rip),%xmm7
mulsd  0x70(%rsp),%xmm7
movapd %xmm7,%xmm0
call   1030 <exp@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd %xmm0,(%rsp)
movsd  0x68(%rsp),%xmm0
xorpd  0xe82(%rip),%xmm0
mulsd  0x70(%rsp),%xmm0
call   1030 <exp@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x60(%rsp),%xmm0
movapd (%rsp),%xmm1
mulsd  0x28(%rsp),%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
movsd  0x70(%rsp),%xmm0
subsd  0x30(%rsp),%xmm0
mulsd  0x38(%rsp),%xmm0
call   1030 <exp@plt>
lea    0x1(%rax),%edi
movaps 0x10(%rsp),%xmm0
xorps  0xe30(%rip),%xmm0
call   1040 <pow@plt>
movaps %xmm0,0x10(%rsp)
movsd  0xe2e(%rip),%xmm0
movsd  0x70(%rsp),%xmm1
divsd  %xmm1,%xmm0
mulsd  0x40(%rsp),%xmm0
movapd (%rsp),%xmm2
unpcklpd %xmm0,%xmm2
movapd %xmm2,(%rsp)
subsd  0x48(%rsp),%xmm1
mulsd  0x50(%rsp),%xmm1
movapd %xmm1,%xmm0
call   1030 <exp@plt>
add    $0x1,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd 0x10(%rsp),%xmm2
unpcklpd %xmm0,%xmm2
movapd (%rsp),%xmm1
divpd  %xmm2,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
add    $0x58,%rsp
ret

LLVM IR (-O0):
define double @Schoenfeldt_cold(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10) {
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
store double %0, double* %12
store double %1, double* %13
store double %2, double* %14
store double %3, double* %15
store double %4, double* %16
store double %5, double* %17
store double %6, double* %18
store double %7, double* %19
store double %8, double* %20
store double %9, double* %21
store double %10, double* %22
%23 = load double, double* %18
%24 = load double, double* %19
%25 = fneg double %24
%26 = load double, double* %22
%27 = fmul double %25, %26
%28 = call i32 @exp(double %27)
%29 = sitofp i32 %28 to double
%30 = load double, double* %20
%31 = load double, double* %21
%32 = fneg double %31
%33 = load double, double* %22
%34 = fmul double %32, %33
%35 = call i32 @exp(double %34)
%36 = sitofp i32 %35 to double
%37 = fmul double %30, %36
%38 = call double @llvm.fmuladd.f64(double %23, double %29, double %37)
%39 = fmul double %38, 1.000000e+00
%40 = load double, double* %15
%41 = load double, double* %22
%42 = load double, double* %16
%43 = fsub double %41, %42
%44 = fmul double %40, %43
%45 = call i32 @exp(double %44)
%46 = add nsw i32 1, %45
%47 = load double, double* %17
%48 = fneg double %47
%49 = call double @pow(i32 %46, double %48)
%50 = fdiv double %39, %49
%51 = load double, double* %12
%52 = load double, double* %22
%53 = fdiv double 1.000000e+00, %52
%54 = fmul double %51, %53
%55 = fmul double %54, 1.000000e+00
%56 = load double, double* %13
%57 = load double, double* %22
%58 = load double, double* %14
%59 = fsub double %57, %58
%60 = fmul double %56, %59
%61 = call i32 @exp(double %60)
%62 = add nsw i32 1, %61
%63 = sitofp i32 %62 to double
%64 = fdiv double %55, %63
%65 = fadd double %50, %64
ret double %65
}

LLVM IR (-O2):
define double @Schoenfeldt_cold(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10) {
%12 = fneg double %7
%13 = fmul double %12, %10
%14 = tail call i32 @exp(double %13)
%15 = sitofp i32 %14 to double
%16 = fneg double %9
%17 = fmul double %16, %10
%18 = tail call i32 @exp(double %17)
%19 = sitofp i32 %18 to double
%20 = fmul double %19, %8
%21 = tail call double @llvm.fmuladd.f64(double %6, double %15, double %20)
%22 = fsub double %10, %4
%23 = fmul double %22, %3
%24 = tail call i32 @exp(double %23)
%25 = add nsw i32 %24, 1
%26 = fneg double %5
%27 = tail call double @pow(i32 %25, double %26)
%28 = fdiv double 1.000000e+00, %10
%29 = fmul double %28, %0
%30 = fsub double %10, %2
%31 = fmul double %30, %1
%32 = tail call i32 @exp(double %31)
%33 = add nsw i32 %32, 1
%34 = sitofp i32 %33 to double
%35 = insertelement <2 x double> poison, double %21, i64 0
%36 = insertelement <2 x double> %35, double %29, i64 1
%37 = insertelement <2 x double> poison, double %27, i64 0
%38 = insertelement <2 x double> %37, double %34, i64 1
%39 = fdiv <2 x double> %36, %38
%40 = shufflevector <2 x double> %39, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%41 = fadd <2 x double> %39, %40
%42 = extractelement <2 x double> %41, i64 0
ret double %42
}