#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 pow(double, double);
void computeRates(double voi, double *states, double *rates,
                  double *variables) {
  rates[0] = states[1] * 1.0;
  rates[1] =
      (variables[0] * (1.0 - pow(states[0], 2.0)) * states[1] - states[0]) *
      1.0;
}


x86 assembly (clang, -O0):
<computeRates>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xecb(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xea9(%rip),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm2
movsd  -0x28(%rbp),%xmm0
movsd  0xe8c(%rip),%xmm1
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe4c(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<computeRates>:
movsd  0x8(%rdi),%xmm0
movsd  %xmm0,(%rsi)
movsd  (%rdi),%xmm0
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xee3(%rip),%xmm2
subsd  %xmm1,%xmm2
mulsd  (%rdx),%xmm2
mulsd  0x8(%rdi),%xmm2
subsd  %xmm0,%xmm2
movsd  %xmm2,0x8(%rsi)
ret

LLVM IR (-O0):
define void @computeRates(double %0, double* %1, double* %2, double* %3) {
%5 = alloca double
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
store double %0, double* %5
store double* %1, double** %6
store double* %2, double** %7
store double* %3, double** %8
%9 = load double*, double** %6
%10 = getelementptr inbounds double, double* %9, i64 1
%11 = load double, double* %10
%12 = fmul double %11, 1.000000e+00
%13 = load double*, double** %7
%14 = getelementptr inbounds double, double* %13, i64 0
store double %12, double* %14
%15 = load double*, double** %8
%16 = getelementptr inbounds double, double* %15, i64 0
%17 = load double, double* %16
%18 = load double*, double** %6
%19 = getelementptr inbounds double, double* %18, i64 0
%20 = load double, double* %19
%21 = call double @pow(double %20, double 2.000000e+00)
%22 = fsub double 1.000000e+00, %21
%23 = fmul double %17, %22
%24 = load double*, double** %6
%25 = getelementptr inbounds double, double* %24, i64 1
%26 = load double, double* %25
%27 = load double*, double** %6
%28 = getelementptr inbounds double, double* %27, i64 0
%29 = load double, double* %28
%30 = fneg double %29
%31 = call double @llvm.fmuladd.f64(double %23, double %26, double %30)
%32 = fmul double %31, 1.000000e+00
%33 = load double*, double** %7
%34 = getelementptr inbounds double, double* %33, i64 1
store double %32, double* %34
ret void
}

LLVM IR (-O2):
define void @computeRates(double %0, double* nocapture %1, double* nocapture writeonly %2, double* nocapture %3) {
%5 = getelementptr inbounds double, double* %1, i64 1
%6 = load double, double* %5
store double %6, double* %2
%7 = load double, double* %3
%8 = load double, double* %1
%9 = fmul double %8, %8
%10 = fsub double 1.000000e+00, %9
%11 = fmul double %7, %10
%12 = load double, double* %5
%13 = fneg double %8
%14 = tail call double @llvm.fmuladd.f64(double %11, double %12, double %13)
%15 = getelementptr inbounds double, double* %2, i64 1
store double %14, double* %15
ret void
}