void c_lcreator(double *ao_list, int *lxlylz, double *coeff_list,
                double *at_pos, double *x, double *y, double *z, int npts,
                int ao_num, int pnum, int drv, int is_normalized) {
  double *norm;
  double X, Y, Z;
  int *lx, *ly, *lz;
  double rr, *ao_l0;
  double sum;
  int i, il, ii;
  norm = (double *)malloc(ao_num * pnum * sizeof(double));
  lx = (int *)malloc(ao_num * sizeof(int));
  ly = (int *)malloc(ao_num * sizeof(int));
  lz = (int *)malloc(ao_num * sizeof(int));
  ao_l0 = (double *)malloc(pnum * sizeof(double));
  for (il = 0; il < ao_num; il++) {
    lx[il] = lxlylz[3 * il];
    ly[il] = lxlylz[3 * il + 1];
    lz[il] = lxlylz[3 * il + 2];
    for (ii = 0; ii < pnum; ii++) {
      norm[il * pnum + ii] =
          ao_norm(lx[il], ly[il], lz[il], coeff_list[2 * ii], is_normalized);
    }
  }
  for (i = 0; i < npts; i++) {
    X = x[i] - at_pos[0];
    Y = y[i] - at_pos[1];
    Z = z[i] - at_pos[2];
    rr = X * X + Y * Y + Z * Z;
    for (ii = 0; ii < pnum; ii++) {
      ao_l0[ii] = coeff_list[2 * ii + 1] * exp(-coeff_list[2 * ii] * rr);
    }
    for (il = 0; il < ao_num; il++) {
      sum = 0.;
      if (drv == 0) {
        for (ii = 0; ii < pnum; ii++) {
          sum += norm[il * pnum + ii] * ao_l0[ii];
        }
        sum *= xyz(X, Y, Z, lx[il], ly[il], lz[il]);
      } else {
        for (ii = 0; ii < pnum; ii++) {
          sum += norm[il * pnum + ii] * ao_l0[ii] *
                 get_ao_xyz(X, Y, Z, lx[il], ly[il], lz[il], coeff_list[2 * ii],
                            drv);
        }
      }
      ao_list[il * npts + i] = sum;
    }
  }
  free(norm);
  free(lx);
  free(ly);
  free(lz);
  free(ao_l0);
}


x86 assembly (clang, -O0):
<c_lcreator>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    0x20(%rbp),%eax
imul   0x28(%rbp),%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq 0x20(%rbp),%rdi
shl    $0x2,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x58(%rbp)
movslq 0x20(%rbp),%rdi
shl    $0x2,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x60(%rbp)
movslq 0x20(%rbp),%rdi
shl    $0x2,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x68(%rbp)
movslq 0x28(%rbp),%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x78(%rbp)
movl   $0x0,-0x88(%rbp)
mov    -0x88(%rbp),%eax
cmp    0x20(%rbp),%eax
jge    131c <c_lcreator+0x1bc>
mov    -0x10(%rbp),%rax
imul   $0x3,-0x88(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x58(%rbp),%rax
movslq -0x88(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x10(%rbp),%rax
imul   $0x3,-0x88(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x60(%rbp),%rax
movslq -0x88(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x10(%rbp),%rax
imul   $0x3,-0x88(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x68(%rbp),%rax
movslq -0x88(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    0x28(%rbp),%eax
jge    1303 <c_lcreator+0x1a3>
mov    -0x58(%rbp),%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x60(%rbp),%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    -0x68(%rbp),%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x18(%rbp),%rax
mov    -0x8c(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x38(%rbp),%ecx
mov    $0x1,%al
call   1070 <ao_norm@plt>
cvtsi2sd %eax,%xmm0
mov    -0x38(%rbp),%rax
mov    -0x88(%rbp),%ecx
imul   0x28(%rbp),%ecx
add    -0x8c(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1277 <c_lcreator+0x117>
jmp    1308 <c_lcreator+0x1a8>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    11fb <c_lcreator+0x9b>
movl   $0x0,-0x84(%rbp)
mov    -0x84(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    1676 <c_lcreator+0x516>
mov    -0x28(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
subsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    0x10(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    0x28(%rbp),%eax
jge    1463 <c_lcreator+0x303>
mov    -0x18(%rbp),%rax
mov    -0x8c(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x18(%rbp),%rax
mov    -0x8c(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x70(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x98(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
mov    -0x78(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    13cb <c_lcreator+0x26b>
movl   $0x0,-0x88(%rbp)
mov    -0x88(%rbp),%eax
cmp    0x20(%rbp),%eax
jge    165d <c_lcreator+0x4fd>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
cmpl   $0x0,0x30(%rbp)
jne    154c <c_lcreator+0x3ec>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    0x28(%rbp),%eax
jge    14f9 <c_lcreator+0x399>
mov    -0x38(%rbp),%rax
mov    -0x88(%rbp),%ecx
imul   0x28(%rbp),%ecx
add    -0x8c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x78(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1498 <c_lcreator+0x338>
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
mov    -0x58(%rbp),%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x60(%rbp),%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    -0x68(%rbp),%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    $0x3,%al
call   1080 <xyz@plt>
cvtsi2sd %eax,%xmm0
mulsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    1628 <c_lcreator+0x4c8>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    0x28(%rbp),%eax
jge    1623 <c_lcreator+0x4c3>
mov    -0x38(%rbp),%rax
mov    -0x88(%rbp),%ecx
imul   0x28(%rbp),%ecx
add    -0x8c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x78(%rbp),%rax
movslq -0x8c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
mov    -0x58(%rbp),%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x60(%rbp),%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    -0x68(%rbp),%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x18(%rbp),%rax
mov    -0x8c(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm3
mov    0x30(%rbp),%ecx
mov    $0x4,%al
call   1060 <get_ao_xyz@plt>
movsd  -0xa0(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1556 <c_lcreator+0x3f6>
jmp    1628 <c_lcreator+0x4c8>
movsd  -0x80(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x88(%rbp),%ecx
imul   0x18(%rbp),%ecx
add    -0x84(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    146d <c_lcreator+0x30d>
jmp    1662 <c_lcreator+0x502>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1326 <c_lcreator+0x1c6>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
mov    -0x78(%rbp),%rdi
call   1030 <free@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<c_lcreator>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
mov    %r9,0xb8(%rsp)
mov    %r8,0xb0(%rsp)
mov    %rcx,0xa8(%rsp)
mov    %rdx,0x60(%rsp)
mov    %rsi,0x30(%rsp)
mov    %rdi,0xd0(%rsp)
movslq 0x130(%rsp),%rbp
mov    0x148(%rsp),%eax
mov    %eax,0x20(%rsp)
mov    0x140(%rsp),%eax
mov    %eax,0x14(%rsp)
mov    0x138(%rsp),%r14d
mov    0x128(%rsp),%eax
mov    %eax,0x18(%rsp)
mov    0x120(%rsp),%rax
mov    %rax,0x98(%rsp)
mov    %r14d,%eax
imul   %ebp,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,0x68(%rsp)
lea    0x0(,%rbp,4),%rbx
mov    %rbx,%rdi
call   1040 <malloc@plt>
mov    %rax,0x58(%rsp)
mov    %rbx,%rdi
call   1040 <malloc@plt>
mov    %rax,0x50(%rsp)
mov    %rbx,%rdi
call   1040 <malloc@plt>
mov    %rax,0x48(%rsp)
movslq %r14d,%rdi
shl    $0x3,%rdi
mov    %rdi,0x90(%rsp)
call   1040 <malloc@plt>
mov    %rax,0x28(%rsp)
mov    %ebp,%eax
mov    %rax,0x88(%rsp)
mov    %r14d,0x10(%rsp)
mov    %r14d,%eax
mov    %rax,0x38(%rsp)
mov    %rbp,0xa0(%rsp)
test   %rbp,%rbp
jle    1340 <c_lcreator+0x1e0>
mov    0x38(%rsp),%rax
lea    0x0(,%rax,8),%rdx
xor    %ebx,%ebx
mov    0x68(%rsp),%rbp
mov    %rdx,0x8(%rsp)
mov    0x20(%rsp),%r15d
jmp    12af <c_lcreator+0x14f>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x40(%rsp),%rbx
add    $0x1,%rbx
add    0x90(%rsp),%rbp
cmp    0x88(%rsp),%rbx
je     1340 <c_lcreator+0x1e0>
lea    (%rbx,%rbx,2),%r8
mov    0x30(%rsp),%rax
mov    (%rax,%r8,4),%edi
mov    0x58(%rsp),%rcx
mov    %edi,(%rcx,%rbx,4)
mov    0x4(%rax,%r8,4),%r14d
mov    0x50(%rsp),%rcx
mov    %r14d,(%rcx,%rbx,4)
mov    0x8(%rax,%r8,4),%r12d
mov    0x48(%rsp),%rax
mov    %rbx,0x40(%rsp)
mov    %r12d,(%rax,%rbx,4)
cmpl   $0x0,0x10(%rsp)
mov    0x60(%rsp),%rax
jle    1290 <c_lcreator+0x130>
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%rax,%r13,2),%xmm0
mov    %r14d,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
mov    $0x1,%al
mov    %edi,%ebx
call   1070 <ao_norm@plt>
mov    %ebx,%edi
mov    0x8(%rsp),%rdx
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0x60(%rsp),%rax
movsd  %xmm0,0x0(%rbp,%r13,1)
add    $0x8,%r13
cmp    %r13,%rdx
jne    1300 <c_lcreator+0x1a0>
jmp    1290 <c_lcreator+0x130>
mov    0x18(%rsp),%eax
test   %eax,%eax
mov    0x28(%rsp),%r14
mov    0x38(%rsp),%r15
jle    1708 <c_lcreator+0x5a8>
mov    %eax,%eax
mov    %rax,0x80(%rsp)
lea    -0x1(%r15),%rax
mov    %rax,0xc8(%rsp)
mov    %r15d,%eax
and    $0x3,%eax
mov    %rax,0x78(%rsp)
mov    %r15d,%eax
and    $0xfffffffc,%eax
mov    %rax,0xc0(%rsp)
shl    $0x3,%r15
xor    %r13d,%r13d
movapd 0xc6c(%rip),%xmm2
mov    %r15,0x38(%rsp)
jmp    13b7 <c_lcreator+0x257>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r13
cmp    0x80(%rsp),%r13
mov    0x28(%rsp),%r14
je     1708 <c_lcreator+0x5a8>
mov    0xb0(%rsp),%rax
movsd  (%rax,%r13,8),%xmm0
mov    0xa8(%rsp),%rcx
subsd  (%rcx),%xmm0
movsd  %xmm0,0x20(%rsp)
mov    0xb8(%rsp),%rax
movsd  (%rax,%r13,8),%xmm0
subsd  0x8(%rcx),%xmm0
movsd  %xmm0,0x18(%rsp)
mov    0x98(%rsp),%rax
movsd  (%rax,%r13,8),%xmm0
subsd  0x10(%rcx),%xmm0
movsd  %xmm0,0x30(%rsp)
cmpl   $0x0,0x10(%rsp)
mov    0x60(%rsp),%r12
jle    148f <c_lcreator+0x32f>
movsd  0x18(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movsd  0x20(%rsp),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0x30(%rsp),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x40(%rsp)
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x8(%r12,%rbx,2),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  (%r12,%rbx,2),%xmm0
xorpd  %xmm2,%xmm0
mulsd  0x40(%rsp),%xmm0
call   1050 <exp@plt>
movapd 0xb86(%rip),%xmm2
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%r14,%rbx,1)
add    $0x8,%rbx
cmp    %rbx,%r15
jne    1450 <c_lcreator+0x2f0>
cmpl   $0x0,0xa0(%rsp)
mov    0x14(%rsp),%ebx
jle    13a0 <c_lcreator+0x240>
mov    0x68(%rsp),%rdi
xor    %ebp,%ebp
mov    %r13,0xd8(%rsp)
jmp    1517 <c_lcreator+0x3b7>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xorpd  %xmm0,%xmm0
mov    0xe0(%rsp),%rbp
mov    %rbp,%rax
imul   0x80(%rsp),%rax
mov    0xd8(%rsp),%r13
add    %r13,%rax
mov    0xd0(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%rbp
add    0x90(%rsp),%rdi
cmp    0x88(%rsp),%rbp
mov    0x38(%rsp),%r15
movapd 0xaef(%rip),%xmm2
je     13a0 <c_lcreator+0x240>
test   %ebx,%ebx
mov    %rbp,0xe0(%rsp)
je     15e0 <c_lcreator+0x480>
cmpl   $0x0,0x10(%rsp)
jle    14c0 <c_lcreator+0x360>
mov    0x58(%rsp),%rax
mov    (%rax,%rbp,4),%eax
mov    %eax,0x74(%rsp)
mov    0x50(%rsp),%rax
mov    (%rax,%rbp,4),%eax
mov    %eax,0x70(%rsp)
mov    0x48(%rsp),%rax
mov    (%rax,%rbp,4),%ebp
xorpd  %xmm0,%xmm0
xor    %r15d,%r15d
mov    0x60(%rsp),%r14
mov    0x28(%rsp),%r12
nop
movsd  %xmm0,0x8(%rsp)
movsd  (%rdi,%r15,1),%xmm0
mulsd  (%r12,%r15,1),%xmm0
movsd  %xmm0,0x40(%rsp)
movsd  (%r14,%r15,2),%xmm3
movsd  0x20(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
mov    %rdi,%r13
mov    0x74(%rsp),%edi
mov    0x70(%rsp),%esi
mov    %ebp,%edx
mov    %ebx,%ecx
mov    $0x4,%al
call   1060 <get_ao_xyz@plt>
mov    %r13,%rdi
mov    0x14(%rsp),%ebx
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x40(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
add    $0x8,%r15
cmp    %r15,0x38(%rsp)
jne    1560 <c_lcreator+0x400>
jmp    14c4 <c_lcreator+0x364>
cmpl   $0x0,0x10(%rsp)
movsd  0x30(%rsp),%xmm2
jle    160a <c_lcreator+0x4aa>
cmpq   $0x3,0xc8(%rsp)
jae    161f <c_lcreator+0x4bf>
xorpd  %xmm4,%xmm4
xor    %eax,%eax
mov    0x28(%rsp),%rcx
mov    0x78(%rsp),%rsi
jmp    1687 <c_lcreator+0x527>
xorpd  %xmm4,%xmm4
movsd  0x20(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
jmp    16c7 <c_lcreator+0x567>
xorpd  %xmm4,%xmm4
xor    %eax,%eax
mov    0x28(%rsp),%rcx
mov    0x78(%rsp),%rsi
mov    0xc0(%rsp),%rdx
nopw   0x0(%rax,%rax,1)
movsd  (%rdi,%rax,8),%xmm0
movsd  0x8(%rdi,%rax,8),%xmm1
mulsd  (%rcx,%rax,8),%xmm0
mulsd  0x8(%rcx,%rax,8),%xmm1
addsd  %xmm4,%xmm0
movsd  0x10(%rdi,%rax,8),%xmm3
mulsd  0x10(%rcx,%rax,8),%xmm3
addsd  %xmm0,%xmm1
movsd  0x18(%rdi,%rax,8),%xmm4
mulsd  0x18(%rcx,%rax,8),%xmm4
addsd  %xmm1,%xmm3
addsd  %xmm3,%xmm4
add    $0x4,%rax
cmp    %rax,%rdx
jne    1640 <c_lcreator+0x4e0>
test   %rsi,%rsi
movsd  0x20(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
je     16c7 <c_lcreator+0x567>
lea    (%rcx,%rax,8),%rcx
lea    (%rdi,%rax,8),%rax
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rax,%rdx,8),%xmm3
mulsd  (%rcx,%rdx,8),%xmm3
addsd  %xmm3,%xmm4
add    $0x1,%rdx
cmp    %rdx,%rsi
jne    16b0 <c_lcreator+0x550>
movsd  %xmm4,0x8(%rsp)
mov    0x58(%rsp),%rax
mov    %rdi,%rbx
mov    (%rax,%rbp,4),%edi
mov    0x50(%rsp),%rax
mov    (%rax,%rbp,4),%esi
mov    0x48(%rsp),%rax
mov    (%rax,%rbp,4),%edx
mov    $0x3,%al
call   1080 <xyz@plt>
mov    %rbx,%rdi
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x8(%rsp),%xmm0
mov    0x14(%rsp),%ebx
jmp    14c4 <c_lcreator+0x364>
mov    0x68(%rsp),%rdi
call   1030 <free@plt>
mov    0x58(%rsp),%rdi
call   1030 <free@plt>
mov    0x50(%rsp),%rdi
call   1030 <free@plt>
mov    0x48(%rsp),%rdi
call   1030 <free@plt>
mov    %r14,%rdi
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @c_lcreator(double* %0, i32* %1, double* %2, double* %3, double* %4, double* %5, double* %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11) {
%13 = alloca double*
%14 = alloca i32*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
%19 = alloca double*
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca double*
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca i32*
%30 = alloca i32*
%31 = alloca i32*
%32 = alloca double
%33 = alloca double*
%34 = alloca double
%35 = alloca i32
%36 = alloca i32
%37 = alloca i32
store double* %0, double** %13
store i32* %1, i32** %14
store double* %2, double** %15
store double* %3, double** %16
store double* %4, double** %17
store double* %5, double** %18
store double* %6, double** %19
store i32 %7, i32* %20
store i32 %8, i32* %21
store i32 %9, i32* %22
store i32 %10, i32* %23
store i32 %11, i32* %24
%38 = load i32, i32* %21
%39 = load i32, i32* %22
%40 = mul nsw i32 %38, %39
%41 = sext i32 %40 to i64
%42 = mul i64 %41, 8
%43 = call i8* @malloc(i64 %42)
%44 = bitcast i8* %43 to double*
store double* %44, double** %25
%45 = load i32, i32* %21
%46 = sext i32 %45 to i64
%47 = mul i64 %46, 4
%48 = call i8* @malloc(i64 %47)
%49 = bitcast i8* %48 to i32*
store i32* %49, i32** %29
%50 = load i32, i32* %21
%51 = sext i32 %50 to i64
%52 = mul i64 %51, 4
%53 = call i8* @malloc(i64 %52)
%54 = bitcast i8* %53 to i32*
store i32* %54, i32** %30
%55 = load i32, i32* %21
%56 = sext i32 %55 to i64
%57 = mul i64 %56, 4
%58 = call i8* @malloc(i64 %57)
%59 = bitcast i8* %58 to i32*
store i32* %59, i32** %31
%60 = load i32, i32* %22
%61 = sext i32 %60 to i64
%62 = mul i64 %61, 8
%63 = call i8* @malloc(i64 %62)
%64 = bitcast i8* %63 to double*
store double* %64, double** %33
store i32 0, i32* %36
br label %65
65: ; preds = %143, %12
%66 = load i32, i32* %36
%67 = load i32, i32* %21
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %146
69: ; preds = %65
%70 = load i32*, i32** %14
%71 = load i32, i32* %36
%72 = mul nsw i32 3, %71
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, i32* %70, i64 %73
%75 = load i32, i32* %74
%76 = load i32*, i32** %29
%77 = load i32, i32* %36
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, i32* %76, i64 %78
store i32 %75, i32* %79
%80 = load i32*, i32** %14
%81 = load i32, i32* %36
%82 = mul nsw i32 3, %81
%83 = add nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, i32* %80, i64 %84
%86 = load i32, i32* %85
%87 = load i32*, i32** %30
%88 = load i32, i32* %36
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, i32* %87, i64 %89
store i32 %86, i32* %90
%91 = load i32*, i32** %14
%92 = load i32, i32* %36
%93 = mul nsw i32 3, %92
%94 = add nsw i32 %93, 2
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, i32* %91, i64 %95
%97 = load i32, i32* %96
%98 = load i32*, i32** %31
%99 = load i32, i32* %36
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, i32* %98, i64 %100
store i32 %97, i32* %101
store i32 0, i32* %37
br label %102
102: ; preds = %139, %69
%103 = load i32, i32* %37
%104 = load i32, i32* %22
%105 = icmp slt i32 %103, %104
br i1 %105, label %106, label %142
106: ; preds = %102
%107 = load i32*, i32** %29
%108 = load i32, i32* %36
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, i32* %107, i64 %109
%111 = load i32, i32* %110
%112 = load i32*, i32** %30
%113 = load i32, i32* %36
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i32, i32* %112, i64 %114
%116 = load i32, i32* %115
%117 = load i32*, i32** %31
%118 = load i32, i32* %36
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32, i32* %117, i64 %119
%121 = load i32, i32* %120
%122 = load double*, double** %15
%123 = load i32, i32* %37
%124 = mul nsw i32 2, %123
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, double* %122, i64 %125
%127 = load double, double* %126
%128 = load i32, i32* %24
%129 = call i32 (i32, i32, i32, double, i32, ...) bitcast (i32 (...)* @ao_norm to i32 (i32, i32, i32, double, i32, ...)*)(i32 %111, i32 %116, i32 %121, double %127, i32 %128)
%130 = sitofp i32 %129 to double
%131 = load double*, double** %25
%132 = load i32, i32* %36
%133 = load i32, i32* %22
%134 = mul nsw i32 %132, %133
%135 = load i32, i32* %37
%136 = add nsw i32 %134, %135
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, double* %131, i64 %137
store double %130, double* %138
br label %139
139: ; preds = %106
%140 = load i32, i32* %37
%141 = add nsw i32 %140, 1
store i32 %141, i32* %37
br label %102
142: ; preds = %102
br label %143
143: ; preds = %142
%144 = load i32, i32* %36
%145 = add nsw i32 %144, 1
store i32 %145, i32* %36
br label %65
146: ; preds = %65
store i32 0, i32* %35
br label %147
147: ; preds = %342, %146
%148 = load i32, i32* %35
%149 = load i32, i32* %20
%150 = icmp slt i32 %148, %149
br i1 %150, label %151, label %345
151: ; preds = %147
%152 = load double*, double** %17
%153 = load i32, i32* %35
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double, double* %152, i64 %154
%156 = load double, double* %155
%157 = load double*, double** %16
%158 = getelementptr inbounds double, double* %157, i64 0
%159 = load double, double* %158
%160 = fsub double %156, %159
store double %160, double* %26
%161 = load double*, double** %18
%162 = load i32, i32* %35
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds double, double* %161, i64 %163
%165 = load double, double* %164
%166 = load double*, double** %16
%167 = getelementptr inbounds double, double* %166, i64 1
%168 = load double, double* %167
%169 = fsub double %165, %168
store double %169, double* %27
%170 = load double*, double** %19
%171 = load i32, i32* %35
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds double, double* %170, i64 %172
%174 = load double, double* %173
%175 = load double*, double** %16
%176 = getelementptr inbounds double, double* %175, i64 2
%177 = load double, double* %176
%178 = fsub double %174, %177
store double %178, double* %28
%179 = load double, double* %26
%180 = load double, double* %26
%181 = load double, double* %27
%182 = load double, double* %27
%183 = fmul double %181, %182
%184 = call double @llvm.fmuladd.f64(double %179, double %180, double %183)
%185 = load double, double* %28
%186 = load double, double* %28
%187 = call double @llvm.fmuladd.f64(double %185, double %186, double %184)
store double %187, double* %32
store i32 0, i32* %37
br label %188
188: ; preds = %215, %151
%189 = load i32, i32* %37
%190 = load i32, i32* %22
%191 = icmp slt i32 %189, %190
br i1 %191, label %192, label %218
192: ; preds = %188
%193 = load double*, double** %15
%194 = load i32, i32* %37
%195 = mul nsw i32 2, %194
%196 = add nsw i32 %195, 1
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds double, double* %193, i64 %197
%199 = load double, double* %198
%200 = load double*, double** %15
%201 = load i32, i32* %37
%202 = mul nsw i32 2, %201
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds double, double* %200, i64 %203
%205 = load double, double* %204
%206 = fneg double %205
%207 = load double, double* %32
%208 = fmul double %206, %207
%209 = call double @exp(double %208)
%210 = fmul double %199, %209
%211 = load double*, double** %33
%212 = load i32, i32* %37
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds double, double* %211, i64 %213
store double %210, double* %214
br label %215
215: ; preds = %192
%216 = load i32, i32* %37
%217 = add nsw i32 %216, 1
store i32 %217, i32* %37
br label %188
218: ; preds = %188
store i32 0, i32* %36
br label %219
219: ; preds = %338, %218
%220 = load i32, i32* %36
%221 = load i32, i32* %21
%222 = icmp slt i32 %220, %221
br i1 %222, label %223, label %341
223: ; preds = %219
store double 0.000000e+00, double* %34
%224 = load i32, i32* %23
%225 = icmp eq i32 %224, 0
br i1 %225, label %226, label %274
226: ; preds = %223
store i32 0, i32* %37
br label %227
227: ; preds = %248, %226
%228 = load i32, i32* %37
%229 = load i32, i32* %22
%230 = icmp slt i32 %228, %229
br i1 %230, label %231, label %251
231: ; preds = %227
%232 = load double*, double** %25
%233 = load i32, i32* %36
%234 = load i32, i32* %22
%235 = mul nsw i32 %233, %234
%236 = load i32, i32* %37
%237 = add nsw i32 %235, %236
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds double, double* %232, i64 %238
%240 = load double, double* %239
%241 = load double*, double** %33
%242 = load i32, i32* %37
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds double, double* %241, i64 %243
%245 = load double, double* %244
%246 = load double, double* %34
%247 = call double @llvm.fmuladd.f64(double %240, double %245, double %246)
store double %247, double* %34
br label %248
248: ; preds = %231
%249 = load i32, i32* %37
%250 = add nsw i32 %249, 1
store i32 %250, i32* %37
br label %227
251: ; preds = %227
%252 = load double, double* %26
%253 = load double, double* %27
%254 = load double, double* %28
%255 = load i32*, i32** %29
%256 = load i32, i32* %36
%257 = sext i32 %256 to i64
%258 = getelementptr inbounds i32, i32* %255, i64 %257
%259 = load i32, i32* %258
%260 = load i32*, i32** %30
%261 = load i32, i32* %36
%262 = sext i32 %261 to i64
%263 = getelementptr inbounds i32, i32* %260, i64 %262
%264 = load i32, i32* %263
%265 = load i32*, i32** %31
%266 = load i32, i32* %36
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds i32, i32* %265, i64 %267
%269 = load i32, i32* %268
%270 = call i32 (double, double, double, i32, i32, i32, ...) bitcast (i32 (...)* @xyz to i32 (double, double, double, i32, i32, i32, ...)*)(double %252, double %253, double %254, i32 %259, i32 %264, i32 %269)
%271 = sitofp i32 %270 to double
%272 = load double, double* %34
%273 = fmul double %272, %271
store double %273, double* %34
br label %328
274: ; preds = %223
store i32 0, i32* %37
br label %275
275: ; preds = %324, %274
%276 = load i32, i32* %37
%277 = load i32, i32* %22
%278 = icmp slt i32 %276, %277
br i1 %278, label %279, label %327
279: ; preds = %275
%280 = load double*, double** %25
%281 = load i32, i32* %36
%282 = load i32, i32* %22
%283 = mul nsw i32 %281, %282
%284 = load i32, i32* %37
%285 = add nsw i32 %283, %284
%286 = sext i32 %285 to i64
%287 = getelementptr inbounds double, double* %280, i64 %286
%288 = load double, double* %287
%289 = load double*, double** %33
%290 = load i32, i32* %37
%291 = sext i32 %290 to i64
%292 = getelementptr inbounds double, double* %289, i64 %291
%293 = load double, double* %292
%294 = fmul double %288, %293
%295 = load double, double* %26
%296 = load double, double* %27
%297 = load double, double* %28
%298 = load i32*, i32** %29
%299 = load i32, i32* %36
%300 = sext i32 %299 to i64
%301 = getelementptr inbounds i32, i32* %298, i64 %300
%302 = load i32, i32* %301
%303 = load i32*, i32** %30
%304 = load i32, i32* %36
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds i32, i32* %303, i64 %305
%307 = load i32, i32* %306
%308 = load i32*, i32** %31
%309 = load i32, i32* %36
%310 = sext i32 %309 to i64
%311 = getelementptr inbounds i32, i32* %308, i64 %310
%312 = load i32, i32* %311
%313 = load double*, double** %15
%314 = load i32, i32* %37
%315 = mul nsw i32 2, %314
%316 = sext i32 %315 to i64
%317 = getelementptr inbounds double, double* %313, i64 %316
%318 = load double, double* %317
%319 = load i32, i32* %23
%320 = call i32 (double, double, double, i32, i32, i32, double, i32, ...) bitcast (i32 (...)* @get_ao_xyz to i32 (double, double, double, i32, i32, i32, double, i32, ...)*)(double %295, double %296, double %297, i32 %302, i32 %307, i32 %312, double %318, i32 %319)
%321 = sitofp i32 %320 to double
%322 = load double, double* %34
%323 = call double @llvm.fmuladd.f64(double %294, double %321, double %322)
store double %323, double* %34
br label %324
324: ; preds = %279
%325 = load i32, i32* %37
%326 = add nsw i32 %325, 1
store i32 %326, i32* %37
br label %275
327: ; preds = %275
br label %328
328: ; preds = %327, %251
%329 = load double, double* %34
%330 = load double*, double** %13
%331 = load i32, i32* %36
%332 = load i32, i32* %20
%333 = mul nsw i32 %331, %332
%334 = load i32, i32* %35
%335 = add nsw i32 %333, %334
%336 = sext i32 %335 to i64
%337 = getelementptr inbounds double, double* %330, i64 %336
store double %329, double* %337
br label %338
338: ; preds = %328
%339 = load i32, i32* %36
%340 = add nsw i32 %339, 1
store i32 %340, i32* %36
br label %219
341: ; preds = %219
br label %342
342: ; preds = %341
%343 = load i32, i32* %35
%344 = add nsw i32 %343, 1
store i32 %344, i32* %35
br label %147
345: ; preds = %147
%346 = load double*, double** %25
%347 = bitcast double* %346 to i8*
%348 = load i32*, i32** %29
%349 = bitcast i32* %348 to i8*
%350 = load i32*, i32** %30
%351 = bitcast i32* %350 to i8*
%352 = load i32*, i32** %31
%353 = bitcast i32* %352 to i8*
%354 = load double*, double** %33
%355 = bitcast double* %354 to i8*
ret void
}

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