#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 */
float FLT_EPSILON;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free(float *);
scalar_t__ log10(float);
scalar_t__ malloc(int);
scalar_t__ sqrt(float);
int /*<<< orphan*/ stderr;
void stub1(float *, float *, int, int, void *);
void stub2(float *, float *, int, int, void *);
void stub3(float *, float *, int, int, void *);
void slevmar_chkjac(void (*func)(float *p, float *hx, int m, int n,
                                 void *adata),
                    void (*jacf)(float *p, float *j, int m, int n, void *adata),
                    float *p, int m, int n, void *adata, float *err) {
  float factor = 100.0F;
  float one = 1.0F;
  float zero = 0.0F;
  float *fvec, *fjac, *pp, *fvecp, *buf;
  register int i, j;
  float eps, epsf, temp, epsmch;
  float epslog;
  int fvec_sz = n, fjac_sz = n * m, pp_sz = m, fvecp_sz = n;
  epsmch = FLT_EPSILON;
  eps = (float)sqrt(epsmch);
  buf = (float *)malloc((fvec_sz + fjac_sz + pp_sz + fvecp_sz) * sizeof(float));
  if (!buf) {
    fprintf(stderr, "slevmar_chkjac"
                    "(): memory allocation request failed\n");
    exit(1);
  }
  fvec = buf;
  fjac = fvec + fvec_sz;
  pp = fjac + fjac_sz;
  fvecp = pp + pp_sz;
  (*func)(p, fvec, m, n, adata);
  (*jacf)(p, fjac, m, n, adata);
  for (j = 0; j < m; ++j) {
    temp = eps * (((p[j]) >= 0.0) ? (p[j]) : -(p[j]));
    if (temp == zero)
      temp = eps;
    pp[j] = p[j] + temp;
  }
  (*func)(pp, fvecp, m, n, adata);
  epsf = factor * epsmch;
  epslog = (float)log10(eps);
  for (i = 0; i < n; ++i)
    err[i] = zero;
  for (j = 0; j < m; ++j) {
    temp = (((p[j]) >= 0.0) ? (p[j]) : -(p[j]));
    if (temp == zero)
      temp = one;
    for (i = 0; i < n; ++i)
      err[i] += temp * fjac[i * m + j];
  }
  for (i = 0; i < n; ++i) {
    temp = one;
    if (fvec[i] != zero && fvecp[i] != zero &&
        (((fvecp[i] - fvec[i]) >= 0.0) ? (fvecp[i] - fvec[i])
                                       : -(fvecp[i] - fvec[i])) >=
            epsf * (((fvec[i]) >= 0.0) ? (fvec[i]) : -(fvec[i])))
      temp = eps *
             ((((fvecp[i] - fvec[i]) / eps - err[i]) >= 0.0)
                  ? ((fvecp[i] - fvec[i]) / eps - err[i])
                  : -((fvecp[i] - fvec[i]) / eps - err[i])) /
             ((((fvec[i]) >= 0.0) ? (fvec[i]) : -(fvec[i])) +
              (((fvecp[i]) >= 0.0) ? (fvecp[i]) : -(fvecp[i])));
    err[i] = one;
    if (temp > epsmch && temp < eps)
      err[i] = ((float)log10(temp) - epslog) / epslog;
    if (temp >= eps)
      err[i] = zero;
  }
  free(buf);
  return;
}


x86 assembly (clang, -O0):
<slevmar_chkjac>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movss  0xe76(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  0xe65(%rip),%xmm0
movss  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x80(%rbp)
mov    -0x20(%rbp),%eax
imul   -0x1c(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x88(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    0x2e0c(%rip),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x78(%rbp)
movss  -0x78(%rbp),%xmm0
call   1070 <sqrt@plt>
cvtsi2ss %rax,%xmm0
movss  %xmm0,-0x6c(%rbp)
mov    -0x80(%rbp),%eax
add    -0x84(%rbp),%eax
add    -0x88(%rbp),%eax
add    -0x8c(%rbp),%eax
cltq
shl    $0x2,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x60(%rbp)
jne    1241 <slevmar_chkjac+0xe1>
mov    0x2daf(%rip),%rax
mov    (%rax),%edi
lea    0xdd6(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x60(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x80(%rbp),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
movslq -0x84(%rbp),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movslq -0x88(%rbp),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    -0x28(%rbp),%r8
call   *%rax
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    -0x28(%rbp),%r8
call   *%rax
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1397 <slevmar_chkjac+0x237>
movss  -0x6c(%rbp),%xmm0
movss  %xmm0,-0x90(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1310 <slevmar_chkjac+0x1b0>
mov    -0x18(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x94(%rbp)
ff
jmp    1332 <slevmar_chkjac+0x1d2>
mov    -0x18(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x94(%rbp)
ff
movss  -0x90(%rbp),%xmm0
ff
movss  -0x94(%rbp),%xmm1
ff
mulss  %xmm1,%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x74(%rbp),%xmm0
ucomiss -0x34(%rbp),%xmm0
jne    136a <slevmar_chkjac+0x20a>
jp     136a <slevmar_chkjac+0x20a>
movss  -0x6c(%rbp),%xmm0
movss  %xmm0,-0x74(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
addss  -0x74(%rbp),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    12bf <slevmar_chkjac+0x15f>
mov    -0x8(%rbp),%rax
mov    -0x50(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    -0x28(%rbp),%r8
call   *%rax
movss  -0x2c(%rbp),%xmm0
mulss  -0x78(%rbp),%xmm0
movss  %xmm0,-0x70(%rbp)
movss  -0x6c(%rbp),%xmm0
call   1060 <log10@plt>
cvtsi2ss %rax,%xmm0
movss  %xmm0,-0x7c(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1405 <slevmar_chkjac+0x2a5>
movss  -0x34(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    13d9 <slevmar_chkjac+0x279>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1507 <slevmar_chkjac+0x3a7>
mov    -0x18(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1450 <slevmar_chkjac+0x2f0>
mov    -0x18(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x98(%rbp)
ff
jmp    1472 <slevmar_chkjac+0x312>
mov    -0x18(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x98(%rbp)
ff
movss  -0x98(%rbp),%xmm0
ff
movss  %xmm0,-0x74(%rbp)
movss  -0x74(%rbp),%xmm0
ucomiss -0x34(%rbp),%xmm0
jne    149e <slevmar_chkjac+0x33e>
jp     149e <slevmar_chkjac+0x33e>
movss  -0x30(%rbp),%xmm0
movss  %xmm0,-0x74(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    14f4 <slevmar_chkjac+0x394>
movss  -0x74(%rbp),%xmm0
mov    -0x48(%rbp),%rax
mov    -0x64(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
add    -0x68(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm2
mov    0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    14a5 <slevmar_chkjac+0x345>
jmp    14f9 <slevmar_chkjac+0x399>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    140c <slevmar_chkjac+0x2ac>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    18dc <slevmar_chkjac+0x77c>
movss  -0x30(%rbp),%xmm0
movss  %xmm0,-0x74(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
ucomiss -0x34(%rbp),%xmm0
jne    1546 <slevmar_chkjac+0x3e6>
jp     1546 <slevmar_chkjac+0x3e6>
jmp    184e <slevmar_chkjac+0x6ee>
mov    -0x58(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
ucomiss -0x34(%rbp),%xmm0
jne    1568 <slevmar_chkjac+0x408>
jp     1568 <slevmar_chkjac+0x408>
jmp    184e <slevmar_chkjac+0x6ee>
mov    -0x58(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
subss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     15ba <slevmar_chkjac+0x45a>
mov    -0x58(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
subss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x9c(%rbp)
ff
jmp    15e9 <slevmar_chkjac+0x489>
mov    -0x58(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
subss  (%rax,%rcx,4),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x9c(%rbp)
ff
movss  -0x9c(%rbp),%xmm0
ff
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0x70(%rbp),%xmm0
movss  %xmm0,-0xa0(%rbp)
ff
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     163e <slevmar_chkjac+0x4de>
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0xa8(%rbp)
ff
jmp    1660 <slevmar_chkjac+0x500>
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0xa8(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
movss  -0xa0(%rbp),%xmm1
ff
movss  -0xa8(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
ucomiss %xmm1,%xmm0
jb     184e <slevmar_chkjac+0x6ee>
movss  -0x6c(%rbp),%xmm0
movss  %xmm0,-0xac(%rbp)
ff
mov    -0x58(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
subss  (%rax,%rcx,4),%xmm0
divss  -0x6c(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
subss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1708 <slevmar_chkjac+0x5a8>
mov    -0x58(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
subss  (%rax,%rcx,4),%xmm0
divss  -0x6c(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
subss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0xb0(%rbp)
ff
jmp    1749 <slevmar_chkjac+0x5e9>
mov    -0x58(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
subss  (%rax,%rcx,4),%xmm0
divss  -0x6c(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
subss  (%rax,%rcx,4),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0xb0(%rbp)
ff
movss  -0xac(%rbp),%xmm0
ff
movss  -0xb0(%rbp),%xmm1
ff
mulss  %xmm1,%xmm0
movss  %xmm0,-0xb4(%rbp)
ff
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     179d <slevmar_chkjac+0x63d>
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0xb8(%rbp)
ff
jmp    17bf <slevmar_chkjac+0x65f>
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0xb8(%rbp)
ff
movss  -0xb8(%rbp),%xmm0
ff
movss  %xmm0,-0xbc(%rbp)
ff
mov    -0x58(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1807 <slevmar_chkjac+0x6a7>
mov    -0x58(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0xc0(%rbp)
ff
jmp    1829 <slevmar_chkjac+0x6c9>
mov    -0x58(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0xc0(%rbp)
ff
movss  -0xb4(%rbp),%xmm0
ff
movss  -0xbc(%rbp),%xmm1
ff
movss  -0xc0(%rbp),%xmm2
ff
addss  %xmm2,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x30(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movss  -0x74(%rbp),%xmm0
ucomiss -0x78(%rbp),%xmm0
jbe    18a8 <slevmar_chkjac+0x748>
movss  -0x74(%rbp),%xmm1
movss  -0x6c(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    18a8 <slevmar_chkjac+0x748>
movss  -0x74(%rbp),%xmm0
call   1060 <log10@plt>
cvtsi2ss %rax,%xmm0
subss  -0x7c(%rbp),%xmm0
divss  -0x7c(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movss  -0x74(%rbp),%xmm0
ucomiss -0x6c(%rbp),%xmm0
jb     18c9 <slevmar_chkjac+0x769>
movss  -0x34(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
jmp    18ce <slevmar_chkjac+0x76e>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    150e <slevmar_chkjac+0x3ae>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<slevmar_chkjac>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %r9,0x28(%rsp)
mov    %r8d,%r15d
mov    %ecx,%r13d
mov    %rdx,%r12
mov    %rsi,0x20(%rsp)
mov    %rdi,0x50(%rsp)
mov    0xb0(%rsp),%rbx
mov    %r8d,%ebp
imul   %ecx,%ebp
mov    0x2e35(%rip),%rax
movss  (%rax),%xmm0
movss  %xmm0,0xc(%rsp)
call   1080 <sqrt@plt>
mov    %rax,%r14
lea    0x0(%rbp,%r13,1),%eax
lea    (%rax,%r15,2),%edi
shl    $0x2,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     177c <slevmar_chkjac+0x60c>
xorps  %xmm0,%xmm0
cvtsi2ss %r14,%xmm0
movaps %xmm0,0x40(%rsp)
movslq %r15d,%rcx
mov    %rcx,0x38(%rsp)
lea    (%rax,%rcx,4),%r14
movslq %ebp,%rcx
mov    %rcx,0x30(%rsp)
lea    (%r14,%rcx,4),%rcx
mov    %rcx,0x60(%rsp)
mov    %r13,0x18(%rsp)
movslq %r13d,%r13
lea    (%rcx,%r13,4),%rcx
mov    %rcx,0x68(%rsp)
mov    %r12,%rdi
mov    %rax,0x10(%rsp)
mov    %rax,%rsi
mov    %r13d,%edx
mov    %r15d,%ecx
mov    0x28(%rsp),%rbp
mov    %rbp,%r8
call   *0x50(%rsp)
mov    %r12,%rdi
mov    %r14,0x70(%rsp)
mov    %r14,%rsi
mov    %r13d,%edx
mov    %r15d,%ecx
mov    %rbp,%r8
call   *0x20(%rsp)
mov    0x30(%rsp),%r11
mov    0x60(%rsp),%rdi
mov    0x38(%rsp),%r10
movaps 0x40(%rsp),%xmm10
mov    0x18(%rsp),%r9
mov    %r9d,%r14d
test   %r13d,%r13d
jle    1478 <slevmar_chkjac+0x308>
cmp    $0x8,%r9d
jb     129a <slevmar_chkjac+0x12a>
lea    (%r10,%r11,1),%rcx
lea    (%r12,%r14,4),%rax
cmp    %rax,%rdi
jae    13b4 <slevmar_chkjac+0x244>
lea    (%rcx,%r14,1),%rax
mov    0x10(%rsp),%rdx
lea    (%rdx,%rax,4),%rax
cmp    %r12,%rax
jbe    13b4 <slevmar_chkjac+0x244>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
test   $0x1,%r14b
je     12f0 <slevmar_chkjac+0x180>
movss  (%r12,%rax,4),%xmm0
movaps 0xd4b(%rip),%xmm1
xorps  %xmm0,%xmm1
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
cmpnless %xmm0,%xmm3
andps  %xmm3,%xmm1
andnps %xmm0,%xmm3
orps   %xmm1,%xmm3
mulss  %xmm10,%xmm3
cmpeqss %xmm3,%xmm2
movaps %xmm2,%xmm1
andnps %xmm3,%xmm1
andps  %xmm10,%xmm2
orps   %xmm1,%xmm2
addss  %xmm0,%xmm2
movss  %xmm2,(%rdi,%rax,4)
or     $0x1,%rax
add    %r14,%rcx
je     1478 <slevmar_chkjac+0x308>
lea    (%r10,%r11,1),%rcx
mov    0x10(%rsp),%rdx
lea    (%rdx,%rcx,4),%rcx
add    $0x4,%rcx
movaps 0xcef(%rip),%xmm0
xorps  %xmm1,%xmm1
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movss  (%r12,%rax,4),%xmm2
movaps %xmm2,%xmm3
xorps  %xmm0,%xmm3
xorps  %xmm4,%xmm4
cmpnless %xmm2,%xmm4
andps  %xmm4,%xmm3
andnps %xmm2,%xmm4
orps   %xmm3,%xmm4
mulss  %xmm10,%xmm4
movaps %xmm4,%xmm3
cmpeqss %xmm1,%xmm3
movaps %xmm3,%xmm5
andnps %xmm4,%xmm5
andps  %xmm10,%xmm3
orps   %xmm5,%xmm3
addss  %xmm2,%xmm3
movss  %xmm3,-0x4(%rcx,%rax,4)
movss  0x4(%r12,%rax,4),%xmm2
movaps %xmm2,%xmm3
xorps  %xmm0,%xmm3
xorps  %xmm4,%xmm4
cmpnless %xmm2,%xmm4
andps  %xmm4,%xmm3
andnps %xmm2,%xmm4
orps   %xmm3,%xmm4
mulss  %xmm10,%xmm4
movaps %xmm4,%xmm3
cmpeqss %xmm1,%xmm3
movaps %xmm3,%xmm5
andnps %xmm4,%xmm5
andps  %xmm10,%xmm3
orps   %xmm5,%xmm3
addss  %xmm2,%xmm3
movss  %xmm3,(%rcx,%rax,4)
add    $0x2,%rax
cmp    %rax,%r14
jne    1320 <slevmar_chkjac+0x1b0>
jmp    1478 <slevmar_chkjac+0x308>
mov    %r14d,%eax
and    $0xfffffff8,%eax
movaps %xmm10,%xmm2
shufps $0x0,%xmm10,%xmm2
mov    0x10(%rsp),%rdx
lea    (%rdx,%rcx,4),%rcx
add    $0x10,%rcx
lea    0x0(,%r14,4),%rdx
and    $0xffffffffffffffe0,%rdx
xor    %esi,%esi
xorps  %xmm8,%xmm8
movaps 0xc16(%rip),%xmm9
nopw   0x0(%rax,%rax,1)
movups (%r12,%rsi,1),%xmm4
movups 0x10(%r12,%rsi,1),%xmm1
xorps  %xmm6,%xmm6
cmpnleps %xmm4,%xmm6
xorps  %xmm5,%xmm5
cmpnleps %xmm1,%xmm5
movaps %xmm4,%xmm7
xorps  %xmm9,%xmm7
movaps %xmm1,%xmm3
xorps  %xmm9,%xmm3
andps  %xmm6,%xmm7
andnps %xmm4,%xmm6
orps   %xmm7,%xmm6
andps  %xmm5,%xmm3
andnps %xmm1,%xmm5
orps   %xmm3,%xmm5
mulps  %xmm2,%xmm6
mulps  %xmm2,%xmm5
movaps %xmm6,%xmm3
cmpeqps %xmm8,%xmm3
movaps %xmm5,%xmm7
cmpeqps %xmm8,%xmm7
movaps %xmm2,%xmm0
andps  %xmm3,%xmm0
andnps %xmm6,%xmm3
orps   %xmm0,%xmm3
movaps %xmm2,%xmm0
andps  %xmm7,%xmm0
andnps %xmm5,%xmm7
orps   %xmm0,%xmm7
addps  %xmm4,%xmm3
addps  %xmm1,%xmm7
movups %xmm3,-0x10(%rcx,%rsi,1)
movups %xmm7,(%rcx,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%rdx
jne    13f0 <slevmar_chkjac+0x280>
cmp    %r14,%rax
jne    129c <slevmar_chkjac+0x12c>
mov    %r14,0x20(%rsp)
mov    0x68(%rsp),%rsi
mov    %r9d,%edx
mov    %r15d,%ecx
mov    %rbp,%r8
call   *0x50(%rsp)
movaps 0x40(%rsp),%xmm0
call   1070 <log10@plt>
mov    %r15d,%r14d
test   %r15d,%r15d
jle    14b9 <slevmar_chkjac+0x349>
lea    0x0(,%r14,4),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
mov    %rax,%rbp
call   1040 <memset@plt>
mov    %rbp,%rax
cmpl   $0x0,0x18(%rsp)
movaps 0x40(%rsp),%xmm8
mov    0x70(%rsp),%r8
mov    0x20(%rsp),%r9
jle    15cd <slevmar_chkjac+0x45d>
mov    %r14d,%ebp
and    $0xfffffffe,%ebp
lea    0x0(,%r13,8),%rcx
xor    %edx,%edx
movaps 0xb15(%rip),%xmm0
xorps  %xmm1,%xmm1
movss  0xb1e(%rip),%xmm2
mov    %r8,%r10
jmp    1511 <slevmar_chkjac+0x3a1>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rdx
add    $0x4,%r10
cmp    %r9,%rdx
je     15cd <slevmar_chkjac+0x45d>
test   %r15d,%r15d
jle    1500 <slevmar_chkjac+0x390>
movss  (%r12,%rdx,4),%xmm3
movaps %xmm3,%xmm4
xorps  %xmm0,%xmm4
xorps  %xmm5,%xmm5
cmpnless %xmm3,%xmm5
andps  %xmm5,%xmm4
andnps %xmm3,%xmm5
orps   %xmm4,%xmm5
movaps %xmm5,%xmm3
cmpeqss %xmm1,%xmm3
movaps %xmm3,%xmm4
andnps %xmm5,%xmm4
andps  %xmm2,%xmm3
orps   %xmm4,%xmm3
cmp    $0x1,%r15d
jne    1560 <slevmar_chkjac+0x3f0>
xor    %edi,%edi
jmp    15a4 <slevmar_chkjac+0x434>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r10,%rsi
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nop
movss  (%rsi),%xmm4
mulss  %xmm3,%xmm4
addss  (%rbx,%rdi,4),%xmm4
movss  %xmm4,(%rbx,%rdi,4)
movss  (%rsi,%r13,4),%xmm4
mulss  %xmm3,%xmm4
addss  0x4(%rbx,%rdi,4),%xmm4
movss  %xmm4,0x4(%rbx,%rdi,4)
add    $0x2,%rdi
add    %rcx,%rsi
cmp    %rdi,%rbp
jne    1570 <slevmar_chkjac+0x400>
test   $0x1,%r14b
je     1500 <slevmar_chkjac+0x390>
mov    %rdi,%rsi
imul   %r13,%rsi
add    %rdx,%rsi
mulss  (%r8,%rsi,4),%xmm3
addss  (%rbx,%rdi,4),%xmm3
movss  %xmm3,(%rbx,%rdi,4)
jmp    1500 <slevmar_chkjac+0x390>
test   %r15d,%r15d
mov    0x10(%rsp),%r12
jle    1766 <slevmar_chkjac+0x5f6>
movss  0xa2d(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtsi2ss %rax,%xmm1
movss  %xmm1,0x18(%rsp)
mulss  0xc(%rsp),%xmm0
movss  %xmm0,0x28(%rsp)
mov    0x38(%rsp),%rax
add    %r13,%rax
add    0x30(%rsp),%rax
lea    (%r12,%rax,4),%r15
xor    %ebp,%ebp
movss  0x9fc(%rip),%xmm7
xorps  %xmm9,%xmm9
jmp    162d <slevmar_chkjac+0x4bd>
xchg   %ax,%ax
add    $0x1,%rbp
cmp    %rbp,%r14
je     1766 <slevmar_chkjac+0x5f6>
movss  (%r12,%rbp,4),%xmm3
ucomiss %xmm9,%xmm3
movaps %xmm7,%xmm0
jne    1642 <slevmar_chkjac+0x4d2>
jnp    1700 <slevmar_chkjac+0x590>
movss  (%r15,%rbp,4),%xmm6
ucomiss %xmm9,%xmm6
movaps %xmm7,%xmm0
jne    1657 <slevmar_chkjac+0x4e7>
jnp    1700 <slevmar_chkjac+0x590>
movaps %xmm6,%xmm2
subss  %xmm3,%xmm2
movaps %xmm2,%xmm1
movaps 0x998(%rip),%xmm0
xorps  %xmm0,%xmm1
xorps  %xmm4,%xmm4
cmpnless %xmm2,%xmm4
andps  %xmm4,%xmm1
andnps %xmm2,%xmm4
orps   %xmm1,%xmm4
movaps %xmm3,%xmm5
xorps  %xmm0,%xmm5
xorps  %xmm1,%xmm1
cmpnless %xmm3,%xmm1
andps  %xmm1,%xmm5
andnps %xmm3,%xmm1
orps   %xmm5,%xmm1
movss  0x28(%rsp),%xmm3
mulss  %xmm1,%xmm3
ucomiss %xmm3,%xmm4
movaps %xmm7,%xmm0
jb     1700 <slevmar_chkjac+0x590>
divss  %xmm8,%xmm2
subss  (%rbx,%rbp,4),%xmm2
movaps %xmm2,%xmm3
movaps 0x947(%rip),%xmm4
xorps  %xmm4,%xmm3
xorps  %xmm0,%xmm0
cmpnless %xmm2,%xmm0
andps  %xmm0,%xmm3
andnps %xmm2,%xmm0
orps   %xmm3,%xmm0
mulss  %xmm8,%xmm0
movaps %xmm6,%xmm2
xorps  %xmm4,%xmm2
xorps  %xmm3,%xmm3
cmpnless %xmm6,%xmm3
andps  %xmm3,%xmm2
andnps %xmm6,%xmm3
orps   %xmm2,%xmm3
addss  %xmm1,%xmm3
divss  %xmm3,%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movl   $0x3f800000,(%rbx,%rbp,4)
ucomiss 0xc(%rsp),%xmm0
jbe    1750 <slevmar_chkjac+0x5e0>
ucomiss %xmm0,%xmm8
jbe    1750 <slevmar_chkjac+0x5e0>
movaps %xmm0,0x50(%rsp)
call   1070 <log10@plt>
movaps 0x50(%rsp),%xmm0
xorps  %xmm9,%xmm9
movss  0x8e5(%rip),%xmm7
movaps 0x40(%rsp),%xmm8
xorps  %xmm2,%xmm2
cvtsi2ss %rax,%xmm2
movss  0x18(%rsp),%xmm1
subss  %xmm1,%xmm2
divss  %xmm1,%xmm2
movss  %xmm2,(%rbx,%rbp,4)
ucomiss %xmm8,%xmm0
jb     1620 <slevmar_chkjac+0x4b0>
movl   $0x0,(%rbx,%rbp,4)
jmp    1620 <slevmar_chkjac+0x4b0>
mov    %r12,%rdi
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
mov    0x2855(%rip),%rax
mov    (%rax),%edi
lea    0x88c(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@FLT_EPSILON = global float 0.000000e+00
@stderr = global i32 0
@.str = [52 x i8] c"slevmar_chkjac(): memory allocation request failed\0A\00"
define void @slevmar_chkjac(void (float*, float*, i32, i32, i8*)* %0, void (float*, float*, i32, i32, i8*)* %1, float* %2, i32 %3, i32 %4, i8* %5, float* %6) {
%8 = alloca void (float*, float*, i32, i32, i8*)*
%9 = alloca void (float*, float*, i32, i32, i8*)*
%10 = alloca float*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca float*
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float*
%19 = alloca float*
%20 = alloca float*
%21 = alloca float*
%22 = alloca float*
%23 = alloca i32
%24 = alloca i32
%25 = alloca float
%26 = alloca float
%27 = alloca float
%28 = alloca float
%29 = alloca float
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
store void (float*, float*, i32, i32, i8*)* %0, void (float*, float*, i32, i32, i8*)** %8
store void (float*, float*, i32, i32, i8*)* %1, void (float*, float*, i32, i32, i8*)** %9
store float* %2, float** %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i8* %5, i8** %13
store float* %6, float** %14
store float 1.000000e+02, float* %15
store float 1.000000e+00, float* %16
store float 0.000000e+00, float* %17
%34 = load i32, i32* %12
store i32 %34, i32* %30
%35 = load i32, i32* %12
%36 = load i32, i32* %11
%37 = mul nsw i32 %35, %36
store i32 %37, i32* %31
%38 = load i32, i32* %11
store i32 %38, i32* %32
%39 = load i32, i32* %12
store i32 %39, i32* %33
%40 = load float, float* @FLT_EPSILON
store float %40, float* %28
%41 = load float, float* %28
%42 = call i64 @sqrt(float %41)
%43 = sitofp i64 %42 to float
store float %43, float* %25
%44 = load i32, i32* %30
%45 = load i32, i32* %31
%46 = add nsw i32 %44, %45
%47 = load i32, i32* %32
%48 = add nsw i32 %46, %47
%49 = load i32, i32* %33
%50 = add nsw i32 %48, %49
%51 = sext i32 %50 to i64
%52 = mul i64 %51, 4
%53 = trunc i64 %52 to i32
%54 = call i64 @malloc(i32 %53)
%55 = inttoptr i64 %54 to float*
store float* %55, float** %22
%56 = load float*, float** %22
%57 = icmp ne float* %56, null
br i1 %57, label %62, label %58
58: ; preds = %7
%59 = load i32, i32* @stderr
%60 = call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
%61 = call i32 @exit(i32 1)
unreachable
62: ; preds = %7
%63 = load float*, float** %22
store float* %63, float** %18
%64 = load float*, float** %18
%65 = load i32, i32* %30
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds float, float* %64, i64 %66
store float* %67, float** %19
%68 = load float*, float** %19
%69 = load i32, i32* %31
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds float, float* %68, i64 %70
store float* %71, float** %20
%72 = load float*, float** %20
%73 = load i32, i32* %32
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds float, float* %72, i64 %74
store float* %75, float** %21
%76 = load void (float*, float*, i32, i32, i8*)*, void (float*, float*, i32, i32, i8*)** %8
%77 = load float*, float** %10
%78 = load float*, float** %18
%79 = load i32, i32* %11
%80 = load i32, i32* %12
%81 = load i8*, i8** %13
%82 = load void (float*, float*, i32, i32, i8*)*, void (float*, float*, i32, i32, i8*)** %9
%83 = load float*, float** %10
%84 = load float*, float** %19
%85 = load i32, i32* %11
%86 = load i32, i32* %12
%87 = load i8*, i8** %13
store i32 0, i32* %24
br label %88
88: ; preds = %134, %62
%89 = load i32, i32* %24
%90 = load i32, i32* %11
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %137
92: ; preds = %88
%93 = load float, float* %25
%94 = load float*, float** %10
%95 = load i32, i32* %24
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds float, float* %94, i64 %96
%98 = load float, float* %97
%99 = fpext float %98 to double
%100 = fcmp oge double %99, 0.000000e+00
br i1 %100, label %101, label %107
101: ; preds = %92
%102 = load float*, float** %10
%103 = load i32, i32* %24
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds float, float* %102, i64 %104
%106 = load float, float* %105
br label %114
107: ; preds = %92
%108 = load float*, float** %10
%109 = load i32, i32* %24
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds float, float* %108, i64 %110
%112 = load float, float* %111
%113 = fneg float %112
br label %114
114: ; preds = %107, %101
%115 = phi float [ %106, %101 ], [ %113, %107 ]
%116 = fmul float %93, %115
store float %116, float* %27
%117 = load float, float* %27
%118 = load float, float* %17
%119 = fcmp oeq float %117, %118
br i1 %119, label %120, label %122
120: ; preds = %114
%121 = load float, float* %25
store float %121, float* %27
br label %122
122: ; preds = %120, %114
%123 = load float*, float** %10
%124 = load i32, i32* %24
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds float, float* %123, i64 %125
%127 = load float, float* %126
%128 = load float, float* %27
%129 = fadd float %127, %128
%130 = load float*, float** %20
%131 = load i32, i32* %24
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds float, float* %130, i64 %132
store float %129, float* %133
br label %134
134: ; preds = %122
%135 = load i32, i32* %24
%136 = add nsw i32 %135, 1
store i32 %136, i32* %24
br label %88
137: ; preds = %88
%138 = load void (float*, float*, i32, i32, i8*)*, void (float*, float*, i32, i32, i8*)** %8
%139 = load float*, float** %20
%140 = load float*, float** %21
%141 = load i32, i32* %11
%142 = load i32, i32* %12
%143 = load i8*, i8** %13
%144 = load float, float* %15
%145 = load float, float* %28
%146 = fmul float %144, %145
store float %146, float* %26
%147 = load float, float* %25
%148 = call i64 @log10(float %147)
%149 = sitofp i64 %148 to float
store float %149, float* %29
store i32 0, i32* %23
br label %150
150: ; preds = %160, %137
%151 = load i32, i32* %23
%152 = load i32, i32* %12
%153 = icmp slt i32 %151, %152
br i1 %153, label %154, label %163
154: ; preds = %150
%155 = load float, float* %17
%156 = load float*, float** %14
%157 = load i32, i32* %23
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds float, float* %156, i64 %158
store float %155, float* %159
br label %160
160: ; preds = %154
%161 = load i32, i32* %23
%162 = add nsw i32 %161, 1
store i32 %162, i32* %23
br label %150
163: ; preds = %150
store i32 0, i32* %24
br label %164
164: ; preds = %222, %163
%165 = load i32, i32* %24
%166 = load i32, i32* %11
%167 = icmp slt i32 %165, %166
br i1 %167, label %168, label %225
168: ; preds = %164
%169 = load float*, float** %10
%170 = load i32, i32* %24
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds float, float* %169, i64 %171
%173 = load float, float* %172
%174 = fpext float %173 to double
%175 = fcmp oge double %174, 0.000000e+00
br i1 %175, label %176, label %182
176: ; preds = %168
%177 = load float*, float** %10
%178 = load i32, i32* %24
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds float, float* %177, i64 %179
%181 = load float, float* %180
br label %189
182: ; preds = %168
%183 = load float*, float** %10
%184 = load i32, i32* %24
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds float, float* %183, i64 %185
%187 = load float, float* %186
%188 = fneg float %187
br label %189
189: ; preds = %182, %176
%190 = phi float [ %181, %176 ], [ %188, %182 ]
store float %190, float* %27
%191 = load float, float* %27
%192 = load float, float* %17
%193 = fcmp oeq float %191, %192
br i1 %193, label %194, label %196
194: ; preds = %189
%195 = load float, float* %16
store float %195, float* %27
br label %196
196: ; preds = %194, %189
store i32 0, i32* %23
br label %197
197: ; preds = %218, %196
%198 = load i32, i32* %23
%199 = load i32, i32* %12
%200 = icmp slt i32 %198, %199
br i1 %200, label %201, label %221
201: ; preds = %197
%202 = load float, float* %27
%203 = load float*, float** %19
%204 = load i32, i32* %23
%205 = load i32, i32* %11
%206 = mul nsw i32 %204, %205
%207 = load i32, i32* %24
%208 = add nsw i32 %206, %207
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds float, float* %203, i64 %209
%211 = load float, float* %210
%212 = load float*, float** %14
%213 = load i32, i32* %23
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds float, float* %212, i64 %214
%216 = load float, float* %215
%217 = call float @llvm.fmuladd.f32(float %202, float %211, float %216)
store float %217, float* %215
br label %218
218: ; preds = %201
%219 = load i32, i32* %23
%220 = add nsw i32 %219, 1
store i32 %220, i32* %23
br label %197
221: ; preds = %197
br label %222
222: ; preds = %221
%223 = load i32, i32* %24
%224 = add nsw i32 %223, 1
store i32 %224, i32* %24
br label %164
225: ; preds = %164
store i32 0, i32* %23
br label %226
226: ; preds = %462, %225
%227 = load i32, i32* %23
%228 = load i32, i32* %12
%229 = icmp slt i32 %227, %228
br i1 %229, label %230, label %465
230: ; preds = %226
%231 = load float, float* %16
store float %231, float* %27
%232 = load float*, float** %18
%233 = load i32, i32* %23
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds float, float* %232, i64 %234
%236 = load float, float* %235
%237 = load float, float* %17
%238 = fcmp une float %236, %237
br i1 %238, label %239, label %426
239: ; preds = %230
%240 = load float*, float** %21
%241 = load i32, i32* %23
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds float, float* %240, i64 %242
%244 = load float, float* %243
%245 = load float, float* %17
%246 = fcmp une float %244, %245
br i1 %246, label %247, label %426
247: ; preds = %239
%248 = load float*, float** %21
%249 = load i32, i32* %23
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds float, float* %248, i64 %250
%252 = load float, float* %251
%253 = load float*, float** %18
%254 = load i32, i32* %23
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds float, float* %253, i64 %255
%257 = load float, float* %256
%258 = fsub float %252, %257
%259 = fpext float %258 to double
%260 = fcmp oge double %259, 0.000000e+00
br i1 %260, label %261, label %273
261: ; preds = %247
%262 = load float*, float** %21
%263 = load i32, i32* %23
%264 = sext i32 %263 to i64
%265 = getelementptr inbounds float, float* %262, i64 %264
%266 = load float, float* %265
%267 = load float*, float** %18
%268 = load i32, i32* %23
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds float, float* %267, i64 %269
%271 = load float, float* %270
%272 = fsub float %266, %271
br label %286
273: ; preds = %247
%274 = load float*, float** %21
%275 = load i32, i32* %23
%276 = sext i32 %275 to i64
%277 = getelementptr inbounds float, float* %274, i64 %276
%278 = load float, float* %277
%279 = load float*, float** %18
%280 = load i32, i32* %23
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds float, float* %279, i64 %281
%283 = load float, float* %282
%284 = fsub float %278, %283
%285 = fneg float %284
br label %286
286: ; preds = %273, %261
%287 = phi float [ %272, %261 ], [ %285, %273 ]
%288 = load float, float* %26
%289 = load float*, float** %18
%290 = load i32, i32* %23
%291 = sext i32 %290 to i64
%292 = getelementptr inbounds float, float* %289, i64 %291
%293 = load float, float* %292
%294 = fpext float %293 to double
%295 = fcmp oge double %294, 0.000000e+00
br i1 %295, label %296, label %302
296: ; preds = %286
%297 = load float*, float** %18
%298 = load i32, i32* %23
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds float, float* %297, i64 %299
%301 = load float, float* %300
br label %309
302: ; preds = %286
%303 = load float*, float** %18
%304 = load i32, i32* %23
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds float, float* %303, i64 %305
%307 = load float, float* %306
%308 = fneg float %307
br label %309
309: ; preds = %302, %296
%310 = phi float [ %301, %296 ], [ %308, %302 ]
%311 = fmul float %288, %310
%312 = fcmp oge float %287, %311
br i1 %312, label %313, label %426
313: ; preds = %309
%314 = load float, float* %25
%315 = load float*, float** %21
%316 = load i32, i32* %23
%317 = sext i32 %316 to i64
%318 = getelementptr inbounds float, float* %315, i64 %317
%319 = load float, float* %318
%320 = load float*, float** %18
%321 = load i32, i32* %23
%322 = sext i32 %321 to i64
%323 = getelementptr inbounds float, float* %320, i64 %322
%324 = load float, float* %323
%325 = fsub float %319, %324
%326 = load float, float* %25
%327 = fdiv float %325, %326
%328 = load float*, float** %14
%329 = load i32, i32* %23
%330 = sext i32 %329 to i64
%331 = getelementptr inbounds float, float* %328, i64 %330
%332 = load float, float* %331
%333 = fsub float %327, %332
%334 = fpext float %333 to double
%335 = fcmp oge double %334, 0.000000e+00
br i1 %335, label %336, label %356
336: ; preds = %313
%337 = load float*, float** %21
%338 = load i32, i32* %23
%339 = sext i32 %338 to i64
%340 = getelementptr inbounds float, float* %337, i64 %339
%341 = load float, float* %340
%342 = load float*, float** %18
%343 = load i32, i32* %23
%344 = sext i32 %343 to i64
%345 = getelementptr inbounds float, float* %342, i64 %344
%346 = load float, float* %345
%347 = fsub float %341, %346
%348 = load float, float* %25
%349 = fdiv float %347, %348
%350 = load float*, float** %14
%351 = load i32, i32* %23
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds float, float* %350, i64 %352
%354 = load float, float* %353
%355 = fsub float %349, %354
br label %377
356: ; preds = %313
%357 = load float*, float** %21
%358 = load i32, i32* %23
%359 = sext i32 %358 to i64
%360 = getelementptr inbounds float, float* %357, i64 %359
%361 = load float, float* %360
%362 = load float*, float** %18
%363 = load i32, i32* %23
%364 = sext i32 %363 to i64
%365 = getelementptr inbounds float, float* %362, i64 %364
%366 = load float, float* %365
%367 = fsub float %361, %366
%368 = load float, float* %25
%369 = fdiv float %367, %368
%370 = load float*, float** %14
%371 = load i32, i32* %23
%372 = sext i32 %371 to i64
%373 = getelementptr inbounds float, float* %370, i64 %372
%374 = load float, float* %373
%375 = fsub float %369, %374
%376 = fneg float %375
br label %377
377: ; preds = %356, %336
%378 = phi float [ %355, %336 ], [ %376, %356 ]
%379 = fmul float %314, %378
%380 = load float*, float** %18
%381 = load i32, i32* %23
%382 = sext i32 %381 to i64
%383 = getelementptr inbounds float, float* %380, i64 %382
%384 = load float, float* %383
%385 = fpext float %384 to double
%386 = fcmp oge double %385, 0.000000e+00
br i1 %386, label %387, label %393
387: ; preds = %377
%388 = load float*, float** %18
%389 = load i32, i32* %23
%390 = sext i32 %389 to i64
%391 = getelementptr inbounds float, float* %388, i64 %390
%392 = load float, float* %391
br label %400
393: ; preds = %377
%394 = load float*, float** %18
%395 = load i32, i32* %23
%396 = sext i32 %395 to i64
%397 = getelementptr inbounds float, float* %394, i64 %396
%398 = load float, float* %397
%399 = fneg float %398
br label %400
400: ; preds = %393, %387
%401 = phi float [ %392, %387 ], [ %399, %393 ]
%402 = load float*, float** %21
%403 = load i32, i32* %23
%404 = sext i32 %403 to i64
%405 = getelementptr inbounds float, float* %402, i64 %404
%406 = load float, float* %405
%407 = fpext float %406 to double
%408 = fcmp oge double %407, 0.000000e+00
br i1 %408, label %409, label %415
409: ; preds = %400
%410 = load float*, float** %21
%411 = load i32, i32* %23
%412 = sext i32 %411 to i64
%413 = getelementptr inbounds float, float* %410, i64 %412
%414 = load float, float* %413
br label %422
415: ; preds = %400
%416 = load float*, float** %21
%417 = load i32, i32* %23
%418 = sext i32 %417 to i64
%419 = getelementptr inbounds float, float* %416, i64 %418
%420 = load float, float* %419
%421 = fneg float %420
br label %422
422: ; preds = %415, %409
%423 = phi float [ %414, %409 ], [ %421, %415 ]
%424 = fadd float %401, %423
%425 = fdiv float %379, %424
store float %425, float* %27
br label %426
426: ; preds = %422, %309, %239, %230
%427 = load float, float* %16
%428 = load float*, float** %14
%429 = load i32, i32* %23
%430 = sext i32 %429 to i64
%431 = getelementptr inbounds float, float* %428, i64 %430
store float %427, float* %431
%432 = load float, float* %27
%433 = load float, float* %28
%434 = fcmp ogt float %432, %433
br i1 %434, label %435, label %451
435: ; preds = %426
%436 = load float, float* %27
%437 = load float, float* %25
%438 = fcmp olt float %436, %437
br i1 %438, label %439, label %451
439: ; preds = %435
%440 = load float, float* %27
%441 = call i64 @log10(float %440)
%442 = sitofp i64 %441 to float
%443 = load float, float* %29
%444 = fsub float %442, %443
%445 = load float, float* %29
%446 = fdiv float %444, %445
%447 = load float*, float** %14
%448 = load i32, i32* %23
%449 = sext i32 %448 to i64
%450 = getelementptr inbounds float, float* %447, i64 %449
store float %446, float* %450
br label %451
451: ; preds = %439, %435, %426
%452 = load float, float* %27
%453 = load float, float* %25
%454 = fcmp oge float %452, %453
br i1 %454, label %455, label %461
455: ; preds = %451
%456 = load float, float* %17
%457 = load float*, float** %14
%458 = load i32, i32* %23
%459 = sext i32 %458 to i64
%460 = getelementptr inbounds float, float* %457, i64 %459
store float %456, float* %460
br label %461
461: ; preds = %455, %451
br label %462
462: ; preds = %461
%463 = load i32, i32* %23
%464 = add nsw i32 %463, 1
store i32 %464, i32* %23
br label %226
465: ; preds = %226
%466 = load float*, float** %22
%467 = call i32 @free(float* %466)
ret void
}

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