#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int abs(int);
int /*<<< orphan*/ free(double *);
int /*<<< orphan*/ gint1_fn_dispatch(int, double *, double, double *, double *);
double *malloc(int);
int gint1_fns_basis(double *weights, double *orbs, double *points,
                    double *centers, int *shell_types, int *shell_map,
                    int *num_primitives, double *ccoeffs, double *exponents,
                    int num_orbs, int num_dof, int num_points, int num_centers,
                    int num_shells, int num_ccoeffs, int num_exponents) {
  int shell, shell_type, primitive, dof, num_shell_dof, result, i_point, i_orb;
  double *work, *out, *center, *ccoeff, *exponent, *weight, *shell_fns,
      *basis_fns, *fn;
  double tmp;
  result = 0;
  work = malloc(10 * sizeof(double));
  if (work == NULL) {
    result = -1;
    goto EXIT;
  };
  basis_fns = malloc(num_dof * sizeof(double));
  if (basis_fns == NULL) {
    result = -1;
    goto EXIT;
  };
  for (i_point = 0; i_point < num_points; i_point++) {
    fn = basis_fns;
    for (dof = 0; dof < num_dof; dof++) {
      *fn = 0.0;
      fn++;
    }
    ccoeff = ccoeffs;
    exponent = exponents;
    shell_fns = basis_fns;
    for (shell = 0; shell < num_shells; shell++) {
      center = centers + (3 * shell_map[shell]);
      shell_type = shell_types[shell];
      if (abs(shell_type) > 3) {
        result = -2;
        goto EXIT;
      };
      num_shell_dof =
          ((shell_type < -1)
               ? (-2 * shell_type + 1)
               : ((shell_type == -1)
                      ? (4)
                      : (((shell_type + 1) * (shell_type + 2)) / 2)));
      for (primitive = 0; primitive < num_primitives[shell]; primitive++) {
        gint1_fn_dispatch(shell_type, center, *exponent, points, work);
        out = work;
        exponent++;
        fn = shell_fns;
        if (shell_type == -1) {
          *fn += (*out) * (*ccoeff);
          fn++;
          out++;
          ccoeff++;
        }
        for (dof = num_shell_dof - (shell_type == -1); dof > 0; dof--) {
          *fn += (*out) * (*ccoeff);
          fn++;
          out++;
        }
        ccoeff++;
      }
      shell_fns += num_shell_dof;
    }
    for (i_orb = 0; i_orb < num_orbs; i_orb++) {
      tmp = 0.0;
      fn = basis_fns;
      weight = weights + i_orb * num_dof;
      for (dof = 0; dof < num_dof; dof++) {
        tmp += (*fn) * (*weight);
        fn++;
        weight++;
      }
      *(orbs + i_orb * num_points) = tmp;
    }
    points += 3;
    orbs++;
  }
EXIT:
  free(work);
  free(basis_fns);
  return result;
}


x86 assembly (clang, -O0):
<gint1_fns_basis>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    0x58(%rbp),%eax
mov    0x50(%rbp),%eax
mov    0x48(%rbp),%eax
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
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)
movl   $0x0,-0x48(%rbp)
mov    $0x50,%edi
call   1060 <malloc@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    11b0 <gint1_fns_basis+0x70>
movl   $0xffffffff,-0x48(%rbp)
jmp    1593 <gint1_fns_basis+0x453>
movslq 0x30(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x90(%rbp)
cmpq   $0x0,-0x90(%rbp)
jne    11e0 <gint1_fns_basis+0xa0>
movl   $0xffffffff,-0x48(%rbp)
jmp    1593 <gint1_fns_basis+0x453>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    0x38(%rbp),%eax
jge    158e <gint1_fns_basis+0x44e>
mov    -0x90(%rbp),%rax
mov    %rax,-0x98(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    0x30(%rbp),%eax
jge    1242 <gint1_fns_basis+0x102>
mov    -0x98(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x98(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x98(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1208 <gint1_fns_basis+0xc8>
mov    0x18(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    0x20(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x90(%rbp),%rax
mov    %rax,-0x88(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    0x48(%rbp),%eax
jge    1490 <gint1_fns_basis+0x350>
mov    -0x20(%rbp),%rax
mov    -0x30(%rbp),%rcx
movslq -0x34(%rbp),%rdx
imul   $0x3,(%rcx,%rdx,4),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x68(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
call   1050 <abs@plt>
cmp    $0x3,%eax
jle    12bc <gint1_fns_basis+0x17c>
movl   $0xfffffffe,-0x48(%rbp)
jmp    1593 <gint1_fns_basis+0x453>
cmpl   $0xffffffff,-0x38(%rbp)
jge    12db <gint1_fns_basis+0x19b>
imul   $0xfffffffe,-0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    131e <gint1_fns_basis+0x1de>
cmpl   $0xffffffff,-0x38(%rbp)
jne    12f5 <gint1_fns_basis+0x1b5>
mov    $0x4,%eax
mov    %eax,-0xa8(%rbp)
jmp    1312 <gint1_fns_basis+0x1d2>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    -0x38(%rbp),%ecx
add    $0x2,%ecx
imul   %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0xa8(%rbp)
mov    -0xa8(%rbp),%eax
mov    %eax,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
mov    %eax,-0x44(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    0x10(%rbp),%rcx
movslq -0x34(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jge    1467 <gint1_fns_basis+0x327>
mov    -0x38(%rbp),%edi
mov    -0x68(%rbp),%rsi
mov    -0x78(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rdx
mov    -0x58(%rbp),%rcx
call   1040 <gint1_fn_dispatch@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x78(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x78(%rbp)
mov    -0x88(%rbp),%rax
mov    %rax,-0x98(%rbp)
cmpl   $0xffffffff,-0x38(%rbp)
jne    13db <gint1_fns_basis+0x29b>
mov    -0x60(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x70(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x98(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x98(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x98(%rbp)
mov    -0x60(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x60(%rbp)
mov    -0x70(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x70(%rbp)
mov    -0x44(%rbp),%eax
cmpl   $0xffffffff,-0x38(%rbp)
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
sub    %ecx,%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x40(%rbp)
jle    144d <gint1_fns_basis+0x30d>
mov    -0x60(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x70(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x98(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x98(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x98(%rbp)
mov    -0x60(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x60(%rbp)
mov    -0x40(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x40(%rbp)
jmp    13f0 <gint1_fns_basis+0x2b0>
mov    -0x70(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x70(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    132e <gint1_fns_basis+0x1ee>
mov    -0x44(%rbp),%ecx
mov    -0x88(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x88(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1267 <gint1_fns_basis+0x127>
movl   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    0x28(%rbp),%eax
jge    1568 <gint1_fns_basis+0x428>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x90(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x50(%rbp),%ecx
imul   0x30(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x80(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    0x30(%rbp),%eax
jge    153f <gint1_fns_basis+0x3ff>
mov    -0x98(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x80(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x98(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x98(%rbp)
mov    -0x80(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x80(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    14dc <gint1_fns_basis+0x39c>
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
mov    -0x50(%rbp),%ecx
imul   0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1497 <gint1_fns_basis+0x357>
mov    -0x18(%rbp),%rax
add    $0x18,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    11e7 <gint1_fns_basis+0xa7>
jmp    1593 <gint1_fns_basis+0x453>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x90(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gint1_fns_basis>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
mov    %r9,0x80(%rsp)
mov    %r8,0x90(%rsp)
mov    %rcx,0x78(%rsp)
mov    %rdx,0x38(%rsp)
mov    %rsi,%r14
mov    %rdi,%r15
mov    0x130(%rsp),%r12d
mov    $0x50,%edi
call   1060 <malloc@plt>
mov    %rax,0x10(%rsp)
lea    0x0(,%r12,8),%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     16ab <gint1_fns_basis+0x56b>
mov    0x138(%rsp),%eax
test   %eax,%eax
jle    16be <gint1_fns_basis+0x57e>
mov    0x10(%rsp),%r13
mov    %r13,%rdx
add    $0x8,%rdx
mov    %rdx,0xb0(%rsp)
mov    %r12d,%r8d
lea    0x0(,%r8,8),%rdx
mov    %rdx,0x48(%rsp)
movslq %r12d,%r9
mov    %eax,%eax
mov    %rax,0xa0(%rsp)
lea    -0x1(%r12),%r10d
lea    0x0(,%r9,8),%rax
mov    %rax,0x98(%rsp)
and    $0xfffffffc,%r8d
mov    %r12d,%eax
and    $0x3,%eax
mov    %rax,0x88(%rsp)
xor    %edx,%edx
mov    %rbx,0x20(%rsp)
mov    %r15,0x60(%rsp)
mov    %r8,0x58(%rsp)
mov    %r9,0x50(%rsp)
mov    %r10d,0x2c(%rsp)
jmp    1251 <gint1_fns_basis+0x111>
cs nopw 0x0(%rax,%rax,1)
nop
addq   $0x18,0x38(%rsp)
add    $0x8,%r14
mov    0x68(%rsp),%rdx
add    $0x1,%edx
mov    0x138(%rsp),%eax
cmp    %eax,%edx
je     16e9 <gint1_fns_basis+0x5a9>
mov    %rdx,0x68(%rsp)
mov    %r14,0x70(%rsp)
test   %r12d,%r12d
jle    1274 <gint1_fns_basis+0x134>
mov    %rbx,%rdi
xor    %esi,%esi
mov    0x48(%rsp),%rdx
call   1050 <memset@plt>
mov    0x10(%rsp),%r13
cmpl   $0x0,0x148(%rsp)
jle    1570 <gint1_fns_basis+0x430>
xor    %r10d,%r10d
mov    0x20(%rsp),%rax
mov    %rax,0x8(%rsp)
mov    0x120(%rsp),%r11
mov    0x118(%rsp),%r12
jmp    12d7 <gint1_fns_basis+0x197>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movslq 0x30(%rsp),%rax
mov    0x8(%rsp),%rdx
lea    (%rdx,%rax,8),%rdx
mov    %rdx,0x8(%rsp)
add    $0x1,%r10
mov    0x148(%rsp),%eax
cmp    %rax,%r10
je     1570 <gint1_fns_basis+0x430>
mov    0x90(%rsp),%rax
mov    (%rax,%r10,4),%ebx
mov    %ebx,%eax
neg    %eax
cmovs  %ebx,%eax
cmp    $0x3,%eax
ja     16b2 <gint1_fns_basis+0x572>
cmp    $0xfffffffe,%ebx
jg     1310 <gint1_fns_basis+0x1d0>
mov    $0x1,%esi
sub    %ebx,%esi
sub    %ebx,%esi
jmp    1330 <gint1_fns_basis+0x1f0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    $0xffffffff,%ebx
je     1329 <gint1_fns_basis+0x1e9>
lea    0x1(%rbx),%eax
lea    0x2(%rbx),%edx
imul   %eax,%edx
mov    %edx,%esi
shr    $0x1f,%esi
add    %edx,%esi
sar    %esi
jmp    1330 <gint1_fns_basis+0x1f0>
mov    $0x4,%esi
xchg   %ax,%ax
mov    0x110(%rsp),%rax
cmpl   $0x0,(%rax,%r10,4)
mov    %esi,0x30(%rsp)
jle    12b0 <gint1_fns_basis+0x170>
mov    0x80(%rsp),%rax
movslq (%rax,%r10,4),%rax
lea    (%rax,%rax,2),%rax
mov    0x78(%rsp),%rdx
lea    (%rdx,%rax,8),%rax
mov    %rax,0xc8(%rsp)
xor    %eax,%eax
cmp    $0xffffffff,%ebx
sete   %al
mov    0x8(%rsp),%rdx
add    $0x8,%rdx
mov    %rdx,0xb8(%rsp)
mov    %esi,%edx
sub    %eax,%edx
lea    -0x1(%rdx),%eax
mov    %rax,0xc0(%rsp)
add    $0x1,%rax
mov    %rax,0xa8(%rsp)
mov    %rax,%rbp
and    $0xfffffffffffffffc,%rbp
mov    %rdx,0x18(%rsp)
mov    %edx,%eax
sub    %ebp,%eax
mov    %eax,0x34(%rsp)
xor    %r15d,%r15d
mov    %rbx,0xd0(%rsp)
mov    %rbp,0x40(%rsp)
jmp    13f6 <gint1_fns_basis+0x2b6>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x8,%r11
add    $0x8,%r12
add    $0x1,%r15d
mov    0x110(%rsp),%rax
cmp    (%rax,%r10,4),%r15d
mov    0xd0(%rsp),%rbx
jge    12b0 <gint1_fns_basis+0x170>
mov    %r10,%r14
mov    %r11,%rbp
movsd  (%r11),%xmm0
mov    %ebx,%edi
mov    0xc8(%rsp),%rsi
mov    0x38(%rsp),%rdx
mov    %r13,%rcx
call   1040 <gint1_fn_dispatch@plt>
cmp    $0xffffffff,%ebx
je     1430 <gint1_fns_basis+0x2f0>
mov    %r13,%rbx
mov    0x8(%rsp),%rsi
jmp    145d <gint1_fns_basis+0x31d>
nopw   0x0(%rax,%rax,1)
movsd  0x0(%r13),%xmm0
mulsd  (%r12),%xmm0
mov    0x8(%rsp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
add    $0x8,%r12
mov    0xb0(%rsp),%rbx
mov    0xb8(%rsp),%rsi
mov    %r14,%r10
mov    %rbp,%r11
mov    0x40(%rsp),%rbp
cmpl   $0x0,0x18(%rsp)
jle    13d0 <gint1_fns_basis+0x290>
mov    0xc0(%rsp),%rax
cmp    $0x3,%eax
jb     1520 <gint1_fns_basis+0x3e0>
lea    (%rsi,%rax,8),%rdx
add    $0x8,%rdx
lea    (%rbx,%rax,8),%rax
add    $0x8,%rax
lea    0x8(%r12),%rdi
cmp    %rax,%rsi
setb   %r8b
cmp    %rdx,%rbx
setb   %r9b
cmp    %rdi,%rsi
setb   %al
cmp    %rdx,%r12
setb   %dl
test   %r9b,%r8b
jne    1520 <gint1_fns_basis+0x3e0>
and    %dl,%al
jne    1520 <gint1_fns_basis+0x3e0>
lea    (%rsi,%rbp,8),%rax
lea    (%rbx,%rbp,8),%rdx
movsd  (%r12),%xmm0
unpcklpd %xmm0,%xmm0
xor    %edi,%edi
movupd (%rbx,%rdi,8),%xmm1
movupd 0x10(%rbx,%rdi,8),%xmm2
movupd (%rsi,%rdi,8),%xmm3
movupd 0x10(%rsi,%rdi,8),%xmm4
mulpd  %xmm0,%xmm1
addpd  %xmm3,%xmm1
mulpd  %xmm0,%xmm2
addpd  %xmm4,%xmm2
movupd %xmm1,(%rsi,%rdi,8)
movupd %xmm2,0x10(%rsi,%rdi,8)
add    $0x4,%rdi
cmp    %rdi,%rbp
jne    14d0 <gint1_fns_basis+0x390>
mov    0x34(%rsp),%edi
cmp    %rbp,0xa8(%rsp)
je     13d0 <gint1_fns_basis+0x290>
jmp    152d <gint1_fns_basis+0x3ed>
xchg   %ax,%ax
mov    %rsi,%rax
mov    %rbx,%rdx
mov    0x18(%rsp),%rsi
mov    %esi,%edi
add    $0x1,%edi
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rdx,%rsi,1),%xmm0
mulsd  (%r12),%xmm0
addsd  (%rax,%rsi,1),%xmm0
movsd  %xmm0,(%rax,%rsi,1)
add    $0x8,%rsi
add    $0xffffffff,%edi
cmp    $0x1,%edi
ja     1540 <gint1_fns_basis+0x400>
jmp    13d0 <gint1_fns_basis+0x290>
cs nopw 0x0(%rax,%rax,1)
cmpl   $0x0,0x128(%rsp)
mov    0x20(%rsp),%rbx
mov    0x70(%rsp),%r14
mov    0x60(%rsp),%r15
mov    0x130(%rsp),%r12d
mov    0x58(%rsp),%r8
mov    0x50(%rsp),%r9
mov    0x2c(%rsp),%r10d
jle    1230 <gint1_fns_basis+0xf0>
mov    %r15,%rax
xor    %r11d,%r11d
jmp    15e2 <gint1_fns_basis+0x4a2>
nopl   0x0(%rax)
xorpd  %xmm0,%xmm0
mov    %r11,%rdx
imul   0xa0(%rsp),%rdx
movsd  %xmm0,(%r14,%rdx,8)
add    $0x1,%r11
add    0x98(%rsp),%rax
mov    0x128(%rsp),%edx
cmp    %rdx,%r11
je     1230 <gint1_fns_basis+0xf0>
test   %r12d,%r12d
jle    15b0 <gint1_fns_basis+0x470>
cmp    $0x3,%r10d
jae    1610 <gint1_fns_basis+0x4d0>
mov    %r11,%rdx
imul   %r9,%rdx
lea    (%r15,%rdx,8),%rdx
xorpd  %xmm0,%xmm0
mov    %rbx,%rsi
jmp    1677 <gint1_fns_basis+0x537>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xorpd  %xmm0,%xmm0
xor    %edx,%edx
xor    %edi,%edi
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rdx,8),%xmm1
mulsd  (%rax,%rdx,8),%xmm1
movsd  0x8(%rbx,%rdx,8),%xmm2
addsd  %xmm0,%xmm1
mulsd  0x8(%rax,%rdx,8),%xmm2
addsd  %xmm1,%xmm2
movsd  0x10(%rbx,%rdx,8),%xmm1
mulsd  0x10(%rax,%rdx,8),%xmm1
addsd  %xmm2,%xmm1
movsd  0x18(%rbx,%rdx,8),%xmm0
mulsd  0x18(%rax,%rdx,8),%xmm0
addsd  %xmm1,%xmm0
add    $0xffffffffffffffe0,%rdi
add    $0x4,%rdx
cmp    %edx,%r8d
jne    1620 <gint1_fns_basis+0x4e0>
mov    %rbx,%rsi
sub    %rdi,%rsi
mov    %rax,%rdx
sub    %rdi,%rdx
test   $0x3,%r12b
mov    0x88(%rsp),%rbp
je     15b4 <gint1_fns_basis+0x474>
xor    %edi,%edi
nopl   0x0(%rax,%rax,1)
movsd  (%rsi,%rdi,8),%xmm1
mulsd  (%rdx,%rdi,8),%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%rdi
cmp    %edi,%ebp
jne    1690 <gint1_fns_basis+0x550>
jmp    15b4 <gint1_fns_basis+0x474>
mov    $0xffffffff,%ebp
jmp    16c0 <gint1_fns_basis+0x580>
mov    $0xfffffffe,%ebp
mov    0x20(%rsp),%rbx
jmp    16c5 <gint1_fns_basis+0x585>
xor    %ebp,%ebp
mov    0x10(%rsp),%r13
mov    %r13,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %ebp,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ebp,%ebp
jmp    16c5 <gint1_fns_basis+0x585>

LLVM IR (-O0):
define i32 @gint1_fns_basis(double* %0, double* %1, double* %2, double* %3, i32* %4, i32* %5, i32* %6, double* %7, double* %8, i32 %9, i32 %10, i32 %11, i32 %12, i32 %13, i32 %14, i32 %15) {
%17 = alloca double*
%18 = alloca double*
%19 = alloca double*
%20 = alloca double*
%21 = alloca i32*
%22 = alloca i32*
%23 = alloca i32*
%24 = alloca double*
%25 = alloca double*
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca i32
%35 = alloca i32
%36 = alloca i32
%37 = alloca i32
%38 = alloca i32
%39 = alloca i32
%40 = alloca i32
%41 = alloca double*
%42 = alloca double*
%43 = alloca double*
%44 = alloca double*
%45 = alloca double*
%46 = alloca double*
%47 = alloca double*
%48 = alloca double*
%49 = alloca double*
%50 = alloca double
store double* %0, double** %17
store double* %1, double** %18
store double* %2, double** %19
store double* %3, double** %20
store i32* %4, i32** %21
store i32* %5, i32** %22
store i32* %6, i32** %23
store double* %7, double** %24
store double* %8, double** %25
store i32 %9, i32* %26
store i32 %10, i32* %27
store i32 %11, i32* %28
store i32 %12, i32* %29
store i32 %13, i32* %30
store i32 %14, i32* %31
store i32 %15, i32* %32
store i32 0, i32* %38
%51 = call double* @malloc(i32 80)
store double* %51, double** %41
%52 = load double*, double** %41
%53 = icmp eq double* %52, null
br i1 %53, label %54, label %55
54: ; preds = %16
store i32 -1, i32* %38
br label %256
55: ; preds = %16
%56 = load i32, i32* %27
%57 = sext i32 %56 to i64
%58 = mul i64 %57, 8
%59 = trunc i64 %58 to i32
%60 = call double* @malloc(i32 %59)
store double* %60, double** %48
%61 = load double*, double** %48
%62 = icmp eq double* %61, null
br i1 %62, label %63, label %64
63: ; preds = %55
store i32 -1, i32* %38
br label %256
64: ; preds = %55
store i32 0, i32* %39
br label %65
65: ; preds = %252, %64
%66 = load i32, i32* %39
%67 = load i32, i32* %28
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %255
69: ; preds = %65
%70 = load double*, double** %48
store double* %70, double** %49
store i32 0, i32* %36
br label %71
71: ; preds = %79, %69
%72 = load i32, i32* %36
%73 = load i32, i32* %27
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %82
75: ; preds = %71
%76 = load double*, double** %49
store double 0.000000e+00, double* %76
%77 = load double*, double** %49
%78 = getelementptr inbounds double, double* %77, i32 1
store double* %78, double** %49
br label %79
79: ; preds = %75
%80 = load i32, i32* %36
%81 = add nsw i32 %80, 1
store i32 %81, i32* %36
br label %71
82: ; preds = %71
%83 = load double*, double** %24
store double* %83, double** %44
%84 = load double*, double** %25
store double* %84, double** %45
%85 = load double*, double** %48
store double* %85, double** %47
store i32 0, i32* %33
br label %86
86: ; preds = %202, %82
%87 = load i32, i32* %33
%88 = load i32, i32* %30
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %205
90: ; preds = %86
%91 = load double*, double** %20
%92 = load i32*, i32** %22
%93 = load i32, i32* %33
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i32, i32* %92, i64 %94
%96 = load i32, i32* %95
%97 = mul nsw i32 3, %96
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, double* %91, i64 %98
store double* %99, double** %43
%100 = load i32*, i32** %21
%101 = load i32, i32* %33
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, i32* %100, i64 %102
%104 = load i32, i32* %103
store i32 %104, i32* %34
%105 = load i32, i32* %34
%106 = call i32 @abs(i32 %105)
%107 = icmp sgt i32 %106, 3
br i1 %107, label %108, label %109
108: ; preds = %90
store i32 -2, i32* %38
br label %256
109: ; preds = %90
%110 = load i32, i32* %34
%111 = icmp slt i32 %110, -1
br i1 %111, label %112, label %116
112: ; preds = %109
%113 = load i32, i32* %34
%114 = mul nsw i32 -2, %113
%115 = add nsw i32 %114, 1
br label %129
116: ; preds = %109
%117 = load i32, i32* %34
%118 = icmp eq i32 %117, -1
br i1 %118, label %119, label %120
119: ; preds = %116
br label %127
120: ; preds = %116
%121 = load i32, i32* %34
%122 = add nsw i32 %121, 1
%123 = load i32, i32* %34
%124 = add nsw i32 %123, 2
%125 = mul nsw i32 %122, %124
%126 = sdiv i32 %125, 2
br label %127
127: ; preds = %120, %119
%128 = phi i32 [ 4, %119 ], [ %126, %120 ]
br label %129
129: ; preds = %127, %112
%130 = phi i32 [ %115, %112 ], [ %128, %127 ]
store i32 %130, i32* %37
store i32 0, i32* %35
br label %131
131: ; preds = %194, %129
%132 = load i32, i32* %35
%133 = load i32*, i32** %23
%134 = load i32, i32* %33
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i32, i32* %133, i64 %135
%137 = load i32, i32* %136
%138 = icmp slt i32 %132, %137
br i1 %138, label %139, label %197
139: ; preds = %131
%140 = load i32, i32* %34
%141 = load double*, double** %43
%142 = load double*, double** %45
%143 = load double, double* %142
%144 = load double*, double** %19
%145 = load double*, double** %41
%146 = call i32 @gint1_fn_dispatch(i32 %140, double* %141, double %143, double* %144, double* %145)
%147 = load double*, double** %41
store double* %147, double** %42
%148 = load double*, double** %45
%149 = getelementptr inbounds double, double* %148, i32 1
store double* %149, double** %45
%150 = load double*, double** %47
store double* %150, double** %49
%151 = load i32, i32* %34
%152 = icmp eq i32 %151, -1
br i1 %152, label %153, label %167
153: ; preds = %139
%154 = load double*, double** %42
%155 = load double, double* %154
%156 = load double*, double** %44
%157 = load double, double* %156
%158 = load double*, double** %49
%159 = load double, double* %158
%160 = call double @llvm.fmuladd.f64(double %155, double %157, double %159)
store double %160, double* %158
%161 = load double*, double** %49
%162 = getelementptr inbounds double, double* %161, i32 1
store double* %162, double** %49
%163 = load double*, double** %42
%164 = getelementptr inbounds double, double* %163, i32 1
store double* %164, double** %42
%165 = load double*, double** %44
%166 = getelementptr inbounds double, double* %165, i32 1
store double* %166, double** %44
br label %167
167: ; preds = %153, %139
%168 = load i32, i32* %37
%169 = load i32, i32* %34
%170 = icmp eq i32 %169, -1
%171 = zext i1 %170 to i32
%172 = sub nsw i32 %168, %171
store i32 %172, i32* %36
br label %173
173: ; preds = %188, %167
%174 = load i32, i32* %36
%175 = icmp sgt i32 %174, 0
br i1 %175, label %176, label %191
176: ; preds = %173
%177 = load double*, double** %42
%178 = load double, double* %177
%179 = load double*, double** %44
%180 = load double, double* %179
%181 = load double*, double** %49
%182 = load double, double* %181
%183 = call double @llvm.fmuladd.f64(double %178, double %180, double %182)
store double %183, double* %181
%184 = load double*, double** %49
%185 = getelementptr inbounds double, double* %184, i32 1
store double* %185, double** %49
%186 = load double*, double** %42
%187 = getelementptr inbounds double, double* %186, i32 1
store double* %187, double** %42
br label %188
188: ; preds = %176
%189 = load i32, i32* %36
%190 = add nsw i32 %189, -1
store i32 %190, i32* %36
br label %173
191: ; preds = %173
%192 = load double*, double** %44
%193 = getelementptr inbounds double, double* %192, i32 1
store double* %193, double** %44
br label %194
194: ; preds = %191
%195 = load i32, i32* %35
%196 = add nsw i32 %195, 1
store i32 %196, i32* %35
br label %131
197: ; preds = %131
%198 = load i32, i32* %37
%199 = load double*, double** %47
%200 = sext i32 %198 to i64
%201 = getelementptr inbounds double, double* %199, i64 %200
store double* %201, double** %47
br label %202
202: ; preds = %197
%203 = load i32, i32* %33
%204 = add nsw i32 %203, 1
store i32 %204, i32* %33
br label %86
205: ; preds = %86
store i32 0, i32* %40
br label %206
206: ; preds = %244, %205
%207 = load i32, i32* %40
%208 = load i32, i32* %26
%209 = icmp slt i32 %207, %208
br i1 %209, label %210, label %247
210: ; preds = %206
store double 0.000000e+00, double* %50
%211 = load double*, double** %48
store double* %211, double** %49
%212 = load double*, double** %17
%213 = load i32, i32* %40
%214 = load i32, i32* %27
%215 = mul nsw i32 %213, %214
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds double, double* %212, i64 %216
store double* %217, double** %46
store i32 0, i32* %36
br label %218
218: ; preds = %233, %210
%219 = load i32, i32* %36
%220 = load i32, i32* %27
%221 = icmp slt i32 %219, %220
br i1 %221, label %222, label %236
222: ; preds = %218
%223 = load double*, double** %49
%224 = load double, double* %223
%225 = load double*, double** %46
%226 = load double, double* %225
%227 = load double, double* %50
%228 = call double @llvm.fmuladd.f64(double %224, double %226, double %227)
store double %228, double* %50
%229 = load double*, double** %49
%230 = getelementptr inbounds double, double* %229, i32 1
store double* %230, double** %49
%231 = load double*, double** %46
%232 = getelementptr inbounds double, double* %231, i32 1
store double* %232, double** %46
br label %233
233: ; preds = %222
%234 = load i32, i32* %36
%235 = add nsw i32 %234, 1
store i32 %235, i32* %36
br label %218
236: ; preds = %218
%237 = load double, double* %50
%238 = load double*, double** %18
%239 = load i32, i32* %40
%240 = load i32, i32* %28
%241 = mul nsw i32 %239, %240
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds double, double* %238, i64 %242
store double %237, double* %243
br label %244
244: ; preds = %236
%245 = load i32, i32* %40
%246 = add nsw i32 %245, 1
store i32 %246, i32* %40
br label %206
247: ; preds = %206
%248 = load double*, double** %19
%249 = getelementptr inbounds double, double* %248, i64 3
store double* %249, double** %19
%250 = load double*, double** %18
%251 = getelementptr inbounds double, double* %250, i32 1
store double* %251, double** %18
br label %252
252: ; preds = %247
%253 = load i32, i32* %39
%254 = add nsw i32 %253, 1
store i32 %254, i32* %39
br label %65
255: ; preds = %65
br label %256
256: ; preds = %255, %108, %63, %54
%257 = load double*, double** %41
%258 = call i32 @free(double* %257)
%259 = load double*, double** %48
%260 = call i32 @free(double* %259)
%261 = load i32, i32* %38
ret i32 %261
}

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