#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int fabs(double);
int relax_solve(double *A, int m, int n, int stride, double *b) {
  double tmp, maxpiv;
  int i, j, k, ioff, joff, maxrow;
  int row[m];
  for (i = 0; i < m; i++)
    row[i] = i;
  for (i = 0; i < m; i++) {
    maxpiv = A[row[i] * stride + i];
    maxrow = i;
    for (k = i + 1; k < m; k++) {
      tmp = A[row[k] * stride + i];
      if (fabs(tmp) > fabs(maxpiv)) {
        maxpiv = tmp;
        maxrow = k;
      }
    }
    if (fabs(maxpiv) < 1e-6)
      return -1;
    ioff = row[i];
    row[i] = row[maxrow];
    row[maxrow] = ioff;
    ioff = row[i] * stride;
    for (j = 0; j < m; j++) {
      if (j == i)
        continue;
      joff = row[j] * stride;
      tmp = -A[joff + i] / maxpiv;
      for (k = i; k < n; k++)
        A[joff + k] += tmp * A[ioff + k];
      b[row[j]] += tmp * b[row[i]];
    }
  }
  for (i = 0; i < m; i++) {
    tmp = A[row[i] * stride + i];
    b[row[i]] /= tmp;
    A[row[i] * stride + i] /= tmp;
  }
  return 0;
}


x86 assembly (clang, -O0):
<relax_solve>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x14(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x58(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x70(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1182 <relax_solve+0x72>
mov    -0x70(%rbp),%rax
mov    -0x3c(%rbp),%edx
movslq -0x3c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    115a <relax_solve+0x4a>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13bc <relax_solve+0x2ac>
mov    -0x70(%rbp),%rcx
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rdx
mov    (%rcx,%rdx,4),%ecx
imul   -0x1c(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    123d <relax_solve+0x12d>
mov    -0x70(%rbp),%rcx
mov    -0x10(%rbp),%rax
movslq -0x44(%rbp),%rdx
mov    (%rcx,%rdx,4),%ecx
imul   -0x1c(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1030 <fabs@plt>
mov    %eax,-0x74(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1030 <fabs@plt>
mov    %eax,%ecx
mov    -0x74(%rbp),%eax
cmp    %ecx,%eax
jle    122a <relax_solve+0x11a>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0x50(%rbp)
jmp    122f <relax_solve+0x11f>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11c7 <relax_solve+0xb7>
movsd  -0x38(%rbp),%xmm0
call   1030 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0xdad(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1270 <relax_solve+0x160>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
jmp    1455 <relax_solve+0x345>
mov    -0x70(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
mov    %ecx,-0x48(%rbp)
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
movslq -0x3c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x48(%rbp),%edx
movslq -0x50(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
imul   -0x1c(%rbp),%eax
mov    %eax,-0x48(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13a9 <relax_solve+0x299>
mov    -0x40(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jne    12c8 <relax_solve+0x1b8>
jmp    139b <relax_solve+0x28b>
mov    -0x70(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
imul   -0x1c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x4c(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1363 <relax_solve+0x253>
movsd  -0x30(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x10(%rbp),%rax
mov    -0x4c(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1313 <relax_solve+0x203>
mov    -0x70(%rbp),%rcx
movsd  -0x30(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rdx
movslq (%rcx,%rdx,4),%rdx
movsd  (%rax,%rdx,8),%xmm2
mov    -0x28(%rbp),%rax
movslq -0x40(%rbp),%rdx
movslq (%rcx,%rdx,4),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    12ab <relax_solve+0x19b>
jmp    13ae <relax_solve+0x29e>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1189 <relax_solve+0x79>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1447 <relax_solve+0x337>
mov    -0x70(%rbp),%rcx
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rdx
mov    (%rcx,%rdx,4),%edx
imul   -0x1c(%rbp),%edx
add    -0x3c(%rbp),%edx
movslq %edx,%rdx
movsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rdx
movslq (%rcx,%rdx,4),%rdx
movsd  (%rax,%rdx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rdx,8)
movsd  -0x30(%rbp),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rdx
mov    (%rcx,%rdx,4),%ecx
imul   -0x1c(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    13c3 <relax_solve+0x2b3>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<relax_solve>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %r8,-0x48(%rbp)
mov    %ecx,-0x2c(%rbp)
mov    %esi,%r12d
mov    %rsp,%rbx
lea    0xf(,%r12,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
test   %esi,%esi
jle    16a5 <relax_solve+0x595>
mov    %rdi,%r15
cmp    $0x8,%esi
jae    115a <relax_solve+0x4a>
xor    %eax,%eax
jmp    12b0 <relax_solve+0x1a0>
mov    %r12d,%eax
and    $0xfffffff8,%eax
lea    -0x8(%rax),%rdi
mov    %rdi,%rcx
shr    $0x3,%rcx
add    $0x1,%rcx
mov    %ecx,%r8d
and    $0x3,%r8d
cmp    $0x18,%rdi
jae    118b <relax_solve+0x7b>
movdqa 0xe7c(%rip),%xmm0
xor    %edi,%edi
jmp    1258 <relax_solve+0x148>
and    $0xfffffffffffffffc,%rcx
movdqa 0xe69(%rip),%xmm0
xor    %edi,%edi
movdqa 0xe6e(%rip),%xmm8
movdqa 0xe75(%rip),%xmm9
movdqa 0xe7c(%rip),%xmm10
movdqa 0xe84(%rip),%xmm4
movdqa 0xe8c(%rip),%xmm5
movdqa 0xe94(%rip),%xmm6
movdqa 0xe9c(%rip),%xmm7
movdqa 0xea4(%rip),%xmm1
nopl   0x0(%rax)
movdqa %xmm0,%xmm2
paddd  %xmm8,%xmm2
movdqa %xmm0,(%rbx,%rdi,4)
movdqa %xmm2,0x10(%rbx,%rdi,4)
movdqa %xmm0,%xmm2
paddd  %xmm9,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm10,%xmm3
movdqa %xmm2,0x20(%rbx,%rdi,4)
movdqa %xmm3,0x30(%rbx,%rdi,4)
movdqa %xmm0,%xmm2
paddd  %xmm4,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm5,%xmm3
movdqa %xmm2,0x40(%rbx,%rdi,4)
movdqa %xmm3,0x50(%rbx,%rdi,4)
movdqa %xmm0,%xmm2
paddd  %xmm6,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm7,%xmm3
movdqa %xmm2,0x60(%rbx,%rdi,4)
movdqa %xmm3,0x70(%rbx,%rdi,4)
add    $0x20,%rdi
paddd  %xmm1,%xmm0
add    $0xfffffffffffffffc,%rcx
jne    11e0 <relax_solve+0xd0>
test   %r8,%r8
je     12a0 <relax_solve+0x190>
lea    (%rbx,%rdi,4),%rcx
add    $0x10,%rcx
shl    $0x5,%r8
xor    %edi,%edi
movdqa 0xd9d(%rip),%xmm1
movdqa 0xda5(%rip),%xmm2
nopl   0x0(%rax,%rax,1)
movdqa %xmm0,%xmm3
paddd  %xmm1,%xmm3
movdqa %xmm0,-0x10(%rcx,%rdi,1)
movdqa %xmm3,(%rcx,%rdi,1)
paddd  %xmm2,%xmm0
add    $0x20,%rdi
cmp    %rdi,%r8
jne    1280 <relax_solve+0x170>
cmp    %r12,%rax
je     12bc <relax_solve+0x1ac>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %eax,(%rbx,%rax,4)
add    $0x1,%rax
cmp    %rax,%r12
jne    12b0 <relax_solve+0x1a0>
test   %esi,%esi
jle    16a5 <relax_solve+0x595>
mov    %esi,-0x6c(%rbp)
movslq %edx,%rax
mov    %rax,-0xd8(%rbp)
mov    %eax,%r14d
mov    %r14,%rax
neg    %rax
mov    %rax,-0xd0(%rbp)
lea    0x10(%r15),%rax
mov    %rax,-0x50(%rbp)
lea    0x8(%r15),%rax
mov    %rax,-0x80(%rbp)
mov    $0x1,%ecx
xor    %edx,%edx
mov    %r14,-0x78(%rbp)
mov    %rbx,-0x90(%rbp)
mov    %r12,-0x60(%rbp)
jmp    1338 <relax_solve+0x228>
nopl   0x0(%rax)
mov    -0xa0(%rbp),%rcx
add    $0x1,%rcx
addq   $0xffffffffffffffff,-0x78(%rbp)
addq   $0x8,-0x50(%rbp)
mov    -0x98(%rbp),%rax
mov    %rax,%rdx
cmp    %r12,%rax
je     1650 <relax_solve+0x540>
mov    (%rbx,%rdx,4),%eax
mov    %eax,-0x58(%rbp)
imul   -0x2c(%rbp),%eax
add    %edx,%eax
cltq
movsd  (%r15,%rax,8),%xmm1
lea    0x1(%rdx),%rax
mov    %rax,-0x98(%rbp)
cmp    %r12,%rax
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0xa0(%rbp)
jae    13d0 <relax_solve+0x2c0>
mov    %rcx,%r12
mov    %edx,%r13d
jmp    138d <relax_solve+0x27d>
nop
cmovg  %r12d,%r13d
add    $0x1,%r12
movapd %xmm0,%xmm1
cmp    %r12,-0x60(%rbp)
mov    -0x90(%rbp),%rbx
mov    -0x38(%rbp),%rdx
je     13d7 <relax_solve+0x2c7>
movsd  %xmm1,-0x40(%rbp)
mov    (%rbx,%r12,4),%eax
imul   -0x2c(%rbp),%eax
add    %edx,%eax
cltq
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
call   1030 <fabs@plt>
mov    %eax,%ebx
movsd  -0x40(%rbp),%xmm0
call   1030 <fabs@plt>
movsd  -0x68(%rbp),%xmm0
cmp    %eax,%ebx
jg     1370 <relax_solve+0x260>
movsd  -0x40(%rbp),%xmm0
jmp    1370 <relax_solve+0x260>
nopw   0x0(%rax,%rax,1)
movapd %xmm1,%xmm0
mov    %edx,%r13d
movsd  %xmm0,-0x68(%rbp)
call   1030 <fabs@plt>
test   %eax,%eax
jle    1649 <relax_solve+0x539>
mov    %r14,%rdi
mov    -0x38(%rbp),%rsi
sub    %rsi,%rdi
mov    -0x78(%rbp),%rdx
and    $0xfffffffffffffffc,%rdx
lea    (%r15,%rdi,8),%r8
movslq %r13d,%rax
mov    (%rbx,%rax,4),%ecx
mov    %ecx,(%rbx,%rsi,4)
mov    -0x58(%rbp),%ecx
mov    %ecx,(%rbx,%rax,4)
movslq (%rbx,%rsi,4),%r9
movslq -0x2c(%rbp),%rax
mov    %r9,%rcx
mov    %r9,-0x58(%rbp)
mov    %rax,-0x40(%rbp)
imul   %rax,%r9
lea    (%rsi,%r9,1),%rax
lea    (%r15,%rax,8),%rcx
mov    %rcx,-0xb8(%rbp)
mov    %r8,-0xc0(%rbp)
lea    (%r8,%rax,8),%rax
mov    %rax,-0xc8(%rbp)
mov    %rdi,-0x88(%rbp)
mov    %rdi,%rax
mov    %r9,%rdi
and    $0xfffffffffffffffc,%rax
mov    %rax,-0xb0(%rbp)
add    %rsi,%rax
mov    %rax,-0xa8(%rbp)
mov    -0x50(%rbp),%rax
lea    (%rax,%r9,8),%r11
mov    -0x80(%rbp),%rax
lea    (%rax,%r9,8),%r8
xor    %r9d,%r9d
mov    -0x48(%rbp),%rcx
mov    -0x60(%rbp),%r12
movapd 0xc05(%rip),%xmm6
movsd  -0x68(%rbp),%xmm7
jmp    14cd <relax_solve+0x3bd>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    -0x58(%rbp),%rax
mulsd  (%rcx,%rax,8),%xmm0
addsd  (%rcx,%r13,8),%xmm0
movsd  %xmm0,(%rcx,%r13,8)
mov    -0x90(%rbp),%rbx
mov    -0x38(%rbp),%rsi
add    $0x1,%r9
cmp    %r12,%r9
je     1310 <relax_solve+0x200>
cmp    %rsi,%r9
je     14c0 <relax_solve+0x3b0>
movslq (%rbx,%r9,4),%r13
mov    %r13,%r10
imul   -0x40(%rbp),%r10
lea    (%r10,%rsi,1),%eax
cltq
movsd  (%r15,%rax,8),%xmm0
xorpd  %xmm6,%xmm0
divsd  %xmm7,%xmm0
cmp    -0xd8(%rbp),%rsi
jge    14a0 <relax_solve+0x390>
mov    -0x38(%rbp),%rax
cmpq   $0x4,-0x88(%rbp)
04
jb     15b0 <relax_solve+0x4a0>
mov    -0x38(%rbp),%rax
add    %r10,%rax
lea    (%r15,%rax,8),%rbx
cmp    -0xc8(%rbp),%rbx
jae    1539 <relax_solve+0x429>
mov    -0xc0(%rbp),%rsi
lea    (%rsi,%rax,8),%rbx
mov    -0x38(%rbp),%rax
cmp    %rbx,-0xb8(%rbp)
jb     15b0 <relax_solve+0x4a0>
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
mov    -0x50(%rbp),%rax
lea    (%rax,%r10,8),%rax
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movupd -0x10(%r11,%rbx,8),%xmm2
movupd (%r11,%rbx,8),%xmm3
movupd -0x10(%rax,%rbx,8),%xmm4
movupd (%rax,%rbx,8),%xmm5
mulpd  %xmm1,%xmm2
addpd  %xmm4,%xmm2
mulpd  %xmm1,%xmm3
addpd  %xmm5,%xmm3
movupd %xmm2,-0x10(%rax,%rbx,8)
movupd %xmm3,(%rax,%rbx,8)
add    $0x4,%rbx
cmp    %rbx,%rdx
jne    1550 <relax_solve+0x440>
mov    -0xa8(%rbp),%rax
mov    -0xb0(%rbp),%rsi
cmp    %rsi,-0x88(%rbp)
je     14a0 <relax_solve+0x390>
nopw   0x0(%rax,%rax,1)
mov    %r15,%r12
mov    %r14d,%r15d
sub    %eax,%r15d
mov    %rax,%rbx
test   $0x1,%r15b
mov    %r12,%r15
je     15eb <relax_solve+0x4db>
lea    (%rax,%rdi,1),%rbx
lea    (%rax,%r10,1),%rcx
movsd  (%r15,%rbx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%r15,%rcx,8),%xmm1
movsd  %xmm1,(%r15,%rcx,8)
mov    -0x48(%rbp),%rcx
lea    0x1(%rax),%rbx
not    %rax
cmp    -0xd0(%rbp),%rax
mov    -0x60(%rbp),%r12
je     14a0 <relax_solve+0x390>
mov    -0x80(%rbp),%rax
lea    (%rax,%r10,8),%rax
nopw   0x0(%rax,%rax,1)
movsd  -0x8(%r8,%rbx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  -0x8(%rax,%rbx,8),%xmm1
movsd  %xmm1,-0x8(%rax,%rbx,8)
movsd  (%r8,%rbx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rax,%rbx,8),%xmm1
movsd  %xmm1,(%rax,%rbx,8)
add    $0x2,%rbx
cmp    %rbx,%r14
jne    1610 <relax_solve+0x500>
jmp    14a0 <relax_solve+0x390>
mov    $0xffffffff,%eax
jmp    16a7 <relax_solve+0x597>
cmpl   $0x0,-0x6c(%rbp)
jle    16a5 <relax_solve+0x595>
xor    %eax,%eax
xor    %edx,%edx
mov    -0x40(%rbp),%r8
xchg   %ax,%ax
movslq (%rbx,%rdx,4),%rcx
mov    %rcx,%rsi
imul   %r8,%rsi
add    %rdx,%rsi
movsd  (%r15,%rsi,8),%xmm0
mov    -0x48(%rbp),%rdi
movsd  (%rdi,%rcx,8),%xmm1
divsd  %xmm0,%xmm1
mov    -0x48(%rbp),%rdi
movsd  %xmm1,(%rdi,%rcx,8)
movsd  (%r15,%rsi,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%r15,%rsi,8)
add    $0x1,%rdx
cmp    %rdx,%r12
jne    1660 <relax_solve+0x550>
jmp    16a7 <relax_solve+0x597>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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