void tableStartATS(double atp_value, double atpS[5][5]) {
  int i, j;
  for (i = 0; i < 5; ++i) {
    for (j = 0; j < 5; ++j) {
      atpS[i][j] = 0.00000000001;
    }
  }
  atpS[0][3] = atpS[3][0] = atp_value;
}


x86 assembly (clang, -O0):
<tableStartATS>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
jge    1170 <tableStartATS+0x70>
movl   $0x0,-0x18(%rbp)
cmpl   $0x5,-0x18(%rbp)
jge    115d <tableStartATS+0x5d>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movsd  0xeb6(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1125 <tableStartATS+0x25>
jmp    1162 <tableStartATS+0x62>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1114 <tableStartATS+0x14>
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x78(%rax)
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x18(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<tableStartATS>:
movaps 0xef9(%rip),%xmm1
movups %xmm1,(%rdi)
movabs $0x3da5fd7fe1796495,%rax
fd a5 3d
mov    %rax,0x10(%rdi)
movups %xmm1,0x20(%rdi)
movups %xmm1,0x30(%rdi)
movups %xmm1,0x40(%rdi)
movups %xmm1,0x50(%rdi)
movups %xmm1,0x60(%rdi)
mov    %rax,0x70(%rdi)
movups %xmm1,0x80(%rdi)
movups %xmm1,0x90(%rdi)
movups %xmm1,0xa0(%rdi)
movups %xmm1,0xb0(%rdi)
mov    %rax,0xc0(%rdi)
movsd  %xmm0,0x78(%rdi)
movsd  %xmm0,0x18(%rdi)
ret

LLVM IR (-O0):
define void @tableStartATS(double %0, [5 x double]* %1) {
%3 = alloca double
%4 = alloca [5 x double]*
%5 = alloca i32
%6 = alloca i32
store double %0, double* %3
store [5 x double]* %1, [5 x double]** %4
store i32 0, i32* %5
br label %7
7: ; preds = %26, %2
%8 = load i32, i32* %5
%9 = icmp slt i32 %8, 5
br i1 %9, label %10, label %29
10: ; preds = %7
store i32 0, i32* %6
br label %11
11: ; preds = %22, %10
%12 = load i32, i32* %6
%13 = icmp slt i32 %12, 5
br i1 %13, label %14, label %25
14: ; preds = %11
%15 = load [5 x double]*, [5 x double]** %4
%16 = load i32, i32* %5
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 %17
%19 = load i32, i32* %6
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [5 x double], [5 x double]* %18, i64 0, i64 %20
store double 0x3DA5FD7FE1796495, double* %21
br label %22
22: ; preds = %14
%23 = load i32, i32* %6
%24 = add nsw i32 %23, 1
store i32 %24, i32* %6
br label %11
25: ; preds = %11
br label %26
26: ; preds = %25
%27 = load i32, i32* %5
%28 = add nsw i32 %27, 1
store i32 %28, i32* %5
br label %7
29: ; preds = %7
%30 = load double, double* %3
%31 = load [5 x double]*, [5 x double]** %4
%32 = getelementptr inbounds [5 x double], [5 x double]* %31, i64 3
%33 = getelementptr inbounds [5 x double], [5 x double]* %32, i64 0, i64 0
store double %30, double* %33
%34 = load [5 x double]*, [5 x double]** %4
%35 = getelementptr inbounds [5 x double], [5 x double]* %34, i64 0
%36 = getelementptr inbounds [5 x double], [5 x double]* %35, i64 0, i64 3
store double %30, double* %36
ret void
}

LLVM IR (-O2):
define void @tableStartATS(double %0, [5 x double]* nocapture writeonly %1) {
%3 = bitcast [5 x double]* %1 to <2 x double>*
store <2 x double> <double 0x3DA5FD7FE1796495, double 0x3DA5FD7FE1796495>, <2 x double>* %3
%4 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 2
store double 0x3DA5FD7FE1796495, double* %4
%5 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 3
%6 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 4
%7 = bitcast double* %6 to <2 x double>*
store <2 x double> <double 0x3DA5FD7FE1796495, double 0x3DA5FD7FE1796495>, <2 x double>* %7
%8 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 1, i64 1
%9 = bitcast double* %8 to <2 x double>*
store <2 x double> <double 0x3DA5FD7FE1796495, double 0x3DA5FD7FE1796495>, <2 x double>* %9
%10 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 1, i64 3
%11 = bitcast double* %10 to <2 x double>*
store <2 x double> <double 0x3DA5FD7FE1796495, double 0x3DA5FD7FE1796495>, <2 x double>* %11
%12 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 2, i64 0
%13 = bitcast double* %12 to <2 x double>*
store <2 x double> <double 0x3DA5FD7FE1796495, double 0x3DA5FD7FE1796495>, <2 x double>* %13
%14 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 2, i64 2
%15 = bitcast double* %14 to <2 x double>*
store <2 x double> <double 0x3DA5FD7FE1796495, double 0x3DA5FD7FE1796495>, <2 x double>* %15
%16 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 2, i64 4
store double 0x3DA5FD7FE1796495, double* %16
%17 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 3, i64 0
%18 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 3, i64 1
%19 = bitcast double* %18 to <2 x double>*
store <2 x double> <double 0x3DA5FD7FE1796495, double 0x3DA5FD7FE1796495>, <2 x double>* %19
%20 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 3, i64 3
%21 = bitcast double* %20 to <2 x double>*
store <2 x double> <double 0x3DA5FD7FE1796495, double 0x3DA5FD7FE1796495>, <2 x double>* %21
%22 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 4, i64 0
%23 = bitcast double* %22 to <2 x double>*
store <2 x double> <double 0x3DA5FD7FE1796495, double 0x3DA5FD7FE1796495>, <2 x double>* %23
%24 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 4, i64 2
%25 = bitcast double* %24 to <2 x double>*
store <2 x double> <double 0x3DA5FD7FE1796495, double 0x3DA5FD7FE1796495>, <2 x double>* %25
%26 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 4, i64 4
store double 0x3DA5FD7FE1796495, double* %26
store double %0, double* %17
store double %0, double* %5
ret void
}