int qu2reg_subarea(int gridsize, int np, double xfirst, double xlast,
                   double *array, int *rowlon, int ny, double missval,
                   int *iret, int lmiss, int lperio, int lveggy) {
  int nx = 0;
  long ilon_firstx;
  long ilon_first, ilon_last;
  int i, j;
  long row_count;
  int rlon, nwork = 0;
  int np4 = np * 4;
  int size = 0;
  int wlen;
  double *work, **pwork;
  int ii;
  double *parray;
  if (np <= 0)
    cdoAbort("Number of values between pole and equator missing!");
  grib_get_reduced_row(np4, xfirst, xlast, &row_count, &ilon_firstx,
                       &ilon_last);
  nx = row_count;
  for (j = 0; j < ny; ++j)
    nwork += rowlon[j];
  pwork = (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/grid.c",
      729, (ny * 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/grid.c",
      730, (ny * np4 * sizeof(double)));
  wlen = 0;
  pwork[0] = work;
  for (j = 1; j < ny; ++j) {
    wlen += rowlon[j - 1];
    pwork[j] = work + wlen;
  }
  for (j = 0; j < ny; ++j) {
    rlon = rowlon[j];
    for (i = 0; i < rlon; ++i)
      pwork[j][i] = missval;
  }
  parray = array;
  for (j = 0; j < ny; ++j) {
    rlon = rowlon[j];
    row_count = 0;
    grib_get_reduced_row(rlon, xfirst, xlast, &row_count, &ilon_first,
                         &ilon_last);
    for (i = ilon_first; i < (ilon_first + row_count); ++i) {
      ii = i;
      if (ii >= rlon)
        ii -= rlon;
      pwork[j][ii] = *parray;
      parray++;
    }
    size += row_count;
  }
  if (gridsize != size)
    cdoAbort("gridsize1 inconsistent!");
  (void)qu2reg3_double(work, rowlon, ny, np4, missval, iret, lmiss, lperio,
                       lveggy);
  wlen = 0;
  pwork[0] = work;
  for (j = 1; j < ny; ++j) {
    wlen += np4;
    pwork[j] = work + wlen;
  }
  parray = array;
  for (j = 0; j < ny; ++j) {
    for (i = ilon_firstx; i < (ilon_firstx + nx); ++i) {
      ii = i;
      if (ii >= np4)
        ii -= np4;
      *parray = pwork[j][ii];
      parray++;
    }
  }
  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/grid.c",
       789, (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/grid.c",
       790, (pwork));
  return (nx);
}


x86 assembly (clang, -O0):
<qu2reg_subarea>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
movsd  %xmm2,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x78(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0x7c(%rbp)
movl   $0x0,-0x80(%rbp)
cmpl   $0x0,-0x8(%rbp)
jg     11bf <qu2reg_subarea+0x6f>
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1060 <cdoAbort@plt>
mov    -0x7c(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    -0x70(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    -0x60(%rbp),%rcx
mov    $0x2,%al
call   1040 <grib_get_reduced_row@plt>
mov    -0x70(%rbp),%rax
mov    %eax,-0x44(%rbp)
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1218 <qu2reg_subarea+0xc8>
mov    -0x28(%rbp),%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    -0x78(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    11ed <qu2reg_subarea+0x9d>
movslq -0x2c(%rbp),%rcx
shl    $0x3,%rcx
lea    0xe0c(%rip),%rdi
lea    0xe14(%rip),%rsi
mov    $0x2d9,%edx
mov    $0x0,%al
call   1030 <Malloc@plt>
cltq
mov    %rax,-0x98(%rbp)
mov    -0x2c(%rbp),%eax
imul   -0x7c(%rbp),%eax
movslq %eax,%rcx
shl    $0x3,%rcx
lea    0xddb(%rip),%rdi
lea    0xde3(%rip),%rsi
mov    $0x2da,%edx
mov    $0x0,%al
call   1030 <Malloc@plt>
cltq
mov    %rax,-0x90(%rbp)
movl   $0x0,-0x84(%rbp)
mov    -0x90(%rbp),%rcx
mov    -0x98(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x1,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    12f0 <qu2reg_subarea+0x1a0>
mov    -0x28(%rbp),%rax
mov    -0x68(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
add    -0x84(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x90(%rbp),%rdx
movslq -0x84(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
mov    -0x98(%rbp),%rax
movslq -0x68(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    1296 <qu2reg_subarea+0x146>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1362 <qu2reg_subarea+0x212>
mov    -0x28(%rbp),%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x74(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x74(%rbp),%eax
jge    134f <qu2reg_subarea+0x1ff>
movsd  -0x38(%rbp),%xmm0
mov    -0x98(%rbp),%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1318 <qu2reg_subarea+0x1c8>
jmp    1354 <qu2reg_subarea+0x204>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    12f7 <qu2reg_subarea+0x1a7>
mov    -0x20(%rbp),%rax
mov    %rax,-0xa8(%rbp)
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    145d <qu2reg_subarea+0x30d>
mov    -0x28(%rbp),%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x74(%rbp)
movq   $0x0,-0x70(%rbp)
mov    -0x74(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    -0x70(%rbp),%rsi
lea    -0x58(%rbp),%rdx
lea    -0x60(%rbp),%rcx
mov    $0x2,%al
call   1040 <grib_get_reduced_row@plt>
mov    -0x58(%rbp),%rax
mov    %eax,-0x64(%rbp)
movslq -0x64(%rbp),%rax
mov    -0x58(%rbp),%rcx
add    -0x70(%rbp),%rcx
cmp    %rcx,%rax
jge    1441 <qu2reg_subarea+0x2f1>
mov    -0x64(%rbp),%eax
mov    %eax,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
cmp    -0x74(%rbp),%eax
jl     13fb <qu2reg_subarea+0x2ab>
mov    -0x74(%rbp),%ecx
mov    -0x9c(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x9c(%rbp)
mov    -0xa8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x98(%rbp),%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x9c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xa8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0xa8(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    13bd <qu2reg_subarea+0x26d>
mov    -0x70(%rbp),%rcx
movslq -0x80(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x80(%rbp)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    1374 <qu2reg_subarea+0x224>
mov    -0x4(%rbp),%eax
cmp    -0x80(%rbp),%eax
je     1477 <qu2reg_subarea+0x327>
lea    0xc52(%rip),%rdi
mov    $0x0,%al
call   1060 <cdoAbort@plt>
mov    -0x90(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x2c(%rbp),%edx
mov    -0x7c(%rbp),%ecx
movsd  -0x38(%rbp),%xmm0
mov    -0x40(%rbp),%r8
mov    0x10(%rbp),%r9d
mov    0x18(%rbp),%r10d
mov    0x20(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
mov    $0x1,%al
call   1050 <qu2reg3_double@plt>
movl   $0x0,-0x84(%rbp)
mov    -0x90(%rbp),%rcx
mov    -0x98(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x1,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    151a <qu2reg_subarea+0x3ca>
mov    -0x7c(%rbp),%eax
add    -0x84(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x90(%rbp),%rdx
movslq -0x84(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
mov    -0x98(%rbp),%rax
movslq -0x68(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    14cd <qu2reg_subarea+0x37d>
mov    -0x20(%rbp),%rax
mov    %rax,-0xa8(%rbp)
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    15d9 <qu2reg_subarea+0x489>
mov    -0x50(%rbp),%rax
mov    %eax,-0x64(%rbp)
movslq -0x64(%rbp),%rax
mov    -0x50(%rbp),%rcx
movslq -0x44(%rbp),%rdx
add    %rdx,%rcx
cmp    %rcx,%rax
jge    15c6 <qu2reg_subarea+0x476>
mov    -0x64(%rbp),%eax
mov    %eax,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
cmp    -0x7c(%rbp),%eax
jl     1580 <qu2reg_subarea+0x430>
mov    -0x7c(%rbp),%ecx
mov    -0x9c(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x9c(%rbp)
mov    -0x98(%rbp),%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x9c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xa8(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0xa8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0xa8(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    153f <qu2reg_subarea+0x3ef>
jmp    15cb <qu2reg_subarea+0x47b>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    152c <qu2reg_subarea+0x3dc>
mov    -0x90(%rbp),%rcx
lea    0xa4c(%rip),%rdi
lea    0xa54(%rip),%rsi
mov    $0x315,%edx
mov    $0x0,%al
call   1070 <Free@plt>
mov    -0x98(%rbp),%rcx
lea    0xa2b(%rip),%rdi
lea    0xa33(%rip),%rsi
mov    $0x316,%edx
mov    $0x0,%al
call   1070 <Free@plt>
mov    -0x44(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<qu2reg_subarea>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %r9,0x60(%rsp)
movdqa %xmm2,0x40(%rsp)
mov    %r8d,%r15d
mov    %rcx,0x8(%rsp)
mov    %rdx,%r14
mov    %edi,0x38(%rsp)
lea    0x0(,%rsi,4),%ebx
test   %esi,%esi
movsd  %xmm1,(%rsp)
movsd  %xmm0,0x58(%rsp)
jg     11aa <qu2reg_subarea+0x5a>
lea    0xe68(%rip),%rdi
xor    %eax,%eax
call   1060 <cdoAbort@plt>
movsd  0x58(%rsp),%xmm0
movsd  (%rsp),%xmm1
lea    0x28(%rsp),%rsi
lea    0x80(%rsp),%rdx
lea    0x70(%rsp),%rcx
mov    %ebx,%edi
mov    $0x2,%al
call   1040 <grib_get_reduced_row@plt>
mov    0x28(%rsp),%rax
mov    %rax,0x68(%rsp)
movslq %r15d,%r12
lea    0x0(,%r12,8),%rcx
lea    0xe52(%rip),%rbp
lea    0xe5a(%rip),%r13
mov    %rbp,%rdi
mov    %r13,%rsi
mov    $0x2d9,%edx
xor    %eax,%eax
call   1030 <Malloc@plt>
movslq %eax,%rdx
mov    %ebx,0x3c(%rsp)
imul   %r15d,%ebx
movslq %ebx,%rcx
shl    $0x3,%rcx
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %rdx,%rbp
mov    $0x2da,%edx
xor    %eax,%eax
call   1030 <Malloc@plt>
movslq %eax,%rbx
mov    %rbx,0x0(%rbp)
mov    %r15d,%r10d
cmp    $0x2,%r12d
mov    0x8(%rsp),%rsi
jl     12b3 <qu2reg_subarea+0x163>
lea    -0x1(%r10),%r8
cmp    $0x2,%r15d
jne    1249 <qu2reg_subarea+0xf9>
xor    %edx,%edx
mov    $0x1,%ecx
jmp    1299 <qu2reg_subarea+0x149>
mov    %r8,%rax
and    $0xfffffffffffffffe,%rax
neg    %rax
xor    %edx,%edx
mov    $0x1,%ecx
nopw   0x0(%rax,%rax,1)
movslq -0x4(%rsi,%rcx,4),%rdi
movslq %edx,%rdx
add    %rdi,%rdx
lea    (%rbx,%rdx,8),%rdi
mov    %rdi,0x0(%rbp,%rcx,8)
movslq (%rsi,%rcx,4),%rdi
movslq %edx,%rdx
add    %rdi,%rdx
lea    (%rbx,%rdx,8),%rdi
mov    %rdi,0x8(%rbp,%rcx,8)
lea    (%rax,%rcx,1),%rdi
add    $0x2,%rdi
add    $0x2,%rcx
cmp    $0x1,%rdi
jne    1260 <qu2reg_subarea+0x110>
test   $0x1,%r8b
je     12b3 <qu2reg_subarea+0x163>
movslq -0x4(%rsi,%rcx,4),%rax
movslq %edx,%rdx
add    %rax,%rdx
lea    (%rbx,%rdx,8),%rax
mov    %rax,0x0(%rbp,%rcx,8)
mov    %rbx,0x20(%rsp)
mov    %rbp,0x30(%rsp)
mov    %r15d,0x1c(%rsp)
test   %r15d,%r15d
mov    %r10,0x10(%rsp)
movdqa 0x40(%rsp),%xmm0
movq   (%rsp),%xmm1
mov    $0x0,%ebp
jle    1578 <qu2reg_subarea+0x428>
movabs $0x7ffffffffffffff8,%r8
ff ff 7f
movdqa %xmm0,%xmm2
punpcklqdq %xmm0,%xmm2
xor    %r11d,%r11d
mov    0x30(%rsp),%r9
jmp    130d <qu2reg_subarea+0x1bd>
nopl   0x0(%rax)
add    $0x1,%r11
cmp    %r10,%r11
je     1433 <qu2reg_subarea+0x2e3>
mov    (%rsi,%r11,4),%edx
test   %edx,%edx
jle    1300 <qu2reg_subarea+0x1b0>
mov    (%r9,%r11,8),%rcx
cmp    $0x4,%edx
jae    1330 <qu2reg_subarea+0x1e0>
xor    %edi,%edi
jmp    1420 <qu2reg_subarea+0x2d0>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %edx,%edi
and    $0xfffffffc,%edi
lea    -0x4(%rdi),%rax
mov    %rax,%rbp
shr    $0x2,%rbp
add    $0x1,%rbp
mov    %ebp,%ebx
and    $0x7,%ebx
cmp    $0x1c,%rax
jae    1356 <qu2reg_subarea+0x206>
xor    %eax,%eax
jmp    13e5 <qu2reg_subarea+0x295>
and    %r8,%rbp
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
movdqu %xmm2,(%rcx,%rax,8)
movdqu %xmm2,0x10(%rcx,%rax,8)
movdqu %xmm2,0x20(%rcx,%rax,8)
movdqu %xmm2,0x30(%rcx,%rax,8)
movdqu %xmm2,0x40(%rcx,%rax,8)
movdqu %xmm2,0x50(%rcx,%rax,8)
movdqu %xmm2,0x60(%rcx,%rax,8)
movdqu %xmm2,0x70(%rcx,%rax,8)
movdqu %xmm2,0x80(%rcx,%rax,8)
movdqu %xmm2,0x90(%rcx,%rax,8)
movdqu %xmm2,0xa0(%rcx,%rax,8)
movdqu %xmm2,0xb0(%rcx,%rax,8)
movdqu %xmm2,0xc0(%rcx,%rax,8)
movdqu %xmm2,0xd0(%rcx,%rax,8)
movdqu %xmm2,0xe0(%rcx,%rax,8)
movdqu %xmm2,0xf0(%rcx,%rax,8)
add    $0x20,%rax
add    $0xfffffffffffffff8,%rbp
jne    1360 <qu2reg_subarea+0x210>
test   %rbx,%rbx
je     1414 <qu2reg_subarea+0x2c4>
lea    (%rcx,%rax,8),%rax
add    $0x10,%rax
shl    $0x5,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
movdqu %xmm2,-0x10(%rax,%rbp,1)
movdqu %xmm2,(%rax,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rbx
jne    1400 <qu2reg_subarea+0x2b0>
cmp    %rdx,%rdi
je     1300 <qu2reg_subarea+0x1b0>
nopl   (%rax)
movq   %xmm0,(%rcx,%rdi,8)
add    $0x1,%rdi
cmp    %rdi,%rdx
jne    1420 <qu2reg_subarea+0x2d0>
jmp    1300 <qu2reg_subarea+0x1b0>
cmpl   $0x0,0x1c(%rsp)
jle    1576 <qu2reg_subarea+0x426>
xor    %r12d,%r12d
xor    %r15d,%r15d
mov    %r14,%rbx
xor    %ebp,%ebp
jmp    1475 <qu2reg_subarea+0x325>
nopl   0x0(%rax,%rax,1)
mov    0x10(%rsp),%r9
movdqa 0x40(%rsp),%xmm0
mov    0x8(%rsp),%rsi
movq   (%rsp),%xmm1
add    %r8d,%ebp
add    $0x1,%r15
cmp    %r9,%r15
je     1578 <qu2reg_subarea+0x428>
mov    (%rsi,%r15,4),%r13d
movq   $0x0,0x28(%rsp)
mov    %r13d,%edi
movsd  0x58(%rsp),%xmm0
lea    0x28(%rsp),%rsi
lea    0x78(%rsp),%rdx
lea    0x70(%rsp),%rcx
mov    $0x2,%al
call   1040 <grib_get_reduced_row@plt>
mov    0x78(%rsp),%rax
mov    0x28(%rsp),%r8
lea    (%r8,%rax,1),%r11
movslq %eax,%r10
cmp    %r10,%r11
jle    1450 <qu2reg_subarea+0x300>
movslq %r13d,%rdx
mov    0x30(%rsp),%rdi
mov    (%rdi,%r15,8),%rcx
test   $0x1,%r8b
jne    14d0 <qu2reg_subarea+0x380>
mov    %r10,%rdi
jmp    14f4 <qu2reg_subarea+0x3a4>
xchg   %ax,%ax
cmp    %rdx,%r10
mov    $0x0,%r9d
cmovge %rdx,%r9
mov    %r10,%rdi
sub    %r9,%rdi
movsd  (%rbx),%xmm0
movsd  %xmm0,(%rcx,%rdi,8)
add    $0x8,%rbx
lea    0x1(%r10),%rdi
mov    0x10(%rsp),%r9
movdqa 0x40(%rsp),%xmm0
mov    0x8(%rsp),%rsi
movq   (%rsp),%xmm1
add    %r8,%rax
add    $0xffffffffffffffff,%rax
cmp    %r10,%rax
je     1465 <qu2reg_subarea+0x315>
mov    %ebp,%r10d
nopl   0x0(%rax)
cmp    %rdx,%rdi
mov    %rdx,%rax
cmovl  %r12,%rax
movsd  (%rbx),%xmm2
shl    $0x3,%rax
mov    %rcx,%rbp
sub    %rax,%rbp
lea    0x1(%rdi),%rax
cmp    %rdx,%rax
mov    %rdx,%rax
cmovl  %r12,%rax
movsd  %xmm2,0x0(%rbp,%rdi,8)
movq   0x8(%rbx),%xmm2
shl    $0x3,%rax
mov    %rcx,%rbp
sub    %rax,%rbp
movq   %xmm2,0x8(%rbp,%rdi,8)
add    $0x10,%rbx
add    $0x2,%rdi
cmp    %rdi,%r11
jg     1520 <qu2reg_subarea+0x3d0>
mov    %r10d,%ebp
jmp    1465 <qu2reg_subarea+0x315>
xor    %ebp,%ebp
mov    0xd0(%rsp),%r12d
mov    0xc8(%rsp),%r10d
mov    0xc0(%rsp),%r13d
cmp    0x38(%rsp),%ebp
je     15b5 <qu2reg_subarea+0x465>
lea    0xb25(%rip),%rdi
xor    %eax,%eax
mov    %r10,%rbx
call   1060 <cdoAbort@plt>
mov    %rbx,%r10
mov    0x8(%rsp),%rsi
movdqa 0x40(%rsp),%xmm0
mov    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    0x1c(%rsp),%ebp
mov    %ebp,%edx
mov    0x3c(%rsp),%r15d
mov    %r15d,%ecx
mov    0x60(%rsp),%r8
mov    %r13d,%r9d
mov    $0x1,%al
push   %r12
push   %r10
call   1050 <qu2reg3_double@plt>
mov    %ebp,%edi
add    $0x10,%rsp
mov    0x30(%rsp),%r13
mov    %rbx,0x0(%r13)
movslq %r15d,%rax
cmp    $0x2,%ebp
mov    0x68(%rsp),%r12
mov    0x10(%rsp),%rbx
jl     1771 <qu2reg_subarea+0x621>
lea    -0x1(%rbx),%r8
cmp    $0x4,%r8
jae    1619 <qu2reg_subarea+0x4c9>
mov    $0x1,%edx
xor    %ecx,%ecx
jmp    173d <qu2reg_subarea+0x5ed>
mov    %r8,%rcx
and    $0xfffffffffffffffc,%rcx
movq   %rax,%xmm1
pshufd $0x44,%xmm1,%xmm2
pslldq $0x8,%xmm1
movdqa %xmm2,%xmm0
psllq  $0x1,%xmm0
lea    -0x4(%rcx),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
movq   0x20(%rsp),%xmm3
test   %rsi,%rsi
je     1916 <qu2reg_subarea+0x7c6>
movabs $0x7ffffffffffffff8,%rbp
ff ff 7f
or     $0x6,%rbp
and    %rdx,%rbp
mov    $0x1,%esi
pshufd $0x44,%xmm3,%xmm4
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movdqa %xmm1,%xmm5
paddq  %xmm0,%xmm5
paddq  %xmm2,%xmm1
movdqa %xmm5,%xmm6
paddq  %xmm2,%xmm6
psllq  $0x3,%xmm1
paddq  %xmm4,%xmm1
psllq  $0x3,%xmm6
paddq  %xmm4,%xmm6
movdqu %xmm1,0x0(%r13,%rsi,8)
movdqu %xmm6,0x10(%r13,%rsi,8)
paddq  %xmm0,%xmm5
movdqa %xmm5,%xmm1
paddq  %xmm0,%xmm1
paddq  %xmm2,%xmm5
movdqa %xmm1,%xmm6
paddq  %xmm2,%xmm6
psllq  $0x3,%xmm5
paddq  %xmm4,%xmm5
psllq  $0x3,%xmm6
paddq  %xmm4,%xmm6
movdqu %xmm5,0x20(%r13,%rsi,8)
movdqu %xmm6,0x30(%r13,%rsi,8)
paddq  %xmm0,%xmm1
add    $0x8,%rsi
add    $0xfffffffffffffffe,%rbp
jne    1680 <qu2reg_subarea+0x530>
test   $0x1,%dl
je     1730 <qu2reg_subarea+0x5e0>
paddq  %xmm1,%xmm0
paddq  %xmm2,%xmm1
paddq  %xmm2,%xmm0
psllq  $0x3,%xmm1
pshufd $0x44,%xmm3,%xmm2
paddq  %xmm2,%xmm1
psllq  $0x3,%xmm0
paddq  %xmm2,%xmm0
movdqu %xmm1,0x0(%r13,%rsi,8)
movdqu %xmm0,0x10(%r13,%rsi,8)
cmp    %rcx,%r8
je     1771 <qu2reg_subarea+0x621>
lea    0x1(%rcx),%rdx
imul   %rax,%rcx
add    %rax,%rcx
mov    0x20(%rsp),%rsi
lea    (%rsi,%rcx,8),%rcx
lea    0x0(,%rax,8),%rsi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rcx,0x0(%r13,%rdx,8)
add    $0x1,%rdx
add    %rsi,%rcx
cmp    %rdx,%rbx
jne    1760 <qu2reg_subarea+0x610>
test   %edi,%edi
jle    18c7 <qu2reg_subarea+0x777>
mov    0x80(%rsp),%rcx
movslq %r12d,%r9
lea    (%rcx,%r9,1),%r15
movslq %ecx,%r10
mov    %r10,%r8
not    %r8
add    %r15,%r8
and    $0x3,%r9d
xor    %edi,%edi
xor    %r11d,%r11d
jmp    17af <qu2reg_subarea+0x65f>
nop
add    $0x1,%r11
cmp    0x10(%rsp),%r11
je     18c7 <qu2reg_subarea+0x777>
cmp    %r10,%r15
jle    17a0 <qu2reg_subarea+0x650>
mov    0x0(%r13,%r11,8),%rdx
test   %r9,%r9
je     1806 <qu2reg_subarea+0x6b6>
mov    %r9,%rbx
mov    %r10,%rsi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmp    %rax,%rsi
mov    $0x0,%ebp
cmovge %rax,%rbp
shl    $0x3,%rbp
mov    %rdx,%rcx
sub    %rbp,%rcx
movq   (%rcx,%rsi,8),%xmm0
movq   %xmm0,(%r14)
add    $0x8,%r14
add    $0x1,%rsi
add    $0xffffffffffffffff,%rbx
jne    17d0 <qu2reg_subarea+0x680>
cmp    $0x3,%r8
jb     17a0 <qu2reg_subarea+0x650>
jmp    180f <qu2reg_subarea+0x6bf>
mov    %r10,%rsi
cmp    $0x3,%r8
jb     17a0 <qu2reg_subarea+0x650>
lea    (%rdx,%rsi,8),%rbp
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
cmp    %rax,%rsi
mov    %rax,%rdx
cmovl  %rdi,%rdx
shl    $0x3,%rdx
mov    %rbp,%rbx
sub    %rdx,%rbx
movsd  (%rcx,%rbx,1),%xmm0
lea    0x1(%rsi),%rdx
cmp    %rax,%rdx
mov    %rax,%rdx
cmovl  %rdi,%rdx
movsd  %xmm0,(%r14,%rcx,1)
shl    $0x3,%rdx
mov    %rbp,%rbx
sub    %rdx,%rbx
movsd  0x8(%rcx,%rbx,1),%xmm0
lea    0x2(%rsi),%rdx
cmp    %rax,%rdx
mov    %rax,%rdx
cmovl  %rdi,%rdx
movsd  %xmm0,0x8(%r14,%rcx,1)
shl    $0x3,%rdx
mov    %rbp,%rbx
sub    %rdx,%rbx
movsd  0x10(%rcx,%rbx,1),%xmm0
lea    0x3(%rsi),%rdx
cmp    %rax,%rdx
mov    %rax,%rdx
cmovl  %rdi,%rdx
movsd  %xmm0,0x10(%r14,%rcx,1)
shl    $0x3,%rdx
mov    %rbp,%rbx
sub    %rdx,%rbx
movq   0x18(%rcx,%rbx,1),%xmm0
movq   %xmm0,0x18(%r14,%rcx,1)
add    $0x20,%rcx
add    $0x4,%rsi
cmp    %rsi,%r15
jg     1820 <qu2reg_subarea+0x6d0>
add    %rcx,%r14
jmp    17a0 <qu2reg_subarea+0x650>
lea    0x765(%rip),%rbx
lea    0x76d(%rip),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x315,%edx
mov    0x20(%rsp),%rcx
xor    %eax,%eax
call   1070 <Free@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x316,%edx
mov    %r13,%rcx
xor    %eax,%eax
call   1070 <Free@plt>
mov    %r12d,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%esi
test   $0x1,%dl
jne    16ff <qu2reg_subarea+0x5af>
jmp    1730 <qu2reg_subarea+0x5e0>

LLVM IR (-O0):
@.str = [51 x i8] c"Number of values between pole and equator missing!\00"
@__func__.qu2reg_subarea = [15 x i8] c"qu2reg_subarea\00"
@.str.1 = [128 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/grid.c\00"
@.str.2 = [24 x i8] c"gridsize1 inconsistent!\00"
define i32 @qu2reg_subarea(i32 %0, i32 %1, double %2, double %3, double* %4, i32* %5, i32 %6, double %7, i32* %8, i32 %9, i32 %10, i32 %11) {
%13 = alloca i32
%14 = alloca i32
%15 = alloca double
%16 = alloca double
%17 = alloca double*
%18 = alloca i32*
%19 = alloca i32
%20 = alloca double
%21 = alloca i32*
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i64
%27 = alloca i64
%28 = alloca i64
%29 = alloca i32
%30 = alloca i32
%31 = alloca i64
%32 = alloca i32
%33 = alloca i32
%34 = alloca i32
%35 = alloca i32
%36 = alloca i32
%37 = alloca double*
%38 = alloca double**
%39 = alloca i32
%40 = alloca double*
store i32 %0, i32* %13
store i32 %1, i32* %14
store double %2, double* %15
store double %3, double* %16
store double* %4, double** %17
store i32* %5, i32** %18
store i32 %6, i32* %19
store double %7, double* %20
store i32* %8, i32** %21
store i32 %9, i32* %22
store i32 %10, i32* %23
store i32 %11, i32* %24
store i32 0, i32* %25
store i32 0, i32* %33
%41 = load i32, i32* %14
%42 = mul nsw i32 %41, 4
store i32 %42, i32* %34
store i32 0, i32* %35
%43 = load i32, i32* %14
%44 = icmp sle i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %12
%46 = call i32 (i8*, ...) bitcast (i32 (...)* @cdoAbort to i32 (i8*, ...)*)(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0))
br label %47
47: ; preds = %45, %12
%48 = load i32, i32* %34
%49 = load double, double* %15
%50 = load double, double* %16
%51 = call i32 (i32, double, double, i64*, i64*, i64*, ...) bitcast (i32 (...)* @grib_get_reduced_row to i32 (i32, double, double, i64*, i64*, i64*, ...)*)(i32 %48, double %49, double %50, i64* %31, i64* %26, i64* %28)
%52 = load i64, i64* %31
%53 = trunc i64 %52 to i32
store i32 %53, i32* %25
store i32 0, i32* %30
br label %54
54: ; preds = %66, %47
%55 = load i32, i32* %30
%56 = load i32, i32* %19
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %69
58: ; preds = %54
%59 = load i32*, i32** %18
%60 = load i32, i32* %30
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, i32* %59, i64 %61
%63 = load i32, i32* %62
%64 = load i32, i32* %33
%65 = add nsw i32 %64, %63
store i32 %65, i32* %33
br label %66
66: ; preds = %58
%67 = load i32, i32* %30
%68 = add nsw i32 %67, 1
store i32 %68, i32* %30
br label %54
69: ; preds = %54
%70 = load i32, i32* %19
%71 = sext i32 %70 to i64
%72 = mul i64 %71, 8
%73 = call i32 (i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @Malloc to i32 (i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__func__.qu2reg_subarea, i64 0, i64 0), i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str.1, i64 0, i64 0), i32 729, i64 %72)
%74 = sext i32 %73 to i64
%75 = inttoptr i64 %74 to double**
store double** %75, double*** %38
%76 = load i32, i32* %19
%77 = load i32, i32* %34
%78 = mul nsw i32 %76, %77
%79 = sext i32 %78 to i64
%80 = mul i64 %79, 8
%81 = call i32 (i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @Malloc to i32 (i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__func__.qu2reg_subarea, i64 0, i64 0), i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str.1, i64 0, i64 0), i32 730, i64 %80)
%82 = sext i32 %81 to i64
%83 = inttoptr i64 %82 to double*
store double* %83, double** %37
store i32 0, i32* %36
%84 = load double*, double** %37
%85 = load double**, double*** %38
%86 = getelementptr inbounds double*, double** %85, i64 0
store double* %84, double** %86
store i32 1, i32* %30
br label %87
87: ; preds = %108, %69
%88 = load i32, i32* %30
%89 = load i32, i32* %19
%90 = icmp slt i32 %88, %89
br i1 %90, label %91, label %111
91: ; preds = %87
%92 = load i32*, i32** %18
%93 = load i32, i32* %30
%94 = sub nsw i32 %93, 1
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, i32* %92, i64 %95
%97 = load i32, i32* %96
%98 = load i32, i32* %36
%99 = add nsw i32 %98, %97
store i32 %99, i32* %36
%100 = load double*, double** %37
%101 = load i32, i32* %36
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, double* %100, i64 %102
%104 = load double**, double*** %38
%105 = load i32, i32* %30
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double*, double** %104, i64 %106
store double* %103, double** %107
br label %108
108: ; preds = %91
%109 = load i32, i32* %30
%110 = add nsw i32 %109, 1
store i32 %110, i32* %30
br label %87
111: ; preds = %87
store i32 0, i32* %30
br label %112
112: ; preds = %140, %111
%113 = load i32, i32* %30
%114 = load i32, i32* %19
%115 = icmp slt i32 %113, %114
br i1 %115, label %116, label %143
116: ; preds = %112
%117 = load i32*, i32** %18
%118 = load i32, i32* %30
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32, i32* %117, i64 %119
%121 = load i32, i32* %120
store i32 %121, i32* %32
store i32 0, i32* %29
br label %122
122: ; preds = %136, %116
%123 = load i32, i32* %29
%124 = load i32, i32* %32
%125 = icmp slt i32 %123, %124
br i1 %125, label %126, label %139
126: ; preds = %122
%127 = load double, double* %20
%128 = load double**, double*** %38
%129 = load i32, i32* %30
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds double*, double** %128, i64 %130
%132 = load double*, double** %131
%133 = load i32, i32* %29
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds double, double* %132, i64 %134
store double %127, double* %135
br label %136
136: ; preds = %126
%137 = load i32, i32* %29
%138 = add nsw i32 %137, 1
store i32 %138, i32* %29
br label %122
139: ; preds = %122
br label %140
140: ; preds = %139
%141 = load i32, i32* %30
%142 = add nsw i32 %141, 1
store i32 %142, i32* %30
br label %112
143: ; preds = %112
%144 = load double*, double** %17
store double* %144, double** %40
store i32 0, i32* %30
br label %145
145: ; preds = %199, %143
%146 = load i32, i32* %30
%147 = load i32, i32* %19
%148 = icmp slt i32 %146, %147
br i1 %148, label %149, label %202
149: ; preds = %145
%150 = load i32*, i32** %18
%151 = load i32, i32* %30
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds i32, i32* %150, i64 %152
%154 = load i32, i32* %153
store i32 %154, i32* %32
store i64 0, i64* %31
%155 = load i32, i32* %32
%156 = load double, double* %15
%157 = load double, double* %16
%158 = call i32 (i32, double, double, i64*, i64*, i64*, ...) bitcast (i32 (...)* @grib_get_reduced_row to i32 (i32, double, double, i64*, i64*, i64*, ...)*)(i32 %155, double %156, double %157, i64* %31, i64* %27, i64* %28)
%159 = load i64, i64* %27
%160 = trunc i64 %159 to i32
store i32 %160, i32* %29
br label %161
161: ; preds = %190, %149
%162 = load i32, i32* %29
%163 = sext i32 %162 to i64
%164 = load i64, i64* %27
%165 = load i64, i64* %31
%166 = add nsw i64 %164, %165
%167 = icmp slt i64 %163, %166
br i1 %167, label %168, label %193
168: ; preds = %161
%169 = load i32, i32* %29
store i32 %169, i32* %39
%170 = load i32, i32* %39
%171 = load i32, i32* %32
%172 = icmp sge i32 %170, %171
br i1 %172, label %173, label %177
173: ; preds = %168
%174 = load i32, i32* %32
%175 = load i32, i32* %39
%176 = sub nsw i32 %175, %174
store i32 %176, i32* %39
br label %177
177: ; preds = %173, %168
%178 = load double*, double** %40
%179 = load double, double* %178
%180 = load double**, double*** %38
%181 = load i32, i32* %30
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds double*, double** %180, i64 %182
%184 = load double*, double** %183
%185 = load i32, i32* %39
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double, double* %184, i64 %186
store double %179, double* %187
%188 = load double*, double** %40
%189 = getelementptr inbounds double, double* %188, i32 1
store double* %189, double** %40
br label %190
190: ; preds = %177
%191 = load i32, i32* %29
%192 = add nsw i32 %191, 1
store i32 %192, i32* %29
br label %161
193: ; preds = %161
%194 = load i64, i64* %31
%195 = load i32, i32* %35
%196 = sext i32 %195 to i64
%197 = add nsw i64 %196, %194
%198 = trunc i64 %197 to i32
store i32 %198, i32* %35
br label %199
199: ; preds = %193
%200 = load i32, i32* %30
%201 = add nsw i32 %200, 1
store i32 %201, i32* %30
br label %145
202: ; preds = %145
%203 = load i32, i32* %13
%204 = load i32, i32* %35
%205 = icmp ne i32 %203, %204
br i1 %205, label %206, label %208
206: ; preds = %202
%207 = call i32 (i8*, ...) bitcast (i32 (...)* @cdoAbort to i32 (i8*, ...)*)(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
br label %208
208: ; preds = %206, %202
%209 = load double*, double** %37
%210 = load i32*, i32** %18
%211 = load i32, i32* %19
%212 = load i32, i32* %34
%213 = load double, double* %20
%214 = load i32*, i32** %21
%215 = load i32, i32* %22
%216 = load i32, i32* %23
%217 = load i32, i32* %24
%218 = call i32 (double*, i32*, i32, i32, double, i32*, i32, i32, i32, ...) bitcast (i32 (...)* @qu2reg3_double to i32 (double*, i32*, i32, i32, double, i32*, i32, i32, i32, ...)*)(double* %209, i32* %210, i32 %211, i32 %212, double %213, i32* %214, i32 %215, i32 %216, i32 %217)
store i32 0, i32* %36
%219 = load double*, double** %37
%220 = load double**, double*** %38
%221 = getelementptr inbounds double*, double** %220, i64 0
store double* %219, double** %221
store i32 1, i32* %30
br label %222
222: ; preds = %238, %208
%223 = load i32, i32* %30
%224 = load i32, i32* %19
%225 = icmp slt i32 %223, %224
br i1 %225, label %226, label %241
226: ; preds = %222
%227 = load i32, i32* %34
%228 = load i32, i32* %36
%229 = add nsw i32 %228, %227
store i32 %229, i32* %36
%230 = load double*, double** %37
%231 = load i32, i32* %36
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds double, double* %230, i64 %232
%234 = load double**, double*** %38
%235 = load i32, i32* %30
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds double*, double** %234, i64 %236
store double* %233, double** %237
br label %238
238: ; preds = %226
%239 = load i32, i32* %30
%240 = add nsw i32 %239, 1
store i32 %240, i32* %30
br label %222
241: ; preds = %222
%242 = load double*, double** %17
store double* %242, double** %40
store i32 0, i32* %30
br label %243
243: ; preds = %284, %241
%244 = load i32, i32* %30
%245 = load i32, i32* %19
%246 = icmp slt i32 %244, %245
br i1 %246, label %247, label %287
247: ; preds = %243
%248 = load i64, i64* %26
%249 = trunc i64 %248 to i32
store i32 %249, i32* %29
br label %250
250: ; preds = %280, %247
%251 = load i32, i32* %29
%252 = sext i32 %251 to i64
%253 = load i64, i64* %26
%254 = load i32, i32* %25
%255 = sext i32 %254 to i64
%256 = add nsw i64 %253, %255
%257 = icmp slt i64 %252, %256
br i1 %257, label %258, label %283
258: ; preds = %250
%259 = load i32, i32* %29
store i32 %259, i32* %39
%260 = load i32, i32* %39
%261 = load i32, i32* %34
%262 = icmp sge i32 %260, %261
br i1 %262, label %263, label %267
263: ; preds = %258
%264 = load i32, i32* %34
%265 = load i32, i32* %39
%266 = sub nsw i32 %265, %264
store i32 %266, i32* %39
br label %267
267: ; preds = %263, %258
%268 = load double**, double*** %38
%269 = load i32, i32* %30
%270 = sext i32 %269 to i64
%271 = getelementptr inbounds double*, double** %268, i64 %270
%272 = load double*, double** %271
%273 = load i32, i32* %39
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds double, double* %272, i64 %274
%276 = load double, double* %275
%277 = load double*, double** %40
store double %276, double* %277
%278 = load double*, double** %40
%279 = getelementptr inbounds double, double* %278, i32 1
store double* %279, double** %40
br label %280
280: ; preds = %267
%281 = load i32, i32* %29
%282 = add nsw i32 %281, 1
store i32 %282, i32* %29
br label %250
283: ; preds = %250
br label %284
284: ; preds = %283
%285 = load i32, i32* %30
%286 = add nsw i32 %285, 1
store i32 %286, i32* %30
br label %243
287: ; preds = %243
%288 = load double*, double** %37
%289 = call i32 (i8*, i8*, i32, double*, ...) bitcast (i32 (...)* @Free to i32 (i8*, i8*, i32, double*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__func__.qu2reg_subarea, i64 0, i64 0), i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str.1, i64 0, i64 0), i32 789, double* %288)
%290 = load double**, double*** %38
%291 = call i32 (i8*, i8*, i32, double**, ...) bitcast (i32 (...)* @Free to i32 (i8*, i8*, i32, double**, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__func__.qu2reg_subarea, i64 0, i64 0), i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str.1, i64 0, i64 0), i32 790, double** %290)
%292 = load i32, i32* %25
ret i32 %292
}

LLVM IR (-O2):
@.str = [51 x i8] c"Number of values between pole and equator missing!\00"
@__func__.qu2reg_subarea = [15 x i8] c"qu2reg_subarea\00"
@.str.1 = [128 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/grid.c\00"
@.str.2 = [24 x i8] c"gridsize1 inconsistent!\00"
define i32 @qu2reg_subarea(i32 %0, i32 %1, double %2, double %3, double* nocapture %4, i32* %5, i32 %6, double %7, i32* %8, i32 %9, i32 %10, i32 %11) {
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
%17 = bitcast i64* %13 to i8*
%18 = bitcast i64* %14 to i8*
%19 = bitcast i64* %15 to i8*
%20 = bitcast i64* %16 to i8*
%21 = shl i32 %1, 2
%22 = icmp slt i32 %1, 1
br i1 %22, label %23, label %25
23: ; preds = %12
%24 = tail call i32 (i8*, ...) bitcast (i32 (...)* @cdoAbort to i32 (i8*, ...)*)(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0))
br label %25
25: ; preds = %23, %12
%26 = call i32 (i32, double, double, i64*, i64*, i64*, ...) bitcast (i32 (...)* @grib_get_reduced_row to i32 (i32, double, double, i64*, i64*, i64*, ...)*)(i32 %21, double %2, double %3, i64* %16, i64* %13, i64* %15)
%27 = load i64, i64* %16
%28 = sext i32 %6 to i64
%29 = shl nsw i64 %28, 3
%30 = call i32 (i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @Malloc to i32 (i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__func__.qu2reg_subarea, i64 0, i64 0), i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str.1, i64 0, i64 0), i32 729, i64 %29)
%31 = sext i32 %30 to i64
%32 = inttoptr i64 %31 to double**
%33 = mul nsw i32 %21, %6
%34 = sext i32 %33 to i64
%35 = shl nsw i64 %34, 3
%36 = call i32 (i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @Malloc to i32 (i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__func__.qu2reg_subarea, i64 0, i64 0), i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str.1, i64 0, i64 0), i32 730, i64 %35)
%37 = sext i32 %36 to i64
%38 = inttoptr i64 %37 to double*
store double* %38, double** %32
%39 = icmp sgt i32 %6, 1
br i1 %39, label %40, label %59
40: ; preds = %25
%41 = zext i32 %6 to i64
%42 = add nsw i64 %41, -1
%43 = and i64 %42, 1
%44 = icmp eq i32 %6, 2
br i1 %44, label %47, label %45
45: ; preds = %40
%46 = and i64 %42, -2
br label %67
47: ; preds = %67, %40
%48 = phi i64 [ 1, %40 ], [ %85, %67 ]
%49 = phi i32 [ 0, %40 ], [ %81, %67 ]
%50 = icmp eq i64 %43, 0
br i1 %50, label %59, label %51
51: ; preds = %47
%52 = add nsw i64 %48, -1
%53 = getelementptr inbounds i32, i32* %5, i64 %52
%54 = load i32, i32* %53
%55 = add nsw i32 %54, %49
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, double* %38, i64 %56
%58 = getelementptr inbounds double*, double** %32, i64 %48
store double* %57, double** %58
br label %59
59: ; preds = %51, %47, %25
%60 = icmp sgt i32 %6, 0
br i1 %60, label %61, label %239
61: ; preds = %59
%62 = zext i32 %6 to i64
%63 = insertelement <2 x double> poison, double %7, i64 0
%64 = shufflevector <2 x double> %63, <2 x double> poison, <2 x i32> zeroinitializer
%65 = insertelement <2 x double> poison, double %7, i64 0
%66 = shufflevector <2 x double> %65, <2 x double> poison, <2 x i32> zeroinitializer
br label %91
67: ; preds = %67, %45
%68 = phi i64 [ 1, %45 ], [ %85, %67 ]
%69 = phi i32 [ 0, %45 ], [ %81, %67 ]
%70 = phi i64 [ 0, %45 ], [ %86, %67 ]
%71 = add nsw i64 %68, -1
%72 = getelementptr inbounds i32, i32* %5, i64 %71
%73 = load i32, i32* %72
%74 = add nsw i32 %73, %69
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, double* %38, i64 %75
%77 = getelementptr inbounds double*, double** %32, i64 %68
store double* %76, double** %77
%78 = add nuw nsw i64 %68, 1
%79 = getelementptr inbounds i32, i32* %5, i64 %68
%80 = load i32, i32* %79
%81 = add nsw i32 %80, %74
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %38, i64 %82
%84 = getelementptr inbounds double*, double** %32, i64 %78
store double* %83, double** %84
%85 = add nuw nsw i64 %68, 2
%86 = add i64 %70, 2
%87 = icmp eq i64 %86, %46
br i1 %87, label %47, label %67
88: ; preds = %177
br i1 %60, label %89, label %239
89: ; preds = %88
%90 = zext i32 %6 to i64
br label %180
91: ; preds = %61, %177
%92 = phi i64 [ 0, %61 ], [ %178, %177 ]
%93 = getelementptr inbounds i32, i32* %5, i64 %92
%94 = load i32, i32* %93
%95 = icmp sgt i32 %94, 0
br i1 %95, label %96, label %177
96: ; preds = %91
%97 = getelementptr inbounds double*, double** %32, i64 %92
%98 = load double*, double** %97
%99 = zext i32 %94 to i64
%100 = icmp ult i32 %94, 4
br i1 %100, label %170, label %101
101: ; preds = %96
%102 = and i64 %99, 4294967292
%103 = add nsw i64 %102, -4
%104 = lshr exact i64 %103, 2
%105 = add nuw nsw i64 %104, 1
%106 = and i64 %105, 7
%107 = icmp ult i64 %103, 28
br i1 %107, label %155, label %108
108: ; preds = %101
%109 = and i64 %105, 9223372036854775800
br label %110
110: ; preds = %110, %108
%111 = phi i64 [ 0, %108 ], [ %152, %110 ]
%112 = phi i64 [ 0, %108 ], [ %153, %110 ]
%113 = getelementptr inbounds double, double* %98, i64 %111
%114 = bitcast double* %113 to <2 x double>*
store <2 x double> %64, <2 x double>* %114
%115 = getelementptr inbounds double, double* %113, i64 2
%116 = bitcast double* %115 to <2 x double>*
store <2 x double> %66, <2 x double>* %116
%117 = or i64 %111, 4
%118 = getelementptr inbounds double, double* %98, i64 %117
%119 = bitcast double* %118 to <2 x double>*
store <2 x double> %64, <2 x double>* %119
%120 = getelementptr inbounds double, double* %118, i64 2
%121 = bitcast double* %120 to <2 x double>*
store <2 x double> %66, <2 x double>* %121
%122 = or i64 %111, 8
%123 = getelementptr inbounds double, double* %98, i64 %122
%124 = bitcast double* %123 to <2 x double>*
store <2 x double> %64, <2 x double>* %124
%125 = getelementptr inbounds double, double* %123, i64 2
%126 = bitcast double* %125 to <2 x double>*
store <2 x double> %66, <2 x double>* %126
%127 = or i64 %111, 12
%128 = getelementptr inbounds double, double* %98, i64 %127
%129 = bitcast double* %128 to <2 x double>*
store <2 x double> %64, <2 x double>* %129
%130 = getelementptr inbounds double, double* %128, i64 2
%131 = bitcast double* %130 to <2 x double>*
store <2 x double> %66, <2 x double>* %131
%132 = or i64 %111, 16
%133 = getelementptr inbounds double, double* %98, i64 %132
%134 = bitcast double* %133 to <2 x double>*
store <2 x double> %64, <2 x double>* %134
%135 = getelementptr inbounds double, double* %133, i64 2
%136 = bitcast double* %135 to <2 x double>*
store <2 x double> %66, <2 x double>* %136
%137 = or i64 %111, 20
%138 = getelementptr inbounds double, double* %98, i64 %137
%139 = bitcast double* %138 to <2 x double>*
store <2 x double> %64, <2 x double>* %139
%140 = getelementptr inbounds double, double* %138, i64 2
%141 = bitcast double* %140 to <2 x double>*
store <2 x double> %66, <2 x double>* %141
%142 = or i64 %111, 24
%143 = getelementptr inbounds double, double* %98, i64 %142
%144 = bitcast double* %143 to <2 x double>*
store <2 x double> %64, <2 x double>* %144
%145 = getelementptr inbounds double, double* %143, i64 2
%146 = bitcast double* %145 to <2 x double>*
store <2 x double> %66, <2 x double>* %146
%147 = or i64 %111, 28
%148 = getelementptr inbounds double, double* %98, i64 %147
%149 = bitcast double* %148 to <2 x double>*
store <2 x double> %64, <2 x double>* %149
%150 = getelementptr inbounds double, double* %148, i64 2
%151 = bitcast double* %150 to <2 x double>*
store <2 x double> %66, <2 x double>* %151
%152 = add nuw i64 %111, 32
%153 = add i64 %112, 8
%154 = icmp eq i64 %153, %109
br i1 %154, label %155, label %110
155: ; preds = %110, %101
%156 = phi i64 [ 0, %101 ], [ %152, %110 ]
%157 = icmp eq i64 %106, 0
br i1 %157, label %168, label %158
158: ; preds = %155, %158
%159 = phi i64 [ %165, %158 ], [ %156, %155 ]
%160 = phi i64 [ %166, %158 ], [ 0, %155 ]
%161 = getelementptr inbounds double, double* %98, i64 %159
%162 = bitcast double* %161 to <2 x double>*
store <2 x double> %64, <2 x double>* %162
%163 = getelementptr inbounds double, double* %161, i64 2
%164 = bitcast double* %163 to <2 x double>*
store <2 x double> %66, <2 x double>* %164
%165 = add nuw i64 %159, 4
%166 = add i64 %160, 1
%167 = icmp eq i64 %166, %106
br i1 %167, label %168, label %158
168: ; preds = %158, %155
%169 = icmp eq i64 %102, %99
br i1 %169, label %177, label %170
170: ; preds = %96, %168
%171 = phi i64 [ 0, %96 ], [ %102, %168 ]
br label %172
172: ; preds = %170, %172
%173 = phi i64 [ %175, %172 ], [ %171, %170 ]
%174 = getelementptr inbounds double, double* %98, i64 %173
store double %7, double* %174
%175 = add nuw nsw i64 %173, 1
%176 = icmp eq i64 %175, %99
br i1 %176, label %177, label %172
177: ; preds = %172, %168, %91
%178 = add nuw nsw i64 %92, 1
%179 = icmp eq i64 %178, %62
br i1 %179, label %88, label %91
180: ; preds = %89, %233
%181 = phi i64 [ 0, %89 ], [ %237, %233 ]
%182 = phi double* [ %4, %89 ], [ %234, %233 ]
%183 = phi i32 [ 0, %89 ], [ %236, %233 ]
%184 = getelementptr inbounds i32, i32* %5, i64 %181
%185 = load i32, i32* %184
store i64 0, i64* %16
%186 = call i32 (i32, double, double, i64*, i64*, i64*, ...) bitcast (i32 (...)* @grib_get_reduced_row to i32 (i32, double, double, i64*, i64*, i64*, ...)*)(i32 %185, double %2, double %3, i64* %16, i64* %14, i64* %15)
%187 = load i64, i64* %14
%188 = load i64, i64* %16
%189 = add nsw i64 %188, %187
%190 = shl i64 %187, 32
%191 = ashr exact i64 %190, 32
%192 = icmp sgt i64 %189, %191
br i1 %192, label %193, label %233
193: ; preds = %180
%194 = getelementptr inbounds double*, double** %32, i64 %181
%195 = load double*, double** %194
%196 = sext i32 %185 to i64
%197 = sext i32 %185 to i64
%198 = add i64 %188, -1
%199 = add i64 %198, %187
%200 = and i64 %188, 1
%201 = icmp eq i64 %200, 0
br i1 %201, label %210, label %202
202: ; preds = %193
%203 = icmp slt i64 %191, %196
%204 = select i1 %203, i64 0, i64 %197
%205 = sub nsw i64 %191, %204
%206 = load double, double* %182
%207 = getelementptr inbounds double, double* %195, i64 %205
store double %206, double* %207
%208 = getelementptr inbounds double, double* %182, i64 1
%209 = add nsw i64 %191, 1
br label %210
210: ; preds = %202, %193
%211 = phi i64 [ %191, %193 ], [ %209, %202 ]
%212 = phi double* [ %182, %193 ], [ %208, %202 ]
%213 = phi double* [ undef, %193 ], [ %208, %202 ]
%214 = icmp eq i64 %199, %191
br i1 %214, label %233, label %215
215: ; preds = %210, %215
%216 = phi i64 [ %231, %215 ], [ %211, %210 ]
%217 = phi double* [ %230, %215 ], [ %212, %210 ]
%218 = icmp slt i64 %216, %196
%219 = select i1 %218, i64 0, i64 %197
%220 = sub nsw i64 %216, %219
%221 = load double, double* %217
%222 = getelementptr inbounds double, double* %195, i64 %220
store double %221, double* %222
%223 = getelementptr inbounds double, double* %217, i64 1
%224 = add nsw i64 %216, 1
%225 = icmp slt i64 %224, %196
%226 = select i1 %225, i64 0, i64 %197
%227 = sub nsw i64 %224, %226
%228 = load double, double* %223
%229 = getelementptr inbounds double, double* %195, i64 %227
store double %228, double* %229
%230 = getelementptr inbounds double, double* %217, i64 2
%231 = add nsw i64 %216, 2
%232 = icmp sgt i64 %189, %231
br i1 %232, label %215, label %233
233: ; preds = %210, %215, %180
%234 = phi double* [ %182, %180 ], [ %213, %210 ], [ %230, %215 ]
%235 = trunc i64 %188 to i32
%236 = add i32 %183, %235
%237 = add nuw nsw i64 %181, 1
%238 = icmp eq i64 %237, %90
br i1 %238, label %239, label %180
239: ; preds = %233, %59, %88
%240 = phi i32 [ 0, %88 ], [ 0, %59 ], [ %236, %233 ]
%241 = icmp eq i32 %240, %0
br i1 %241, label %244, label %242
242: ; preds = %239
%243 = call i32 (i8*, ...) bitcast (i32 (...)* @cdoAbort to i32 (i8*, ...)*)(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
br label %244
244: ; preds = %242, %239
%245 = call i32 (double*, i32*, i32, i32, double, i32*, i32, i32, i32, ...) bitcast (i32 (...)* @qu2reg3_double to i32 (double*, i32*, i32, i32, double, i32*, i32, i32, i32, ...)*)(double* %38, i32* %5, i32 %6, i32 %21, double %7, i32* %8, i32 %9, i32 %10, i32 %11)
store double* %38, double** %32
br i1 %39, label %246, label %322
246: ; preds = %244
%247 = sext i32 %21 to i64
%248 = zext i32 %6 to i64
%249 = add nsw i64 %248, -1
%250 = icmp ult i64 %249, 4
br i1 %250, label %319, label %251
251: ; preds = %246
%252 = and i64 %249, -4
%253 = or i64 %252, 1
%254 = mul i64 %252, %247
%255 = insertelement <2 x i64> poison, i64 %247, i64 0
%256 = shufflevector <2 x i64> %255, <2 x i64> poison, <2 x i32> zeroinitializer
%257 = mul nuw <2 x i64> %256, <i64 0, i64 1>
%258 = shl nsw i64 %247, 1
%259 = insertelement <2 x i64> poison, i64 %258, i64 0
%260 = shufflevector <2 x i64> %259, <2 x i64> poison, <2 x i32> zeroinitializer
%261 = insertelement <2 x i64> poison, i64 %247, i64 0
%262 = shufflevector <2 x i64> %261, <2 x i64> poison, <2 x i32> zeroinitializer
%263 = insertelement <2 x i64> poison, i64 %247, i64 0
%264 = shufflevector <2 x i64> %263, <2 x i64> poison, <2 x i32> zeroinitializer
%265 = add nsw i64 %252, -4
%266 = lshr exact i64 %265, 2
%267 = add nuw nsw i64 %266, 1
%268 = and i64 %267, 1
%269 = icmp eq i64 %265, 0
br i1 %269, label %303, label %270
270: ; preds = %251
%271 = and i64 %267, 9223372036854775806
br label %272
272: ; preds = %272, %270
%273 = phi i64 [ 0, %270 ], [ %297, %272 ]
%274 = phi <2 x i64> [ %257, %270 ], [ %298, %272 ]
%275 = phi i64 [ 0, %270 ], [ %299, %272 ]
%276 = or i64 %273, 1
%277 = add <2 x i64> %274, %260
%278 = add nsw <2 x i64> %274, %262
%279 = add nsw <2 x i64> %277, %264
%280 = getelementptr inbounds double, double* %38, <2 x i64> %278
%281 = getelementptr inbounds double, double* %38, <2 x i64> %279
%282 = getelementptr inbounds double*, double** %32, i64 %276
%283 = bitcast double** %282 to <2 x double*>*
store <2 x double*> %280, <2 x double*>* %283
%284 = getelementptr inbounds double*, double** %282, i64 2
%285 = bitcast double** %284 to <2 x double*>*
store <2 x double*> %281, <2 x double*>* %285
%286 = add <2 x i64> %277, %260
%287 = or i64 %273, 5
%288 = add <2 x i64> %286, %260
%289 = add nsw <2 x i64> %286, %262
%290 = add nsw <2 x i64> %288, %264
%291 = getelementptr inbounds double, double* %38, <2 x i64> %289
%292 = getelementptr inbounds double, double* %38, <2 x i64> %290
%293 = getelementptr inbounds double*, double** %32, i64 %287
%294 = bitcast double** %293 to <2 x double*>*
store <2 x double*> %291, <2 x double*>* %294
%295 = getelementptr inbounds double*, double** %293, i64 2
%296 = bitcast double** %295 to <2 x double*>*
store <2 x double*> %292, <2 x double*>* %296
%297 = add nuw i64 %273, 8
%298 = add <2 x i64> %288, %260
%299 = add i64 %275, 2
%300 = icmp eq i64 %299, %271
br i1 %300, label %301, label %272
301: ; preds = %272
%302 = or i64 %297, 1
br label %303
303: ; preds = %301, %251
%304 = phi i64 [ 1, %251 ], [ %302, %301 ]
%305 = phi <2 x i64> [ %257, %251 ], [ %298, %301 ]
%306 = icmp eq i64 %268, 0
br i1 %306, label %317, label %307
307: ; preds = %303
%308 = add <2 x i64> %305, %260
%309 = add nsw <2 x i64> %305, %262
%310 = add nsw <2 x i64> %308, %264
%311 = getelementptr inbounds double, double* %38, <2 x i64> %309
%312 = getelementptr inbounds double, double* %38, <2 x i64> %310
%313 = getelementptr inbounds double*, double** %32, i64 %304
%314 = bitcast double** %313 to <2 x double*>*
store <2 x double*> %311, <2 x double*>* %314
%315 = getelementptr inbounds double*, double** %313, i64 2
%316 = bitcast double** %315 to <2 x double*>*
store <2 x double*> %312, <2 x double*>* %316
br label %317
317: ; preds = %303, %307
%318 = icmp eq i64 %249, %252
br i1 %318, label %322, label %319
319: ; preds = %246, %317
%320 = phi i64 [ 1, %246 ], [ %253, %317 ]
%321 = phi i64 [ 0, %246 ], [ %254, %317 ]
br label %340
322: ; preds = %340, %317, %244
br i1 %60, label %323, label %407
323: ; preds = %322
%324 = load i64, i64* %13
%325 = shl i64 %27, 32
%326 = ashr exact i64 %325, 32
%327 = add nsw i64 %324, %326
%328 = shl i64 %324, 32
%329 = ashr exact i64 %328, 32
%330 = icmp sgt i64 %327, %329
%331 = sext i32 %21 to i64
%332 = zext i32 %6 to i64
%333 = sext i32 %21 to i64
%334 = add i64 %324, %326
%335 = xor i64 %329, -1
%336 = add i64 %334, %335
%337 = and i64 %27, 3
%338 = icmp eq i64 %337, 0
%339 = icmp ult i64 %336, 3
br label %348
340: ; preds = %319, %340
%341 = phi i64 [ %346, %340 ], [ %320, %319 ]
%342 = phi i64 [ %343, %340 ], [ %321, %319 ]
%343 = add nsw i64 %342, %247
%344 = getelementptr inbounds double, double* %38, i64 %343
%345 = getelementptr inbounds double*, double** %32, i64 %341
store double* %344, double** %345
%346 = add nuw nsw i64 %341, 1
%347 = icmp eq i64 %346, %248
br i1 %347, label %322, label %340
348: ; preds = %323, %403
%349 = phi i64 [ 0, %323 ], [ %405, %403 ]
%350 = phi double* [ %4, %323 ], [ %404, %403 ]
br i1 %330, label %351, label %403
351: ; preds = %348
%352 = getelementptr inbounds double*, double** %32, i64 %349
%353 = load double*, double** %352
br i1 %338, label %367, label %354
354: ; preds = %351, %354
%355 = phi i64 [ %364, %354 ], [ %329, %351 ]
%356 = phi double* [ %363, %354 ], [ %350, %351 ]
%357 = phi i64 [ %365, %354 ], [ 0, %351 ]
%358 = icmp slt i64 %355, %331
%359 = select i1 %358, i64 0, i64 %333
%360 = sub nsw i64 %355, %359
%361 = getelementptr inbounds double, double* %353, i64 %360
%362 = load double, double* %361
store double %362, double* %356
%363 = getelementptr inbounds double, double* %356, i64 1
%364 = add nsw i64 %355, 1
%365 = add i64 %357, 1
%366 = icmp eq i64 %365, %337
br i1 %366, label %367, label %354
367: ; preds = %354, %351
%368 = phi i64 [ %329, %351 ], [ %364, %354 ]
%369 = phi double* [ %350, %351 ], [ %363, %354 ]
%370 = phi double* [ undef, %351 ], [ %363, %354 ]
br i1 %339, label %403, label %371
371: ; preds = %367, %371
%372 = phi i64 [ %401, %371 ], [ %368, %367 ]
%373 = phi double* [ %400, %371 ], [ %369, %367 ]
%374 = icmp slt i64 %372, %331
%375 = select i1 %374, i64 0, i64 %333
%376 = sub nsw i64 %372, %375
%377 = getelementptr inbounds double, double* %353, i64 %376
%378 = load double, double* %377
store double %378, double* %373
%379 = getelementptr inbounds double, double* %373, i64 1
%380 = add nsw i64 %372, 1
%381 = icmp slt i64 %380, %331
%382 = select i1 %381, i64 0, i64 %333
%383 = sub nsw i64 %380, %382
%384 = getelementptr inbounds double, double* %353, i64 %383
%385 = load double, double* %384
store double %385, double* %379
%386 = getelementptr inbounds double, double* %373, i64 2
%387 = add nsw i64 %372, 2
%388 = icmp slt i64 %387, %331
%389 = select i1 %388, i64 0, i64 %333
%390 = sub nsw i64 %387, %389
%391 = getelementptr inbounds double, double* %353, i64 %390
%392 = load double, double* %391
store double %392, double* %386
%393 = getelementptr inbounds double, double* %373, i64 3
%394 = add nsw i64 %372, 3
%395 = icmp slt i64 %394, %331
%396 = select i1 %395, i64 0, i64 %333
%397 = sub nsw i64 %394, %396
%398 = getelementptr inbounds double, double* %353, i64 %397
%399 = load double, double* %398
store double %399, double* %393
%400 = getelementptr inbounds double, double* %373, i64 4
%401 = add nsw i64 %372, 4
%402 = icmp sgt i64 %327, %401
br i1 %402, label %371, label %403
403: ; preds = %367, %371, %348
%404 = phi double* [ %350, %348 ], [ %370, %367 ], [ %400, %371 ]
%405 = add nuw nsw i64 %349, 1
%406 = icmp eq i64 %405, %332
br i1 %406, label %407, label %348
407: ; preds = %403, %322
%408 = trunc i64 %27 to i32
%409 = call i32 (i8*, i8*, i32, double*, ...) bitcast (i32 (...)* @Free to i32 (i8*, i8*, i32, double*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__func__.qu2reg_subarea, i64 0, i64 0), i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str.1, i64 0, i64 0), i32 789, double* %38)
%410 = call i32 (i8*, i8*, i32, double**, ...) bitcast (i32 (...)* @Free to i32 (i8*, i8*, i32, double**, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__func__.qu2reg_subarea, i64 0, i64 0), i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str.1, i64 0, i64 0), i32 790, double** %32)
ret i32 %408
}