void initialiseStatesAndConstants(double *states, double *variables) {
  variables[0] = -60.0;
  variables[1] = 0.075;
  variables[2] = 12.0;
  variables[3] = 40.0;
  variables[4] = 400.0;
  states[0] = 0.01;
  states[1] = 0.8;
  states[2] = 0.01;
  states[3] = -87.0;
}


x86 assembly (clang, -O0):
<initialiseStatesAndConstants>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xf20(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0xf08(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0xeef(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0xed6(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0xebd(%rip),%xmm0
movsd  %xmm0,0x20(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe9c(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe94(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe7b(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe62(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialiseStatesAndConstants>:
movaps 0xef9(%rip),%xmm0
movups %xmm0,(%rsi)
movaps 0xeff(%rip),%xmm0
movups %xmm0,0x10(%rsi)
movabs $0x4079000000000000,%rax
mov    %rax,0x20(%rsi)
movaps 0xef6(%rip),%xmm0
movups %xmm0,(%rdi)
movaps 0xefc(%rip),%xmm0
movups %xmm0,0x10(%rdi)
ret

LLVM IR (-O0):
define void @initialiseStatesAndConstants(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %4
%6 = getelementptr inbounds double, double* %5, i64 0
store double -6.000000e+01, double* %6
%7 = load double*, double** %4
%8 = getelementptr inbounds double, double* %7, i64 1
store double 0x3FB3333333333333, double* %8
%9 = load double*, double** %4
%10 = getelementptr inbounds double, double* %9, i64 2
store double 1.200000e+01, double* %10
%11 = load double*, double** %4
%12 = getelementptr inbounds double, double* %11, i64 3
store double 4.000000e+01, double* %12
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 4
store double 4.000000e+02, double* %14
%15 = load double*, double** %3
%16 = getelementptr inbounds double, double* %15, i64 0
store double 1.000000e-02, double* %16
%17 = load double*, double** %3
%18 = getelementptr inbounds double, double* %17, i64 1
store double 8.000000e-01, double* %18
%19 = load double*, double** %3
%20 = getelementptr inbounds double, double* %19, i64 2
store double 1.000000e-02, double* %20
%21 = load double*, double** %3
%22 = getelementptr inbounds double, double* %21, i64 3
store double -8.700000e+01, double* %22
ret void
}

LLVM IR (-O2):
define void @initialiseStatesAndConstants(double* nocapture writeonly %0, double* nocapture writeonly %1) {
%3 = bitcast double* %1 to <2 x double>*
store <2 x double> <double -6.000000e+01, double 0x3FB3333333333333>, <2 x double>* %3
%4 = getelementptr inbounds double, double* %1, i64 2
%5 = bitcast double* %4 to <2 x double>*
store <2 x double> <double 1.200000e+01, double 4.000000e+01>, <2 x double>* %5
%6 = getelementptr inbounds double, double* %1, i64 4
store double 4.000000e+02, double* %6
%7 = bitcast double* %0 to <2 x double>*
store <2 x double> <double 1.000000e-02, double 8.000000e-01>, <2 x double>* %7
%8 = getelementptr inbounds double, double* %0, i64 2
%9 = bitcast double* %8 to <2 x double>*
store <2 x double> <double 1.000000e-02, double -8.700000e+01>, <2 x double>* %9
ret void
}