void legini(int ntr, int nlat, double *poli, double *pold, double *rcoslat) {
  int waves, dimsp, dimpnm;
  int jgl, jm, jn, is;
  int isp, latn, lats;
  double *gmu, *gwt, *pnm, *work;
  waves = ntr + 1;
  dimsp = (ntr + 1) * (ntr + 2);
  dimpnm = (ntr + 1) * (ntr + 4) / 2;
  gmu = (double *)Malloc(
      __func__,
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/specspace.c",
      129, (nlat * sizeof(double)));
  gwt = (double *)Malloc(
      __func__,
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/specspace.c",
      130, (nlat * sizeof(double)));
  pnm = (double *)Malloc(
      __func__,
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/specspace.c",
      131, (dimpnm * sizeof(double)));
  work = (double *)Malloc(
      __func__,
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/specspace.c",
      132, (3 * waves * sizeof(double)));
  gaussaw(gmu, gwt, nlat);
  for (jgl = 0; jgl < nlat; jgl++)
    gwt[jgl] *= 0.5;
  for (jgl = 0; jgl < nlat; jgl++)
    rcoslat[jgl] = 1.0 / sqrt(1.0 - gmu[jgl] * gmu[jgl]);
  for (jgl = 0; jgl < nlat / 2; jgl++) {
    jspleg1(pnm, gmu[jgl], ntr, work);
    latn = jgl;
    isp = 0;
    for (jm = 0; jm < waves; jm++) {
      for (jn = 0; jn < waves - jm; jn++) {
        is = (jn + 1) % 2 * 2 - 1;
        lats = latn - jgl + nlat - jgl - 1;
        poli[latn] = pnm[isp];
        pold[latn] = pnm[isp] * gwt[jgl];
        poli[lats] = pnm[isp] * is;
        pold[lats] = pnm[isp] * gwt[jgl] * is;
        latn += nlat;
        isp++;
      }
      isp++;
    }
  }
  Free(__func__,
       "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/specspace.c",
       169, (work));
  Free(__func__,
       "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/specspace.c",
       170, (pnm));
  Free(__func__,
       "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/specspace.c",
       171, (gwt));
  Free(__func__,
       "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/specspace.c",
       172, (gmu));
}


x86 assembly (clang, -O0):
<legini>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    -0x4(%rbp),%ecx
add    $0x2,%ecx
imul   %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    -0x4(%rbp),%ecx
add    $0x4,%ecx
imul   %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x2c(%rbp)
movslq -0x8(%rbp),%rcx
shl    $0x3,%rcx
lea    0xe62(%rip),%rdi
lea    0xe62(%rip),%rsi
mov    $0x81,%edx
mov    $0x0,%al
call   1030 <Malloc@plt>
cltq
mov    %rax,-0x50(%rbp)
movslq -0x8(%rbp),%rcx
shl    $0x3,%rcx
lea    0xe3a(%rip),%rdi
lea    0xe3a(%rip),%rsi
mov    $0x82,%edx
mov    $0x0,%al
call   1030 <Malloc@plt>
cltq
mov    %rax,-0x58(%rbp)
movslq -0x2c(%rbp),%rcx
shl    $0x3,%rcx
lea    0xe12(%rip),%rdi
lea    0xe12(%rip),%rsi
mov    $0x83,%edx
mov    $0x0,%al
call   1030 <Malloc@plt>
cltq
mov    %rax,-0x60(%rbp)
imul   $0x3,-0x24(%rbp),%eax
movslq %eax,%rcx
shl    $0x3,%rcx
lea    0xde7(%rip),%rdi
lea    0xde7(%rip),%rsi
mov    $0x84,%edx
mov    $0x0,%al
call   1030 <Malloc@plt>
cltq
mov    %rax,-0x68(%rbp)
mov    -0x50(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0x8(%rbp),%edx
mov    $0x0,%al
call   1050 <gaussaw@plt>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    128f <legini+0x13f>
mov    -0x58(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  0xd91(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    125b <legini+0x10b>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1312 <legini+0x1c2>
mov    -0x50(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xd21(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xd0d(%rip),%xmm0
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1296 <legini+0x146>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x6c(%rbp),%eax
cmp    %ecx,%eax
jge    1497 <legini+0x347>
mov    -0x60(%rbp),%rdi
mov    -0x50(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x4(%rbp),%esi
mov    -0x68(%rbp),%rdx
mov    $0x1,%al
call   1040 <jspleg1@plt>
mov    -0x30(%rbp),%eax
mov    %eax,-0x44(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1484 <legini+0x334>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    -0x24(%rbp),%ecx
sub    -0x34(%rbp),%ecx
cmp    %ecx,%eax
jge    146d <legini+0x31d>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
shl    $0x1,%eax
sub    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x44(%rbp),%eax
sub    -0x30(%rbp),%eax
add    -0x8(%rbp),%eax
sub    -0x30(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x48(%rbp)
mov    -0x60(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x30(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
cvtsi2sdl -0x3c(%rbp),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x30(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
cvtsi2sdl -0x3c(%rbp),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    137d <legini+0x22d>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    136a <legini+0x21a>
jmp    1489 <legini+0x339>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1319 <legini+0x1c9>
mov    -0x68(%rbp),%rcx
lea    0xb6e(%rip),%rdi
lea    0xb6e(%rip),%rsi
mov    $0xa9,%edx
mov    $0x0,%al
call   1060 <Free@plt>
mov    -0x60(%rbp),%rcx
lea    0xb50(%rip),%rdi
lea    0xb50(%rip),%rsi
mov    $0xaa,%edx
mov    $0x0,%al
call   1060 <Free@plt>
mov    -0x58(%rbp),%rcx
lea    0xb32(%rip),%rdi
lea    0xb32(%rip),%rsi
mov    $0xab,%edx
mov    $0x0,%al
call   1060 <Free@plt>
mov    -0x50(%rbp),%rcx
lea    0xb14(%rip),%rdi
lea    0xb14(%rip),%rsi
mov    $0xac,%edx
mov    $0x0,%al
call   1060 <Free@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<legini>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r8,0x20(%rsp)
mov    %rcx,0x50(%rsp)
mov    %rdx,%r12
mov    %edi,%r13d
lea    0x1(%r13),%r15d
lea    0x4(%r13),%eax
imul   %r15d,%eax
mov    %eax,%ebx
shr    $0x1f,%ebx
add    %eax,%ebx
sar    %ebx
mov    %rsi,0x10(%rsp)
movslq %esi,%rax
mov    %rax,0x18(%rsp)
lea    0x0(,%rax,8),%rbp
lea    0xe81(%rip),%rdi
lea    0xe81(%rip),%rsi
mov    $0x81,%edx
mov    %rbp,%rcx
xor    %eax,%eax
call   1030 <Malloc@plt>
movslq %eax,%r14
lea    0xe61(%rip),%rdi
lea    0xe61(%rip),%rsi
mov    $0x82,%edx
mov    %rbp,%rcx
mov    %r15,%rbp
xor    %eax,%eax
call   1030 <Malloc@plt>
movslq %eax,%r15
movslq %ebx,%rcx
mov    %r13,%rbx
shl    $0x3,%rcx
lea    0xe34(%rip),%rdi
lea    0xe34(%rip),%rsi
mov    $0x83,%edx
xor    %eax,%eax
call   1030 <Malloc@plt>
cltq
mov    %rax,0x28(%rsp)
lea    0x0(%rbp,%rbp,2),%eax
movslq %eax,%rcx
shl    $0x3,%rcx
lea    0xe08(%rip),%rdi
lea    0xe08(%rip),%rsi
mov    $0x84,%edx
xor    %eax,%eax
call   1030 <Malloc@plt>
cltq
mov    %rax,0x30(%rsp)
mov    %r14,0x8(%rsp)
mov    %r14,%rdi
mov    %r15,%rsi
mov    0x18(%rsp),%r14
mov    %r14d,%edx
xor    %eax,%eax
call   1050 <gaussaw@plt>
test   %r14d,%r14d
jle    15e7 <legini+0x497>
mov    0x10(%rsp),%rdi
mov    %edi,%r13d
cmp    $0x4,%edi
jae    1269 <legini+0x119>
xor    %eax,%eax
jmp    1324 <legini+0x1d4>
mov    %r13d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rcx
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rcx,%rcx
je     146f <legini+0x31f>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %ecx,%ecx
movapd 0xd68(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movupd (%r15,%rcx,8),%xmm1
movupd 0x10(%r15,%rcx,8),%xmm2
movupd 0x20(%r15,%rcx,8),%xmm3
movupd 0x30(%r15,%rcx,8),%xmm4
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
movupd %xmm1,(%r15,%rcx,8)
movupd %xmm2,0x10(%r15,%rcx,8)
mulpd  %xmm0,%xmm3
mulpd  %xmm0,%xmm4
movupd %xmm3,0x20(%r15,%rcx,8)
movupd %xmm4,0x30(%r15,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rsi
jne    12a0 <legini+0x150>
test   $0x1,%dl
je     131f <legini+0x1cf>
movupd (%r15,%rcx,8),%xmm0
movupd 0x10(%r15,%rcx,8),%xmm1
movapd 0xcf6(%rip),%xmm2
mulpd  %xmm2,%xmm0
mulpd  %xmm2,%xmm1
movupd %xmm0,(%r15,%rcx,8)
movupd %xmm1,0x10(%r15,%rcx,8)
cmp    %r13,%rax
je     1349 <legini+0x1f9>
movsd  0xce4(%rip),%xmm0
nopl   0x0(%rax)
movsd  (%r15,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%r15,%rax,8)
add    $0x1,%rax
cmp    %rax,%r13
jne    1330 <legini+0x1e0>
test   %edi,%edi
jle    15e7 <legini+0x497>
cmpl   $0x1,0x10(%rsp)
mov    %r13,0x18(%rsp)
jne    13a1 <legini+0x251>
xor    %r14d,%r14d
testb  $0x1,0x18(%rsp)
je     149b <legini+0x34b>
mov    0x8(%rsp),%rax
movsd  (%rax,%r14,8),%xmm1
mulsd  %xmm1,%xmm1
movsd  0xc96(%rip),%xmm2
movapd %xmm2,%xmm0
subsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     147f <legini+0x32f>
sqrtsd %xmm0,%xmm0
jmp    148c <legini+0x33c>
and    $0xfffffffe,%r13d
xor    %r14d,%r14d
movsd  0xc68(%rip),%xmm2
xorpd  %xmm3,%xmm3
jmp    13f2 <legini+0x2a2>
cs nopw 0x0(%rax,%rax,1)
call   1070 <sqrt@plt>
xorpd  %xmm3,%xmm3
movsd  0xc47(%rip),%xmm2
movapd %xmm2,%xmm1
divsd  %xmm0,%xmm1
mov    0x20(%rsp),%rax
movsd  %xmm1,0x8(%rax,%r14,8)
add    $0x2,%r14
cmp    %r14,%r13
je     1360 <legini+0x210>
mov    0x8(%rsp),%rax
movsd  (%rax,%r14,8),%xmm1
mulsd  %xmm1,%xmm1
movapd %xmm2,%xmm0
subsd  %xmm1,%xmm0
ucomisd %xmm3,%xmm0
jb     1420 <legini+0x2d0>
sqrtsd %xmm0,%xmm0
jmp    1431 <legini+0x2e1>
cs nopw 0x0(%rax,%rax,1)
nop
call   1070 <sqrt@plt>
xorpd  %xmm3,%xmm3
movsd  0xbe7(%rip),%xmm2
movapd %xmm2,%xmm1
divsd  %xmm0,%xmm1
mov    0x20(%rsp),%rax
movsd  %xmm1,(%rax,%r14,8)
mov    0x8(%rsp),%rax
movsd  0x8(%rax,%r14,8),%xmm1
mulsd  %xmm1,%xmm1
movapd %xmm2,%xmm0
subsd  %xmm1,%xmm0
ucomisd %xmm3,%xmm0
jb     13c0 <legini+0x270>
sqrtsd %xmm0,%xmm0
jmp    13d1 <legini+0x281>
xor    %ecx,%ecx
test   $0x1,%dl
jne    12f5 <legini+0x1a5>
jmp    131f <legini+0x1cf>
call   1070 <sqrt@plt>
movsd  0xb8c(%rip),%xmm2
divsd  %xmm0,%xmm2
mov    0x20(%rsp),%rax
movsd  %xmm2,(%rax,%r14,8)
cmpl   $0x2,0x10(%rsp)
jl     15e7 <legini+0x497>
mov    0x10(%rsp),%rax
mov    %eax,%ecx
shr    %ecx
mov    %rcx,0x38(%rsp)
lea    -0x1(%rax),%r14d
xor    %r13d,%r13d
mov    %rbx,0x48(%rsp)
mov    %rbp,0x40(%rsp)
jmp    14e3 <legini+0x393>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r13
add    $0xfffffffe,%r14d
cmp    0x38(%rsp),%r13
je     15e7 <legini+0x497>
mov    0x8(%rsp),%rax
movsd  (%rax,%r13,8),%xmm0
mov    0x28(%rsp),%rdi
mov    %ebx,%esi
mov    0x30(%rsp),%rdx
mov    $0x1,%al
call   1040 <jspleg1@plt>
test   %ebx,%ebx
js     14d0 <legini+0x380>
xor    %ecx,%ecx
mov    %ebp,%r10d
xor    %edx,%edx
mov    %r13d,%esi
jmp    1530 <legini+0x3e0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%edx
lea    0x1(%rcx),%eax
add    $0xffffffff,%r10d
cmp    %ebx,%ecx
mov    %eax,%ecx
je     14d0 <legini+0x380>
cmp    %ecx,%ebp
jle    1520 <legini+0x3d0>
mov    %rcx,0x20(%rsp)
mov    %edx,0x18(%rsp)
movslq %edx,%rcx
mov    0x28(%rsp),%rax
lea    (%rax,%rcx,8),%rcx
xor    %edi,%edi
xor    %edx,%edx
mov    0x50(%rsp),%r8
mov    0x10(%rsp),%r9
nopw   0x0(%rax,%rax,1)
lea    0x2(%rdx),%r11
mov    %r11d,%ebp
and    $0x2,%ebp
add    $0xffffffff,%ebp
lea    (%r14,%rsi,1),%eax
movslq %esi,%rbx
add    %r9d,%esi
movsd  (%rcx,%rdx,4),%xmm0
movsd  %xmm0,(%r12,%rbx,8)
movsd  (%rcx,%rdx,4),%xmm0
mulsd  (%r15,%r13,8),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sd %ebp,%xmm1
movsd  %xmm0,(%r8,%rbx,8)
movsd  (%rcx,%rdx,4),%xmm0
mulsd  %xmm1,%xmm0
cltq
movsd  %xmm0,(%r12,%rax,8)
movsd  (%rcx,%rdx,4),%xmm0
mulsd  (%r15,%r13,8),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,(%r8,%rax,8)
add    $0xffffffff,%edi
mov    %r10d,%eax
mov    %r11,%rdx
add    %edi,%eax
jne    1560 <legini+0x410>
mov    0x18(%rsp),%edx
sub    %edi,%edx
mov    0x48(%rsp),%rbx
mov    0x40(%rsp),%rbp
mov    0x20(%rsp),%rcx
jmp    1520 <legini+0x3d0>
lea    0xa32(%rip),%rbx
lea    0xa32(%rip),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xa9,%edx
mov    0x30(%rsp),%rcx
xor    %eax,%eax
call   1060 <Free@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xaa,%edx
mov    0x28(%rsp),%rcx
xor    %eax,%eax
call   1060 <Free@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xab,%edx
mov    %r15,%rcx
xor    %eax,%eax
call   1060 <Free@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xac,%edx
mov    0x8(%rsp),%rcx
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <Free@plt>

LLVM IR (-O0):
@__func__.legini = [7 x i8] c"legini\00"
@.str = [133 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/specspace.c\00"
define void @legini(i32 %0, i32 %1, double* %2, double* %3, double* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32
%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*
%23 = alloca double*
%24 = alloca double*
store i32 %0, i32* %6
store i32 %1, i32* %7
store double* %2, double** %8
store double* %3, double** %9
store double* %4, double** %10
%25 = load i32, i32* %6
%26 = add nsw i32 %25, 1
store i32 %26, i32* %11
%27 = load i32, i32* %6
%28 = add nsw i32 %27, 1
%29 = load i32, i32* %6
%30 = add nsw i32 %29, 2
%31 = mul nsw i32 %28, %30
store i32 %31, i32* %12
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
%34 = load i32, i32* %6
%35 = add nsw i32 %34, 4
%36 = mul nsw i32 %33, %35
%37 = sdiv i32 %36, 2
store i32 %37, i32* %13
%38 = load i32, i32* %7
%39 = sext i32 %38 to i64
%40 = mul i64 %39, 8
%41 = call i32 (i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @Malloc to i32 (i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @__func__.legini, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 129, i64 %40)
%42 = sext i32 %41 to i64
%43 = inttoptr i64 %42 to double*
store double* %43, double** %21
%44 = load i32, i32* %7
%45 = sext i32 %44 to i64
%46 = mul i64 %45, 8
%47 = call i32 (i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @Malloc to i32 (i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @__func__.legini, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 130, i64 %46)
%48 = sext i32 %47 to i64
%49 = inttoptr i64 %48 to double*
store double* %49, double** %22
%50 = load i32, i32* %13
%51 = sext i32 %50 to i64
%52 = mul i64 %51, 8
%53 = call i32 (i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @Malloc to i32 (i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @__func__.legini, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 131, i64 %52)
%54 = sext i32 %53 to i64
%55 = inttoptr i64 %54 to double*
store double* %55, double** %23
%56 = load i32, i32* %11
%57 = mul nsw i32 3, %56
%58 = sext i32 %57 to i64
%59 = mul i64 %58, 8
%60 = call i32 (i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @Malloc to i32 (i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @__func__.legini, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 132, i64 %59)
%61 = sext i32 %60 to i64
%62 = inttoptr i64 %61 to double*
store double* %62, double** %24
%63 = load double*, double** %21
%64 = load double*, double** %22
%65 = load i32, i32* %7
%66 = call i32 (double*, double*, i32, ...) bitcast (i32 (...)* @gaussaw to i32 (double*, double*, i32, ...)*)(double* %63, double* %64, i32 %65)
store i32 0, i32* %14
br label %67
67: ; preds = %78, %5
%68 = load i32, i32* %14
%69 = load i32, i32* %7
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %81
71: ; preds = %67
%72 = load double*, double** %22
%73 = load i32, i32* %14
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %72, i64 %74
%76 = load double, double* %75
%77 = fmul double %76, 5.000000e-01
store double %77, double* %75
br label %78
78: ; preds = %71
%79 = load i32, i32* %14
%80 = add nsw i32 %79, 1
store i32 %80, i32* %14
br label %67
81: ; preds = %67
store i32 0, i32* %14
br label %82
82: ; preds = %105, %81
%83 = load i32, i32* %14
%84 = load i32, i32* %7
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %108
86: ; preds = %82
%87 = load double*, double** %21
%88 = load i32, i32* %14
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %87, i64 %89
%91 = load double, double* %90
%92 = load double*, double** %21
%93 = load i32, i32* %14
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %92, i64 %94
%96 = load double, double* %95
%97 = fneg double %91
%98 = call double @llvm.fmuladd.f64(double %97, double %96, double 1.000000e+00)
%99 = call double @sqrt(double %98)
%100 = fdiv double 1.000000e+00, %99
%101 = load double*, double** %10
%102 = load i32, i32* %14
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double, double* %101, i64 %103
store double %100, double* %104
br label %105
105: ; preds = %86
%106 = load i32, i32* %14
%107 = add nsw i32 %106, 1
store i32 %107, i32* %14
br label %82
108: ; preds = %82
store i32 0, i32* %14
br label %109
109: ; preds = %219, %108
%110 = load i32, i32* %14
%111 = load i32, i32* %7
%112 = sdiv i32 %111, 2
%113 = icmp slt i32 %110, %112
br i1 %113, label %114, label %222
114: ; preds = %109
%115 = load double*, double** %23
%116 = load double*, double** %21
%117 = load i32, i32* %14
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds double, double* %116, i64 %118
%120 = load double, double* %119
%121 = load i32, i32* %6
%122 = load double*, double** %24
%123 = call i32 (double*, double, i32, double*, ...) bitcast (i32 (...)* @jspleg1 to i32 (double*, double, i32, double*, ...)*)(double* %115, double %120, i32 %121, double* %122)
%124 = load i32, i32* %14
store i32 %124, i32* %19
store i32 0, i32* %18
store i32 0, i32* %15
br label %125
125: ; preds = %215, %114
%126 = load i32, i32* %15
%127 = load i32, i32* %11
%128 = icmp slt i32 %126, %127
br i1 %128, label %129, label %218
129: ; preds = %125
store i32 0, i32* %16
br label %130
130: ; preds = %209, %129
%131 = load i32, i32* %16
%132 = load i32, i32* %11
%133 = load i32, i32* %15
%134 = sub nsw i32 %132, %133
%135 = icmp slt i32 %131, %134
br i1 %135, label %136, label %212
136: ; preds = %130
%137 = load i32, i32* %16
%138 = add nsw i32 %137, 1
%139 = srem i32 %138, 2
%140 = mul nsw i32 %139, 2
%141 = sub nsw i32 %140, 1
store i32 %141, i32* %17
%142 = load i32, i32* %19
%143 = load i32, i32* %14
%144 = sub nsw i32 %142, %143
%145 = load i32, i32* %7
%146 = add nsw i32 %144, %145
%147 = load i32, i32* %14
%148 = sub nsw i32 %146, %147
%149 = sub nsw i32 %148, 1
store i32 %149, i32* %20
%150 = load double*, double** %23
%151 = load i32, i32* %18
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds double, double* %150, i64 %152
%154 = load double, double* %153
%155 = load double*, double** %8
%156 = load i32, i32* %19
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds double, double* %155, i64 %157
store double %154, double* %158
%159 = load double*, double** %23
%160 = load i32, i32* %18
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds double, double* %159, i64 %161
%163 = load double, double* %162
%164 = load double*, double** %22
%165 = load i32, i32* %14
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds double, double* %164, i64 %166
%168 = load double, double* %167
%169 = fmul double %163, %168
%170 = load double*, double** %9
%171 = load i32, i32* %19
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds double, double* %170, i64 %172
store double %169, double* %173
%174 = load double*, double** %23
%175 = load i32, i32* %18
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds double, double* %174, i64 %176
%178 = load double, double* %177
%179 = load i32, i32* %17
%180 = sitofp i32 %179 to double
%181 = fmul double %178, %180
%182 = load double*, double** %8
%183 = load i32, i32* %20
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds double, double* %182, i64 %184
store double %181, double* %185
%186 = load double*, double** %23
%187 = load i32, i32* %18
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds double, double* %186, i64 %188
%190 = load double, double* %189
%191 = load double*, double** %22
%192 = load i32, i32* %14
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds double, double* %191, i64 %193
%195 = load double, double* %194
%196 = fmul double %190, %195
%197 = load i32, i32* %17
%198 = sitofp i32 %197 to double
%199 = fmul double %196, %198
%200 = load double*, double** %9
%201 = load i32, i32* %20
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds double, double* %200, i64 %202
store double %199, double* %203
%204 = load i32, i32* %7
%205 = load i32, i32* %19
%206 = add nsw i32 %205, %204
store i32 %206, i32* %19
%207 = load i32, i32* %18
%208 = add nsw i32 %207, 1
store i32 %208, i32* %18
br label %209
209: ; preds = %136
%210 = load i32, i32* %16
%211 = add nsw i32 %210, 1
store i32 %211, i32* %16
br label %130
212: ; preds = %130
%213 = load i32, i32* %18
%214 = add nsw i32 %213, 1
store i32 %214, i32* %18
br label %215
215: ; preds = %212
%216 = load i32, i32* %15
%217 = add nsw i32 %216, 1
store i32 %217, i32* %15
br label %125
218: ; preds = %125
br label %219
219: ; preds = %218
%220 = load i32, i32* %14
%221 = add nsw i32 %220, 1
store i32 %221, i32* %14
br label %109
222: ; preds = %109
%223 = load double*, double** %24
%224 = call i32 (i8*, i8*, i32, double*, ...) bitcast (i32 (...)* @Free to i32 (i8*, i8*, i32, double*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @__func__.legini, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 169, double* %223)
%225 = load double*, double** %23
%226 = call i32 (i8*, i8*, i32, double*, ...) bitcast (i32 (...)* @Free to i32 (i8*, i8*, i32, double*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @__func__.legini, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 170, double* %225)
%227 = load double*, double** %22
%228 = call i32 (i8*, i8*, i32, double*, ...) bitcast (i32 (...)* @Free to i32 (i8*, i8*, i32, double*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @__func__.legini, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 171, double* %227)
%229 = load double*, double** %21
%230 = call i32 (i8*, i8*, i32, double*, ...) bitcast (i32 (...)* @Free to i32 (i8*, i8*, i32, double*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @__func__.legini, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 172, double* %229)
ret void
}

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