void Suggested_Param_Troullier(num_states_psp, n_psp, l_psp, e_psp, fill_psp,
                               rcut_psp) int *num_states_psp;
int n_psp[];
int l_psp[];
double e_psp[];
double fill_psp[];
double rcut_psp[];
{
  int p, npsps;
  int i, l, lmax;
  int Nc, Nv, n;
  double rcmax, emax;
  Nc = Ncore_Atom();
  Nv = Nvalence_Atom();
  lmax = lmax_Atom();
  npsps = lmax + 2;
  for (p = 0; p < npsps; ++p) {
    rcut_psp[p] = 0.0;
    fill_psp[p] = 0.0;
    n_psp[p] = 0;
    l_psp[p] = p;
  }
  emax = 0.0;
  rcmax = 0.0;
  for (i = 0; i < Nc; ++i) {
    n = n_Atom(i);
    l = l_Atom(i);
    rcut_psp[l] = peak_Atom(i);
    rcmax = ((rcmax > rcut_psp[l]) ? rcmax : rcut_psp[l]);
    fill_psp[l] = 0.0;
    n_psp[l] = ((n_psp[l] > n) ? n_psp[l] : n);
    e_psp[l] = 0.0;
  }
  if (Nv > 0) {
    rcmax = 0.0;
    emax = -100.0;
    for (i = Nc; i < (Nc + Nv); ++i) {
      n = n_Atom(i);
      l = l_Atom(i);
      rcut_psp[l] = peak_Atom(i);
      n_psp[l] = n;
      fill_psp[l] = fill_Atom(i);
      e_psp[l] = eigenvalue_Atom(i);
      emax = ((emax > e_psp[l]) ? emax : e_psp[l]);
      rcmax = ((rcmax > rcut_psp[l]) ? rcmax : rcut_psp[l]);
    }
  }
  n_psp[npsps - 1] = l_psp[npsps - 1] + 1;
  for (p = 0; p < npsps; ++p) {
    if (fill_psp[p] == 0.0) {
      rcut_psp[p] = ((rcut_psp[p] > rcmax) ? rcut_psp[p] : rcmax);
      e_psp[p] = emax;
    }
  }
  *num_states_psp = npsps;
}


x86 assembly (clang, -O0):
<Suggested_Param_Troullier>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
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    $0x0,%al
call   1070 <Ncore_Atom@plt>
mov    %eax,-0x48(%rbp)
mov    $0x0,%al
call   1060 <Nvalence_Atom@plt>
mov    %eax,-0x4c(%rbp)
mov    $0x0,%al
call   1080 <lmax_Atom@plt>
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x38(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    1228 <Suggested_Param_Troullier+0xa8>
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x34(%rbp),%edx
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11d1 <Suggested_Param_Troullier+0x51>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    132c <Suggested_Param_Troullier+0x1ac>
mov    -0x3c(%rbp),%edi
mov    $0x0,%al
call   10a0 <n_Atom@plt>
mov    %eax,-0x50(%rbp)
mov    -0x3c(%rbp),%edi
mov    $0x0,%al
call   1040 <l_Atom@plt>
mov    %eax,-0x40(%rbp)
mov    -0x3c(%rbp),%edi
mov    $0x0,%al
call   1050 <peak_Atom@plt>
cvtsi2sd %eax,%xmm0
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jbe    12a7 <Suggested_Param_Troullier+0x127>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
jmp    12b9 <Suggested_Param_Troullier+0x139>
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x40(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x50(%rbp),%eax
jle    12fa <Suggested_Param_Troullier+0x17a>
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x6c(%rbp)
jmp    1300 <Suggested_Param_Troullier+0x180>
mov    -0x50(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x6c(%rbp),%edx
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    123f <Suggested_Param_Troullier+0xbf>
cmpl   $0x0,-0x4c(%rbp)
jle    1474 <Suggested_Param_Troullier+0x2f4>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xcba(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x48(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x48(%rbp),%ecx
add    -0x4c(%rbp),%ecx
cmp    %ecx,%eax
jge    146f <Suggested_Param_Troullier+0x2ef>
mov    -0x3c(%rbp),%edi
mov    $0x0,%al
call   10a0 <n_Atom@plt>
mov    %eax,-0x50(%rbp)
mov    -0x3c(%rbp),%edi
mov    $0x0,%al
call   1040 <l_Atom@plt>
mov    %eax,-0x40(%rbp)
mov    -0x3c(%rbp),%edi
mov    $0x0,%al
call   1050 <peak_Atom@plt>
cvtsi2sd %eax,%xmm0
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%edx
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x3c(%rbp),%edi
mov    $0x0,%al
call   1030 <fill_Atom@plt>
cvtsi2sd %eax,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%edi
mov    $0x0,%al
call   1090 <eigenvalue_Atom@plt>
cvtsi2sd %eax,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x60(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jbe    1402 <Suggested_Param_Troullier+0x282>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
jmp    1414 <Suggested_Param_Troullier+0x294>
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x58(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jbe    1445 <Suggested_Param_Troullier+0x2c5>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    1457 <Suggested_Param_Troullier+0x2d7>
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1351 <Suggested_Param_Troullier+0x1d1>
jmp    1474 <Suggested_Param_Troullier+0x2f4>
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edx
add    $0x1,%edx
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    1543 <Suggested_Param_Troullier+0x3c3>
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1530 <Suggested_Param_Troullier+0x3b0>
jp     1530 <Suggested_Param_Troullier+0x3b0>
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0x58(%rbp),%xmm0
jbe    14fc <Suggested_Param_Troullier+0x37c>
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
jmp    1509 <Suggested_Param_Troullier+0x389>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x60(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1535 <Suggested_Param_Troullier+0x3b5>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    149e <Suggested_Param_Troullier+0x31e>
mov    -0x38(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Suggested_Param_Troullier>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9,%r13
mov    %r8,0x8(%rsp)
mov    %rcx,0x18(%rsp)
mov    %rdx,0x10(%rsp)
mov    %rsi,%r15
mov    %rdi,0x40(%rsp)
xor    %eax,%eax
call   1070 <Ncore_Atom@plt>
mov    %eax,0x20(%rsp)
xor    %eax,%eax
call   1060 <Nvalence_Atom@plt>
mov    %eax,0x30(%rsp)
xor    %eax,%eax
call   1080 <lmax_Atom@plt>
lea    0x2(%rax),%r9d
mov    %rax,0x38(%rsp)
cmp    $0xffffffff,%eax
jl     143a <Suggested_Param_Troullier+0x2ba>
cmp    $0x2,%r9d
mov    $0x1,%r8d
cmovge %r9d,%r8d
cmp    $0x4,%r8d
jae    12b6 <Suggested_Param_Troullier+0x136>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
test   $0x1,%r8b
je     1227 <Suggested_Param_Troullier+0xa7>
movq   $0x0,0x0(%r13,%rcx,8)
mov    0x8(%rsp),%rax
movq   $0x0,(%rax,%rcx,8)
movl   $0x0,(%r15,%rcx,4)
mov    0x10(%rsp),%rax
mov    %ecx,(%rax,%rcx,4)
or     $0x1,%rcx
add    %r8,%rdx
je     143a <Suggested_Param_Troullier+0x2ba>
mov    0x10(%rsp),%rax
lea    (%rax,%rcx,4),%rdx
add    $0x4,%rdx
lea    0x4(%r15,%rcx,4),%rsi
mov    0x8(%rsp),%rax
lea    (%rax,%rcx,8),%rdi
add    $0x8,%rdi
lea    0x8(,%rcx,8),%rbp
add    %r13,%rbp
xor    %ebx,%ebx
nopl   0x0(%rax)
movq   $0x0,-0x8(%rbp,%rbx,8)
movq   $0x0,-0x8(%rdi,%rbx,8)
movl   $0x0,-0x4(%rsi,%rbx,4)
lea    (%rcx,%rbx,1),%rax
mov    %eax,-0x4(%rdx,%rbx,4)
movq   $0x0,0x0(%rbp,%rbx,8)
movq   $0x0,(%rdi,%rbx,8)
movl   $0x0,(%rsi,%rbx,4)
add    $0x1,%eax
mov    %eax,(%rdx,%rbx,4)
lea    (%rcx,%rbx,1),%rax
add    $0x2,%rax
add    $0x2,%rbx
cmp    %r8,%rax
jne    1260 <Suggested_Param_Troullier+0xe0>
jmp    143a <Suggested_Param_Troullier+0x2ba>
lea    0x0(,%r8,8),%rcx
add    %r13,%rcx
mov    0x8(%rsp),%rbp
lea    0x0(,%r8,8),%rdx
add    %rbp,%rdx
lea    (%r15,%r8,4),%rsi
cmp    %r13,%rdx
seta   %dil
mov    0x10(%rsp),%rax
lea    (%rax,%r8,4),%rdx
cmp    %rbp,%rcx
seta   %bl
cmp    %r15,%rdx
seta   %dl
cmp    %rax,%rsi
seta   %sil
xor    %ecx,%ecx
test   %bl,%dil
jne    11f1 <Suggested_Param_Troullier+0x71>
and    %sil,%dl
jne    11f1 <Suggested_Param_Troullier+0x71>
mov    %r8d,%ecx
and    $0x7ffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     16a9 <Suggested_Param_Troullier+0x529>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
movdqa 0xcc4(%rip),%xmm0
xor    %edx,%edx
movdqa 0xcca(%rip),%xmm1
xorpd  %xmm2,%xmm2
movdqa 0xcce(%rip),%xmm3
movdqa 0xcd6(%rip),%xmm4
movdqa 0xcde(%rip),%xmm5
mov    0x10(%rsp),%rax
mov    0x8(%rsp),%rbp
nopl   0x0(%rax)
movdqa %xmm0,%xmm6
paddd  %xmm1,%xmm6
movupd %xmm2,0x0(%r13,%rdx,8)
movupd %xmm2,0x10(%r13,%rdx,8)
movupd %xmm2,0x0(%rbp,%rdx,8)
movupd %xmm2,0x10(%rbp,%rdx,8)
movupd %xmm2,(%r15,%rdx,4)
movdqa %xmm0,%xmm7
punpcklqdq %xmm6,%xmm7
movdqu %xmm7,(%rax,%rdx,4)
movdqa %xmm0,%xmm6
paddd  %xmm3,%xmm6
movdqa %xmm0,%xmm7
paddd  %xmm4,%xmm7
punpcklqdq %xmm7,%xmm6
movupd %xmm2,0x20(%r13,%rdx,8)
movupd %xmm2,0x30(%r13,%rdx,8)
movupd %xmm2,0x20(%rbp,%rdx,8)
movupd %xmm2,0x30(%rbp,%rdx,8)
movupd %xmm2,0x10(%r15,%rdx,4)
movdqu %xmm6,0x10(%rax,%rdx,4)
add    $0x8,%rdx
paddd  %xmm5,%xmm0
add    $0xfffffffffffffffe,%rdi
jne    1370 <Suggested_Param_Troullier+0x1f0>
test   $0x1,%sil
je     1431 <Suggested_Param_Troullier+0x2b1>
movdqa 0xc14(%rip),%xmm1
paddd  %xmm0,%xmm1
xorpd  %xmm2,%xmm2
movupd %xmm2,0x0(%r13,%rdx,8)
movupd %xmm2,0x10(%r13,%rdx,8)
mov    0x8(%rsp),%rsi
movupd %xmm2,(%rsi,%rdx,8)
movupd %xmm2,0x10(%rsi,%rdx,8)
movupd %xmm2,(%r15,%rdx,4)
punpcklqdq %xmm1,%xmm0
movdqu %xmm0,(%rax,%rdx,4)
cmp    %r8,%rcx
jne    11f1 <Suggested_Param_Troullier+0x71>
mov    %r9d,0x34(%rsp)
pxor   %xmm3,%xmm3
mov    0x20(%rsp),%edx
test   %edx,%edx
jle    14d6 <Suggested_Param_Troullier+0x356>
pxor   %xmm3,%xmm3
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
movq   %xmm3,0x28(%rsp)
mov    %ebp,%edi
xor    %eax,%eax
call   10a0 <n_Atom@plt>
mov    %eax,%r14d
mov    %ebp,%edi
xor    %eax,%eax
call   1040 <l_Atom@plt>
mov    %eax,%r12d
mov    %ebp,%edi
xor    %eax,%eax
call   1050 <peak_Atom@plt>
movsd  0x28(%rsp),%xmm3
mov    0x20(%rsp),%edx
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movslq %r12d,%rax
mov    0x8(%rsp),%rcx
movsd  %xmm0,0x0(%r13,%rax,8)
maxsd  %xmm0,%xmm3
movq   $0x0,(%rcx,%rax,8)
mov    (%r15,%rax,4),%ecx
cmp    %r14d,%ecx
cmovg  %ecx,%r14d
mov    %r14d,(%r15,%rax,4)
mov    0x18(%rsp),%rcx
movq   $0x0,(%rcx,%rax,8)
add    $0x1,%ebp
cmp    %ebp,%edx
jne    1460 <Suggested_Param_Troullier+0x2e0>
mov    0x30(%rsp),%r12d
test   %r12d,%r12d
xorpd  %xmm2,%xmm2
jle    15a1 <Suggested_Param_Troullier+0x421>
add    %edx,%r12d
pxor   %xmm3,%xmm3
movsd  0xb59(%rip),%xmm2
nopw   0x0(%rax,%rax,1)
movq   %xmm3,0x28(%rsp)
movsd  %xmm2,0x20(%rsp)
mov    %edx,%r14d
mov    %edx,%edi
xor    %eax,%eax
call   10a0 <n_Atom@plt>
mov    %eax,%ebp
mov    %r14d,%edi
xor    %eax,%eax
call   1040 <l_Atom@plt>
mov    %eax,%ebx
mov    %r14d,%edi
xor    %eax,%eax
call   1050 <peak_Atom@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movslq %ebx,%rbx
movsd  %xmm0,0x0(%r13,%rbx,8)
mov    %ebp,(%r15,%rbx,4)
mov    %r14d,%edi
xor    %eax,%eax
call   1030 <fill_Atom@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0x8(%rsp),%rax
movsd  %xmm0,(%rax,%rbx,8)
mov    %r14d,%edi
xor    %eax,%eax
call   1090 <eigenvalue_Atom@plt>
movsd  0x28(%rsp),%xmm3
movsd  0x20(%rsp),%xmm2
mov    %r14d,%edx
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0x18(%rsp),%rax
movsd  %xmm0,(%rax,%rbx,8)
maxsd  %xmm0,%xmm2
maxsd  0x0(%r13,%rbx,8),%xmm3
add    $0x1,%edx
cmp    %r12d,%edx
jl     1500 <Suggested_Param_Troullier+0x380>
mov    0x38(%rsp),%rdx
movslq %edx,%rax
mov    0x10(%rsp),%rcx
mov    0x4(%rcx,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,0x4(%r15,%rax,4)
cmp    $0xffffffff,%edx
mov    0x34(%rsp),%esi
jl     160f <Suggested_Param_Troullier+0x48f>
cmp    $0x2,%esi
mov    $0x1,%ecx
cmovge %esi,%ecx
cmp    $0x7ffffffd,%edx
jbe    1625 <Suggested_Param_Troullier+0x4a5>
xor    %eax,%eax
test   $0x1,%cl
je     160f <Suggested_Param_Troullier+0x48f>
mov    0x8(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
pxor   %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    160f <Suggested_Param_Troullier+0x48f>
jp     160f <Suggested_Param_Troullier+0x48f>
movsd  0x0(%r13,%rax,8),%xmm0
maxsd  %xmm3,%xmm0
movsd  %xmm0,0x0(%r13,%rax,8)
mov    0x18(%rsp),%rcx
movsd  %xmm2,(%rcx,%rax,8)
mov    0x40(%rsp),%rax
mov    %esi,(%rax)
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %ecx,%edx
and    $0x7ffffffe,%edx
xor    %eax,%eax
pxor   %xmm0,%xmm0
jmp    1649 <Suggested_Param_Troullier+0x4c9>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x2,%rax
cmp    %rax,%rdx
je     15d8 <Suggested_Param_Troullier+0x458>
mov    0x8(%rsp),%rdi
movsd  (%rdi,%rax,8),%xmm1
ucomisd %xmm0,%xmm1
jne    1677 <Suggested_Param_Troullier+0x4f7>
jp     1677 <Suggested_Param_Troullier+0x4f7>
movsd  0x0(%r13,%rax,8),%xmm1
maxsd  %xmm3,%xmm1
movsd  %xmm1,0x0(%r13,%rax,8)
mov    0x18(%rsp),%rdi
movsd  %xmm2,(%rdi,%rax,8)
mov    0x8(%rsp),%rdi
movsd  0x8(%rdi,%rax,8),%xmm1
ucomisd %xmm0,%xmm1
jne    1640 <Suggested_Param_Troullier+0x4c0>
jp     1640 <Suggested_Param_Troullier+0x4c0>
movsd  0x8(%r13,%rax,8),%xmm1
maxsd  %xmm3,%xmm1
movsd  %xmm1,0x8(%r13,%rax,8)
mov    0x18(%rsp),%rdi
movsd  %xmm2,0x8(%rdi,%rax,8)
jmp    1640 <Suggested_Param_Troullier+0x4c0>
movdqa 0x94f(%rip),%xmm0
xor    %edx,%edx
mov    0x10(%rsp),%rax
test   $0x1,%sil
jne    13f4 <Suggested_Param_Troullier+0x274>
jmp    1431 <Suggested_Param_Troullier+0x2b1>

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

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