void initialiseStatesAndConstants(double *states, double *variables) {
  variables[0] = 0.3;
  variables[1] = 1.0;
  variables[2] = 0.0;
  variables[3] = 36.0;
  variables[4] = 120.0;
  states[0] = 0.05;
  states[1] = 0.6;
  states[2] = 0.325;
  states[3] = 0.0;
}


x86 assembly (clang, -O0):
<initialiseStatesAndConstants>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xf18(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0xf00(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0xedb(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0xec2(%rip),%xmm0
movsd  %xmm0,0x20(%rax)
mov    -0x8(%rbp),%rax
movsd  0xea9(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe91(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe78(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x18(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialiseStatesAndConstants>:
movaps 0xef9(%rip),%xmm0
xorps  %xmm1,%xmm1
movhps 0xf0f(%rip),%xmm1
movups %xmm0,(%rsi)
movups %xmm1,0x10(%rsi)
movabs $0x405e000000000000,%rax
mov    %rax,0x20(%rsi)
movaps 0xee3(%rip),%xmm0
movups %xmm0,(%rdi)
movsd  0xef0(%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 3.000000e-01, double* %6
%7 = load double*, double** %4
%8 = getelementptr inbounds double, double* %7, i64 1
store double 1.000000e+00, double* %8
%9 = load double*, double** %4
%10 = getelementptr inbounds double, double* %9, i64 2
store double 0.000000e+00, double* %10
%11 = load double*, double** %4
%12 = getelementptr inbounds double, double* %11, i64 3
store double 3.600000e+01, double* %12
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 4
store double 1.200000e+02, double* %14
%15 = load double*, double** %3
%16 = getelementptr inbounds double, double* %15, i64 0
store double 5.000000e-02, double* %16
%17 = load double*, double** %3
%18 = getelementptr inbounds double, double* %17, i64 1
store double 6.000000e-01, double* %18
%19 = load double*, double** %3
%20 = getelementptr inbounds double, double* %19, i64 2
store double 3.250000e-01, double* %20
%21 = load double*, double** %3
%22 = getelementptr inbounds double, double* %21, i64 3
store double 0.000000e+00, 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 3.000000e-01, double 1.000000e+00>, <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 0.000000e+00, double 3.600000e+01>, <2 x double>* %5
%6 = getelementptr inbounds double, double* %1, i64 4
store double 1.200000e+02, double* %6
%7 = bitcast double* %0 to <2 x double>*
store <2 x double> <double 5.000000e-02, double 6.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 3.250000e-01, double 0.000000e+00>, <2 x double>* %9
ret void
}