#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 nuclear_attraction(double, double, double, double, int, int, int, double,
                          double, double, double, double, int, int, int, double,
                          double, double, double);
void getV(int nbf, int *nprim, double *normc, int *istart, double *xcenter,
          double *ycenter, double *zcenter, int *lpower, int *mpower,
          int *npower, double *normp, double *coef, double *alpha, int nat,
          int *atno, double *x, double *y, double *z, double *V) {
  int i, j, iprim, jprim, jindex, iindex, iat;
  for (j = 0; j < nbf; j++) {
    for (i = 0; i < nbf; i++) {
      V[i + j * nbf] = 0.;
      for (jprim = 0; jprim < nprim[j]; jprim++) {
        jindex = istart[j] + jprim;
        for (iprim = 0; iprim < nprim[i]; iprim++) {
          iindex = istart[i] + iprim;
          for (iat = 0; iat < nat; iat++) {
            V[i + j * nbf] +=
                normc[i] * normc[j] * coef[iindex] * coef[jindex] * atno[iat] *
                nuclear_attraction(
                    xcenter[i], ycenter[i], zcenter[i], normp[iindex],
                    lpower[i], mpower[i], npower[i], alpha[iindex], xcenter[j],
                    ycenter[j], zcenter[j], normp[jindex], lpower[j], mpower[j],
                    npower[j], alpha[jindex], x[iat], y[iat], z[iat]);
          }
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<getV>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x70(%rbp),%rax
mov    0x68(%rbp),%rax
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%eax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13fb <getV+0x2eb>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13e8 <getV+0x2d8>
mov    0x70(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    -0x38(%rbp),%edx
imul   -0x4(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
mov    -0x10(%rbp),%rcx
movslq -0x38(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jge    13d5 <getV+0x2c5>
mov    -0x20(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    -0x40(%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    13c2 <getV+0x2b2>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    -0x3c(%rbp),%eax
mov    %eax,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    0x48(%rbp),%eax
jge    13af <getV+0x29f>
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x38(%rbp),%rax
movslq -0x48(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x50(%rbp),%rax
movslq -0x4c(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    0x30(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm3
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    0x40(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm4
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm5
mov    -0x30(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm6
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm7
mov    0x30(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm12
mov    0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
mov    0x20(%rbp),%rax
movslq -0x38(%rbp),%r8
mov    (%rax,%r8,4),%r8d
mov    0x28(%rbp),%rax
movslq -0x38(%rbp),%r9
mov    (%rax,%r9,4),%r9d
mov    0x40(%rbp),%rax
movslq -0x44(%rbp),%r10
movsd  (%rax,%r10,8),%xmm11
mov    0x58(%rbp),%rax
movslq -0x4c(%rbp),%r10
movsd  (%rax,%r10,8),%xmm10
mov    0x60(%rbp),%rax
movslq -0x4c(%rbp),%r10
movsd  (%rax,%r10,8),%xmm9
mov    0x68(%rbp),%rax
movslq -0x4c(%rbp),%r10
movsd  (%rax,%r10,8),%xmm8
movsd  %xmm12,(%rsp)
movsd  %xmm11,0x8(%rsp)
movsd  %xmm10,0x10(%rsp)
movsd  %xmm9,0x18(%rsp)
movsd  %xmm8,0x20(%rsp)
call   1030 <nuclear_attraction@plt>
movaps %xmm0,%xmm2
movsd  -0x58(%rbp),%xmm0
mov    0x70(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    -0x38(%rbp),%edx
imul   -0x4(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1205 <getV+0xf5>
jmp    13b4 <getV+0x2a4>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11d9 <getV+0xc9>
jmp    13c7 <getV+0x2b7>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    11ad <getV+0x9d>
jmp    13da <getV+0x2ca>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    117f <getV+0x6f>
jmp    13ed <getV+0x2dd>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    116c <getV+0x5c>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getV>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rcx,0x58(%rsp)
mov    %rsi,0x38(%rsp)
test   %edi,%edi
jle    1410 <getV+0x300>
mov    0x140(%rsp),%rsi
mov    0x120(%rsp),%rbp
mov    0x108(%rsp),%r10
mov    %edi,%ecx
xor    %eax,%eax
mov    %rcx,0x60(%rsp)
mov    %rdx,0x80(%rsp)
mov    %r8,0x78(%rsp)
mov    %r9,0x70(%rsp)
jmp    1182 <getV+0x72>
nopl   0x0(%rax,%rax,1)
mov    0x40(%rsp),%rax
add    $0x1,%rax
cmp    %rcx,%rax
je     1410 <getV+0x300>
mov    %rax,%rdi
imul   %rcx,%rdi
mov    %rdi,0x68(%rsp)
mov    %rax,%rcx
mov    0x38(%rsp),%rax
mov    %rcx,0x40(%rsp)
mov    (%rax,%rcx,4),%eax
xor    %r13d,%r13d
jmp    11be <getV+0xae>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r13
mov    0x60(%rsp),%rcx
cmp    %rcx,%r13
je     1170 <getV+0x60>
mov    0x68(%rsp),%rcx
add    %r13,%rcx
movq   $0x0,(%rsi,%rcx,8)
test   %eax,%eax
jle    11b0 <getV+0xa0>
mov    %rcx,0x88(%rsp)
mov    0x38(%rsp),%rcx
mov    (%rcx,%r13,4),%ecx
movl   $0x0,0x34(%rsp)
jmp    120c <getV+0xfc>
nopl   (%rax)
mov    0x38(%rsp),%rax
mov    0x40(%rsp),%rdi
mov    (%rax,%rdi,4),%eax
mov    0x34(%rsp),%edi
add    $0x1,%edi
mov    %edi,0x34(%rsp)
cmp    %eax,%edi
jge    11b0 <getV+0xa0>
test   %ecx,%ecx
jle    11fd <getV+0xed>
mov    0x58(%rsp),%rax
mov    0x40(%rsp),%rdi
movslq (%rax,%rdi,4),%rax
movslq 0x34(%rsp),%rdi
add    %rax,%rdi
xor    %ebx,%ebx
mov    %rdi,0x90(%rsp)
jmp    1247 <getV+0x137>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%ebx
cmp    %ecx,%ebx
jge    11f0 <getV+0xe0>
cmpl   $0x0,0x118(%rsp)
jle    1240 <getV+0x130>
mov    0x58(%rsp),%rax
movslq (%rax,%r13,4),%rax
mov    %ebx,0x4c(%rsp)
movslq %ebx,%rcx
add    %rax,%rcx
mov    %rcx,0x98(%rsp)
xor    %ebx,%ebx
mov    0x40(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rdx,%r13,8),%xmm0
mulsd  (%rdx,%r14,8),%xmm0
mov    0x98(%rsp),%r11
mulsd  (%r10,%r11,8),%xmm0
mov    0x90(%rsp),%rax
mulsd  (%r10,%rax,8),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl 0x0(%rbp,%rbx,4),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0xa0(%rsp)
movsd  (%r8,%r13,8),%xmm0
movsd  (%r9,%r13,8),%xmm1
mov    0xe0(%rsp),%rsi
movsd  (%rsi,%r13,8),%xmm2
mov    0x100(%rsp),%r12
movsd  (%r12,%r11,8),%xmm3
mov    0xe8(%rsp),%rdx
mov    (%rdx,%r13,4),%edi
mov    0xf0(%rsp),%r15
mov    (%r15,%r13,4),%ecx
mov    %ecx,0x54(%rsp)
mov    0xf8(%rsp),%rbp
mov    0x0(%rbp,%r13,4),%ecx
mov    %ecx,0x50(%rsp)
mov    0x110(%rsp),%r10
movsd  (%r10,%r11,8),%xmm4
movsd  (%r8,%r14,8),%xmm5
movsd  (%r9,%r14,8),%xmm6
movsd  (%rsi,%r14,8),%xmm7
movsd  (%r12,%rax,8),%xmm8
mov    (%rdx,%r14,4),%ecx
mov    (%r15,%r14,4),%r8d
mov    0x0(%rbp,%r14,4),%r9d
movsd  (%r10,%rax,8),%xmm9
mov    0x128(%rsp),%rax
movsd  (%rax,%rbx,8),%xmm10
mov    0x130(%rsp),%rax
movsd  (%rax,%rbx,8),%xmm11
mov    0x138(%rsp),%rax
movsd  (%rax,%rbx,8),%xmm12
movsd  %xmm12,0x20(%rsp)
movsd  %xmm11,0x18(%rsp)
movsd  %xmm10,0x10(%rsp)
movsd  %xmm9,0x8(%rsp)
movsd  %xmm8,(%rsp)
mov    0x54(%rsp),%esi
mov    0x50(%rsp),%edx
call   1030 <nuclear_attraction@plt>
mov    0x118(%rsp),%eax
mov    0x108(%rsp),%r10
mov    0x140(%rsp),%rsi
mov    0x80(%rsp),%rdx
mov    0x78(%rsp),%r8
mov    0x120(%rsp),%rbp
mov    0x70(%rsp),%r9
mulsd  0xa0(%rsp),%xmm0
mov    0x88(%rsp),%rcx
addsd  (%rsi,%rcx,8),%xmm0
movsd  %xmm0,(%rsi,%rcx,8)
add    $0x1,%rbx
cmp    %rbx,%rax
jne    1280 <getV+0x170>
mov    0x38(%rsp),%rax
mov    (%rax,%r13,4),%ecx
mov    0x4c(%rsp),%ebx
jmp    1240 <getV+0x130>
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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