void initialiseStatesAndConstants(double *states, double *variables) {
  variables[0] = 0.75;
  variables[1] = 0.0;
  variables[3] = 2.0 / 3.14159265358979;
  variables[4] = 2.0 * 3.14159265358979;
  variables[5] = 3.14159265358979 / 2.0;
  variables[6] = 3.14159265358979;
  variables[7] = 3.0 * 3.14159265358979 / 2.0;
  states[0] = variables[1];
}


x86 assembly (clang, -O0):
<initialiseStatesAndConstants>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xf10(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0xeec(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0xed3(%rip),%xmm0
movsd  %xmm0,0x20(%rax)
mov    -0x10(%rbp),%rax
movsd  0xeba(%rip),%xmm0
movsd  %xmm0,0x28(%rax)
mov    -0x10(%rbp),%rax
movsd  0xea1(%rip),%xmm0
movsd  %xmm0,0x30(%rax)
mov    -0x10(%rbp),%rax
movsd  0xe88(%rip),%xmm0
movsd  %xmm0,0x38(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialiseStatesAndConstants>:
movsd  0xef8(%rip),%xmm0
movups %xmm0,(%rsi)
movaps 0xefe(%rip),%xmm0
movups %xmm0,0x18(%rsi)
movaps 0xf03(%rip),%xmm0
movups %xmm0,0x28(%rsi)
movabs $0x4012d97c7f3321cd,%rax
d9 12 40
mov    %rax,0x38(%rsi)
movq   $0x0,(%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 7.500000e-01, double* %6
%7 = load double*, double** %4
%8 = getelementptr inbounds double, double* %7, i64 1
store double 0.000000e+00, double* %8
%9 = load double*, double** %4
%10 = getelementptr inbounds double, double* %9, i64 3
store double 0x3FE45F306DC9C889, double* %10
%11 = load double*, double** %4
%12 = getelementptr inbounds double, double* %11, i64 4
store double 0x401921FB54442D11, double* %12
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 5
store double 0x3FF921FB54442D11, double* %14
%15 = load double*, double** %4
%16 = getelementptr inbounds double, double* %15, i64 6
store double 0x400921FB54442D11, double* %16
%17 = load double*, double** %4
%18 = getelementptr inbounds double, double* %17, i64 7
store double 0x4012D97C7F3321CD, double* %18
%19 = load double*, double** %4
%20 = getelementptr inbounds double, double* %19, i64 1
%21 = load double, double* %20
%22 = load double*, double** %3
%23 = getelementptr inbounds double, double* %22, i64 0
store double %21, double* %23
ret void
}

LLVM IR (-O2):
define void @initialiseStatesAndConstants(double* nocapture writeonly %0, double* nocapture %1) {
%3 = bitcast double* %1 to <2 x double>*
store <2 x double> <double 7.500000e-01, double 0.000000e+00>, <2 x double>* %3
%4 = getelementptr inbounds double, double* %1, i64 3
%5 = bitcast double* %4 to <2 x double>*
store <2 x double> <double 0x3FE45F306DC9C889, double 0x401921FB54442D11>, <2 x double>* %5
%6 = getelementptr inbounds double, double* %1, i64 5
%7 = bitcast double* %6 to <2 x double>*
store <2 x double> <double 0x3FF921FB54442D11, double 0x400921FB54442D11>, <2 x double>* %7
%8 = getelementptr inbounds double, double* %1, i64 7
store double 0x4012D97C7F3321CD, double* %8
store double 0.000000e+00, double* %0
ret void
}