#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 h_inf(double);
double m_inf(double);
double n_inf(double);
double powf(double, int);
int tau_h(double);
int tau_n(double);
double x_inf(double);
void derivs_one(const double *y, double *dydt, const double *p) {
  double V = y[0], h = y[1], n = y[2], x = y[3], Ca = y[4];
  double V_tilde = 127. / 105. * V + 8265. / 105., V_Ca = p[0];
  dydt[0] = -4. * powf(m_inf(V_tilde), 3) * h * (V - 30.) -
            0.004 * x * (V - V_Ca) -
            (0.3 * powf(n, 4) + 0.03 * Ca / (0.5 + Ca)) * (V - -75.) -
            0.003 * (V - -40.);
  dydt[1] = 1. / 12.5 * (h_inf(V_tilde) - h) / tau_h(V_tilde);
  dydt[2] = 1. / 12.5 * (n_inf(V_tilde) - n) / tau_n(V_tilde);
  dydt[3] = (x_inf(V) - x) / 235.;
  dydt[4] = 0.0003 * (0.0085 * x * (V_Ca - V) - Ca);
}


x86 assembly (clang, -O0):
<derivs_one>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xe92(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe8e(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1070 <m_inf@plt>
mov    $0x3,%edi
call   1030 <powf@plt>
movaps %xmm0,%xmm1
movsd  0xe49(%rip),%xmm0
mulsd  %xmm1,%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  0xe2b(%rip),%xmm1
subsd  %xmm1,%xmm2
movsd  0xe17(%rip),%xmm1
mulsd  -0x38(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm3
subsd  -0x50(%rbp),%xmm3
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x30(%rbp),%xmm0
mov    $0x4,%edi
call   1030 <powf@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
movsd  0xdb9(%rip),%xmm2
mulsd  -0x40(%rbp),%xmm2
movsd  0xda4(%rip),%xmm3
addsd  -0x40(%rbp),%xmm3
divsd  %xmm3,%xmm2
movsd  0xd8b(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  0xd6e(%rip),%xmm3
subsd  %xmm3,%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xd36(%rip),%xmm2
subsd  %xmm2,%xmm0
movsd  0xd22(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
call   1090 <h_inf@plt>
movaps %xmm0,%xmm1
subsd  -0x28(%rbp),%xmm1
movsd  0xcf0(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1050 <tau_h@plt>
movsd  -0x60(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x48(%rbp),%xmm0
call   1080 <n_inf@plt>
movaps %xmm0,%xmm1
subsd  -0x30(%rbp),%xmm1
movsd  0xcad(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1060 <tau_n@plt>
movsd  -0x58(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x20(%rbp),%xmm0
call   1040 <x_inf@plt>
subsd  -0x38(%rbp),%xmm0
movsd  0xc65(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x18(%rax)
movsd  0xc48(%rip),%xmm1
mulsd  -0x38(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
subsd  -0x20(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xc05(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x20(%rax)
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<derivs_one>:
push   %rbx
sub    $0x40,%rsp
mov    %rsi,%rbx
movsd  (%rdi),%xmm2
movsd  %xmm2,0x10(%rsp)
movsd  0x8(%rdi),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x10(%rdi),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rdi),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x20(%rdi),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0xe4b(%rip),%xmm1
mulsd  %xmm2,%xmm1
addsd  0xe47(%rip),%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  (%rdx),%xmm0
movsd  %xmm0,0x28(%rsp)
movapd %xmm1,%xmm0
call   1070 <m_inf@plt>
mov    $0x3,%edi
call   1030 <powf@plt>
mulsd  0xe24(%rip),%xmm0
mulsd  (%rsp),%xmm0
movsd  0xe1f(%rip),%xmm1
movsd  0x10(%rsp),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm2,%xmm0
subsd  0x28(%rsp),%xmm0
movsd  0xe07(%rip),%xmm2
mulsd  0x30(%rsp),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x38(%rsp)
movsd  0x8(%rsp),%xmm0
mov    $0x4,%edi
call   1030 <powf@plt>
movsd  0xde3(%rip),%xmm1
movsd  0x20(%rsp),%xmm3
mulsd  %xmm3,%xmm1
movsd  0xdd9(%rip),%xmm2
addsd  %xmm3,%xmm2
mulsd  0xdd5(%rip),%xmm0
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  0xdcd(%rip),%xmm1
movsd  0x10(%rsp),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movsd  0x38(%rsp),%xmm3
subsd  %xmm1,%xmm3
movsd  0xdb5(%rip),%xmm0
addsd  %xmm2,%xmm0
mulsd  0xdb1(%rip),%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm0,(%rbx)
movsd  0x18(%rsp),%xmm0
call   1090 <h_inf@plt>
subsd  (%rsp),%xmm0
mulsd  0xd99(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x18(%rsp),%xmm0
call   1050 <tau_h@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rbx)
movsd  0x18(%rsp),%xmm0
call   1080 <n_inf@plt>
subsd  0x8(%rsp),%xmm0
mulsd  0xd5b(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
call   1060 <tau_n@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rbx)
movsd  0x10(%rsp),%xmm0
call   1040 <x_inf@plt>
movsd  0x30(%rsp),%xmm1
subsd  %xmm1,%xmm0
divsd  0xd1f(%rip),%xmm0
movsd  %xmm0,0x18(%rbx)
mulsd  0xd1a(%rip),%xmm1
movsd  0x28(%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
mulsd  %xmm1,%xmm0
subsd  0x20(%rsp),%xmm0
mulsd  0xd04(%rip),%xmm0
movsd  %xmm0,0x20(%rbx)
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @derivs_one(double* %0, double* %1, double* %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca double*
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
store double* %0, double** %4
store double* %1, double** %5
store double* %2, double** %6
%14 = load double*, double** %4
%15 = getelementptr inbounds double, double* %14, i64 0
%16 = load double, double* %15
store double %16, double* %7
%17 = load double*, double** %4
%18 = getelementptr inbounds double, double* %17, i64 1
%19 = load double, double* %18
store double %19, double* %8
%20 = load double*, double** %4
%21 = getelementptr inbounds double, double* %20, i64 2
%22 = load double, double* %21
store double %22, double* %9
%23 = load double*, double** %4
%24 = getelementptr inbounds double, double* %23, i64 3
%25 = load double, double* %24
store double %25, double* %10
%26 = load double*, double** %4
%27 = getelementptr inbounds double, double* %26, i64 4
%28 = load double, double* %27
store double %28, double* %11
%29 = load double, double* %7
%30 = call double @llvm.fmuladd.f64(double 0x3FF35A35A35A35A3, double %29, double 0x4053ADB6DB6DB6DB)
store double %30, double* %12
%31 = load double*, double** %6
%32 = getelementptr inbounds double, double* %31, i64 0
%33 = load double, double* %32
store double %33, double* %13
%34 = load double, double* %12
%35 = call double @m_inf(double %34)
%36 = call double @powf(double %35, i32 3)
%37 = fmul double -4.000000e+00, %36
%38 = load double, double* %8
%39 = fmul double %37, %38
%40 = load double, double* %7
%41 = fsub double %40, 3.000000e+01
%42 = load double, double* %10
%43 = fmul double 4.000000e-03, %42
%44 = load double, double* %7
%45 = load double, double* %13
%46 = fsub double %44, %45
%47 = fmul double %43, %46
%48 = fneg double %47
%49 = call double @llvm.fmuladd.f64(double %39, double %41, double %48)
%50 = load double, double* %9
%51 = call double @powf(double %50, i32 4)
%52 = load double, double* %11
%53 = fmul double 3.000000e-02, %52
%54 = load double, double* %11
%55 = fadd double 5.000000e-01, %54
%56 = fdiv double %53, %55
%57 = call double @llvm.fmuladd.f64(double 3.000000e-01, double %51, double %56)
%58 = load double, double* %7
%59 = fsub double %58, -7.500000e+01
%60 = fneg double %57
%61 = call double @llvm.fmuladd.f64(double %60, double %59, double %49)
%62 = load double, double* %7
%63 = fsub double %62, -4.000000e+01
%64 = call double @llvm.fmuladd.f64(double -3.000000e-03, double %63, double %61)
%65 = load double*, double** %5
%66 = getelementptr inbounds double, double* %65, i64 0
store double %64, double* %66
%67 = load double, double* %12
%68 = call double @h_inf(double %67)
%69 = load double, double* %8
%70 = fsub double %68, %69
%71 = fmul double 8.000000e-02, %70
%72 = load double, double* %12
%73 = call i32 @tau_h(double %72)
%74 = sitofp i32 %73 to double
%75 = fdiv double %71, %74
%76 = load double*, double** %5
%77 = getelementptr inbounds double, double* %76, i64 1
store double %75, double* %77
%78 = load double, double* %12
%79 = call double @n_inf(double %78)
%80 = load double, double* %9
%81 = fsub double %79, %80
%82 = fmul double 8.000000e-02, %81
%83 = load double, double* %12
%84 = call i32 @tau_n(double %83)
%85 = sitofp i32 %84 to double
%86 = fdiv double %82, %85
%87 = load double*, double** %5
%88 = getelementptr inbounds double, double* %87, i64 2
store double %86, double* %88
%89 = load double, double* %7
%90 = call double @x_inf(double %89)
%91 = load double, double* %10
%92 = fsub double %90, %91
%93 = fdiv double %92, 2.350000e+02
%94 = load double*, double** %5
%95 = getelementptr inbounds double, double* %94, i64 3
store double %93, double* %95
%96 = load double, double* %10
%97 = fmul double 8.500000e-03, %96
%98 = load double, double* %13
%99 = load double, double* %7
%100 = fsub double %98, %99
%101 = load double, double* %11
%102 = fneg double %101
%103 = call double @llvm.fmuladd.f64(double %97, double %100, double %102)
%104 = fmul double 3.000000e-04, %103
%105 = load double*, double** %5
%106 = getelementptr inbounds double, double* %105, i64 4
store double %104, double* %106
ret void
}

LLVM IR (-O2):
define void @derivs_one(double* nocapture %0, double* nocapture writeonly %1, double* nocapture %2) {
%4 = load double, double* %0
%5 = getelementptr inbounds double, double* %0, i64 1
%6 = load double, double* %5
%7 = getelementptr inbounds double, double* %0, i64 2
%8 = load double, double* %7
%9 = getelementptr inbounds double, double* %0, i64 3
%10 = load double, double* %9
%11 = getelementptr inbounds double, double* %0, i64 4
%12 = load double, double* %11
%13 = tail call double @llvm.fmuladd.f64(double %4, double 0x3FF35A35A35A35A3, double 0x4053ADB6DB6DB6DB)
%14 = load double, double* %2
%15 = tail call double @m_inf(double %13)
%16 = tail call double @powf(double %15, i32 3)
%17 = fmul double %16, -4.000000e+00
%18 = fmul double %6, %17
%19 = fadd double %4, -3.000000e+01
%20 = fsub double %4, %14
%21 = fmul double %10, -4.000000e-03
%22 = fmul double %21, %20
%23 = tail call double @llvm.fmuladd.f64(double %18, double %19, double %22)
%24 = tail call double @powf(double %8, i32 4)
%25 = fmul double %12, 3.000000e-02
%26 = fadd double %12, 5.000000e-01
%27 = fdiv double %25, %26
%28 = tail call double @llvm.fmuladd.f64(double %24, double 3.000000e-01, double %27)
%29 = fadd double %4, 7.500000e+01
%30 = fneg double %28
%31 = tail call double @llvm.fmuladd.f64(double %30, double %29, double %23)
%32 = fadd double %4, 4.000000e+01
%33 = tail call double @llvm.fmuladd.f64(double %32, double -3.000000e-03, double %31)
store double %33, double* %1
%34 = tail call double @h_inf(double %13)
%35 = fsub double %34, %6
%36 = fmul double %35, 8.000000e-02
%37 = tail call i32 @tau_h(double %13)
%38 = sitofp i32 %37 to double
%39 = fdiv double %36, %38
%40 = getelementptr inbounds double, double* %1, i64 1
store double %39, double* %40
%41 = tail call double @n_inf(double %13)
%42 = fsub double %41, %8
%43 = fmul double %42, 8.000000e-02
%44 = tail call i32 @tau_n(double %13)
%45 = sitofp i32 %44 to double
%46 = fdiv double %43, %45
%47 = getelementptr inbounds double, double* %1, i64 2
store double %46, double* %47
%48 = tail call double @x_inf(double %4)
%49 = fsub double %48, %10
%50 = fdiv double %49, 2.350000e+02
%51 = getelementptr inbounds double, double* %1, i64 3
store double %50, double* %51
%52 = fmul double %10, 8.500000e-03
%53 = fsub double %14, %4
%54 = fneg double %12
%55 = tail call double @llvm.fmuladd.f64(double %52, double %53, double %54)
%56 = fmul double %55, 3.000000e-04
%57 = getelementptr inbounds double, double* %1, i64 4
store double %56, double* %57
ret void
}