#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 scalar_t__ uint32_t;
typedef double int32_t;

/* Variables and functions */
void fisher22_precomp_thresh(uint32_t m11, uint32_t m12, uint32_t m21,
                             uint32_t m22, uint32_t *m11_minp,
                             uint32_t *m11_maxp, uint32_t *tiep) {
  double cur_prob =
      (1 - 0.0000000000001) *
      0.00000000000000000000000010339757656912845935892608650874535669572651386260986328125;
  double cur11 = ((int32_t)m11);
  double cur12 = ((int32_t)m12);
  double cur21 = ((int32_t)m21);
  double cur22 = ((int32_t)m22);
  double ratio = (cur11 * cur22) / ((cur12 + 1) * (cur21 + 1));
  *tiep = m11;
  if (ratio > (1 + 0.0000000000001)) {
    *m11_maxp = m11;
    cur12 += 1;
    cur21 += 1;
    cur_prob *= ratio;
    do {
      cur11 -= 1;
      cur22 -= 1;
      m11--;
      cur12 += 1;
      cur21 += 1;
      cur_prob *= (cur11 * cur22) / (cur12 * cur21);
    } while (
        cur_prob >
        0.00000000000000000000000010339757656912845935892608650874535669572651386260986328125);
    *m11_minp = m11;
    if (cur_prob >
        (1 - 2 * 0.0000000000001) *
            0.00000000000000000000000010339757656912845935892608650874535669572651386260986328125) {
      *tiep = m11 - 1;
    }
  } else if (ratio > (1 - 0.0000000000001)) {
    *m11_minp = 0;
    *m11_maxp = 0;
    *tiep = m11 - 1;
  } else {
    cur11 += 1;
    cur22 += 1;
    ratio = (cur12 * cur21) / (cur11 * cur22);
    if (ratio > (1 + 0.0000000000001)) {
      cur_prob *= ratio;
      *m11_minp = ++m11;
      do {
        cur12 -= 1;
        cur21 -= 1;
        m11++;
        cur11 += 1;
        cur22 += 1;
        cur_prob *= (cur12 * cur21) / (cur11 * cur22);
      } while (
          cur_prob >
          0.00000000000000000000000010339757656912845935892608650874535669572651386260986328125);
      *m11_maxp = m11;
      if (cur_prob >
          (1 - 2 * 0.0000000000001) *
              0.00000000000000000000000010339757656912845935892608650874535669572651386260986328125) {
        *tiep = m11;
      }
    } else {
      *m11_minp = 0;
      *m11_maxp = 0;
      if (ratio > (1 - 0.0000000000001)) {
        *tiep = m11 + 1;
      }
    }
  }
}


x86 assembly (clang, -O0):
<fisher22_precomp_thresh>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movsd  0xee8(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
cvtsi2sdq -0x8(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
cvtsi2sdq -0x10(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdq -0x18(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
cvtsi2sdq -0x20(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  0xe9d(%rip),%xmm1
addsd  -0x48(%rbp),%xmm1
movsd  0xe90(%rip),%xmm2
addsd  -0x50(%rbp),%xmm2
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x8(%rbp),%rcx
mov    0x10(%rbp),%rax
mov    %rcx,(%rax)
movsd  -0x60(%rbp),%xmm0
movsd  0xe5e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    12b5 <fisher22_precomp_thresh+0x1b5>
mov    -0x8(%rbp),%rcx
mov    -0x30(%rbp),%rax
mov    %rcx,(%rax)
movsd  0xe49(%rip),%xmm0
addsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe37(%rip),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x60(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  0xe11(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  0xdfb(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x8(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x8(%rbp)
movsd  0xdde(%rip),%xmm0
addsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xdcc(%rip),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
mulsd  -0x50(%rbp),%xmm1
divsd  %xmm1,%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  0xdab(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     11ea <fisher22_precomp_thresh+0xea>
mov    -0x8(%rbp),%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,(%rax)
movsd  -0x38(%rbp),%xmm0
movsd  0xd91(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    12b0 <fisher22_precomp_thresh+0x1b0>
mov    -0x8(%rbp),%rcx
sub    $0x1,%rcx
mov    0x10(%rbp),%rax
mov    %rcx,(%rax)
jmp    1482 <fisher22_precomp_thresh+0x382>
movsd  -0x60(%rbp),%xmm0
movsd  0xd56(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    12f6 <fisher22_precomp_thresh+0x1f6>
mov    -0x28(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x30(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x8(%rbp),%rcx
sub    $0x1,%rcx
mov    0x10(%rbp),%rax
mov    %rcx,(%rax)
jmp    147d <fisher22_precomp_thresh+0x37d>
movsd  0xd0a(%rip),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xcf8(%rip),%xmm0
addsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x48(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  -0x58(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  0xcbc(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1437 <fisher22_precomp_thresh+0x337>
movsd  -0x60(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
mov    -0x28(%rbp),%rax
mov    %rcx,(%rax)
movsd  -0x48(%rbp),%xmm0
movsd  0xc8b(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  0xc75(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
movsd  0xc58(%rip),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xc46(%rip),%xmm0
addsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x48(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  -0x58(%rbp),%xmm1
divsd  %xmm1,%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  0xc25(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     1370 <fisher22_precomp_thresh+0x270>
mov    -0x8(%rbp),%rcx
mov    -0x30(%rbp),%rax
mov    %rcx,(%rax)
movsd  -0x38(%rbp),%xmm0
movsd  0xc0b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1432 <fisher22_precomp_thresh+0x332>
mov    -0x8(%rbp),%rcx
mov    0x10(%rbp),%rax
mov    %rcx,(%rax)
jmp    1478 <fisher22_precomp_thresh+0x378>
mov    -0x28(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x30(%rbp),%rax
movq   $0x0,(%rax)
movsd  -0x60(%rbp),%xmm0
movsd  0xbbe(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1473 <fisher22_precomp_thresh+0x373>
mov    -0x8(%rbp),%rcx
add    $0x1,%rcx
mov    0x10(%rbp),%rax
mov    %rcx,(%rax)
jmp    1478 <fisher22_precomp_thresh+0x378>
jmp    147d <fisher22_precomp_thresh+0x37d>
jmp    1482 <fisher22_precomp_thresh+0x382>
pop    %rbp
ret

x86 assembly (clang, -O2):
<fisher22_precomp_thresh>:
mov    0x8(%rsp),%rax
cvtsi2sd %rdi,%xmm0
cvtsi2sd %rsi,%xmm2
cvtsi2sd %rdx,%xmm3
cvtsi2sd %rcx,%xmm1
movapd %xmm0,%xmm4
mulsd  %xmm1,%xmm4
movsd  0xed6(%rip),%xmm8
movapd %xmm2,%xmm5
addsd  %xmm8,%xmm5
movapd %xmm3,%xmm7
addsd  %xmm8,%xmm7
movapd %xmm5,%xmm6
mulsd  %xmm7,%xmm6
divsd  %xmm6,%xmm4
mov    %rdi,(%rax)
ucomisd 0xeb5(%rip),%xmm4
jbe    11c4 <fisher22_precomp_thresh+0xc4>
mov    %rdi,(%r9)
mulsd  0xeb8(%rip),%xmm4
unpcklpd %xmm5,%xmm0
unpcklpd %xmm7,%xmm1
movapd 0xec0(%rip),%xmm2
movsd  0xea8(%rip),%xmm3
nopl   0x0(%rax,%rax,1)
add    $0xffffffffffffffff,%rdi
addpd  %xmm2,%xmm0
addpd  %xmm2,%xmm1
movapd %xmm0,%xmm5
mulpd  %xmm1,%xmm5
movapd %xmm5,%xmm6
unpckhpd %xmm5,%xmm6
divsd  %xmm6,%xmm5
mulsd  %xmm5,%xmm4
ucomisd %xmm3,%xmm4
ja     1180 <fisher22_precomp_thresh+0x80>
mov    %rdi,(%r8)
ucomisd 0xe73(%rip),%xmm4
jbe    1277 <fisher22_precomp_thresh+0x177>
add    $0xffffffffffffffff,%rdi
jmp    1294 <fisher22_precomp_thresh+0x194>
ucomisd 0xe44(%rip),%xmm4
jbe    11e5 <fisher22_precomp_thresh+0xe5>
movq   $0x0,(%r8)
movq   $0x0,(%r9)
add    $0xffffffffffffffff,%rdi
jmp    1294 <fisher22_precomp_thresh+0x194>
addsd  %xmm8,%xmm0
addsd  %xmm8,%xmm1
movapd %xmm2,%xmm4
mulsd  %xmm3,%xmm4
movapd %xmm0,%xmm5
mulsd  %xmm1,%xmm5
divsd  %xmm5,%xmm4
ucomisd 0xdfd(%rip),%xmm4
jbe    1278 <fisher22_precomp_thresh+0x178>
mulsd  0xe03(%rip),%xmm4
add    $0x1,%rdi
mov    %rdi,(%r8)
unpcklpd %xmm0,%xmm2
unpcklpd %xmm1,%xmm3
movapd 0xe04(%rip),%xmm0
movsd  0xdec(%rip),%xmm1
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rdi
addpd  %xmm0,%xmm2
addpd  %xmm0,%xmm3
movapd %xmm2,%xmm5
mulpd  %xmm3,%xmm5
movapd %xmm5,%xmm6
unpckhpd %xmm5,%xmm6
divsd  %xmm6,%xmm5
mulsd  %xmm5,%xmm4
ucomisd %xmm1,%xmm4
ja     1240 <fisher22_precomp_thresh+0x140>
mov    %rdi,(%r9)
ucomisd 0xdb3(%rip),%xmm4
ja     1294 <fisher22_precomp_thresh+0x194>
ret
movq   $0x0,(%r8)
movq   $0x0,(%r9)
ucomisd 0xd82(%rip),%xmm4
jbe    1277 <fisher22_precomp_thresh+0x177>
add    $0x1,%rdi
mov    %rdi,(%rax)
ret

LLVM IR (-O0):
define void @fisher22_precomp_thresh(i64 %0, i64 %1, i64 %2, i64 %3, i64* %4, i64* %5, i64* %6) {
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64*
%13 = alloca i64*
%14 = alloca i64*
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
store i64 %0, i64* %8
store i64 %1, i64* %9
store i64 %2, i64* %10
store i64 %3, i64* %11
store i64* %4, i64** %12
store i64* %5, i64** %13
store i64* %6, i64** %14
store double 0x3ABFFFFFFFFFFC7B, double* %15
%21 = load i64, i64* %8
%22 = sitofp i64 %21 to double
store double %22, double* %16
%23 = load i64, i64* %9
%24 = sitofp i64 %23 to double
store double %24, double* %17
%25 = load i64, i64* %10
%26 = sitofp i64 %25 to double
store double %26, double* %18
%27 = load i64, i64* %11
%28 = sitofp i64 %27 to double
store double %28, double* %19
%29 = load double, double* %16
%30 = load double, double* %19
%31 = fmul double %29, %30
%32 = load double, double* %17
%33 = fadd double %32, 1.000000e+00
%34 = load double, double* %18
%35 = fadd double %34, 1.000000e+00
%36 = fmul double %33, %35
%37 = fdiv double %31, %36
store double %37, double* %20
%38 = load i64, i64* %8
%39 = load i64*, i64** %14
store i64 %38, i64* %39
%40 = load double, double* %20
%41 = fcmp ogt double %40, 0x3FF00000000001C2
br i1 %41, label %42, label %85
42: ; preds = %7
%43 = load i64, i64* %8
%44 = load i64*, i64** %13
store i64 %43, i64* %44
%45 = load double, double* %17
%46 = fadd double %45, 1.000000e+00
store double %46, double* %17
%47 = load double, double* %18
%48 = fadd double %47, 1.000000e+00
store double %48, double* %18
%49 = load double, double* %20
%50 = load double, double* %15
%51 = fmul double %50, %49
store double %51, double* %15
br label %52
52: ; preds = %72, %42
%53 = load double, double* %16
%54 = fsub double %53, 1.000000e+00
store double %54, double* %16
%55 = load double, double* %19
%56 = fsub double %55, 1.000000e+00
store double %56, double* %19
%57 = load i64, i64* %8
%58 = add nsw i64 %57, -1
store i64 %58, i64* %8
%59 = load double, double* %17
%60 = fadd double %59, 1.000000e+00
store double %60, double* %17
%61 = load double, double* %18
%62 = fadd double %61, 1.000000e+00
store double %62, double* %18
%63 = load double, double* %16
%64 = load double, double* %19
%65 = fmul double %63, %64
%66 = load double, double* %17
%67 = load double, double* %18
%68 = fmul double %66, %67
%69 = fdiv double %65, %68
%70 = load double, double* %15
%71 = fmul double %70, %69
store double %71, double* %15
br label %72
72: ; preds = %52
%73 = load double, double* %15
%74 = fcmp ogt double %73, 0x3AC0000000000000
br i1 %74, label %52, label %75
75: ; preds = %72
%76 = load i64, i64* %8
%77 = load i64*, i64** %12
store i64 %76, i64* %77
%78 = load double, double* %15
%79 = fcmp ogt double %78, 0x3ABFFFFFFFFFF8F7
br i1 %79, label %80, label %84
80: ; preds = %75
%81 = load i64, i64* %8
%82 = sub nsw i64 %81, 1
%83 = load i64*, i64** %14
store i64 %82, i64* %83
br label %84
84: ; preds = %80, %75
br label %159
85: ; preds = %7
%86 = load double, double* %20
%87 = fcmp ogt double %86, 0x3FEFFFFFFFFFFC7B
br i1 %87, label %88, label %94
88: ; preds = %85
%89 = load i64*, i64** %12
store i64 0, i64* %89
%90 = load i64*, i64** %13
store i64 0, i64* %90
%91 = load i64, i64* %8
%92 = sub nsw i64 %91, 1
%93 = load i64*, i64** %14
store i64 %92, i64* %93
br label %158
94: ; preds = %85
%95 = load double, double* %16
%96 = fadd double %95, 1.000000e+00
store double %96, double* %16
%97 = load double, double* %19
%98 = fadd double %97, 1.000000e+00
store double %98, double* %19
%99 = load double, double* %17
%100 = load double, double* %18
%101 = fmul double %99, %100
%102 = load double, double* %16
%103 = load double, double* %19
%104 = fmul double %102, %103
%105 = fdiv double %101, %104
store double %105, double* %20
%106 = load double, double* %20
%107 = fcmp ogt double %106, 0x3FF00000000001C2
br i1 %107, label %108, label %147
108: ; preds = %94
%109 = load double, double* %20
%110 = load double, double* %15
%111 = fmul double %110, %109
store double %111, double* %15
%112 = load i64, i64* %8
%113 = add nsw i64 %112, 1
store i64 %113, i64* %8
%114 = load i64*, i64** %12
store i64 %113, i64* %114
br label %115
115: ; preds = %135, %108
%116 = load double, double* %17
%117 = fsub double %116, 1.000000e+00
store double %117, double* %17
%118 = load double, double* %18
%119 = fsub double %118, 1.000000e+00
store double %119, double* %18
%120 = load i64, i64* %8
%121 = add nsw i64 %120, 1
store i64 %121, i64* %8
%122 = load double, double* %16
%123 = fadd double %122, 1.000000e+00
store double %123, double* %16
%124 = load double, double* %19
%125 = fadd double %124, 1.000000e+00
store double %125, double* %19
%126 = load double, double* %17
%127 = load double, double* %18
%128 = fmul double %126, %127
%129 = load double, double* %16
%130 = load double, double* %19
%131 = fmul double %129, %130
%132 = fdiv double %128, %131
%133 = load double, double* %15
%134 = fmul double %133, %132
store double %134, double* %15
br label %135
135: ; preds = %115
%136 = load double, double* %15
%137 = fcmp ogt double %136, 0x3AC0000000000000
br i1 %137, label %115, label %138
138: ; preds = %135
%139 = load i64, i64* %8
%140 = load i64*, i64** %13
store i64 %139, i64* %140
%141 = load double, double* %15
%142 = fcmp ogt double %141, 0x3ABFFFFFFFFFF8F7
br i1 %142, label %143, label %146
143: ; preds = %138
%144 = load i64, i64* %8
%145 = load i64*, i64** %14
store i64 %144, i64* %145
br label %146
146: ; preds = %143, %138
br label %157
147: ; preds = %94
%148 = load i64*, i64** %12
store i64 0, i64* %148
%149 = load i64*, i64** %13
store i64 0, i64* %149
%150 = load double, double* %20
%151 = fcmp ogt double %150, 0x3FEFFFFFFFFFFC7B
br i1 %151, label %152, label %156
152: ; preds = %147
%153 = load i64, i64* %8
%154 = add nsw i64 %153, 1
%155 = load i64*, i64** %14
store i64 %154, i64* %155
br label %156
156: ; preds = %152, %147
br label %157
157: ; preds = %156, %146
br label %158
158: ; preds = %157, %88
br label %159
159: ; preds = %158, %84
ret void
}

LLVM IR (-O2):
define void @fisher22_precomp_thresh(i64 %0, i64 %1, i64 %2, i64 %3, i64* nocapture writeonly %4, i64* nocapture writeonly %5, i64* nocapture writeonly %6) {
%8 = sitofp i64 %0 to double
%9 = sitofp i64 %1 to double
%10 = sitofp i64 %2 to double
%11 = sitofp i64 %3 to double
%12 = fmul double %8, %11
%13 = fadd double %9, 1.000000e+00
%14 = fadd double %10, 1.000000e+00
%15 = fmul double %13, %14
%16 = fdiv double %12, %15
store i64 %0, i64* %6
%17 = fcmp ogt double %16, 0x3FF00000000001C2
br i1 %17, label %18, label %42
18: ; preds = %7
store i64 %0, i64* %5
%19 = fmul double %16, 0x3ABFFFFFFFFFFC7B
%20 = insertelement <2 x double> poison, double %8, i64 0
%21 = insertelement <2 x double> %20, double %13, i64 1
%22 = insertelement <2 x double> poison, double %11, i64 0
%23 = insertelement <2 x double> %22, double %14, i64 1
br label %24
24: ; preds = %24, %18
%25 = phi i64 [ %0, %18 ], [ %29, %24 ]
%26 = phi double [ %19, %18 ], [ %36, %24 ]
%27 = phi <2 x double> [ %21, %18 ], [ %30, %24 ]
%28 = phi <2 x double> [ %23, %18 ], [ %31, %24 ]
%29 = add nsw i64 %25, -1
%30 = fadd <2 x double> %27, <double -1.000000e+00, double 1.000000e+00>
%31 = fadd <2 x double> %28, <double -1.000000e+00, double 1.000000e+00>
%32 = fmul <2 x double> %30, %31
%33 = extractelement <2 x double> %32, i64 0
%34 = extractelement <2 x double> %32, i64 1
%35 = fdiv double %33, %34
%36 = fmul double %26, %35
%37 = fcmp ogt double %36, 0x3AC0000000000000
br i1 %37, label %24, label %38
38: ; preds = %24
store i64 %29, i64* %4
%39 = fcmp ogt double %36, 0x3ABFFFFFFFFFF8F7
br i1 %39, label %40, label %82
40: ; preds = %38
%41 = add nsw i64 %25, -2
br label %80
42: ; preds = %7
%43 = fcmp ogt double %16, 0x3FEFFFFFFFFFFC7B
br i1 %43, label %44, label %46
44: ; preds = %42
store i64 0, i64* %4
store i64 0, i64* %5
%45 = add nsw i64 %0, -1
br label %80
46: ; preds = %42
%47 = fadd double %8, 1.000000e+00
%48 = fadd double %11, 1.000000e+00
%49 = fmul double %9, %10
%50 = fmul double %47, %48
%51 = fdiv double %49, %50
%52 = fcmp ogt double %51, 0x3FF00000000001C2
br i1 %52, label %53, label %76
53: ; preds = %46
%54 = fmul double %51, 0x3ABFFFFFFFFFFC7B
%55 = add nsw i64 %0, 1
store i64 %55, i64* %4
%56 = insertelement <2 x double> poison, double %9, i64 0
%57 = insertelement <2 x double> %56, double %47, i64 1
%58 = insertelement <2 x double> poison, double %10, i64 0
%59 = insertelement <2 x double> %58, double %48, i64 1
br label %60
60: ; preds = %60, %53
%61 = phi i64 [ %55, %53 ], [ %65, %60 ]
%62 = phi double [ %54, %53 ], [ %72, %60 ]
%63 = phi <2 x double> [ %57, %53 ], [ %66, %60 ]
%64 = phi <2 x double> [ %59, %53 ], [ %67, %60 ]
%65 = add nsw i64 %61, 1
%66 = fadd <2 x double> %63, <double -1.000000e+00, double 1.000000e+00>
%67 = fadd <2 x double> %64, <double -1.000000e+00, double 1.000000e+00>
%68 = fmul <2 x double> %66, %67
%69 = extractelement <2 x double> %68, i64 0
%70 = extractelement <2 x double> %68, i64 1
%71 = fdiv double %69, %70
%72 = fmul double %62, %71
%73 = fcmp ogt double %72, 0x3AC0000000000000
br i1 %73, label %60, label %74
74: ; preds = %60
store i64 %65, i64* %5
%75 = fcmp ogt double %72, 0x3ABFFFFFFFFFF8F7
br i1 %75, label %80, label %82
76: ; preds = %46
store i64 0, i64* %4
store i64 0, i64* %5
%77 = fcmp ogt double %51, 0x3FEFFFFFFFFFFC7B
br i1 %77, label %78, label %82
78: ; preds = %76
%79 = add nsw i64 %0, 1
br label %80
80: ; preds = %74, %40, %78, %44
%81 = phi i64 [ %45, %44 ], [ %79, %78 ], [ %41, %40 ], [ %65, %74 ]
store i64 %81, i64* %6
br label %82
82: ; preds = %80, %76, %74, %38
ret void
}