#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 */
double numrxnrate(double, double, double);
double sqrt(double);
double bindingradius(double rate, double dt, double difc, double b, int rel) {
  double a, lo, dif, step;
  int n;
  if (rate < 0 || dt < 0 || difc <= 0)
    return -1;
  if (rate == 0)
    return 0;
  if (dt == 0) {
    if (b < 0)
      return rate / (4 * 3.14159265358979323846 * difc);
    if (rel && b > 1)
      return rate * (1 - 1 / b) / (4 * 3.14159265358979323846 * difc);
    if (rel && b <= 1)
      return -1;
    if (b > 0)
      return rate / (4 * 3.14159265358979323846 * difc + rate / b);
    return -1;
  }
  step = sqrt(2.0 * difc * dt);
  lo = 0;
  a = step;
  while (numrxnrate(step, a, rel ? b * a : b) < rate * dt) {
    lo = a;
    a *= 2.0;
  }
  dif = a - lo;
  for (n = 0; n < 15; n++) {
    dif *= 0.5;
    a = lo + dif;
    if (numrxnrate(step, a, rel ? b * a : b) < rate * dt)
      lo = a;
  }
  a = lo + 0.5 * dif;
  return a;
}


x86 assembly (clang, -O0):
<bindingradius>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
mov    %edi,-0x2c(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
ja     116c <bindingradius+0x4c>
xorps  %xmm0,%xmm0
ucomisd -0x18(%rbp),%xmm0
ja     116c <bindingradius+0x4c>
xorps  %xmm0,%xmm0
ucomisd -0x20(%rbp),%xmm0
jb     117e <bindingradius+0x5e>
movsd  0xea4(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1479 <bindingradius+0x359>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11a3 <bindingradius+0x83>
jp     11a3 <bindingradius+0x83>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1479 <bindingradius+0x359>
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12cc <bindingradius+0x1ac>
jp     12cc <bindingradius+0x1ac>
xorps  %xmm0,%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    11e9 <bindingradius+0xc9>
movsd  -0x10(%rbp),%xmm0
movsd  0xe4a(%rip),%xmm1
mulsd  -0x20(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1479 <bindingradius+0x359>
cmpl   $0x0,-0x2c(%rbp)
je     1247 <bindingradius+0x127>
movsd  -0x28(%rbp),%xmm0
movsd  0xe10(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1247 <bindingradius+0x127>
movsd  -0x10(%rbp),%xmm0
movsd  0xdf9(%rip),%xmm2
divsd  -0x28(%rbp),%xmm2
movsd  0xdec(%rip),%xmm1
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xdec(%rip),%xmm1
mulsd  -0x20(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1479 <bindingradius+0x359>
cmpl   $0x0,-0x2c(%rbp)
je     1276 <bindingradius+0x156>
movsd  0xdb7(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jb     1276 <bindingradius+0x156>
movsd  0xdac(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1479 <bindingradius+0x359>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    12ba <bindingradius+0x19a>
movsd  -0x10(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
divsd  -0x28(%rbp),%xmm2
movsd  0xd7c(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1479 <bindingradius+0x359>
movsd  0xd56(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1479 <bindingradius+0x359>
movsd  0xd2c(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1040 <sqrt@plt>
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     132c <bindingradius+0x20c>
movsd  -0x28(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
jmp    1336 <bindingradius+0x216>
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x60(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
call   1030 <numrxnrate@plt>
movaps %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1382 <bindingradius+0x262>
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xc8d(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    12fa <bindingradius+0x1da>
movsd  -0x38(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x54(%rbp)
cmpl   $0xf,-0x54(%rbp)
jge    1450 <bindingradius+0x330>
movsd  0xc5e(%rip),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
addsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     13f8 <bindingradius+0x2d8>
movsd  -0x28(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
jmp    1405 <bindingradius+0x2e5>
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x78(%rbp),%xmm1
movsd  -0x80(%rbp),%xmm0
movsd  -0x88(%rbp),%xmm2
ff
call   1030 <numrxnrate@plt>
movaps %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    143d <bindingradius+0x31d>
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    1442 <bindingradius+0x322>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1398 <bindingradius+0x278>
movsd  -0x40(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm0
movsd  0xba6(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bindingradius>:
push   %rbp
push   %rbx
sub    $0x48,%rsp
movapd %xmm0,%xmm4
xorpd  %xmm0,%xmm0
ucomisd %xmm4,%xmm0
movsd  0xec6(%rip),%xmm5
ja     137e <bindingradius+0x25e>
ucomisd %xmm1,%xmm0
ja     137e <bindingradius+0x25e>
xorpd  %xmm0,%xmm0
ucomisd %xmm2,%xmm0
jae    137e <bindingradius+0x25e>
ucomisd %xmm0,%xmm4
jne    1164 <bindingradius+0x44>
jnp    1382 <bindingradius+0x262>
mov    %edi,%ebx
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jne    118d <bindingradius+0x6d>
jp     118d <bindingradius+0x6d>
ucomisd %xmm3,%xmm0
jbe    11c1 <bindingradius+0xa1>
mulsd  0xe98(%rip),%xmm2
divsd  %xmm2,%xmm4
movapd %xmm4,%xmm0
jmp    1382 <bindingradius+0x262>
addsd  %xmm2,%xmm2
mulsd  %xmm1,%xmm2
ucomisd %xmm0,%xmm2
movsd  %xmm3,0x18(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm1,(%rsp)
jb     1200 <bindingradius+0xe0>
xorps  %xmm0,%xmm0
sqrtsd %xmm2,%xmm0
test   %ebx,%ebx
jne    1213 <bindingradius+0xf3>
movsd  0xe49(%rip),%xmm2
jmp    1217 <bindingradius+0xf7>
ucomisd 0xe3f(%rip),%xmm3
jbe    133f <bindingradius+0x21f>
test   %ebx,%ebx
je     133f <bindingradius+0x21f>
movsd  0xe29(%rip),%xmm0
movapd %xmm0,%xmm1
divsd  %xmm3,%xmm1
subsd  %xmm1,%xmm0
mulsd  %xmm4,%xmm0
mulsd  0xe21(%rip),%xmm2
divsd  %xmm2,%xmm0
jmp    1382 <bindingradius+0x262>
movapd %xmm2,%xmm0
call   1040 <sqrt@plt>
movsd  0x18(%rsp),%xmm3
test   %ebx,%ebx
je     11b7 <bindingradius+0x97>
movapd %xmm0,%xmm2
mulsd  %xmm3,%xmm2
movsd  %xmm0,0x8(%rsp)
movapd %xmm0,%xmm1
call   1030 <numrxnrate@plt>
movsd  0x10(%rsp),%xmm1
mulsd  (%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
xorpd  %xmm2,%xmm2
movapd %xmm2,0x20(%rsp)
ucomisd %xmm0,%xmm1
movsd  0x8(%rsp),%xmm3
jbe    12ac <bindingradius+0x18c>
movsd  0x8(%rsp),%xmm3
jmp    128c <bindingradius+0x16c>
nopl   0x0(%rax)
mulsd  0x18(%rsp),%xmm2
movsd  0x8(%rsp),%xmm0
movsd  %xmm3,(%rsp)
movsd  (%rsp),%xmm1
call   1030 <numrxnrate@plt>
movsd  0x10(%rsp),%xmm1
ucomisd %xmm0,%xmm1
movsd  (%rsp),%xmm3
jbe    12ac <bindingradius+0x18c>
movapd %xmm3,%xmm0
movapd %xmm3,0x20(%rsp)
addsd  %xmm3,%xmm3
movsd  0xd66(%rip),%xmm2
test   %ebx,%ebx
je     1260 <bindingradius+0x140>
movapd %xmm3,%xmm2
jmp    1260 <bindingradius+0x140>
movapd 0x20(%rsp),%xmm1
subsd  %xmm1,%xmm3
mov    $0xf,%ebp
jmp    12fe <bindingradius+0x1de>
nopl   (%rax)
mulsd  %xmm0,%xmm2
movsd  0x8(%rsp),%xmm0
movapd %xmm1,0x30(%rsp)
call   1030 <numrxnrate@plt>
cmpltsd 0x10(%rsp),%xmm0
movapd 0x30(%rsp),%xmm1
andpd  %xmm0,%xmm1
andnpd 0x20(%rsp),%xmm0
orpd   %xmm1,%xmm0
movapd %xmm0,%xmm1
add    $0xffffffff,%ebp
movsd  (%rsp),%xmm3
je     132d <bindingradius+0x20d>
movapd %xmm1,0x20(%rsp)
mulsd  0xd04(%rip),%xmm3
movsd  %xmm3,(%rsp)
addsd  %xmm3,%xmm1
movsd  0xceb(%rip),%xmm2
test   %ebx,%ebx
movsd  0x18(%rsp),%xmm0
je     12c0 <bindingradius+0x1a0>
movapd %xmm1,%xmm2
jmp    12c0 <bindingradius+0x1a0>
mulsd  0xcdb(%rip),%xmm3
addsd  %xmm0,%xmm3
movapd %xmm3,%xmm0
jmp    1382 <bindingradius+0x262>
test   %ebx,%ebx
setne  %al
movsd  0xcbc(%rip),%xmm0
ucomisd %xmm3,%xmm0
setae  %cl
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm3
jbe    137e <bindingradius+0x25e>
movapd %xmm5,%xmm0
and    %al,%cl
jne    1382 <bindingradius+0x262>
movapd %xmm4,%xmm0
divsd  %xmm3,%xmm0
mulsd  0xca3(%rip),%xmm2
addsd  %xmm0,%xmm2
jmp    1180 <bindingradius+0x60>
movapd %xmm5,%xmm0
add    $0x48,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define double @bindingradius(double %0, double %1, double %2, double %3, i32 %4) {
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca i32
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca i32
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double %3, double* %10
store i32 %4, i32* %11
%17 = load double, double* %7
%18 = fcmp olt double %17, 0.000000e+00
br i1 %18, label %25, label %19
19: ; preds = %5
%20 = load double, double* %8
%21 = fcmp olt double %20, 0.000000e+00
br i1 %21, label %25, label %22
22: ; preds = %19
%23 = load double, double* %9
%24 = fcmp ole double %23, 0.000000e+00
br i1 %24, label %25, label %26
25: ; preds = %22, %19, %5
store double -1.000000e+00, double* %6
br label %145
26: ; preds = %22
%27 = load double, double* %7
%28 = fcmp oeq double %27, 0.000000e+00
br i1 %28, label %29, label %30
29: ; preds = %26
store double 0.000000e+00, double* %6
br label %145
30: ; preds = %26
%31 = load double, double* %8
%32 = fcmp oeq double %31, 0.000000e+00
br i1 %32, label %33, label %75
33: ; preds = %30
%34 = load double, double* %10
%35 = fcmp olt double %34, 0.000000e+00
br i1 %35, label %36, label %41
36: ; preds = %33
%37 = load double, double* %7
%38 = load double, double* %9
%39 = fmul double 0x402921FB54442D18, %38
%40 = fdiv double %37, %39
store double %40, double* %6
br label %145
41: ; preds = %33
%42 = load i32, i32* %11
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %56
44: ; preds = %41
%45 = load double, double* %10
%46 = fcmp ogt double %45, 1.000000e+00
br i1 %46, label %47, label %56
47: ; preds = %44
%48 = load double, double* %7
%49 = load double, double* %10
%50 = fdiv double 1.000000e+00, %49
%51 = fsub double 1.000000e+00, %50
%52 = fmul double %48, %51
%53 = load double, double* %9
%54 = fmul double 0x402921FB54442D18, %53
%55 = fdiv double %52, %54
store double %55, double* %6
br label %145
56: ; preds = %44, %41
%57 = load i32, i32* %11
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %56
%60 = load double, double* %10
%61 = fcmp ole double %60, 1.000000e+00
br i1 %61, label %62, label %63
62: ; preds = %59
store double -1.000000e+00, double* %6
br label %145
63: ; preds = %59, %56
%64 = load double, double* %10
%65 = fcmp ogt double %64, 0.000000e+00
br i1 %65, label %66, label %74
66: ; preds = %63
%67 = load double, double* %7
%68 = load double, double* %9
%69 = load double, double* %7
%70 = load double, double* %10
%71 = fdiv double %69, %70
%72 = call double @llvm.fmuladd.f64(double 0x402921FB54442D18, double %68, double %71)
%73 = fdiv double %67, %72
store double %73, double* %6
br label %145
74: ; preds = %63
store double -1.000000e+00, double* %6
br label %145
75: ; preds = %30
%76 = load double, double* %9
%77 = fmul double 2.000000e+00, %76
%78 = load double, double* %8
%79 = fmul double %77, %78
%80 = call double @sqrt(double %79)
store double %80, double* %15
store double 0.000000e+00, double* %13
%81 = load double, double* %15
store double %81, double* %12
br label %82
82: ; preds = %100, %75
%83 = load double, double* %15
%84 = load double, double* %12
%85 = load i32, i32* %11
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %91
87: ; preds = %82
%88 = load double, double* %10
%89 = load double, double* %12
%90 = fmul double %88, %89
br label %93
91: ; preds = %82
%92 = load double, double* %10
br label %93
93: ; preds = %91, %87
%94 = phi double [ %90, %87 ], [ %92, %91 ]
%95 = call double @numrxnrate(double %83, double %84, double %94)
%96 = load double, double* %7
%97 = load double, double* %8
%98 = fmul double %96, %97
%99 = fcmp olt double %95, %98
br i1 %99, label %100, label %104
100: ; preds = %93
%101 = load double, double* %12
store double %101, double* %13
%102 = load double, double* %12
%103 = fmul double %102, 2.000000e+00
store double %103, double* %12
br label %82
104: ; preds = %93
%105 = load double, double* %12
%106 = load double, double* %13
%107 = fsub double %105, %106
store double %107, double* %14
store i32 0, i32* %16
br label %108
108: ; preds = %137, %104
%109 = load i32, i32* %16
%110 = icmp slt i32 %109, 15
br i1 %110, label %111, label %140
111: ; preds = %108
%112 = load double, double* %14
%113 = fmul double %112, 5.000000e-01
store double %113, double* %14
%114 = load double, double* %13
%115 = load double, double* %14
%116 = fadd double %114, %115
store double %116, double* %12
%117 = load double, double* %15
%118 = load double, double* %12
%119 = load i32, i32* %11
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %125
121: ; preds = %111
%122 = load double, double* %10
%123 = load double, double* %12
%124 = fmul double %122, %123
br label %127
125: ; preds = %111
%126 = load double, double* %10
br label %127
127: ; preds = %125, %121
%128 = phi double [ %124, %121 ], [ %126, %125 ]
%129 = call double @numrxnrate(double %117, double %118, double %128)
%130 = load double, double* %7
%131 = load double, double* %8
%132 = fmul double %130, %131
%133 = fcmp olt double %129, %132
br i1 %133, label %134, label %136
134: ; preds = %127
%135 = load double, double* %12
store double %135, double* %13
br label %136
136: ; preds = %134, %127
br label %137
137: ; preds = %136
%138 = load i32, i32* %16
%139 = add nsw i32 %138, 1
store i32 %139, i32* %16
br label %108
140: ; preds = %108
%141 = load double, double* %13
%142 = load double, double* %14
%143 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %142, double %141)
store double %143, double* %12
%144 = load double, double* %12
store double %144, double* %6
br label %145
145: ; preds = %140, %74, %66, %62, %47, %36, %29, %25
%146 = load double, double* %6
ret double %146
}

LLVM IR (-O2):
define double @bindingradius(double %0, double %1, double %2, double %3, i32 %4) {
%6 = fcmp olt double %0, 0.000000e+00
%7 = fcmp olt double %1, 0.000000e+00
%8 = or i1 %6, %7
%9 = fcmp ole double %2, 0.000000e+00
%10 = or i1 %8, %9
br i1 %10, label %75, label %11
11: ; preds = %5
%12 = fcmp oeq double %0, 0.000000e+00
br i1 %12, label %75, label %13
13: ; preds = %11
%14 = fcmp oeq double %1, 0.000000e+00
br i1 %14, label %15, label %39
15: ; preds = %13
%16 = fcmp olt double %3, 0.000000e+00
br i1 %16, label %17, label %20
17: ; preds = %15
%18 = fmul double %2, 0x402921FB54442D18
%19 = fdiv double %0, %18
br label %75
20: ; preds = %15
%21 = icmp ne i32 %4, 0
%22 = fcmp ogt double %3, 1.000000e+00
%23 = and i1 %22, %21
br i1 %23, label %24, label %30
24: ; preds = %20
%25 = fdiv double 1.000000e+00, %3
%26 = fsub double 1.000000e+00, %25
%27 = fmul double %26, %0
%28 = fmul double %2, 0x402921FB54442D18
%29 = fdiv double %27, %28
br label %75
30: ; preds = %20
%31 = fcmp ole double %3, 1.000000e+00
%32 = and i1 %31, %21
%33 = fcmp ule double %3, 0.000000e+00
%34 = or i1 %33, %32
br i1 %34, label %75, label %35
35: ; preds = %30
%36 = fdiv double %0, %3
%37 = tail call double @llvm.fmuladd.f64(double %2, double 0x402921FB54442D18, double %36)
%38 = fdiv double %0, %37
br label %75
39: ; preds = %13
%40 = fmul double %2, 2.000000e+00
%41 = fmul double %40, %1
%42 = tail call double @sqrt(double %41)
%43 = icmp eq i32 %4, 0
%44 = select i1 %43, double 1.000000e+00, double %42
%45 = fmul double %44, %3
%46 = tail call double @numrxnrate(double %42, double %42, double %45)
%47 = fmul double %0, %1
%48 = fcmp olt double %46, %47
br i1 %48, label %49, label %56
49: ; preds = %39, %49
%50 = phi double [ %51, %49 ], [ %42, %39 ]
%51 = fmul double %50, 2.000000e+00
%52 = select i1 %43, double 1.000000e+00, double %51
%53 = fmul double %52, %3
%54 = tail call double @numrxnrate(double %42, double %51, double %53)
%55 = fcmp olt double %54, %47
br i1 %55, label %49, label %56
56: ; preds = %49, %39
%57 = phi double [ %42, %39 ], [ %51, %49 ]
%58 = phi double [ 0.000000e+00, %39 ], [ %50, %49 ]
%59 = fsub double %57, %58
br label %60
60: ; preds = %56, %60
%61 = phi i32 [ 0, %56 ], [ %71, %60 ]
%62 = phi double [ %59, %56 ], [ %64, %60 ]
%63 = phi double [ %58, %56 ], [ %70, %60 ]
%64 = fmul double %62, 5.000000e-01
%65 = fadd double %63, %64
%66 = select i1 %43, double 1.000000e+00, double %65
%67 = fmul double %66, %3
%68 = tail call double @numrxnrate(double %42, double %65, double %67)
%69 = fcmp olt double %68, %47
%70 = select i1 %69, double %65, double %63
%71 = add nuw nsw i32 %61, 1
%72 = icmp eq i32 %71, 15
br i1 %72, label %73, label %60
73: ; preds = %60
%74 = tail call double @llvm.fmuladd.f64(double %64, double 5.000000e-01, double %70)
br label %75
75: ; preds = %30, %11, %5, %73, %35, %24, %17
%76 = phi double [ %19, %17 ], [ %29, %24 ], [ %38, %35 ], [ %74, %73 ], [ -1.000000e+00, %5 ], [ 0.000000e+00, %11 ], [ -1.000000e+00, %30 ]
ret double %76
}