#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 */
double rys_coulomb_repulsion(double, double, double, double, int, int, int,
                             double, double, double, double, double, int, int,
                             int, double, double, double, double, double, int,
                             int, int, double, double, double, double, double,
                             int, int, int, double);
double rys_contr_coulomb(int lena, double *aexps, double *acoefs,
                         double *anorms, double xa, double ya, double za,
                         int *la, int *ma, int *na, int lenb, double *bexps,
                         double *bcoefs, double *bnorms, double xb, double yb,
                         double zb, int *lb, int *mb, int *nb, int lenc,
                         double *cexps, double *ccoefs, double *cnorms,
                         double xc, double yc, double zc, int *lc, int *mc,
                         int *nc, int lend, double *dexps, double *dcoefs,
                         double *dnorms, double xd, double yd, double zd,
                         int *ld, int *md, int *nd) {
  double val = 0.;
  int i, j, k, l;
  for (i = 0; i < lena; i++) {
    for (j = 0; j < lenb; j++) {
      for (k = 0; k < lenc; k++) {
        for (l = 0; l < lend; l++) {
          val += acoefs[i] * bcoefs[j] * ccoefs[k] * dcoefs[l] *
                 rys_coulomb_repulsion(
                     xa, ya, za, anorms[i], la[i], ma[i], na[i], aexps[i], xb,
                     yb, zb, bnorms[j], lb[j], mb[j], nb[j], bexps[j], xc, yc,
                     zc, cnorms[k], lc[k], mc[k], nc[k], cexps[k], xd, yd, zd,
                     dnorms[l], ld[l], md[l], nd[l], dexps[l]);
        }
      }
    }
  }
  return val;
}


x86 assembly (clang, -O0):
<rys_contr_coulomb>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x148,%rsp
mov    0xd8(%rbp),%rax
mov    0xd0(%rbp),%rax
mov    0xc8(%rbp),%rax
movsd  0xc0(%rbp),%xmm8
movsd  0xb8(%rbp),%xmm8
movsd  0xb0(%rbp),%xmm8
mov    0xa8(%rbp),%rax
mov    0xa0(%rbp),%rax
mov    0x98(%rbp),%rax
mov    0x90(%rbp),%eax
mov    0x88(%rbp),%rax
mov    0x80(%rbp),%rax
mov    0x78(%rbp),%rax
movsd  0x70(%rbp),%xmm8
mov    0x68(%rbp),%rax
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%eax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %edi,-0x2c(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %rcx,-0x48(%rbp)
movsd  %xmm0,-0x50(%rbp)
movsd  %xmm1,-0x58(%rbp)
movsd  %xmm2,-0x60(%rbp)
mov    %r8,-0x68(%rbp)
mov    %r9,-0x70(%rbp)
movsd  %xmm3,-0x78(%rbp)
movsd  %xmm4,-0x80(%rbp)
movsd  %xmm5,-0x88(%rbp)
ff
movsd  %xmm6,-0x90(%rbp)
ff
movsd  %xmm7,-0x98(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movl   $0x0,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    15a7 <rys_contr_coulomb+0x497>
movl   $0x0,-0xa8(%rbp)
mov    -0xa8(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    158e <rys_contr_coulomb+0x47e>
movl   $0x0,-0xac(%rbp)
mov    -0xac(%rbp),%eax
cmp    0x50(%rbp),%eax
jge    1575 <rys_contr_coulomb+0x465>
movl   $0x0,-0xb0(%rbp)
mov    -0xb0(%rbp),%eax
cmp    0x90(%rbp),%eax
jge    155c <rys_contr_coulomb+0x44c>
mov    -0x40(%rbp),%rax
movslq -0xa4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
movslq -0xa8(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x60(%rbp),%rax
movslq -0xac(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0xa0(%rbp),%rax
movslq -0xb0(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x58(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm2
mov    -0x48(%rbp),%rax
movslq -0xa4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm3
mov    -0x68(%rbp),%rax
movslq -0xa4(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x70(%rbp),%rax
movslq -0xa4(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    0x10(%rbp),%rax
movslq -0xa4(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x38(%rbp),%rax
movslq -0xa4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm4
movsd  -0x78(%rbp),%xmm5
movsd  -0x80(%rbp),%xmm6
movsd  -0x88(%rbp),%xmm7
ff
mov    0x30(%rbp),%rax
movslq -0xa8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm8
mov    0x38(%rbp),%rax
movslq -0xa8(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
mov    0x40(%rbp),%rax
movslq -0xa8(%rbp),%r8
mov    (%rax,%r8,4),%r8d
mov    0x48(%rbp),%rax
movslq -0xa8(%rbp),%r9
mov    (%rax,%r9,4),%r9d
mov    0x20(%rbp),%rax
movslq -0xa8(%rbp),%r10
movsd  (%rax,%r10,8),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0x70(%rbp),%xmm15
mov    0x68(%rbp),%rax
movslq -0xac(%rbp),%r10
movsd  (%rax,%r10,8),%xmm14
mov    0x78(%rbp),%rax
movslq -0xac(%rbp),%r10
mov    (%rax,%r10,4),%r15d
mov    0x80(%rbp),%rax
movslq -0xac(%rbp),%r10
mov    (%rax,%r10,4),%r14d
mov    0x88(%rbp),%rax
movslq -0xac(%rbp),%r10
mov    (%rax,%r10,4),%ebx
mov    0x58(%rbp),%rax
movslq -0xac(%rbp),%r10
movsd  (%rax,%r10,8),%xmm13
movsd  0xb0(%rbp),%xmm12
movsd  0xb8(%rbp),%xmm11
movsd  0xc0(%rbp),%xmm10
mov    0xa8(%rbp),%rax
movslq -0xb0(%rbp),%r10
movsd  (%rax,%r10,8),%xmm9
mov    0xc8(%rbp),%rax
movslq -0xb0(%rbp),%r10
mov    (%rax,%r10,4),%r11d
mov    0xd0(%rbp),%rax
movslq -0xb0(%rbp),%r10
mov    (%rax,%r10,4),%r10d
mov    0xd8(%rbp),%rax
movslq -0xb0(%rbp),%r12
mov    (%rax,%r12,4),%eax
mov    0x98(%rbp),%r12
movslq -0xb0(%rbp),%r13
movsd  (%r12,%r13,8),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm8,(%rsp)
movsd  -0xd8(%rbp),%xmm8
ff ff
movsd  %xmm8,0x8(%rsp)
movsd  -0xd0(%rbp),%xmm8
ff ff
movsd  %xmm8,0x10(%rsp)
movsd  -0xc8(%rbp),%xmm8
ff ff
movsd  %xmm8,0x18(%rsp)
movsd  -0xc0(%rbp),%xmm8
ff ff
movsd  %xmm15,0x20(%rsp)
movsd  %xmm14,0x28(%rsp)
mov    %r15d,0x30(%rsp)
mov    %r14d,0x38(%rsp)
mov    %ebx,0x40(%rsp)
movsd  %xmm13,0x48(%rsp)
movsd  %xmm12,0x50(%rsp)
movsd  %xmm11,0x58(%rsp)
movsd  %xmm10,0x60(%rsp)
movsd  %xmm9,0x68(%rsp)
mov    %r11d,0x70(%rsp)
mov    %r10d,0x78(%rsp)
mov    %eax,0x80(%rsp)
movsd  %xmm8,0x88(%rsp)
call   1030 <rys_coulomb_repulsion@plt>
movaps %xmm0,%xmm2
movsd  -0xb8(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0xb0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb0(%rbp)
jmp    125d <rys_contr_coulomb+0x14d>
jmp    1561 <rys_contr_coulomb+0x451>
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
jmp    1244 <rys_contr_coulomb+0x134>
jmp    157a <rys_contr_coulomb+0x46a>
mov    -0xa8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa8(%rbp)
jmp    122b <rys_contr_coulomb+0x11b>
jmp    1593 <rys_contr_coulomb+0x483>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    1212 <rys_contr_coulomb+0x102>
movsd  -0xa0(%rbp),%xmm0
ff
add    $0x148,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<rys_contr_coulomb>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x128,%rsp
test   %edi,%edi
jle    150d <rys_contr_coulomb+0x3fd>
movaps %xmm5,%xmm10
movaps %xmm4,%xmm11
movapd %xmm3,%xmm5
movapd %xmm0,%xmm15
mov    0x220(%rsp),%rbx
mov    0x1f0(%rsp),%r11
mov    0x1c8(%rsp),%rax
mov    %edi,%edi
mov    %rdi,0xa8(%rsp)
xorpd  %xmm3,%xmm3
xor    %r10d,%r10d
movsd  %xmm7,0x110(%rsp)
movsd  %xmm6,0x108(%rsp)
movsd  %xmm10,0x100(%rsp)
movsd  %xmm4,0xf8(%rsp)
movsd  %xmm5,0xf0(%rsp)
mov    %r9,0xe8(%rsp)
mov    %r8,0xe0(%rsp)
movsd  %xmm2,0xd8(%rsp)
movsd  %xmm1,0xd0(%rsp)
movsd  %xmm0,0xc8(%rsp)
mov    %rcx,0xc0(%rsp)
mov    %rdx,0xb8(%rsp)
mov    %rsi,0xb0(%rsp)
jmp    11f2 <rys_contr_coulomb+0xe2>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r10
cmp    0xa8(%rsp),%r10
je     1511 <rys_contr_coulomb+0x401>
cmpl   $0x0,0x168(%rsp)
jle    11e0 <rys_contr_coulomb+0xd0>
xor    %r14d,%r14d
mov    %r10,0xa0(%rsp)
jmp    1229 <rys_contr_coulomb+0x119>
nopl   0x0(%rax)
add    $0x1,%r14
mov    0x168(%rsp),%r10d
cmp    %r10,%r14
mov    0xa0(%rsp),%r10
je     11e0 <rys_contr_coulomb+0xd0>
cmpl   $0x0,0x1a0(%rsp)
jle    1210 <rys_contr_coulomb+0x100>
xor    %ebp,%ebp
jmp    1250 <rys_contr_coulomb+0x140>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbp
mov    0x1a0(%rsp),%edi
cmp    %rdi,%rbp
je     1210 <rys_contr_coulomb+0x100>
cmpl   $0x0,0x1e0(%rsp)
jle    1240 <rys_contr_coulomb+0x130>
xor    %r13d,%r13d
mov    0xa0(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
nop
movsd  %xmm3,0x120(%rsp)
movsd  (%rdx,%r12,8),%xmm0
mov    0x178(%rsp),%rdx
mulsd  (%rdx,%r14,8),%xmm0
mov    0x1b0(%rsp),%rdx
mulsd  (%rdx,%rbp,8),%xmm0
mulsd  (%r11,%r13,8),%xmm0
movsd  %xmm0,0x118(%rsp)
movsd  (%rcx,%r12,8),%xmm3
mov    (%r8,%r12,4),%ecx
mov    %ecx,0x90(%rsp)
mov    (%r9,%r12,4),%r9d
mov    0x160(%rsp),%rcx
mov    (%rcx,%r12,4),%r8d
movsd  (%rsi,%r12,8),%xmm4
mov    0x180(%rsp),%rcx
movsd  (%rcx,%r14,8),%xmm8
mov    0x188(%rsp),%rcx
mov    (%rcx,%r14,4),%ecx
mov    %ecx,0x9c(%rsp)
mov    0x190(%rsp),%rcx
mov    (%rcx,%r14,4),%ecx
mov    %ecx,0x98(%rsp)
mov    0x198(%rsp),%rcx
mov    (%rcx,%r14,4),%ecx
mov    %ecx,0x94(%rsp)
mov    0x170(%rsp),%rcx
movsd  (%rcx,%r14,8),%xmm9
mov    0x1b8(%rsp),%rcx
movsd  (%rcx,%rbp,8),%xmm12
mov    (%rax,%rbp,4),%r10d
mov    0x1d0(%rsp),%rax
mov    (%rax,%rbp,4),%r11d
mov    0x1d8(%rsp),%rax
mov    (%rax,%rbp,4),%edi
mov    0x1a8(%rsp),%rax
movsd  (%rax,%rbp,8),%xmm13
mov    0x1f8(%rsp),%rax
movsd  (%rax,%r13,8),%xmm14
mov    0x218(%rsp),%rax
mov    (%rax,%r13,4),%edx
mov    (%rbx,%r13,4),%ecx
mov    0x228(%rsp),%rsi
mov    (%rsi,%r13,4),%r15d
mov    0x1e8(%rsp),%rax
movsd  (%rax,%r13,8),%xmm0
movsd  %xmm0,0x88(%rsp)
mov    %r15d,0x80(%rsp)
mov    %ecx,0x78(%rsp)
mov    %edx,0x70(%rsp)
movsd  %xmm14,0x68(%rsp)
movsd  0x210(%rsp),%xmm0
movsd  %xmm0,0x60(%rsp)
movsd  0x208(%rsp),%xmm0
movsd  %xmm0,0x58(%rsp)
movsd  0x200(%rsp),%xmm0
movsd  %xmm0,0x50(%rsp)
movsd  %xmm13,0x48(%rsp)
mov    %edi,0x40(%rsp)
mov    %r11d,0x38(%rsp)
mov    %r10d,0x30(%rsp)
movsd  %xmm12,0x28(%rsp)
movsd  0x1c0(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  %xmm7,0x18(%rsp)
movsd  %xmm6,0x10(%rsp)
movsd  %xmm9,0x8(%rsp)
movsd  %xmm8,(%rsp)
movapd %xmm15,%xmm0
mov    0x90(%rsp),%edi
mov    %r9d,%esi
mov    %r8d,%edx
movaps %xmm11,%xmm6
movaps %xmm10,%xmm7
mov    0x9c(%rsp),%ecx
mov    0x98(%rsp),%r8d
mov    0x94(%rsp),%r9d
call   1030 <rys_coulomb_repulsion@plt>
movsd  0x120(%rsp),%xmm3
mov    0x1c8(%rsp),%rax
mov    0x1f0(%rsp),%r11
mov    0xb0(%rsp),%rsi
mov    0xb8(%rsp),%rdx
mov    0xc0(%rsp),%rcx
movsd  0xc8(%rsp),%xmm15
movsd  0xd0(%rsp),%xmm1
movsd  0xd8(%rsp),%xmm2
mov    0xe0(%rsp),%r8
mov    0xe8(%rsp),%r9
movsd  0xf0(%rsp),%xmm5
movsd  0xf8(%rsp),%xmm11
movsd  0x100(%rsp),%xmm10
movsd  0x108(%rsp),%xmm6
movsd  0x110(%rsp),%xmm7
mulsd  0x118(%rsp),%xmm0
addsd  %xmm0,%xmm3
add    $0x1,%r13
mov    0x1e0(%rsp),%edi
cmp    %r13,%rdi
jne    1270 <rys_contr_coulomb+0x160>
jmp    1240 <rys_contr_coulomb+0x130>
xorpd  %xmm3,%xmm3
movapd %xmm3,%xmm0
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define double @rys_contr_coulomb(i32 %0, double* nocapture %1, double* nocapture %2, double* nocapture %3, double %4, double %5, double %6, i32* nocapture %7, i32* nocapture %8, i32* nocapture %9, i32 %10, double* nocapture %11, double* nocapture %12, double* nocapture %13, double %14, double %15, double %16, i32* nocapture %17, i32* nocapture %18, i32* nocapture %19, i32 %20, double* nocapture %21, double* nocapture %22, double* nocapture %23, double %24, double %25, double %26, i32* nocapture %27, i32* nocapture %28, i32* nocapture %29, i32 %30, double* nocapture %31, double* nocapture %32, double* nocapture %33, double %34, double %35, double %36, i32* nocapture %37, i32* nocapture %38, i32* nocapture %39) {
%41 = icmp sgt i32 %0, 0
br i1 %41, label %42, label %132
42: ; preds = %40
%43 = icmp sgt i32 %10, 0
%44 = icmp sgt i32 %20, 0
%45 = icmp sgt i32 %30, 0
%46 = zext i32 %0 to i64
%47 = zext i32 %10 to i64
%48 = zext i32 %20 to i64
%49 = zext i32 %30 to i64
br label %50
50: ; preds = %42, %128
%51 = phi i64 [ 0, %42 ], [ %130, %128 ]
%52 = phi double [ 0.000000e+00, %42 ], [ %129, %128 ]
br i1 %43, label %53, label %128
53: ; preds = %50
%54 = getelementptr inbounds double, double* %2, i64 %51
%55 = getelementptr inbounds double, double* %3, i64 %51
%56 = getelementptr inbounds i32, i32* %7, i64 %51
%57 = getelementptr inbounds i32, i32* %8, i64 %51
%58 = getelementptr inbounds i32, i32* %9, i64 %51
%59 = getelementptr inbounds double, double* %1, i64 %51
br label %60
60: ; preds = %53, %124
%61 = phi i64 [ 0, %53 ], [ %126, %124 ]
%62 = phi double [ %52, %53 ], [ %125, %124 ]
br i1 %44, label %63, label %124
63: ; preds = %60
%64 = getelementptr inbounds double, double* %12, i64 %61
%65 = getelementptr inbounds double, double* %13, i64 %61
%66 = getelementptr inbounds i32, i32* %17, i64 %61
%67 = getelementptr inbounds i32, i32* %18, i64 %61
%68 = getelementptr inbounds i32, i32* %19, i64 %61
%69 = getelementptr inbounds double, double* %11, i64 %61
br label %70
70: ; preds = %63, %120
%71 = phi i64 [ 0, %63 ], [ %122, %120 ]
%72 = phi double [ %62, %63 ], [ %121, %120 ]
br i1 %45, label %73, label %120
73: ; preds = %70
%74 = getelementptr inbounds double, double* %22, i64 %71
%75 = getelementptr inbounds double, double* %23, i64 %71
%76 = getelementptr inbounds i32, i32* %27, i64 %71
%77 = getelementptr inbounds i32, i32* %28, i64 %71
%78 = getelementptr inbounds i32, i32* %29, i64 %71
%79 = getelementptr inbounds double, double* %21, i64 %71
br label %80
80: ; preds = %73, %80
%81 = phi i64 [ 0, %73 ], [ %118, %80 ]
%82 = phi double [ %72, %73 ], [ %117, %80 ]
%83 = load double, double* %54
%84 = load double, double* %64
%85 = fmul double %83, %84
%86 = load double, double* %74
%87 = fmul double %85, %86
%88 = getelementptr inbounds double, double* %32, i64 %81
%89 = load double, double* %88
%90 = fmul double %87, %89
%91 = load double, double* %55
%92 = load i32, i32* %56
%93 = load i32, i32* %57
%94 = load i32, i32* %58
%95 = load double, double* %59
%96 = load double, double* %65
%97 = load i32, i32* %66
%98 = load i32, i32* %67
%99 = load i32, i32* %68
%100 = load double, double* %69
%101 = load double, double* %75
%102 = load i32, i32* %76
%103 = load i32, i32* %77
%104 = load i32, i32* %78
%105 = load double, double* %79
%106 = getelementptr inbounds double, double* %33, i64 %81
%107 = load double, double* %106
%108 = getelementptr inbounds i32, i32* %37, i64 %81
%109 = load i32, i32* %108
%110 = getelementptr inbounds i32, i32* %38, i64 %81
%111 = load i32, i32* %110
%112 = getelementptr inbounds i32, i32* %39, i64 %81
%113 = load i32, i32* %112
%114 = getelementptr inbounds double, double* %31, i64 %81
%115 = load double, double* %114
%116 = tail call double @rys_coulomb_repulsion(double %4, double %5, double %6, double %91, i32 %92, i32 %93, i32 %94, double %95, double %14, double %15, double %16, double %96, i32 %97, i32 %98, i32 %99, double %100, double %24, double %25, double %26, double %101, i32 %102, i32 %103, i32 %104, double %105, double %34, double %35, double %36, double %107, i32 %109, i32 %111, i32 %113, double %115)
%117 = tail call double @llvm.fmuladd.f64(double %90, double %116, double %82)
%118 = add nuw nsw i64 %81, 1
%119 = icmp eq i64 %118, %49
br i1 %119, label %120, label %80
120: ; preds = %80, %70
%121 = phi double [ %72, %70 ], [ %117, %80 ]
%122 = add nuw nsw i64 %71, 1
%123 = icmp eq i64 %122, %48
br i1 %123, label %124, label %70
124: ; preds = %120, %60
%125 = phi double [ %62, %60 ], [ %121, %120 ]
%126 = add nuw nsw i64 %61, 1
%127 = icmp eq i64 %126, %47
br i1 %127, label %128, label %60
128: ; preds = %124, %50
%129 = phi double [ %52, %50 ], [ %125, %124 ]
%130 = add nuw nsw i64 %51, 1
%131 = icmp eq i64 %130, %46
br i1 %131, label %132, label %50
132: ; preds = %128, %40
%133 = phi double [ 0.000000e+00, %40 ], [ %129, %128 ]
ret double %133
}