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


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,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0xeff(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0xeda(%rip),%xmm0
movsd  %xmm0,0x20(%rax)
mov    -0x10(%rbp),%rax
movsd  0xec1(%rip),%xmm0
movsd  %xmm0,0x28(%rax)
mov    -0x8(%rbp),%rax
movsd  0xea8(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe90(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe77(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialiseStatesAndConstants>:
movaps 0xef9(%rip),%xmm0
xorps  %xmm1,%xmm1
movhps 0xf0f(%rip),%xmm1
movups %xmm0,0x8(%rsi)
movups %xmm1,0x18(%rsi)
movabs $0x405e000000000000,%rax
mov    %rax,0x28(%rsi)
movaps 0xee2(%rip),%xmm0
movups %xmm0,(%rdi)
movabs $0x3fd4cccccccccccd,%rax
cc d4 3f
mov    %rax,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 1
store double 3.000000e-01, double* %6
%7 = load double*, double** %4
%8 = getelementptr inbounds double, double* %7, i64 2
store double 1.000000e+00, double* %8
%9 = load double*, double** %4
%10 = getelementptr inbounds double, double* %9, i64 3
store double 0.000000e+00, double* %10
%11 = load double*, double** %4
%12 = getelementptr inbounds double, double* %11, i64 4
store double 3.600000e+01, double* %12
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 5
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
ret void
}

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