#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 */
typedef int /*<<< orphan*/ mpfr_t;

/* Variables and functions */
long double DBL_MIN;
int /*<<< orphan*/ GMP_RNDN;
int /*<<< orphan*/ *calloc(int, int);
double fabsl(long double);
int /*<<< orphan*/ free(int /*<<< orphan*/ *);
int /*<<< orphan*/ **malloc(int);
long double mpfr_get_ld(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ mpfr_neg(int /*<<< orphan*/, int /*<<< orphan*/,
                            int /*<<< orphan*/);
int /*<<< orphan*/ mpfr_set(int /*<<< orphan*/, int /*<<< orphan*/,
                            int /*<<< orphan*/);
int /*<<< orphan*/ mpfr_set_d(int /*<<< orphan*/, int, int /*<<< orphan*/);
int /*<<< orphan*/ mpfr_set_ld(int /*<<< orphan*/, double, int /*<<< orphan*/);
int /*<<< orphan*/ mpfr_zinit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int solve_fr(int /*<<< orphan*/ *, int, int, int /*<<< orphan*/ **, int *,
             int /*<<< orphan*/ *);
void regressMinRelError_fr(int n, int m, mpfr_t **x, mpfr_t *result) {
  int m0 = n * 3, n0 = m + 2 * n, i, j;
  mpfr_t **a0, *c0, *result0;
  int in0[m0];
  a0 = malloc(sizeof(mpfr_t *) * m0);
  for (i = 0; i < m0; i++) {
    a0[i] = calloc(n0 + 1, sizeof(mpfr_t));
    for (j = 0; j < n0 + 1; j++)
      mpfr_zinit(a0[i][j]);
  }
  c0 = calloc(n0 + 1, sizeof(mpfr_t));
  result0 = calloc(n0 + 1, sizeof(mpfr_t));
  for (j = 0; j < n0 + 1; j++) {
    mpfr_zinit(c0[j]);
    mpfr_zinit(result0[j]);
  }
  for (i = 0; i < n; i++) {
    long double ld = mpfr_get_ld(x[m][i], GMP_RNDN);
    if (ld < DBL_MIN)
      ld = 1;
    mpfr_set_ld(c0[m + i + 1], 1.0 / fabsl(ld), GMP_RNDN);
    mpfr_set_ld(c0[m + n + i + 1], 1.0 / fabsl(ld), GMP_RNDN);
    mpfr_set_d(a0[i * 3 + 0][m + i + 1], 1, GMP_RNDN);
    in0[i * 3 + 0] = 2;
    mpfr_set_d(a0[i * 3 + 1][m + n + i + 1], 1, GMP_RNDN);
    in0[i * 3 + 1] = 2;
    for (j = 0; j < m; j++) {
      mpfr_set(a0[i * 3 + 2][j + 1], x[j][i], GMP_RNDN);
    }
    mpfr_set_d(a0[i * 3 + 2][m + i + 1], 1, GMP_RNDN);
    mpfr_set_d(a0[i * 3 + 2][m + n + i + 1], -1, GMP_RNDN);
    in0[i * 3 + 2] = (0);
    mpfr_set(a0[i * 3 + 2][0], x[m][i], GMP_RNDN);
    mpfr_neg(a0[i * 3 + 2][0], a0[i * 3 + 2][0], GMP_RNDN);
  }
  int status = solve_fr(result0, n0, m0, a0, in0, c0);
  if (status == 2) {
    printf("not feasible\n");
  } else {
    if (status == 1)
      printf("maximizable to inf\n");
  }
  for (i = 0; i < m; i++) {
    mpfr_set(result[i], result0[i + 1], GMP_RNDN);
  }
  free(result0);
  free(c0);
}


x86 assembly (clang, -O0):
<regressMinRelError_fr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x4(%rbp),%ecx
mov    %ecx,%eax
lea    (%rax,%rax,2),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%edx
mov    -0x4(%rbp),%eax
mov    %eax,%ecx
mov    %edx,%eax
lea    (%rax,%rcx,2),%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x48(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x70(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   10e0 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12b1 <regressMinRelError_fr+0xf1>
mov    -0x20(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   10c0 <calloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    129e <regressMinRelError_fr+0xde>
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1090 <mpfr_zinit@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1267 <regressMinRelError_fr+0xa7>
jmp    12a3 <regressMinRelError_fr+0xe3>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1235 <regressMinRelError_fr+0x75>
mov    -0x20(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   10c0 <calloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   10c0 <calloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    131f <regressMinRelError_fr+0x15f>
mov    -0x38(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1090 <mpfr_zinit@plt>
mov    -0x40(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1090 <mpfr_zinit@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12e0 <regressMinRelError_fr+0x120>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    15ff <regressMinRelError_fr+0x43f>
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    0x2c94(%rip),%rax
mov    (%rax),%esi
call   10d0 <mpfr_get_ld@plt>
fstpt  -0x60(%rbp)
fldt   -0x60(%rbp)
mov    0x2c78(%rip),%rax
fldt   (%rax)
fucomip %st(1),%st
fstp   %st(0)
jbe    1376 <regressMinRelError_fr+0x1b6>
jmp    1371 <regressMinRelError_fr+0x1b1>
fld1
fstpt  -0x60(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x8(%rbp),%ecx
mov    -0x24(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
mov    0x4(%rax,%rcx,4),%eax
mov    %eax,-0x78(%rbp)
fldt   -0x60(%rbp)
sub    $0x10,%rsp
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <fabsl@plt>
mov    -0x78(%rbp),%edi
add    $0x10,%rsp
movaps %xmm0,%xmm1
movsd  0xc51(%rip),%xmm0
divsd  %xmm1,%xmm0
mov    0x2c26(%rip),%rax
mov    (%rax),%esi
call   1030 <mpfr_set_ld@plt>
mov    -0x38(%rbp),%rax
mov    -0x8(%rbp),%ecx
mov    -0x4(%rbp),%edx
add    %edx,%ecx
mov    -0x24(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
mov    0x4(%rax,%rcx,4),%eax
mov    %eax,-0x74(%rbp)
fldt   -0x60(%rbp)
sub    $0x10,%rsp
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <fabsl@plt>
mov    -0x74(%rbp),%edi
add    $0x10,%rsp
movaps %xmm0,%xmm1
movsd  0xc01(%rip),%xmm0
divsd  %xmm1,%xmm0
mov    0x2bd6(%rip),%rax
mov    (%rax),%esi
call   1030 <mpfr_set_ld@plt>
mov    -0x30(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x8(%rbp),%ecx
add    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edi
mov    0x2ba7(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%esi
call   1070 <mpfr_set_d@plt>
mov    -0x70(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movl   $0x2,(%rax,%rcx,4)
mov    -0x30(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x8(%rbp),%ecx
add    -0x4(%rbp),%ecx
add    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edi
mov    0x2b5b(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%esi
call   1070 <mpfr_set_d@plt>
mov    -0x70(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movl   $0x2,(%rax,%rcx,4)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1506 <regressMinRelError_fr+0x346>
mov    -0x30(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    0x2aef(%rip),%rax
mov    (%rax),%edx
call   10b0 <mpfr_set@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    14ad <regressMinRelError_fr+0x2ed>
mov    -0x30(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x8(%rbp),%ecx
add    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edi
mov    0x2ab2(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%esi
call   1070 <mpfr_set_d@plt>
mov    -0x30(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x8(%rbp),%ecx
add    -0x4(%rbp),%ecx
add    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edi
mov    0x2a7b(%rip),%rax
mov    (%rax),%edx
mov    $0xffffffff,%esi
call   1070 <mpfr_set_d@plt>
mov    -0x70(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x30(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    0x2a2c(%rip),%rax
mov    (%rax),%edx
call   10b0 <mpfr_set@plt>
mov    -0x30(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%esi
mov    0x29f6(%rip),%rax
mov    (%rax),%edx
call   1060 <mpfr_neg@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1326 <regressMinRelError_fr+0x166>
mov    -0x70(%rbp),%r8
mov    -0x40(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r9
call   1080 <solve_fr@plt>
mov    %eax,-0x64(%rbp)
cmpl   $0x2,-0x64(%rbp)
jne    1638 <regressMinRelError_fr+0x478>
lea    0x9da(%rip),%rdi
call   10a0 <printf@plt>
jmp    1653 <regressMinRelError_fr+0x493>
cmpl   $0x1,-0x64(%rbp)
jne    164e <regressMinRelError_fr+0x48e>
lea    0x9cd(%rip),%rdi
call   10a0 <printf@plt>
jmp    1653 <regressMinRelError_fr+0x493>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    169d <regressMinRelError_fr+0x4dd>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x40(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%esi
mov    0x2958(%rip),%rax
mov    (%rax),%edx
call   10b0 <mpfr_set@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    165a <regressMinRelError_fr+0x49a>
mov    -0x40(%rbp),%rdi
call   1040 <free@plt>
mov    -0x38(%rbp),%rdi
call   1040 <free@plt>
mov    -0x48(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<regressMinRelError_fr>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rcx,-0xa0(%rbp)
mov    %rdx,-0x58(%rbp)
mov    %esi,%r14d
mov    %edi,%ebx
lea    (%rbx,%rbx,2),%eax
lea    (%r14,%rbx,2),%ecx
mov    %ecx,-0x2c(%rbp)
mov    %rax,-0x88(%rbp)
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
lea    0x0(,%rbx,8),%eax
lea    (%rax,%rax,2),%edi
call   10e0 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    %r14,%rax
mov    %r14,-0x38(%rbp)
lea    (%r14,%rbx,2),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    %eax,%r15d
mov    %rbx,-0x68(%rbp)
test   %ebx,%ebx
jle    12a4 <regressMinRelError_fr+0xe4>
mov    -0x88(%rbp),%rax
cmp    $0x2,%eax
mov    $0x1,%r13d
cmovge %eax,%r13d
xor    %r12d,%r12d
jmp    1269 <regressMinRelError_fr+0xa9>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r12
cmp    %r13,%r12
je     12a4 <regressMinRelError_fr+0xe4>
mov    -0x40(%rbp),%edi
mov    $0x4,%esi
call   10c0 <calloc@plt>
mov    %rax,%r14
mov    -0x48(%rbp),%rax
mov    %r14,(%rax,%r12,8)
cmpl   $0x0,-0x2c(%rbp)
js     1260 <regressMinRelError_fr+0xa0>
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    (%r14,%rbx,4),%edi
call   10a0 <mpfr_zinit@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1290 <regressMinRelError_fr+0xd0>
jmp    1260 <regressMinRelError_fr+0xa0>
mov    -0x40(%rbp),%ebx
mov    %ebx,%edi
mov    $0x4,%esi
call   10c0 <calloc@plt>
mov    %rax,%r14
mov    %ebx,%edi
mov    $0x4,%esi
call   10c0 <calloc@plt>
mov    %rax,%r12
cmpl   $0x0,-0x2c(%rbp)
js     12eb <regressMinRelError_fr+0x12b>
xor    %ebx,%ebx
nopl   (%rax)
mov    (%r14,%rbx,4),%edi
call   10a0 <mpfr_zinit@plt>
mov    (%r12,%rbx,4),%edi
call   10a0 <mpfr_zinit@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    12d0 <regressMinRelError_fr+0x110>
mov    %r12,-0x90(%rbp)
mov    %r14,-0x70(%rbp)
mov    -0x38(%rbp),%eax
mov    %rax,-0x60(%rbp)
cmpl   $0x0,-0x68(%rbp)
mov    -0x58(%rbp),%rsi
mov    -0x50(%rbp),%r15
jle    1549 <regressMinRelError_fr+0x389>
movslq -0x38(%rbp),%r13
mov    -0x68(%rbp),%ecx
mov    %rcx,-0xa8(%rbp)
xor    %edx,%edx
mov    0x2cba(%rip),%r14
fld1
fstpt  -0xcc(%rbp)
mov    %r13,-0xb0(%rbp)
jmp    13c7 <regressMinRelError_fr+0x207>
nopw   0x0(%rax,%rax,1)
mov    -0x48(%rbp),%rax
mov    -0x80(%rbp),%r13
mov    (%rax,%r13,8),%rbx
mov    -0x40(%rbp),%rax
mov    (%rbx,%rax,4),%edi
mov    (%r14),%edx
mov    $0x1,%esi
call   1080 <mpfr_set_d@plt>
mov    -0x98(%rbp),%rax
mov    (%rbx,%rax,4),%edi
mov    (%r14),%edx
mov    $0xffffffff,%esi
call   1080 <mpfr_set_d@plt>
mov    -0x50(%rbp),%r15
movl   $0x0,(%r15,%r13,4)
mov    (%rbx),%edi
mov    -0xb0(%rbp),%r13
mov    -0x58(%rbp),%rax
mov    (%rax,%r13,8),%rax
mov    (%rax,%r12,4),%esi
mov    (%r14),%edx
call   10b0 <mpfr_set@plt>
mov    (%rbx),%edi
mov    (%r14),%edx
mov    %edi,%esi
call   1070 <mpfr_neg@plt>
mov    -0xc0(%rbp),%rcx
mov    %rcx,%rdx
cmp    -0xa8(%rbp),%rcx
mov    -0x58(%rbp),%rsi
je     1549 <regressMinRelError_fr+0x389>
mov    (%rsi,%r13,8),%rax
mov    (%rax,%rdx,4),%edi
mov    (%r14),%esi
mov    %rdx,%rbx
mov    %rdx,-0xb8(%rbp)
call   10d0 <mpfr_get_ld@plt>
mov    0x2bf1(%rip),%rax
fldt   (%rax)
fucomip %st(1),%st
fldt   -0xcc(%rbp)
fxch   %st(1)
fcmovnbe %st(1),%st
fstp   %st(1)
fld    %st(0)
fstpt  -0x80(%rbp)
lea    0x1(%rbx),%r15
mov    -0x38(%rbp),%rcx
lea    (%r15,%rcx,1),%eax
mov    %rcx,%rbx
cltq
mov    %rax,-0x40(%rbp)
mov    -0x70(%rbp),%r13
mov    0x0(%r13,%rax,4),%r12d
sub    $0x10,%rsp
fstpt  (%rsp)
call   1050 <fabsl@plt>
add    $0x10,%rsp
movsd  0xbce(%rip),%xmm1
divsd  %xmm0,%xmm1
mov    (%r14),%esi
mov    %r12d,%edi
movapd %xmm1,%xmm0
call   1030 <mpfr_set_ld@plt>
mov    -0x68(%rbp),%rax
mov    %r15,-0xc0(%rbp)
add    %r15d,%eax
add    %ebx,%eax
cltq
mov    %rax,-0x98(%rbp)
mov    0x0(%r13,%rax,4),%ebx
sub    $0x10,%rsp
fldt   -0x80(%rbp)
fstpt  (%rsp)
call   1050 <fabsl@plt>
add    $0x10,%rsp
movsd  0xb82(%rip),%xmm1
divsd  %xmm0,%xmm1
mov    (%r14),%esi
mov    %ebx,%edi
movapd %xmm1,%xmm0
call   1030 <mpfr_set_ld@plt>
mov    -0xb8(%rbp),%rax
mov    %rax,%r12
lea    (%rax,%rax,2),%rbx
mov    %ebx,%r13d
mov    -0x48(%rbp),%r15
mov    (%r15,%r13,8),%rax
mov    -0x40(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    (%r14),%edx
mov    $0x1,%esi
call   1080 <mpfr_set_d@plt>
mov    -0x50(%rbp),%rax
movl   $0x2,(%rax,%r13,4)
lea    0x1(%rbx),%r13d
mov    (%r15,%r13,8),%rax
mov    -0x98(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    (%r14),%edx
mov    $0x1,%esi
call   1080 <mpfr_set_d@plt>
add    $0x2,%ebx
mov    %rbx,-0x80(%rbp)
mov    -0x50(%rbp),%rax
movl   $0x2,(%rax,%r13,4)
cmpl   $0x0,-0x38(%rbp)
mov    -0x60(%rbp),%r15
jle    1340 <regressMinRelError_fr+0x180>
mov    -0x48(%rbp),%rax
mov    -0x80(%rbp),%rcx
mov    (%rax,%rcx,8),%rbx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
lea    0x1(%rax),%r13
mov    0x4(%rbx,%rax,4),%edi
mov    -0x58(%rbp),%rcx
mov    (%rcx,%rax,8),%rax
mov    (%rax,%r12,4),%esi
mov    (%r14),%edx
call   10b0 <mpfr_set@plt>
mov    %r13,%rax
cmp    %r13,%r15
jne    1520 <regressMinRelError_fr+0x360>
jmp    1340 <regressMinRelError_fr+0x180>
mov    -0x90(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x88(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    %r15,%r8
mov    -0x70(%rbp),%r9
call   1090 <solve_fr@plt>
cmp    $0x2,%eax
mov    -0xa0(%rbp),%r12
je     1588 <regressMinRelError_fr+0x3c8>
cmp    $0x1,%eax
mov    -0x60(%rbp),%r14
jne    1598 <regressMinRelError_fr+0x3d8>
lea    0xa82(%rip),%rdi
jmp    1593 <regressMinRelError_fr+0x3d3>
lea    0xa8c(%rip),%rdi
mov    -0x60(%rbp),%r14
call   1060 <puts@plt>
cmpl   $0x0,-0x38(%rbp)
mov    -0x90(%rbp),%r13
jle    15ca <regressMinRelError_fr+0x40a>
xor    %ebx,%ebx
mov    0x2a32(%rip),%r15
xchg   %ax,%ax
mov    (%r12,%rbx,4),%edi
mov    0x4(%r13,%rbx,4),%esi
add    $0x1,%rbx
mov    (%r15),%edx
call   10b0 <mpfr_set@plt>
cmp    %rbx,%r14
jne    15b0 <regressMinRelError_fr+0x3f0>
mov    %r13,%rdi
call   1040 <free@plt>
mov    -0x70(%rbp),%rdi
call   1040 <free@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@GMP_RNDN = global i32 0
@DBL_MIN = global x86_fp80 0xK00000000000000000000
@.str = [14 x i8] c"not feasible\0A\00"
@.str.1 = [20 x i8] c"maximizable to inf\0A\00"
define void @regressMinRelError_fr(i32 %0, i32 %1, i32** %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32**
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32**
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i8*
%17 = alloca i64
%18 = alloca x86_fp80
%19 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32** %2, i32*** %7
store i32* %3, i32** %8
%20 = load i32, i32* %5
%21 = mul nsw i32 %20, 3
store i32 %21, i32* %9
%22 = load i32, i32* %6
%23 = load i32, i32* %5
%24 = mul nsw i32 2, %23
%25 = add nsw i32 %22, %24
store i32 %25, i32* %10
%26 = load i32, i32* %9
%27 = zext i32 %26 to i64
%28 = call i8* @llvm.stacksave()
store i8* %28, i8** %16
%29 = alloca i32, i64 %27
store i64 %27, i64* %17
%30 = load i32, i32* %9
%31 = sext i32 %30 to i64
%32 = mul i64 8, %31
%33 = trunc i64 %32 to i32
%34 = call i32** @malloc(i32 %33)
store i32** %34, i32*** %13
store i32 0, i32* %11
br label %35
35: ; preds = %67, %4
%36 = load i32, i32* %11
%37 = load i32, i32* %9
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %70
39: ; preds = %35
%40 = load i32, i32* %10
%41 = add nsw i32 %40, 1
%42 = call i32* @calloc(i32 %41, i32 4)
%43 = load i32**, i32*** %13
%44 = load i32, i32* %11
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32*, i32** %43, i64 %45
store i32* %42, i32** %46
store i32 0, i32* %12
br label %47
47: ; preds = %63, %39
%48 = load i32, i32* %12
%49 = load i32, i32* %10
%50 = add nsw i32 %49, 1
%51 = icmp slt i32 %48, %50
br i1 %51, label %52, label %66
52: ; preds = %47
%53 = load i32**, i32*** %13
%54 = load i32, i32* %11
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32*, i32** %53, i64 %55
%57 = load i32*, i32** %56
%58 = load i32, i32* %12
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, i32* %57, i64 %59
%61 = load i32, i32* %60
%62 = call i32 @mpfr_zinit(i32 %61)
br label %63
63: ; preds = %52
%64 = load i32, i32* %12
%65 = add nsw i32 %64, 1
store i32 %65, i32* %12
br label %47
66: ; preds = %47
br label %67
67: ; preds = %66
%68 = load i32, i32* %11
%69 = add nsw i32 %68, 1
store i32 %69, i32* %11
br label %35
70: ; preds = %35
%71 = load i32, i32* %10
%72 = add nsw i32 %71, 1
%73 = call i32* @calloc(i32 %72, i32 4)
store i32* %73, i32** %14
%74 = load i32, i32* %10
%75 = add nsw i32 %74, 1
%76 = call i32* @calloc(i32 %75, i32 4)
store i32* %76, i32** %15
store i32 0, i32* %12
br label %77
77: ; preds = %95, %70
%78 = load i32, i32* %12
%79 = load i32, i32* %10
%80 = add nsw i32 %79, 1
%81 = icmp slt i32 %78, %80
br i1 %81, label %82, label %98
82: ; preds = %77
%83 = load i32*, i32** %14
%84 = load i32, i32* %12
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, i32* %83, i64 %85
%87 = load i32, i32* %86
%88 = call i32 @mpfr_zinit(i32 %87)
%89 = load i32*, i32** %15
%90 = load i32, i32* %12
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i32, i32* %89, i64 %91
%93 = load i32, i32* %92
%94 = call i32 @mpfr_zinit(i32 %93)
br label %95
95: ; preds = %82
%96 = load i32, i32* %12
%97 = add nsw i32 %96, 1
store i32 %97, i32* %12
br label %77
98: ; preds = %77
store i32 0, i32* %11
br label %99
99: ; preds = %303, %98
%100 = load i32, i32* %11
%101 = load i32, i32* %5
%102 = icmp slt i32 %100, %101
br i1 %102, label %103, label %306
103: ; preds = %99
%104 = load i32**, i32*** %7
%105 = load i32, i32* %6
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32*, i32** %104, i64 %106
%108 = load i32*, i32** %107
%109 = load i32, i32* %11
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, i32* %108, i64 %110
%112 = load i32, i32* %111
%113 = load i32, i32* @GMP_RNDN
%114 = call x86_fp80 @mpfr_get_ld(i32 %112, i32 %113)
store x86_fp80 %114, x86_fp80* %18
%115 = load x86_fp80, x86_fp80* %18
%116 = load x86_fp80, x86_fp80* @DBL_MIN
%117 = fcmp olt x86_fp80 %115, %116
br i1 %117, label %118, label %119
118: ; preds = %103
store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %18
br label %119
119: ; preds = %118, %103
%120 = load i32*, i32** %14
%121 = load i32, i32* %6
%122 = load i32, i32* %11
%123 = add nsw i32 %121, %122
%124 = add nsw i32 %123, 1
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i32, i32* %120, i64 %125
%127 = load i32, i32* %126
%128 = load x86_fp80, x86_fp80* %18
%129 = call double @fabsl(x86_fp80 %128)
%130 = fdiv double 1.000000e+00, %129
%131 = load i32, i32* @GMP_RNDN
%132 = call i32 @mpfr_set_ld(i32 %127, double %130, i32 %131)
%133 = load i32*, i32** %14
%134 = load i32, i32* %6
%135 = load i32, i32* %5
%136 = add nsw i32 %134, %135
%137 = load i32, i32* %11
%138 = add nsw i32 %136, %137
%139 = add nsw i32 %138, 1
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds i32, i32* %133, i64 %140
%142 = load i32, i32* %141
%143 = load x86_fp80, x86_fp80* %18
%144 = call double @fabsl(x86_fp80 %143)
%145 = fdiv double 1.000000e+00, %144
%146 = load i32, i32* @GMP_RNDN
%147 = call i32 @mpfr_set_ld(i32 %142, double %145, i32 %146)
%148 = load i32**, i32*** %13
%149 = load i32, i32* %11
%150 = mul nsw i32 %149, 3
%151 = add nsw i32 %150, 0
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds i32*, i32** %148, i64 %152
%154 = load i32*, i32** %153
%155 = load i32, i32* %6
%156 = load i32, i32* %11
%157 = add nsw i32 %155, %156
%158 = add nsw i32 %157, 1
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds i32, i32* %154, i64 %159
%161 = load i32, i32* %160
%162 = load i32, i32* @GMP_RNDN
%163 = call i32 @mpfr_set_d(i32 %161, i32 1, i32 %162)
%164 = load i32, i32* %11
%165 = mul nsw i32 %164, 3
%166 = add nsw i32 %165, 0
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds i32, i32* %29, i64 %167
store i32 2, i32* %168
%169 = load i32**, i32*** %13
%170 = load i32, i32* %11
%171 = mul nsw i32 %170, 3
%172 = add nsw i32 %171, 1
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds i32*, i32** %169, i64 %173
%175 = load i32*, i32** %174
%176 = load i32, i32* %6
%177 = load i32, i32* %5
%178 = add nsw i32 %176, %177
%179 = load i32, i32* %11
%180 = add nsw i32 %178, %179
%181 = add nsw i32 %180, 1
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds i32, i32* %175, i64 %182
%184 = load i32, i32* %183
%185 = load i32, i32* @GMP_RNDN
%186 = call i32 @mpfr_set_d(i32 %184, i32 1, i32 %185)
%187 = load i32, i32* %11
%188 = mul nsw i32 %187, 3
%189 = add nsw i32 %188, 1
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds i32, i32* %29, i64 %190
store i32 2, i32* %191
store i32 0, i32* %12
br label %192
192: ; preds = %220, %119
%193 = load i32, i32* %12
%194 = load i32, i32* %6
%195 = icmp slt i32 %193, %194
br i1 %195, label %196, label %223
196: ; preds = %192
%197 = load i32**, i32*** %13
%198 = load i32, i32* %11
%199 = mul nsw i32 %198, 3
%200 = add nsw i32 %199, 2
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds i32*, i32** %197, i64 %201
%203 = load i32*, i32** %202
%204 = load i32, i32* %12
%205 = add nsw i32 %204, 1
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds i32, i32* %203, i64 %206
%208 = load i32, i32* %207
%209 = load i32**, i32*** %7
%210 = load i32, i32* %12
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds i32*, i32** %209, i64 %211
%213 = load i32*, i32** %212
%214 = load i32, i32* %11
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds i32, i32* %213, i64 %215
%217 = load i32, i32* %216
%218 = load i32, i32* @GMP_RNDN
%219 = call i32 @mpfr_set(i32 %208, i32 %217, i32 %218)
br label %220
220: ; preds = %196
%221 = load i32, i32* %12
%222 = add nsw i32 %221, 1
store i32 %222, i32* %12
br label %192
223: ; preds = %192
%224 = load i32**, i32*** %13
%225 = load i32, i32* %11
%226 = mul nsw i32 %225, 3
%227 = add nsw i32 %226, 2
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds i32*, i32** %224, i64 %228
%230 = load i32*, i32** %229
%231 = load i32, i32* %6
%232 = load i32, i32* %11
%233 = add nsw i32 %231, %232
%234 = add nsw i32 %233, 1
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds i32, i32* %230, i64 %235
%237 = load i32, i32* %236
%238 = load i32, i32* @GMP_RNDN
%239 = call i32 @mpfr_set_d(i32 %237, i32 1, i32 %238)
%240 = load i32**, i32*** %13
%241 = load i32, i32* %11
%242 = mul nsw i32 %241, 3
%243 = add nsw i32 %242, 2
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds i32*, i32** %240, i64 %244
%246 = load i32*, i32** %245
%247 = load i32, i32* %6
%248 = load i32, i32* %5
%249 = add nsw i32 %247, %248
%250 = load i32, i32* %11
%251 = add nsw i32 %249, %250
%252 = add nsw i32 %251, 1
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds i32, i32* %246, i64 %253
%255 = load i32, i32* %254
%256 = load i32, i32* @GMP_RNDN
%257 = call i32 @mpfr_set_d(i32 %255, i32 -1, i32 %256)
%258 = load i32, i32* %11
%259 = mul nsw i32 %258, 3
%260 = add nsw i32 %259, 2
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds i32, i32* %29, i64 %261
store i32 0, i32* %262
%263 = load i32**, i32*** %13
%264 = load i32, i32* %11
%265 = mul nsw i32 %264, 3
%266 = add nsw i32 %265, 2
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds i32*, i32** %263, i64 %267
%269 = load i32*, i32** %268
%270 = getelementptr inbounds i32, i32* %269, i64 0
%271 = load i32, i32* %270
%272 = load i32**, i32*** %7
%273 = load i32, i32* %6
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds i32*, i32** %272, i64 %274
%276 = load i32*, i32** %275
%277 = load i32, i32* %11
%278 = sext i32 %277 to i64
%279 = getelementptr inbounds i32, i32* %276, i64 %278
%280 = load i32, i32* %279
%281 = load i32, i32* @GMP_RNDN
%282 = call i32 @mpfr_set(i32 %271, i32 %280, i32 %281)
%283 = load i32**, i32*** %13
%284 = load i32, i32* %11
%285 = mul nsw i32 %284, 3
%286 = add nsw i32 %285, 2
%287 = sext i32 %286 to i64
%288 = getelementptr inbounds i32*, i32** %283, i64 %287
%289 = load i32*, i32** %288
%290 = getelementptr inbounds i32, i32* %289, i64 0
%291 = load i32, i32* %290
%292 = load i32**, i32*** %13
%293 = load i32, i32* %11
%294 = mul nsw i32 %293, 3
%295 = add nsw i32 %294, 2
%296 = sext i32 %295 to i64
%297 = getelementptr inbounds i32*, i32** %292, i64 %296
%298 = load i32*, i32** %297
%299 = getelementptr inbounds i32, i32* %298, i64 0
%300 = load i32, i32* %299
%301 = load i32, i32* @GMP_RNDN
%302 = call i32 @mpfr_neg(i32 %291, i32 %300, i32 %301)
br label %303
303: ; preds = %223
%304 = load i32, i32* %11
%305 = add nsw i32 %304, 1
store i32 %305, i32* %11
br label %99
306: ; preds = %99
%307 = load i32*, i32** %15
%308 = load i32, i32* %10
%309 = load i32, i32* %9
%310 = load i32**, i32*** %13
%311 = load i32*, i32** %14
%312 = call i32 @solve_fr(i32* %307, i32 %308, i32 %309, i32** %310, i32* %29, i32* %311)
store i32 %312, i32* %19
%313 = load i32, i32* %19
%314 = icmp eq i32 %313, 2
br i1 %314, label %315, label %317
315: ; preds = %306
%316 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %323
317: ; preds = %306
%318 = load i32, i32* %19
%319 = icmp eq i32 %318, 1
br i1 %319, label %320, label %322
320: ; preds = %317
%321 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
br label %322
322: ; preds = %320, %317
br label %323
323: ; preds = %322, %315
store i32 0, i32* %11
br label %324
324: ; preds = %342, %323
%325 = load i32, i32* %11
%326 = load i32, i32* %6
%327 = icmp slt i32 %325, %326
br i1 %327, label %328, label %345
328: ; preds = %324
%329 = load i32*, i32** %8
%330 = load i32, i32* %11
%331 = sext i32 %330 to i64
%332 = getelementptr inbounds i32, i32* %329, i64 %331
%333 = load i32, i32* %332
%334 = load i32*, i32** %15
%335 = load i32, i32* %11
%336 = add nsw i32 %335, 1
%337 = sext i32 %336 to i64
%338 = getelementptr inbounds i32, i32* %334, i64 %337
%339 = load i32, i32* %338
%340 = load i32, i32* @GMP_RNDN
%341 = call i32 @mpfr_set(i32 %333, i32 %339, i32 %340)
br label %342
342: ; preds = %328
%343 = load i32, i32* %11
%344 = add nsw i32 %343, 1
store i32 %344, i32* %11
br label %324
345: ; preds = %324
%346 = load i32*, i32** %15
%347 = call i32 @free(i32* %346)
%348 = load i32*, i32** %14
%349 = call i32 @free(i32* %348)
%350 = load i8*, i8** %16
ret void
}

LLVM IR (-O2):
@GMP_RNDN = global i32 0
@DBL_MIN = global x86_fp80 0xK00000000000000000000
@str = [19 x i8] c"maximizable to inf\00"
@str.2 = [13 x i8] c"not feasible\00"
define void @regressMinRelError_fr(i32 %0, i32 %1, i32** nocapture %2, i32* nocapture %3) {
%5 = mul i32 %0, 3
%6 = shl i32 %0, 1
%7 = add i32 %6, %1
%8 = zext i32 %5 to i64
%9 = alloca i32, i64 %8
%10 = mul i32 %0, 24
%11 = tail call i32** @malloc(i32 %10)
%12 = icmp sgt i32 %0, 0
%13 = add i32 %7, 1
br i1 %12, label %14, label %33
14: ; preds = %4
%15 = icmp slt i32 %7, 0
%16 = call i32 @llvm.smax.i32(i32 %5, i32 1)
%17 = zext i32 %16 to i64
%18 = zext i32 %13 to i64
br label %19
19: ; preds = %14, %30
%20 = phi i64 [ 0, %14 ], [ %31, %30 ]
%21 = tail call i32* @calloc(i32 %13, i32 4)
%22 = getelementptr inbounds i32*, i32** %11, i64 %20
store i32* %21, i32** %22
br i1 %15, label %30, label %23
23: ; preds = %19, %23
%24 = phi i64 [ %28, %23 ], [ 0, %19 ]
%25 = getelementptr inbounds i32, i32* %21, i64 %24
%26 = load i32, i32* %25
%27 = tail call i32 @mpfr_zinit(i32 %26)
%28 = add nuw nsw i64 %24, 1
%29 = icmp eq i64 %28, %18
br i1 %29, label %30, label %23
30: ; preds = %23, %19
%31 = add nuw nsw i64 %20, 1
%32 = icmp eq i64 %31, %17
br i1 %32, label %33, label %19
33: ; preds = %30, %4
%34 = tail call i32* @calloc(i32 %13, i32 4)
%35 = tail call i32* @calloc(i32 %13, i32 4)
%36 = icmp slt i32 %7, 0
br i1 %36, label %39, label %37
37: ; preds = %33
%38 = zext i32 %13 to i64
br label %46
39: ; preds = %46, %33
br i1 %12, label %40, label %142
40: ; preds = %39
%41 = sext i32 %1 to i64
%42 = getelementptr inbounds i32*, i32** %2, i64 %41
%43 = icmp sgt i32 %1, 0
%44 = zext i32 %0 to i64
%45 = zext i32 %1 to i64
br label %56
46: ; preds = %37, %46
%47 = phi i64 [ 0, %37 ], [ %54, %46 ]
%48 = getelementptr inbounds i32, i32* %34, i64 %47
%49 = load i32, i32* %48
%50 = tail call i32 @mpfr_zinit(i32 %49)
%51 = getelementptr inbounds i32, i32* %35, i64 %47
%52 = load i32, i32* %51
%53 = tail call i32 @mpfr_zinit(i32 %52)
%54 = add nuw nsw i64 %47, 1
%55 = icmp eq i64 %54, %38
br i1 %55, label %39, label %46
56: ; preds = %40, %120
%57 = phi i64 [ 0, %40 ], [ %66, %120 ]
%58 = load i32*, i32** %42
%59 = getelementptr inbounds i32, i32* %58, i64 %57
%60 = load i32, i32* %59
%61 = load i32, i32* @GMP_RNDN
%62 = tail call x86_fp80 @mpfr_get_ld(i32 %60, i32 %61)
%63 = load x86_fp80, x86_fp80* @DBL_MIN
%64 = fcmp olt x86_fp80 %62, %63
%65 = select i1 %64, x86_fp80 0xK3FFF8000000000000000, x86_fp80 %62
%66 = add nuw nsw i64 %57, 1
%67 = trunc i64 %66 to i32
%68 = add i32 %67, %1
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, i32* %34, i64 %69
%71 = load i32, i32* %70
%72 = tail call double @fabsl(x86_fp80 %65)
%73 = fdiv double 1.000000e+00, %72
%74 = load i32, i32* @GMP_RNDN
%75 = tail call i32 @mpfr_set_ld(i32 %71, double %73, i32 %74)
%76 = add i32 %67, %0
%77 = add i32 %76, %1
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, i32* %34, i64 %78
%80 = load i32, i32* %79
%81 = tail call double @fabsl(x86_fp80 %65)
%82 = fdiv double 1.000000e+00, %81
%83 = load i32, i32* @GMP_RNDN
%84 = tail call i32 @mpfr_set_ld(i32 %80, double %82, i32 %83)
%85 = mul nuw nsw i64 %57, 3
%86 = and i64 %85, 4294967295
%87 = getelementptr inbounds i32*, i32** %11, i64 %86
%88 = load i32*, i32** %87
%89 = getelementptr inbounds i32, i32* %88, i64 %69
%90 = load i32, i32* %89
%91 = load i32, i32* @GMP_RNDN
%92 = tail call i32 @mpfr_set_d(i32 %90, i32 1, i32 %91)
%93 = getelementptr inbounds i32, i32* %9, i64 %86
store i32 2, i32* %93
%94 = add nuw i64 %85, 1
%95 = and i64 %94, 4294967295
%96 = getelementptr inbounds i32*, i32** %11, i64 %95
%97 = load i32*, i32** %96
%98 = getelementptr inbounds i32, i32* %97, i64 %78
%99 = load i32, i32* %98
%100 = load i32, i32* @GMP_RNDN
%101 = tail call i32 @mpfr_set_d(i32 %99, i32 1, i32 %100)
%102 = getelementptr inbounds i32, i32* %9, i64 %95
store i32 2, i32* %102
%103 = add nuw i64 %85, 2
%104 = and i64 %103, 4294967295
br i1 %43, label %105, label %120
105: ; preds = %56
%106 = getelementptr inbounds i32*, i32** %11, i64 %104
%107 = load i32*, i32** %106
br label %108
108: ; preds = %105, %108
%109 = phi i64 [ 0, %105 ], [ %110, %108 ]
%110 = add nuw nsw i64 %109, 1
%111 = getelementptr inbounds i32, i32* %107, i64 %110
%112 = load i32, i32* %111
%113 = getelementptr inbounds i32*, i32** %2, i64 %109
%114 = load i32*, i32** %113
%115 = getelementptr inbounds i32, i32* %114, i64 %57
%116 = load i32, i32* %115
%117 = load i32, i32* @GMP_RNDN
%118 = tail call i32 @mpfr_set(i32 %112, i32 %116, i32 %117)
%119 = icmp eq i64 %110, %45
br i1 %119, label %120, label %108
120: ; preds = %108, %56
%121 = getelementptr inbounds i32*, i32** %11, i64 %104
%122 = load i32*, i32** %121
%123 = getelementptr inbounds i32, i32* %122, i64 %69
%124 = load i32, i32* %123
%125 = load i32, i32* @GMP_RNDN
%126 = tail call i32 @mpfr_set_d(i32 %124, i32 1, i32 %125)
%127 = getelementptr inbounds i32, i32* %122, i64 %78
%128 = load i32, i32* %127
%129 = load i32, i32* @GMP_RNDN
%130 = tail call i32 @mpfr_set_d(i32 %128, i32 -1, i32 %129)
%131 = getelementptr inbounds i32, i32* %9, i64 %104
store i32 0, i32* %131
%132 = load i32, i32* %122
%133 = load i32*, i32** %42
%134 = getelementptr inbounds i32, i32* %133, i64 %57
%135 = load i32, i32* %134
%136 = load i32, i32* @GMP_RNDN
%137 = tail call i32 @mpfr_set(i32 %132, i32 %135, i32 %136)
%138 = load i32, i32* %122
%139 = load i32, i32* @GMP_RNDN
%140 = tail call i32 @mpfr_neg(i32 %138, i32 %138, i32 %139)
%141 = icmp eq i64 %66, %44
br i1 %141, label %142, label %56
142: ; preds = %120, %39
%143 = call i32 @solve_fr(i32* %35, i32 %7, i32 %5, i32** %11, i32* %9, i32* %34)
switch i32 %143, label %148 [
i32 2, label %145
i32 1, label %144
]
144: ; preds = %142
br label %145
145: ; preds = %142, %144
%146 = phi i8* [ getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0), %144 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0), %142 ]
%147 = call i32 @puts(i8* dereferenceable(1) %146)
br label %148
148: ; preds = %145, %142
%149 = icmp sgt i32 %1, 0
br i1 %149, label %150, label %162
150: ; preds = %148
%151 = zext i32 %1 to i64
br label %152
152: ; preds = %150, %152
%153 = phi i64 [ 0, %150 ], [ %156, %152 ]
%154 = getelementptr inbounds i32, i32* %3, i64 %153
%155 = load i32, i32* %154
%156 = add nuw nsw i64 %153, 1
%157 = getelementptr inbounds i32, i32* %35, i64 %156
%158 = load i32, i32* %157
%159 = load i32, i32* @GMP_RNDN
%160 = call i32 @mpfr_set(i32 %155, i32 %158, i32 %159)
%161 = icmp eq i64 %156, %151
br i1 %161, label %162, label %152
162: ; preds = %152, %148
%163 = call i32 @free(i32* %35)
%164 = call i32 @free(i32* %34)
ret void
}