void __c99_sd_t_s1_1(const int h3u, const int h2u, const int h1u, const int p6u,
                     const int p5u, const int p4u,
                     double t3[p4u][p5u][p6u][h1u][h2u][h3u],
                     const double t1[h1u][p4u],
                     const double v2[p5u][p6u][h2u][h3u]) {

  for (int p4 = 0; p4 < p4u; p4++)
    for (int p5 = 0; p5 < p5u; p5++)
      for (int p6 = 0; p6 < p6u; p6++)
        for (int h1 = 0; h1 < h1u; h1++)
          for (int h2 = 0; h2 < h2u; h2++)

#pragma GCC ivdep

            for (int h3 = 0; h3 < h3u; h3++)
              t3[p4][p5][p6][h1][h2][h3] += t1[h1][p4] * v2[p5][p6][h2][h3];
  return;
}


x86 assembly (clang, -O0):
<__c99_sd_t_s1_1>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x14(%rbp)
mov    %esi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
mov    -0x24(%rbp),%eax
mov    %rax,-0x88(%rbp)
mov    -0x20(%rbp),%eax
mov    %rax,-0x80(%rbp)
mov    -0x1c(%rbp),%eax
mov    %rax,-0x78(%rbp)
mov    -0x18(%rbp),%eax
mov    %rax,-0x70(%rbp)
mov    -0x14(%rbp),%eax
mov    %rax,-0x68(%rbp)
mov    -0x28(%rbp),%eax
mov    %rax,-0x60(%rbp)
mov    -0x20(%rbp),%eax
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%eax
mov    %rax,-0x50(%rbp)
mov    -0x14(%rbp),%eax
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    135e <__c99_sd_t_s1_1+0x25e>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    134b <__c99_sd_t_s1_1+0x24b>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1338 <__c99_sd_t_s1_1+0x238>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1325 <__c99_sd_t_s1_1+0x225>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1312 <__c99_sd_t_s1_1+0x212>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12ff <__c99_sd_t_s1_1+0x1ff>
mov    -0x68(%rbp),%rdx
mov    -0x70(%rbp),%rsi
mov    -0x78(%rbp),%rdi
mov    -0x80(%rbp),%r8
mov    -0x88(%rbp),%r9
mov    -0x48(%rbp),%r10
mov    -0x50(%rbp),%r11
mov    -0x58(%rbp),%rbx
mov    -0x60(%rbp),%r14
mov    0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
imul   %r14,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
imul   %r11,%rbx
imul   %r10,%rbx
imul   %rbx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
imul   %r10,%r11
imul   %r11,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x3c(%rbp),%rcx
imul   %r10,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
imul   %r8,%r9
imul   %rdi,%r9
imul   %rsi,%r9
imul   %rdx,%r9
imul   %r9,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
imul   %rdi,%r8
imul   %rsi,%r8
imul   %rdx,%r8
imul   %r8,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
imul   %rsi,%rdi
imul   %rdx,%rdi
imul   %rdi,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x38(%rbp),%rcx
imul   %rdx,%rsi
imul   %rsi,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x3c(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    11cf <__c99_sd_t_s1_1+0xcf>
jmp    1304 <__c99_sd_t_s1_1+0x204>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11bc <__c99_sd_t_s1_1+0xbc>
jmp    1317 <__c99_sd_t_s1_1+0x217>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11a9 <__c99_sd_t_s1_1+0xa9>
jmp    132a <__c99_sd_t_s1_1+0x22a>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1196 <__c99_sd_t_s1_1+0x96>
jmp    133d <__c99_sd_t_s1_1+0x23d>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1183 <__c99_sd_t_s1_1+0x83>
jmp    1350 <__c99_sd_t_s1_1+0x250>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1170 <__c99_sd_t_s1_1+0x70>
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<__c99_sd_t_s1_1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x180,%rsp
mov    %r8d,-0x7c(%rsp)
mov    %ecx,-0x78(%rsp)
mov    %edx,-0x74(%rsp)
mov    %esi,-0x70(%rsp)
mov    %edi,-0x6c(%rsp)
test   %r9d,%r9d
jle    1861 <__c99_sd_t_s1_1+0x761>
mov    %r9d,%ebp
mov    -0x78(%rsp),%eax
mov    -0x74(%rsp),%ecx
mov    -0x70(%rsp),%edi
mov    -0x6c(%rsp),%ebx
mov    %ebx,%r13d
mov    -0x7c(%rsp),%edx
mov    %rdi,%r9
imul   %r13,%r9
mov    %r9,%rsi
imul   %rax,%rsi
mov    %rsi,0x80(%rsp)
mov    %r9,%rsi
imul   %rcx,%rsi
mov    %rsi,0xc0(%rsp)
imul   %rax,%rsi
mov    %rsi,0x78(%rsp)
imul   %rdx,%rsi
mov    %rsi,0x58(%rsp)
mov    %rdx,0xb0(%rsp)
imul   %rax,%rdx
imul   %rcx,%rdx
imul   %rdi,%rdx
imul   %r13,%rdx
mov    %rax,%rsi
imul   %rcx,%rsi
imul   %rdi,%rsi
imul   %r13,%rsi
mov    %rcx,0x120(%rsp)
imul   %rdi,%rcx
imul   %r13,%rcx
mov    %rax,0x100(%rsp)
imul   %rdi,%rax
imul   %r13,%rax
cmp    $0x4,%ebx
setae  %r8b
cmp    $0x1,%ebp
sete   %bl
and    %r8b,%bl
mov    %bl,-0x7d(%rsp)
mov    %ebp,%ebx
mov    %rbx,-0x10(%rsp)
mov    %r13d,%ebx
and    $0xfffffffc,%ebx
mov    %rbx,0x130(%rsp)
mov    %r13,%rbx
neg    %rbx
mov    %rbx,0x178(%rsp)
lea    0x0(,%r13,8),%rbx
mov    %rbx,%rbp
and    $0xffffffffffffffe0,%rbp
mov    %rbp,0x128(%rsp)
mov    0x1c8(%rsp),%r8
mov    0x1b8(%rsp),%r10
lea    0x10(%r8),%rbp
mov    %rbp,0x48(%rsp)
mov    %rax,0x68(%rsp)
lea    0x0(,%rax,8),%rax
mov    %rax,0xa8(%rsp)
mov    %r9,0x8(%rsp)
lea    0x0(,%r9,8),%rax
mov    %rax,0x20(%rsp)
lea    0x10(%r10),%rax
mov    %rax,-0x48(%rsp)
mov    %rdx,0x50(%rsp)
lea    0x0(,%rdx,8),%rax
mov    %rax,0x60(%rsp)
mov    %rsi,0x70(%rsp)
lea    0x0(,%rsi,8),%rax
mov    %rax,0xa0(%rsp)
mov    %rcx,0xb8(%rsp)
lea    0x0(,%rcx,8),%rax
mov    %rax,0xf8(%rsp)
lea    0x8(%r10),%rax
mov    %rax,-0x50(%rsp)
xor    %ecx,%ecx
mov    %rdi,0x40(%rsp)
mov    %rbx,0x38(%rsp)
jmp    12e1 <__c99_sd_t_s1_1+0x1e1>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x60(%rsp),%rax
add    %rax,-0x48(%rsp)
add    %rax,-0x50(%rsp)
mov    (%rsp),%rax
mov    %rax,%rcx
cmp    -0x10(%rsp),%rax
je     1861 <__c99_sd_t_s1_1+0x761>
mov    %rcx,-0x8(%rsp)
lea    0x1(%rcx),%rax
mov    %rax,(%rsp)
cmpl   $0x0,-0x7c(%rsp)
jle    12c0 <__c99_sd_t_s1_1+0x1c0>
mov    0x50(%rsp),%rax
mov    -0x8(%rsp),%rdx
imul   %rdx,%rax
mov    %rax,0x98(%rsp)
add    %r13,%rax
mov    %rax,0x90(%rsp)
mov    0x58(%rsp),%rax
imul   %rdx,%rax
mov    0x1b8(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
mov    %rax,0x88(%rsp)
mov    0x1c0(%rsp),%rax
lea    (%rax,%rdx,8),%r10
mov    0x1c8(%rsp),%rax
mov    %rax,-0x28(%rsp)
mov    -0x50(%rsp),%rax
mov    %rax,-0x30(%rsp)
mov    -0x48(%rsp),%rax
mov    %rax,-0x38(%rsp)
mov    0x48(%rsp),%rax
mov    %rax,-0x40(%rsp)
xor    %eax,%eax
mov    %rax,-0x68(%rsp)
jmp    13c3 <__c99_sd_t_s1_1+0x2c3>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    -0x68(%rsp),%rdx
add    $0x1,%rdx
mov    0xa8(%rsp),%rax
add    %rax,-0x40(%rsp)
mov    0xa0(%rsp),%rcx
add    %rcx,-0x38(%rsp)
add    %rcx,-0x30(%rsp)
add    %rax,-0x28(%rsp)
mov    %rdx,%rax
mov    %rdx,-0x68(%rsp)
cmp    0xb0(%rsp),%rdx
je     12c0 <__c99_sd_t_s1_1+0x1c0>
cmpl   $0x0,-0x78(%rsp)
jle    1380 <__c99_sd_t_s1_1+0x280>
mov    0x70(%rsp),%rcx
mov    -0x68(%rsp),%rdx
imul   %rdx,%rcx
mov    0x98(%rsp),%rax
add    %rcx,%rax
mov    %rax,0xe8(%rsp)
add    0x90(%rsp),%rcx
mov    %rcx,0xf0(%rsp)
mov    0x68(%rsp),%rax
imul   %rdx,%rax
mov    %rax,0xe0(%rsp)
add    %r13,%rax
mov    %rax,0xd8(%rsp)
mov    0x80(%rsp),%rax
imul   %rdx,%rax
mov    0x1c8(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
mov    %rax,0xd0(%rsp)
mov    0x78(%rsp),%rax
imul   %rdx,%rax
mov    0x88(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
mov    %rax,0xc8(%rsp)
mov    -0x28(%rsp),%rax
mov    %rax,0x18(%rsp)
mov    -0x30(%rsp),%rax
mov    %rax,-0x18(%rsp)
mov    -0x38(%rsp),%rax
mov    %rax,-0x20(%rsp)
mov    -0x40(%rsp),%rax
mov    %rax,0x10(%rsp)
xor    %eax,%eax
mov    %rax,-0x60(%rsp)
jmp    14d0 <__c99_sd_t_s1_1+0x3d0>
cs nopw 0x0(%rax,%rax,1)
nop
mov    -0x60(%rsp),%rdx
add    $0x1,%rdx
mov    0x20(%rsp),%rax
add    %rax,0x10(%rsp)
mov    0xf8(%rsp),%rcx
add    %rcx,-0x20(%rsp)
add    %rcx,-0x18(%rsp)
add    %rax,0x18(%rsp)
mov    %rdx,%rax
mov    %rdx,-0x60(%rsp)
cmp    0x100(%rsp),%rdx
je     1380 <__c99_sd_t_s1_1+0x280>
cmpl   $0x0,-0x74(%rsp)
jle    1490 <__c99_sd_t_s1_1+0x390>
mov    0xb8(%rsp),%rcx
mov    -0x60(%rsp),%rdx
imul   %rdx,%rcx
mov    0xe8(%rsp),%rax
add    %rcx,%rax
mov    %rax,0x110(%rsp)
add    0xf0(%rsp),%rcx
mov    %rcx,0x118(%rsp)
mov    0x8(%rsp),%rax
imul   %rdx,%rax
mov    0xe0(%rsp),%rcx
add    %rax,%rcx
mov    %rcx,0x150(%rsp)
mov    0xd8(%rsp),%rcx
add    %rax,%rcx
mov    %rcx,0x148(%rsp)
mov    0xd0(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
mov    %rax,0x138(%rsp)
mov    0xc0(%rsp),%rax
imul   %rdx,%rax
mov    0xc8(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
mov    %rax,0x108(%rsp)
mov    -0x18(%rsp),%rax
mov    %rax,0x30(%rsp)
mov    -0x20(%rsp),%rax
mov    %rax,0x28(%rsp)
xor    %eax,%eax
mov    %rax,-0x58(%rsp)
jmp    15be <__c99_sd_t_s1_1+0x4be>
nopl   0x0(%rax,%rax,1)
mov    -0x58(%rsp),%rcx
add    $0x1,%rcx
mov    0x20(%rsp),%rax
add    %rax,0x28(%rsp)
add    %rax,0x30(%rsp)
mov    %rcx,%rax
mov    %rcx,-0x58(%rsp)
cmp    0x120(%rsp),%rcx
je     1490 <__c99_sd_t_s1_1+0x390>
cmpl   $0x0,-0x70(%rsp)
jle    1590 <__c99_sd_t_s1_1+0x490>
mov    0x8(%rsp),%rax
mov    -0x58(%rsp),%rbp
imul   %rbp,%rax
mov    0x110(%rsp),%rcx
add    %rax,%rcx
mov    %rcx,0x170(%rsp)
mov    0x118(%rsp),%rcx
lea    (%rcx,%rax,1),%rcx
mov    %rcx,0x168(%rsp)
mov    -0x8(%rsp),%rcx
add    %rbp,%rcx
mov    (%rsp),%rdx
add    %rbp,%rdx
mov    0x1c0(%rsp),%rsi
lea    (%rsi,%rcx,8),%rcx
mov    %rcx,0x160(%rsp)
lea    (%rsi,%rdx,8),%rcx
mov    %rcx,0x158(%rsp)
mov    %rbp,%rdx
imul   -0x10(%rsp),%rdx
mov    0x108(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
mov    %rax,0x140(%rsp)
mov    0x18(%rsp),%r8
mov    0x30(%rsp),%r15
mov    0x28(%rsp),%rbp
mov    0x10(%rsp),%r12
xor    %esi,%esi
jmp    1679 <__c99_sd_t_s1_1+0x579>
xchg   %ax,%ax
add    $0x1,%rsi
add    %rbx,%r12
add    %rbx,%rbp
add    %rbx,%r15
add    %rbx,%r8
cmp    %rdi,%rsi
je     1590 <__c99_sd_t_s1_1+0x490>
cmpl   $0x0,-0x6c(%rsp)
jle    1660 <__c99_sd_t_s1_1+0x560>
mov    %rsi,%r9
imul   %r13,%r9
cmpb   $0x0,-0x7d(%rsp)
je     17a0 <__c99_sd_t_s1_1+0x6a0>
mov    0x170(%rsp),%rax
add    %r9,%rax
mov    0x168(%rsp),%rcx
lea    (%rcx,%r9,1),%rcx
mov    0x150(%rsp),%rdi
add    %r9,%rdi
mov    0x148(%rsp),%rbx
lea    (%rbx,%r9,1),%r11
mov    0x1b8(%rsp),%rbx
lea    (%rbx,%rax,8),%rax
lea    (%rbx,%rcx,8),%rcx
mov    0x1c8(%rsp),%rbx
lea    (%rbx,%rdi,8),%r14
lea    (%rbx,%r11,8),%rdi
cmp    0x158(%rsp),%rax
setb   %r11b
cmp    %rcx,0x160(%rsp)
setb   %bl
cmp    %rdi,%rax
setb   %al
cmp    %rcx,%r14
setb   %cl
test   %bl,%r11b
jne    17a5 <__c99_sd_t_s1_1+0x6a5>
mov    $0x0,%r14d
and    %cl,%al
mov    0x40(%rsp),%rdi
mov    0x38(%rsp),%rbx
jne    17c0 <__c99_sd_t_s1_1+0x6c0>
movsd  (%r10,%rdx,8),%xmm0
unpcklpd %xmm0,%xmm0
xor    %eax,%eax
mov    0x128(%rsp),%rcx
nopl   0x0(%rax,%rax,1)
movupd -0x10(%r12,%rax,1),%xmm1
movupd (%r12,%rax,1),%xmm2
movupd -0x10(%rbp,%rax,1),%xmm3
movupd 0x0(%rbp,%rax,1),%xmm4
mulpd  %xmm0,%xmm1
addpd  %xmm3,%xmm1
mulpd  %xmm0,%xmm2
addpd  %xmm4,%xmm2
movupd %xmm1,-0x10(%rbp,%rax,1)
movupd %xmm2,0x0(%rbp,%rax,1)
add    $0x20,%rax
cmp    %rax,%rcx
jne    1740 <__c99_sd_t_s1_1+0x640>
mov    0x130(%rsp),%rax
mov    %rax,%r14
cmp    %r13,%rax
je     1660 <__c99_sd_t_s1_1+0x560>
jmp    17c0 <__c99_sd_t_s1_1+0x6c0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %r14d,%r14d
jmp    17c0 <__c99_sd_t_s1_1+0x6c0>
xor    %r14d,%r14d
mov    0x40(%rsp),%rdi
mov    0x38(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%r11
test   $0x1,%r13b
je     1800 <__c99_sd_t_s1_1+0x700>
mov    0x138(%rsp),%rax
lea    (%rax,%r9,8),%rax
mov    0x140(%rsp),%rcx
lea    (%rcx,%r9,8),%rcx
movsd  (%r10,%rdx,8),%xmm0
mulsd  (%rax,%r14,8),%xmm0
addsd  (%rcx,%r14,8),%xmm0
movsd  %xmm0,(%rcx,%r14,8)
mov    %r14,%r11
or     $0x1,%r11
not    %r14
cmp    0x178(%rsp),%r14
je     1660 <__c99_sd_t_s1_1+0x560>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%r10,%rdx,8),%xmm0
mulsd  (%r8,%r11,8),%xmm0
addsd  -0x8(%r15,%r11,8),%xmm0
movsd  %xmm0,-0x8(%r15,%r11,8)
movsd  (%r10,%rdx,8),%xmm0
mulsd  0x8(%r8,%r11,8),%xmm0
addsd  (%r15,%r11,8),%xmm0
movsd  %xmm0,(%r15,%r11,8)
add    $0x2,%r11
cmp    %r11,%r13
jne    1820 <__c99_sd_t_s1_1+0x720>
jmp    1660 <__c99_sd_t_s1_1+0x560>
add    $0x180,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @__c99_sd_t_s1_1(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, double* %6, double* %7, double* %8) {
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
store i32 %0, i32* %10
store i32 %1, i32* %11
store i32 %2, i32* %12
store i32 %3, i32* %13
store i32 %4, i32* %14
store i32 %5, i32* %15
store double* %6, double** %16
store double* %7, double** %17
store double* %8, double** %18
%25 = load i32, i32* %15
%26 = zext i32 %25 to i64
%27 = load i32, i32* %14
%28 = zext i32 %27 to i64
%29 = load i32, i32* %13
%30 = zext i32 %29 to i64
%31 = load i32, i32* %12
%32 = zext i32 %31 to i64
%33 = load i32, i32* %11
%34 = zext i32 %33 to i64
%35 = load i32, i32* %10
%36 = zext i32 %35 to i64
%37 = load i32, i32* %12
%38 = zext i32 %37 to i64
%39 = load i32, i32* %15
%40 = zext i32 %39 to i64
%41 = load i32, i32* %14
%42 = zext i32 %41 to i64
%43 = load i32, i32* %13
%44 = zext i32 %43 to i64
%45 = load i32, i32* %11
%46 = zext i32 %45 to i64
%47 = load i32, i32* %10
%48 = zext i32 %47 to i64
store i32 0, i32* %19
br label %49
49: ; preds = %164, %9
%50 = load i32, i32* %19
%51 = load i32, i32* %15
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %167
53: ; preds = %49
store i32 0, i32* %20
br label %54
54: ; preds = %160, %53
%55 = load i32, i32* %20
%56 = load i32, i32* %14
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %163
58: ; preds = %54
store i32 0, i32* %21
br label %59
59: ; preds = %156, %58
%60 = load i32, i32* %21
%61 = load i32, i32* %13
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %159
63: ; preds = %59
store i32 0, i32* %22
br label %64
64: ; preds = %152, %63
%65 = load i32, i32* %22
%66 = load i32, i32* %12
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %155
68: ; preds = %64
store i32 0, i32* %23
br label %69
69: ; preds = %148, %68
%70 = load i32, i32* %23
%71 = load i32, i32* %11
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %151
73: ; preds = %69
store i32 0, i32* %24
br label %74
74: ; preds = %144, %73
%75 = load i32, i32* %24
%76 = load i32, i32* %10
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %147
78: ; preds = %74
%79 = load double*, double** %17
%80 = load i32, i32* %22
%81 = sext i32 %80 to i64
%82 = mul nsw i64 %81, %40
%83 = getelementptr inbounds double, double* %79, i64 %82
%84 = load i32, i32* %19
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, double* %83, i64 %85
%87 = load double, double* %86
%88 = load double*, double** %18
%89 = load i32, i32* %20
%90 = sext i32 %89 to i64
%91 = mul nuw i64 %44, %46
%92 = mul nuw i64 %91, %48
%93 = mul nsw i64 %90, %92
%94 = getelementptr inbounds double, double* %88, i64 %93
%95 = load i32, i32* %21
%96 = sext i32 %95 to i64
%97 = mul nuw i64 %46, %48
%98 = mul nsw i64 %96, %97
%99 = getelementptr inbounds double, double* %94, i64 %98
%100 = load i32, i32* %23
%101 = sext i32 %100 to i64
%102 = mul nsw i64 %101, %48
%103 = getelementptr inbounds double, double* %99, i64 %102
%104 = load i32, i32* %24
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, double* %103, i64 %105
%107 = load double, double* %106
%108 = load double*, double** %16
%109 = load i32, i32* %19
%110 = sext i32 %109 to i64
%111 = mul nuw i64 %28, %30
%112 = mul nuw i64 %111, %32
%113 = mul nuw i64 %112, %34
%114 = mul nuw i64 %113, %36
%115 = mul nsw i64 %110, %114
%116 = getelementptr inbounds double, double* %108, i64 %115
%117 = load i32, i32* %20
%118 = sext i32 %117 to i64
%119 = mul nuw i64 %30, %32
%120 = mul nuw i64 %119, %34
%121 = mul nuw i64 %120, %36
%122 = mul nsw i64 %118, %121
%123 = getelementptr inbounds double, double* %116, i64 %122
%124 = load i32, i32* %21
%125 = sext i32 %124 to i64
%126 = mul nuw i64 %32, %34
%127 = mul nuw i64 %126, %36
%128 = mul nsw i64 %125, %127
%129 = getelementptr inbounds double, double* %123, i64 %128
%130 = load i32, i32* %22
%131 = sext i32 %130 to i64
%132 = mul nuw i64 %34, %36
%133 = mul nsw i64 %131, %132
%134 = getelementptr inbounds double, double* %129, i64 %133
%135 = load i32, i32* %23
%136 = sext i32 %135 to i64
%137 = mul nsw i64 %136, %36
%138 = getelementptr inbounds double, double* %134, i64 %137
%139 = load i32, i32* %24
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds double, double* %138, i64 %140
%142 = load double, double* %141
%143 = call double @llvm.fmuladd.f64(double %87, double %107, double %142)
store double %143, double* %141
br label %144
144: ; preds = %78
%145 = load i32, i32* %24
%146 = add nsw i32 %145, 1
store i32 %146, i32* %24
br label %74
147: ; preds = %74
br label %148
148: ; preds = %147
%149 = load i32, i32* %23
%150 = add nsw i32 %149, 1
store i32 %150, i32* %23
br label %69
151: ; preds = %69
br label %152
152: ; preds = %151
%153 = load i32, i32* %22
%154 = add nsw i32 %153, 1
store i32 %154, i32* %22
br label %64
155: ; preds = %64
br label %156
156: ; preds = %155
%157 = load i32, i32* %21
%158 = add nsw i32 %157, 1
store i32 %158, i32* %21
br label %59
159: ; preds = %59
br label %160
160: ; preds = %159
%161 = load i32, i32* %20
%162 = add nsw i32 %161, 1
store i32 %162, i32* %20
br label %54
163: ; preds = %54
br label %164
164: ; preds = %163
%165 = load i32, i32* %19
%166 = add nsw i32 %165, 1
store i32 %166, i32* %19
br label %49
167: ; preds = %49
ret void
}

LLVM IR (-O2):
define void @__c99_sd_t_s1_1(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, double* nocapture %6, double* nocapture %7, double* nocapture %8) {
%10 = zext i32 %3 to i64
%11 = zext i32 %2 to i64
%12 = zext i32 %1 to i64
%13 = zext i32 %0 to i64
%14 = zext i32 %5 to i64
%15 = icmp sgt i32 %5, 0
br i1 %15, label %16, label %58
16: ; preds = %9
%17 = zext i32 %4 to i64
%18 = icmp sgt i32 %4, 0
%19 = icmp sgt i32 %3, 0
%20 = icmp sgt i32 %2, 0
%21 = icmp sgt i32 %1, 0
%22 = icmp sgt i32 %0, 0
%23 = mul nuw i64 %12, %13
%24 = mul i64 %23, %10
%25 = mul i64 %23, %11
%26 = mul i64 %25, %10
%27 = mul i64 %26, %17
%28 = mul nuw i64 %17, %10
%29 = mul i64 %28, %11
%30 = mul i64 %29, %12
%31 = mul i64 %30, %13
%32 = mul nuw i64 %10, %11
%33 = mul i64 %32, %12
%34 = mul i64 %33, %13
%35 = mul nuw i64 %11, %12
%36 = mul i64 %35, %13
%37 = mul nuw i64 %12, %13
%38 = mul nuw i64 %10, %12
%39 = mul i64 %38, %13
%40 = mul nuw i64 %12, %13
%41 = icmp ugt i32 %0, 3
%42 = icmp eq i32 %5, 1
%43 = and i1 %41, %42
%44 = and i64 %13, 4294967292
%45 = icmp eq i64 %44, %13
%46 = and i64 %13, 1
%47 = icmp eq i64 %46, 0
%48 = sub nsw i64 0, %13
br label %49
49: ; preds = %16, %71
%50 = phi i64 [ 0, %16 ], [ %72, %71 ]
%51 = mul i64 %31, %50
%52 = add i64 %51, %13
%53 = add nuw i64 %50, 1
br i1 %18, label %54, label %71
54: ; preds = %49
%55 = mul i64 %27, %50
%56 = getelementptr inbounds double, double* %6, i64 %55
%57 = getelementptr inbounds double, double* %7, i64 %50
br label %59
58: ; preds = %71, %9
ret void
59: ; preds = %54, %87
%60 = phi i64 [ 0, %54 ], [ %88, %87 ]
%61 = mul i64 %34, %60
%62 = add i64 %51, %61
%63 = add i64 %52, %61
%64 = mul i64 %39, %60
%65 = add i64 %64, %13
br i1 %19, label %66, label %87
66: ; preds = %59
%67 = mul i64 %24, %60
%68 = getelementptr inbounds double, double* %8, i64 %67
%69 = mul i64 %26, %60
%70 = getelementptr inbounds double, double* %56, i64 %69
br label %74
71: ; preds = %87, %49
%72 = add nuw nsw i64 %50, 1
%73 = icmp eq i64 %72, %14
br i1 %73, label %58, label %49
74: ; preds = %66, %104
%75 = phi i64 [ 0, %66 ], [ %105, %104 ]
%76 = mul i64 %36, %75
%77 = add i64 %62, %76
%78 = add i64 %63, %76
%79 = mul i64 %40, %75
%80 = add i64 %64, %79
%81 = add i64 %65, %79
br i1 %20, label %82, label %104
82: ; preds = %74
%83 = mul nsw i64 %23, %75
%84 = getelementptr inbounds double, double* %68, i64 %83
%85 = mul i64 %25, %75
%86 = getelementptr inbounds double, double* %70, i64 %85
br label %90
87: ; preds = %104, %59
%88 = add nuw nsw i64 %60, 1
%89 = icmp eq i64 %88, %17
br i1 %89, label %71, label %59
90: ; preds = %82, %171
%91 = phi i64 [ 0, %82 ], [ %172, %171 ]
%92 = mul i64 %37, %91
%93 = add i64 %77, %92
%94 = add i64 %78, %92
%95 = add nuw i64 %50, %91
%96 = getelementptr double, double* %7, i64 %95
%97 = add i64 %53, %91
%98 = getelementptr double, double* %7, i64 %97
br i1 %21, label %99, label %171
99: ; preds = %90
%100 = mul nuw nsw i64 %91, %14
%101 = getelementptr inbounds double, double* %57, i64 %100
%102 = mul nsw i64 %23, %91
%103 = getelementptr inbounds double, double* %86, i64 %102
br label %107
104: ; preds = %171, %74
%105 = add nuw nsw i64 %75, 1
%106 = icmp eq i64 %105, %10
br i1 %106, label %87, label %74
107: ; preds = %99, %174
%108 = phi i64 [ 0, %99 ], [ %175, %174 ]
%109 = mul i64 %108, %13
%110 = add i64 %93, %109
%111 = getelementptr double, double* %6, i64 %110
%112 = add i64 %94, %109
%113 = getelementptr double, double* %6, i64 %112
%114 = add i64 %80, %109
%115 = getelementptr double, double* %8, i64 %114
%116 = add i64 %81, %109
%117 = getelementptr double, double* %8, i64 %116
br i1 %22, label %118, label %174
118: ; preds = %107
%119 = mul nuw nsw i64 %108, %13
%120 = getelementptr inbounds double, double* %84, i64 %119
%121 = getelementptr inbounds double, double* %103, i64 %119
br i1 %43, label %122, label %157
122: ; preds = %118
%123 = icmp ult double* %111, %98
%124 = icmp ult double* %96, %113
%125 = and i1 %123, %124
%126 = icmp ult double* %111, %117
%127 = icmp ult double* %115, %113
%128 = and i1 %126, %127
%129 = or i1 %125, %128
br i1 %129, label %157, label %130
130: ; preds = %122
%131 = load double, double* %101
%132 = insertelement <2 x double> poison, double %131, i64 0
%133 = shufflevector <2 x double> %132, <2 x double> poison, <2 x i32> zeroinitializer
%134 = insertelement <2 x double> poison, double %131, i64 0
%135 = shufflevector <2 x double> %134, <2 x double> poison, <2 x i32> zeroinitializer
br label %136
136: ; preds = %136, %130
%137 = phi i64 [ 0, %130 ], [ %154, %136 ]
%138 = getelementptr inbounds double, double* %120, i64 %137
%139 = bitcast double* %138 to <2 x double>*
%140 = load <2 x double>, <2 x double>* %139
%141 = getelementptr inbounds double, double* %138, i64 2
%142 = bitcast double* %141 to <2 x double>*
%143 = load <2 x double>, <2 x double>* %142
%144 = getelementptr inbounds double, double* %121, i64 %137
%145 = bitcast double* %144 to <2 x double>*
%146 = load <2 x double>, <2 x double>* %145
%147 = getelementptr inbounds double, double* %144, i64 2
%148 = bitcast double* %147 to <2 x double>*
%149 = load <2 x double>, <2 x double>* %148
%150 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %133, <2 x double> %140, <2 x double> %146)
%151 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %135, <2 x double> %143, <2 x double> %149)
%152 = bitcast double* %144 to <2 x double>*
store <2 x double> %150, <2 x double>* %152
%153 = bitcast double* %147 to <2 x double>*
store <2 x double> %151, <2 x double>* %153
%154 = add nuw i64 %137, 4
%155 = icmp eq i64 %154, %44
br i1 %155, label %156, label %136
156: ; preds = %136
br i1 %45, label %174, label %157
157: ; preds = %122, %118, %156
%158 = phi i64 [ 0, %122 ], [ 0, %118 ], [ %44, %156 ]
%159 = xor i64 %158, -1
br i1 %47, label %168, label %160
160: ; preds = %157
%161 = load double, double* %101
%162 = getelementptr inbounds double, double* %120, i64 %158
%163 = load double, double* %162
%164 = getelementptr inbounds double, double* %121, i64 %158
%165 = load double, double* %164
%166 = tail call double @llvm.fmuladd.f64(double %161, double %163, double %165)
store double %166, double* %164
%167 = or i64 %158, 1
br label %168
168: ; preds = %160, %157
%169 = phi i64 [ %158, %157 ], [ %167, %160 ]
%170 = icmp eq i64 %159, %48
br i1 %170, label %174, label %177
171: ; preds = %174, %90
%172 = add nuw nsw i64 %91, 1
%173 = icmp eq i64 %172, %11
br i1 %173, label %104, label %90
174: ; preds = %168, %177, %156, %107
%175 = add nuw nsw i64 %108, 1
%176 = icmp eq i64 %175, %12
br i1 %176, label %171, label %107
177: ; preds = %168, %177
%178 = phi i64 [ %192, %177 ], [ %169, %168 ]
%179 = load double, double* %101
%180 = getelementptr inbounds double, double* %120, i64 %178
%181 = load double, double* %180
%182 = getelementptr inbounds double, double* %121, i64 %178
%183 = load double, double* %182
%184 = tail call double @llvm.fmuladd.f64(double %179, double %181, double %183)
store double %184, double* %182
%185 = add nuw nsw i64 %178, 1
%186 = load double, double* %101
%187 = getelementptr inbounds double, double* %120, i64 %185
%188 = load double, double* %187
%189 = getelementptr inbounds double, double* %121, i64 %185
%190 = load double, double* %189
%191 = tail call double @llvm.fmuladd.f64(double %186, double %188, double %190)
store double %191, double* %189
%192 = add nuw nsw i64 %178, 2
%193 = icmp eq i64 %192, %13
br i1 %193, label %174, label %177
}