#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 /*<<< orphan*/ err_msg(char *);
int /*<<< orphan*/ get_fit_info(double *, double *, double *, int *, double,
                                double *, double **, int, int, int, int *,
                                int *);
int mrqcof(double *t0, double *y0, double *y, double *sig, double *a, int npts,
           int nvars, int npars, int *ivar, int *ipar, double *alpha,
           double *chisq, double *beta, double **yderv, double *yfit,
           double eps) {
  int flag, i, j, k, l, k0;
  double sig2i, dy, wt;
  get_fit_info(y0, a, t0, &flag, eps, yfit, yderv, npts, npars, nvars, ivar,
               ipar);
  if (flag == 0) {
    err_msg(" Integration error ...\n");
    return (0);
  }
  for (i = 0; i < npars; i++) {
    beta[i] = 0.0;
    for (j = 0; j < npars; j++) {
      alpha[i + j * npars] = 0.0;
    }
  }
  *chisq = 0.0;
  for (i = 0; i < nvars; i++) {
    sig2i = 1.0 / (sig[i] * sig[i]);
    for (k = 0; k < npts; k++) {
      k0 = k * nvars + i;
      dy = y[k0] - yfit[k0];
      for (j = 0; j < npars; j++) {
        wt = yderv[j][k0] * sig2i;
        for (l = 0; l < npars; l++)
          alpha[j + l * npars] += wt * yderv[l][k0];
        beta[j] += dy * wt;
      }
      (*chisq) += dy * dy * sig2i;
    }
  }
  return (1);
}


x86 assembly (clang, -O0):
<mrqcof>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0xa0,%rsp
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
mov    %r9d,-0x44(%rbp)
movsd  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x20(%rbp),%rdx
movsd  -0x50(%rbp),%xmm0
mov    0x50(%rbp),%r8
mov    0x48(%rbp),%r9
mov    -0x44(%rbp),%r14d
mov    0x18(%rbp),%ebx
mov    0x10(%rbp),%r11d
mov    0x20(%rbp),%r10
mov    0x28(%rbp),%rax
lea    -0x54(%rbp),%rcx
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
call   1030 <get_fit_info@plt>
cmpl   $0x0,-0x54(%rbp)
jne    11db <mrqcof+0xbb>
lea    0xe3e(%rip),%rdi
call   1040 <err_msg@plt>
movl   $0x0,-0x14(%rbp)
jmp    13e4 <mrqcof+0x2c4>
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    124d <mrqcof+0x12d>
mov    0x40(%rbp),%rax
movslq -0x58(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    123a <mrqcof+0x11a>
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%ecx
mov    -0x5c(%rbp),%edx
imul   0x18(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1205 <mrqcof+0xe5>
jmp    123f <mrqcof+0x11f>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    11e2 <mrqcof+0xc2>
mov    0x38(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    13dd <mrqcof+0x2bd>
mov    -0x38(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x38(%rbp),%rax
movslq -0x58(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
movsd  0xd73(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    13ca <mrqcof+0x2aa>
mov    -0x60(%rbp),%eax
imul   0x10(%rbp),%eax
add    -0x58(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x50(%rbp),%rax
movslq -0x68(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    1399 <mrqcof+0x279>
mov    0x48(%rbp),%rax
movslq -0x5c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    1367 <mrqcof+0x247>
movsd  -0x80(%rbp),%xmm0
mov    0x48(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    0x30(%rbp),%rax
mov    -0x5c(%rbp),%ecx
mov    -0x64(%rbp),%edx
imul   0x18(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    130e <mrqcof+0x1ee>
movsd  -0x78(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm2
mov    0x40(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    12dc <mrqcof+0x1bc>
movsd  -0x78(%rbp),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
mov    0x38(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    129d <mrqcof+0x17d>
jmp    13cf <mrqcof+0x2af>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    125f <mrqcof+0x13f>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0xa0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<mrqcof>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %r8,%rax
mov    %rcx,0x50(%rsp)
mov    %rdx,0x60(%rsp)
mov    %rdi,%rdx
mov    0xe0(%rsp),%r8
mov    0xd8(%rsp),%rbp
mov    0xa8(%rsp),%ebx
mov    0xa0(%rsp),%ecx
movapd 0xb0(%rsp),%xmm1
movupd %xmm1,0x18(%rsp)
mov    %ecx,0x10(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r9d,0x3c(%rsp)
mov    %r9d,(%rsp)
lea    0x4c(%rsp),%rcx
mov    %rsi,%rdi
mov    %rax,%rsi
mov    %rbp,%r9
call   1030 <get_fit_info@plt>
cmpl   $0x0,0x4c(%rsp)
je     1491 <mrqcof+0x371>
mov    0xd0(%rsp),%r14
mov    0xc0(%rsp),%r9
mov    %ebx,%r8d
test   %ebx,%ebx
jle    12a5 <mrqcof+0x185>
lea    -0x1(%r8),%rax
mov    %rax,0x40(%rsp)
mov    %r8d,%eax
and    $0x3,%eax
mov    %rax,0x30(%rsp)
mov    %r8d,%r10d
and    $0xfffffffc,%r10d
mov    %r8,%r11
shl    $0x4,%r11
mov    %r8,%rcx
shl    $0x5,%rcx
lea    0x0(,%r8,8),%rdi
lea    (%rdi,%rdi,2),%rdx
xor    %r12d,%r12d
mov    %r9,%r13
jmp    1214 <mrqcof+0xf4>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r12
mov    %rbx,%r13
add    $0x8,%r13
cmp    %r8,%r12
je     12a5 <mrqcof+0x185>
movq   $0x0,(%r14,%r12,8)
cmpq   $0x3,0x40(%rsp)
jae    1230 <mrqcof+0x110>
mov    %r13,%rbx
xor    %r15d,%r15d
jmp    126f <mrqcof+0x14f>
nopl   0x0(%rax)
mov    %r13,%rbx
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
movq   $0x0,0x0(%r13)
movq   $0x0,0x0(%r13,%r8,8)
movq   $0x0,0x0(%r13,%r11,1)
movq   $0x0,0x0(%r13,%rdx,1)
add    $0x4,%r15
add    %rcx,%r13
cmp    %r15,%r10
jne    1240 <mrqcof+0x120>
cmpq   $0x0,0x30(%rsp)
je     1200 <mrqcof+0xe0>
imul   %r8,%r15
add    %r12,%r15
lea    (%r9,%r15,8),%rax
mov    0x30(%rsp),%rsi
nopw   0x0(%rax,%rax,1)
movq   $0x0,(%rax)
add    %rdi,%rax
add    $0xffffffffffffffff,%rsi
jne    1290 <mrqcof+0x170>
jmp    1200 <mrqcof+0xe0>
mov    0xc8(%rsp),%r10
movq   $0x0,(%r10)
mov    $0x1,%eax
mov    0xa0(%rsp),%ecx
test   %ecx,%ecx
jle    14a6 <mrqcof+0x386>
mov    0xa8(%rsp),%ebx
movslq %ebx,%rdx
mov    %ecx,%eax
mov    %rax,0x40(%rsp)
mov    0x3c(%rsp),%eax
mov    %rax,0x58(%rsp)
mov    %r8d,%edi
and    $0xfffffffe,%edi
mov    %rdx,%rsi
shl    $0x4,%rsi
xorpd  %xmm3,%xmm3
xor    %eax,%eax
mov    %rax,0x30(%rsp)
movsd  0xcfe(%rip),%xmm0
jmp    132c <mrqcof+0x20c>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x30(%rsp),%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,0x30(%rsp)
cmp    0x40(%rsp),%rcx
je     14a1 <mrqcof+0x381>
cmpl   $0x0,0x3c(%rsp)
jle    1310 <mrqcof+0x1f0>
mov    0x50(%rsp),%rax
mov    0x30(%rsp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm2
movapd %xmm0,%xmm1
divsd  %xmm2,%xmm1
xor    %r15d,%r15d
jmp    1389 <mrqcof+0x269>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0xc8(%rsp),%r10
movsd  (%r10),%xmm3
mulsd  %xmm2,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm2,%xmm3
movsd  %xmm3,(%r10)
add    $0x1,%r15
cmp    0x58(%rsp),%r15
je     1310 <mrqcof+0x1f0>
mov    %r15,%r12
imul   0x40(%rsp),%r12
add    0x30(%rsp),%r12
mov    0x60(%rsp),%rax
movsd  (%rax,%r12,8),%xmm2
mov    0xe0(%rsp),%rax
subsd  (%rax,%r12,8),%xmm2
test   %ebx,%ebx
jle    136d <mrqcof+0x24d>
mov    %r9,%rax
xor    %r13d,%r13d
jmp    13e8 <mrqcof+0x2c8>
nopl   0x0(%rax)
mulsd  %xmm2,%xmm3
addsd  (%r14,%r13,8),%xmm3
movsd  %xmm3,(%r14,%r13,8)
add    $0x1,%r13
add    $0x8,%rax
cmp    %r8,%r13
mov    0xa8(%rsp),%ebx
je     1360 <mrqcof+0x240>
mov    0x0(%rbp,%r13,8),%rcx
movsd  (%rcx,%r12,8),%xmm3
mulsd  %xmm1,%xmm3
cmp    $0x1,%ebx
jne    1410 <mrqcof+0x2f0>
xor    %r10d,%r10d
jmp    1460 <mrqcof+0x340>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rax,%r11
xor    %r10d,%r10d
cs nopw 0x0(%rax,%rax,1)
mov    0x0(%rbp,%r10,8),%rcx
movsd  (%rcx,%r12,8),%xmm4
mulsd  %xmm3,%xmm4
addsd  (%r11),%xmm4
movsd  %xmm4,(%r11)
mov    0x8(%rbp,%r10,8),%rcx
movsd  (%rcx,%r12,8),%xmm4
mulsd  %xmm3,%xmm4
addsd  (%r11,%rdx,8),%xmm4
movsd  %xmm4,(%r11,%rdx,8)
add    $0x2,%r10
add    %rsi,%r11
cmp    %r10,%rdi
jne    1420 <mrqcof+0x300>
test   $0x1,%r8b
je     13c0 <mrqcof+0x2a0>
mov    0x0(%rbp,%r10,8),%rcx
imul   %rdx,%r10
add    %r13,%r10
movsd  (%rcx,%r12,8),%xmm4
mulsd  %xmm3,%xmm4
addsd  (%r9,%r10,8),%xmm4
movsd  %xmm4,(%r9,%r10,8)
jmp    13c0 <mrqcof+0x2a0>
lea    0xb70(%rip),%rdi
call   1040 <err_msg@plt>
xor    %eax,%eax
jmp    14a6 <mrqcof+0x386>
mov    $0x1,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [24 x i8] c" Integration error ...\0A\00"
define i32 @mrqcof(double* %0, double* %1, double* %2, double* %3, double* %4, i32 %5, i32 %6, i32 %7, i32* %8, i32* %9, double* %10, double* %11, double* %12, double** %13, double* %14, double %15) {
%17 = alloca i32
%18 = alloca double*
%19 = alloca double*
%20 = alloca double*
%21 = alloca double*
%22 = alloca double*
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32*
%27 = alloca i32*
%28 = alloca double*
%29 = alloca double*
%30 = alloca double*
%31 = alloca double**
%32 = alloca double*
%33 = alloca double
%34 = alloca i32
%35 = alloca i32
%36 = alloca i32
%37 = alloca i32
%38 = alloca i32
%39 = alloca i32
%40 = alloca double
%41 = alloca double
%42 = alloca double
store double* %0, double** %18
store double* %1, double** %19
store double* %2, double** %20
store double* %3, double** %21
store double* %4, double** %22
store i32 %5, i32* %23
store i32 %6, i32* %24
store i32 %7, i32* %25
store i32* %8, i32** %26
store i32* %9, i32** %27
store double* %10, double** %28
store double* %11, double** %29
store double* %12, double** %30
store double** %13, double*** %31
store double* %14, double** %32
store double %15, double* %33
%43 = load double*, double** %19
%44 = load double*, double** %22
%45 = load double*, double** %18
%46 = load double, double* %33
%47 = load double*, double** %32
%48 = load double**, double*** %31
%49 = load i32, i32* %23
%50 = load i32, i32* %25
%51 = load i32, i32* %24
%52 = load i32*, i32** %26
%53 = load i32*, i32** %27
%54 = call i32 @get_fit_info(double* %43, double* %44, double* %45, i32* %34, double %46, double* %47, double** %48, i32 %49, i32 %50, i32 %51, i32* %52, i32* %53)
%55 = load i32, i32* %34
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %16
%58 = call i32 @err_msg(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %17
br label %201
59: ; preds = %16
store i32 0, i32* %35
br label %60
60: ; preds = %86, %59
%61 = load i32, i32* %35
%62 = load i32, i32* %25
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %89
64: ; preds = %60
%65 = load double*, double** %30
%66 = load i32, i32* %35
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, double* %65, i64 %67
store double 0.000000e+00, double* %68
store i32 0, i32* %36
br label %69
69: ; preds = %82, %64
%70 = load i32, i32* %36
%71 = load i32, i32* %25
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %85
73: ; preds = %69
%74 = load double*, double** %28
%75 = load i32, i32* %35
%76 = load i32, i32* %36
%77 = load i32, i32* %25
%78 = mul nsw i32 %76, %77
%79 = add nsw i32 %75, %78
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, double* %74, i64 %80
store double 0.000000e+00, double* %81
br label %82
82: ; preds = %73
%83 = load i32, i32* %36
%84 = add nsw i32 %83, 1
store i32 %84, i32* %36
br label %69
85: ; preds = %69
br label %86
86: ; preds = %85
%87 = load i32, i32* %35
%88 = add nsw i32 %87, 1
store i32 %88, i32* %35
br label %60
89: ; preds = %60
%90 = load double*, double** %29
store double 0.000000e+00, double* %90
store i32 0, i32* %35
br label %91
91: ; preds = %197, %89
%92 = load i32, i32* %35
%93 = load i32, i32* %24
%94 = icmp slt i32 %92, %93
br i1 %94, label %95, label %200
95: ; preds = %91
%96 = load double*, double** %21
%97 = load i32, i32* %35
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, double* %96, i64 %98
%100 = load double, double* %99
%101 = load double*, double** %21
%102 = load i32, i32* %35
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double, double* %101, i64 %103
%105 = load double, double* %104
%106 = fmul double %100, %105
%107 = fdiv double 1.000000e+00, %106
store double %107, double* %40
store i32 0, i32* %37
br label %108
108: ; preds = %193, %95
%109 = load i32, i32* %37
%110 = load i32, i32* %23
%111 = icmp slt i32 %109, %110
br i1 %111, label %112, label %196
112: ; preds = %108
%113 = load i32, i32* %37
%114 = load i32, i32* %24
%115 = mul nsw i32 %113, %114
%116 = load i32, i32* %35
%117 = add nsw i32 %115, %116
store i32 %117, i32* %39
%118 = load double*, double** %20
%119 = load i32, i32* %39
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, double* %118, i64 %120
%122 = load double, double* %121
%123 = load double*, double** %32
%124 = load i32, i32* %39
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, double* %123, i64 %125
%127 = load double, double* %126
%128 = fsub double %122, %127
store double %128, double* %41
store i32 0, i32* %36
br label %129
129: ; preds = %182, %112
%130 = load i32, i32* %36
%131 = load i32, i32* %25
%132 = icmp slt i32 %130, %131
br i1 %132, label %133, label %185
133: ; preds = %129
%134 = load double**, double*** %31
%135 = load i32, i32* %36
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds double*, double** %134, i64 %136
%138 = load double*, double** %137
%139 = load i32, i32* %39
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds double, double* %138, i64 %140
%142 = load double, double* %141
%143 = load double, double* %40
%144 = fmul double %142, %143
store double %144, double* %42
store i32 0, i32* %38
br label %145
145: ; preds = %170, %133
%146 = load i32, i32* %38
%147 = load i32, i32* %25
%148 = icmp slt i32 %146, %147
br i1 %148, label %149, label %173
149: ; preds = %145
%150 = load double, double* %42
%151 = load double**, double*** %31
%152 = load i32, i32* %38
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds double*, double** %151, i64 %153
%155 = load double*, double** %154
%156 = load i32, i32* %39
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds double, double* %155, i64 %157
%159 = load double, double* %158
%160 = load double*, double** %28
%161 = load i32, i32* %36
%162 = load i32, i32* %38
%163 = load i32, i32* %25
%164 = mul nsw i32 %162, %163
%165 = add nsw i32 %161, %164
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds double, double* %160, i64 %166
%168 = load double, double* %167
%169 = call double @llvm.fmuladd.f64(double %150, double %159, double %168)
store double %169, double* %167
br label %170
170: ; preds = %149
%171 = load i32, i32* %38
%172 = add nsw i32 %171, 1
store i32 %172, i32* %38
br label %145
173: ; preds = %145
%174 = load double, double* %41
%175 = load double, double* %42
%176 = load double*, double** %30
%177 = load i32, i32* %36
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double, double* %176, i64 %178
%180 = load double, double* %179
%181 = call double @llvm.fmuladd.f64(double %174, double %175, double %180)
store double %181, double* %179
br label %182
182: ; preds = %173
%183 = load i32, i32* %36
%184 = add nsw i32 %183, 1
store i32 %184, i32* %36
br label %129
185: ; preds = %129
%186 = load double, double* %41
%187 = load double, double* %41
%188 = fmul double %186, %187
%189 = load double, double* %40
%190 = load double*, double** %29
%191 = load double, double* %190
%192 = call double @llvm.fmuladd.f64(double %188, double %189, double %191)
store double %192, double* %190
br label %193
193: ; preds = %185
%194 = load i32, i32* %37
%195 = add nsw i32 %194, 1
store i32 %195, i32* %37
br label %108
196: ; preds = %108
br label %197
197: ; preds = %196
%198 = load i32, i32* %35
%199 = add nsw i32 %198, 1
store i32 %199, i32* %35
br label %91
200: ; preds = %91
store i32 1, i32* %17
br label %201
201: ; preds = %200, %57
%202 = load i32, i32* %17
ret i32 %202
}

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