#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ mpf_t;

/* Variables and functions */
int /*<<< orphan*/ c_binomial(int /*<<< orphan*/, int /*<<< orphan*/,
                              int /*<<< orphan*/, int /*<<< orphan*/, int);
int /*<<< orphan*/ fp_euler_mascheroni(int /*<<< orphan*/, unsigned int);
int /*<<< orphan*/ fp_zeta(int /*<<< orphan*/, int, unsigned int);
int /*<<< orphan*/ mpf_add(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ mpf_clear(int /*<<< orphan*/);
int /*<<< orphan*/ mpf_div_ui(int /*<<< orphan*/, int /*<<< orphan*/, int);
double mpf_get_d(int /*<<< orphan*/);
int /*<<< orphan*/ mpf_init(int /*<<< orphan*/);
int /*<<< orphan*/ mpf_mul(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ mpf_set(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ mpf_set_ui(int /*<<< orphan*/, int);
int /*<<< orphan*/ mpf_sub(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
void b_sub_s(mpf_t re_b, mpf_t im_b, mpf_t re_s, mpf_t im_s, unsigned int prec,
             int nterms, double eps) {
  int k;
  mpf_t rebin, imbin, term, ok, one, racc, iacc, rzeta, izeta;
  mpf_t gam;
  mpf_init(term);
  mpf_init(racc);
  mpf_init(iacc);
  mpf_init(rzeta);
  mpf_init(izeta);
  mpf_init(ok);
  mpf_init(one);
  mpf_init(rebin);
  mpf_init(imbin);
  mpf_init(gam);
  mpf_set_ui(one, 1);
  mpf_set_ui(re_b, 0);
  mpf_set_ui(im_b, 0);
  fp_euler_mascheroni(gam, prec);
  int n = nterms;
  int downer = 0;
  for (k = 2; k <= n; k++) {
    c_binomial(rebin, imbin, re_s, im_s, k);
    fp_zeta(rzeta, k, prec);
    mpf_div_ui(ok, one, k - 1);
    mpf_sub(term, rzeta, ok);
    mpf_mul(rzeta, term, rebin);
    mpf_mul(izeta, term, imbin);
    if (k % 2) {
      mpf_sub(racc, re_b, rzeta);
      mpf_sub(iacc, im_b, izeta);
    } else {
      mpf_add(racc, re_b, rzeta);
      mpf_add(iacc, im_b, izeta);
    }
    mpf_set(re_b, racc);
    mpf_set(im_b, iacc);
    if (eps > 0.0) {
      double rt = mpf_get_d(rzeta);
      double it = mpf_get_d(izeta);
      double ra = mpf_get_d(re_b);
      double ia = mpf_get_d(im_b);
      if (rt * rt + it * it < eps * eps * (ra * ra + ia * ia)) {
        if (downer > 5)
          break;
        downer++;
      }
    }
  }
  mpf_mul(term, re_s, gam);
  mpf_sub(re_b, re_b, term);
  mpf_mul(term, im_s, gam);
  mpf_sub(im_b, im_b, term);
  mpf_div_ui(ok, one, 2);
  mpf_add(re_b, re_b, ok);
  mpf_clear(term);
  mpf_clear(racc);
  mpf_clear(iacc);
  mpf_clear(rzeta);
  mpf_clear(izeta);
  mpf_clear(ok);
  mpf_clear(one);
  mpf_clear(rebin);
  mpf_clear(imbin);
  mpf_clear(gam);
}


x86 assembly (clang, -O0):
<b_sub_s>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    -0x30(%rbp),%edi
call   1050 <mpf_init@plt>
mov    -0x3c(%rbp),%edi
call   1050 <mpf_init@plt>
mov    -0x40(%rbp),%edi
call   1050 <mpf_init@plt>
mov    -0x44(%rbp),%edi
call   1050 <mpf_init@plt>
mov    -0x48(%rbp),%edi
call   1050 <mpf_init@plt>
mov    -0x34(%rbp),%edi
call   1050 <mpf_init@plt>
mov    -0x38(%rbp),%edi
call   1050 <mpf_init@plt>
mov    -0x28(%rbp),%edi
call   1050 <mpf_init@plt>
mov    -0x2c(%rbp),%edi
call   1050 <mpf_init@plt>
mov    -0x4c(%rbp),%edi
call   1050 <mpf_init@plt>
mov    -0x38(%rbp),%edi
mov    $0x1,%esi
call   1090 <mpf_set_ui@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1090 <mpf_set_ui@plt>
mov    -0x8(%rbp),%edi
xor    %esi,%esi
call   1090 <mpf_set_ui@plt>
mov    -0x4c(%rbp),%edi
mov    -0x14(%rbp),%esi
call   10a0 <fp_euler_mascheroni@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x50(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x2,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x50(%rbp),%eax
jg     140b <b_sub_s+0x24b>
mov    -0x28(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x24(%rbp),%r8d
call   1030 <c_binomial@plt>
mov    -0x44(%rbp),%edi
mov    -0x24(%rbp),%esi
mov    -0x14(%rbp),%edx
call   10e0 <fp_zeta@plt>
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    -0x24(%rbp),%edx
sub    $0x1,%edx
call   1080 <mpf_div_ui@plt>
mov    -0x30(%rbp),%edi
mov    -0x44(%rbp),%esi
mov    -0x34(%rbp),%edx
call   10b0 <mpf_sub@plt>
mov    -0x44(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    -0x28(%rbp),%edx
call   10c0 <mpf_mul@plt>
mov    -0x48(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
call   10c0 <mpf_mul@plt>
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1313 <b_sub_s+0x153>
mov    -0x3c(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    -0x44(%rbp),%edx
call   10b0 <mpf_sub@plt>
mov    -0x40(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x48(%rbp),%edx
call   10b0 <mpf_sub@plt>
jmp    132f <b_sub_s+0x16f>
mov    -0x3c(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    -0x44(%rbp),%edx
call   1040 <mpf_add@plt>
mov    -0x40(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x48(%rbp),%edx
call   1040 <mpf_add@plt>
mov    -0x4(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1070 <mpf_set@plt>
mov    -0x8(%rbp),%edi
mov    -0x40(%rbp),%esi
call   1070 <mpf_set@plt>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    13f8 <b_sub_s+0x238>
mov    -0x44(%rbp),%edi
call   10d0 <mpf_get_d@plt>
movsd  %xmm0,-0x60(%rbp)
mov    -0x48(%rbp),%edi
call   10d0 <mpf_get_d@plt>
movsd  %xmm0,-0x68(%rbp)
mov    -0x4(%rbp),%edi
call   10d0 <mpf_get_d@plt>
movsd  %xmm0,-0x70(%rbp)
mov    -0x8(%rbp),%edi
call   10d0 <mpf_get_d@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x60(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm4
movsd  -0x78(%rbp),%xmm3
mulsd  -0x78(%rbp),%xmm3
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    13f3 <b_sub_s+0x233>
cmpl   $0x5,-0x54(%rbp)
jle    13ea <b_sub_s+0x22a>
jmp    140b <b_sub_s+0x24b>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    13f8 <b_sub_s+0x238>
jmp    13fd <b_sub_s+0x23d>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1274 <b_sub_s+0xb4>
mov    -0x30(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x4c(%rbp),%edx
call   10c0 <mpf_mul@plt>
mov    -0x4(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    -0x30(%rbp),%edx
call   10b0 <mpf_sub@plt>
mov    -0x30(%rbp),%edi
mov    -0x10(%rbp),%esi
mov    -0x4c(%rbp),%edx
call   10c0 <mpf_mul@plt>
mov    -0x8(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x30(%rbp),%edx
call   10b0 <mpf_sub@plt>
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    $0x2,%edx
call   1080 <mpf_div_ui@plt>
mov    -0x4(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    -0x34(%rbp),%edx
call   1040 <mpf_add@plt>
mov    -0x30(%rbp),%edi
call   1060 <mpf_clear@plt>
mov    -0x3c(%rbp),%edi
call   1060 <mpf_clear@plt>
mov    -0x40(%rbp),%edi
call   1060 <mpf_clear@plt>
mov    -0x44(%rbp),%edi
call   1060 <mpf_clear@plt>
mov    -0x48(%rbp),%edi
call   1060 <mpf_clear@plt>
mov    -0x34(%rbp),%edi
call   1060 <mpf_clear@plt>
mov    -0x38(%rbp),%edi
call   1060 <mpf_clear@plt>
mov    -0x28(%rbp),%edi
call   1060 <mpf_clear@plt>
mov    -0x2c(%rbp),%edi
call   1060 <mpf_clear@plt>
mov    -0x4c(%rbp),%edi
call   1060 <mpf_clear@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<b_sub_s>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
movsd  %xmm0,0x10(%rsp)
mov    %r9d,%r14d
mov    %r8d,%r15d
mov    %ecx,0x8(%rsp)
mov    %edx,0x4(%rsp)
mov    %esi,%ebp
mov    %edi,%ebx
call   1050 <mpf_init@plt>
call   1050 <mpf_init@plt>
call   1050 <mpf_init@plt>
call   1050 <mpf_init@plt>
call   1050 <mpf_init@plt>
call   1050 <mpf_init@plt>
call   1050 <mpf_init@plt>
call   1050 <mpf_init@plt>
call   1050 <mpf_init@plt>
call   1050 <mpf_init@plt>
mov    $0x1,%esi
call   1090 <mpf_set_ui@plt>
xor    %r12d,%r12d
mov    %ebx,%edi
xor    %esi,%esi
call   1090 <mpf_set_ui@plt>
mov    %ebp,%edi
xor    %esi,%esi
call   1090 <mpf_set_ui@plt>
mov    %r15d,0xc(%rsp)
mov    %r15d,%esi
call   10a0 <fp_euler_mascheroni@plt>
cmp    $0x2,%r14d
jl     1392 <b_sub_s+0x1d2>
mov    %r14d,%r13d
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
mov    $0x2,%r15d
jmp    1287 <b_sub_s+0xc7>
nopl   0x0(%rax)
mov    %r12d,%eax
lea    0x1(%r15),%ecx
add    $0x2,%r15d
mov    %eax,%r12d
cmp    %r13d,%ecx
je     1392 <b_sub_s+0x1d2>
mov    %r15d,%r14d
mov    0x4(%rsp),%edx
mov    0x8(%rsp),%ecx
mov    %r15d,%r8d
call   1030 <c_binomial@plt>
mov    %r15d,%esi
mov    0xc(%rsp),%edx
call   10e0 <fp_zeta@plt>
lea    -0x1(%r14),%r15d
mov    %r15d,%edx
call   1080 <mpf_div_ui@plt>
call   10b0 <mpf_sub@plt>
call   10c0 <mpf_mul@plt>
call   10c0 <mpf_mul@plt>
mov    %ebx,%esi
test   $0x1,%r14b
jne    12e0 <b_sub_s+0x120>
call   1040 <mpf_add@plt>
mov    %ebp,%esi
call   1040 <mpf_add@plt>
jmp    12ec <b_sub_s+0x12c>
nopw   0x0(%rax,%rax,1)
call   10b0 <mpf_sub@plt>
mov    %ebp,%esi
call   10b0 <mpf_sub@plt>
mov    %ebx,%edi
call   1070 <mpf_set@plt>
mov    %ebp,%edi
call   1070 <mpf_set@plt>
movsd  0x10(%rsp),%xmm0
ucomisd 0xcf8(%rip),%xmm0
jbe    1270 <b_sub_s+0xb0>
call   10d0 <mpf_get_d@plt>
movsd  %xmm0,0x30(%rsp)
call   10d0 <mpf_get_d@plt>
movsd  %xmm0,0x20(%rsp)
mov    %ebx,%edi
call   10d0 <mpf_get_d@plt>
movsd  %xmm0,0x28(%rsp)
mov    %ebp,%edi
call   10d0 <mpf_get_d@plt>
movsd  0x20(%rsp),%xmm2
mulsd  %xmm2,%xmm2
movsd  0x30(%rsp),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm0
movsd  0x28(%rsp),%xmm2
mulsd  %xmm2,%xmm2
addsd  %xmm0,%xmm2
mulsd  0x18(%rsp),%xmm2
ucomisd %xmm1,%xmm2
seta   %al
cmp    $0x6,%r12d
setl   %cl
and    %al,%cl
movzbl %cl,%eax
add    %r12d,%eax
ucomisd %xmm1,%xmm2
jbe    1273 <b_sub_s+0xb3>
cmp    $0x5,%r12d
jle    1273 <b_sub_s+0xb3>
mov    0x4(%rsp),%esi
call   10c0 <mpf_mul@plt>
mov    %ebx,%edi
mov    %ebx,%esi
call   10b0 <mpf_sub@plt>
mov    0x8(%rsp),%esi
call   10c0 <mpf_mul@plt>
mov    %ebp,%edi
mov    %ebp,%esi
call   10b0 <mpf_sub@plt>
mov    $0x2,%edx
call   1080 <mpf_div_ui@plt>
mov    %ebx,%edi
mov    %ebx,%esi
call   1040 <mpf_add@plt>
call   1060 <mpf_clear@plt>
call   1060 <mpf_clear@plt>
call   1060 <mpf_clear@plt>
call   1060 <mpf_clear@plt>
call   1060 <mpf_clear@plt>
call   1060 <mpf_clear@plt>
call   1060 <mpf_clear@plt>
call   1060 <mpf_clear@plt>
call   1060 <mpf_clear@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <mpf_clear@plt>

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

LLVM IR (-O2):
define void @b_sub_s(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, double %6) {
%8 = tail call i32 @mpf_init(i32 undef)
%9 = tail call i32 @mpf_init(i32 undef)
%10 = tail call i32 @mpf_init(i32 undef)
%11 = tail call i32 @mpf_init(i32 undef)
%12 = tail call i32 @mpf_init(i32 undef)
%13 = tail call i32 @mpf_init(i32 undef)
%14 = tail call i32 @mpf_init(i32 undef)
%15 = tail call i32 @mpf_init(i32 undef)
%16 = tail call i32 @mpf_init(i32 undef)
%17 = tail call i32 @mpf_init(i32 undef)
%18 = tail call i32 @mpf_set_ui(i32 undef, i32 1)
%19 = tail call i32 @mpf_set_ui(i32 %0, i32 0)
%20 = tail call i32 @mpf_set_ui(i32 %1, i32 0)
%21 = tail call i32 @fp_euler_mascheroni(i32 undef, i32 %4)
%22 = icmp slt i32 %5, 2
br i1 %22, label %68, label %23
23: ; preds = %7
%24 = fcmp ogt double %6, 0.000000e+00
%25 = fmul double %6, %6
br label %26
26: ; preds = %23, %64
%27 = phi i32 [ 2, %23 ], [ %66, %64 ]
%28 = phi i32 [ 0, %23 ], [ %65, %64 ]
%29 = tail call i32 @c_binomial(i32 undef, i32 undef, i32 %2, i32 %3, i32 %27)
%30 = tail call i32 @fp_zeta(i32 undef, i32 %27, i32 %4)
%31 = add nsw i32 %27, -1
%32 = tail call i32 @mpf_div_ui(i32 undef, i32 undef, i32 %31)
%33 = tail call i32 @mpf_sub(i32 undef, i32 undef, i32 undef)
%34 = tail call i32 @mpf_mul(i32 undef, i32 undef, i32 undef)
%35 = tail call i32 @mpf_mul(i32 undef, i32 undef, i32 undef)
%36 = and i32 %27, 1
%37 = icmp eq i32 %36, 0
br i1 %37, label %41, label %38
38: ; preds = %26
%39 = tail call i32 @mpf_sub(i32 undef, i32 %0, i32 undef)
%40 = tail call i32 @mpf_sub(i32 undef, i32 %1, i32 undef)
br label %44
41: ; preds = %26
%42 = tail call i32 @mpf_add(i32 undef, i32 %0, i32 undef)
%43 = tail call i32 @mpf_add(i32 undef, i32 %1, i32 undef)
br label %44
44: ; preds = %41, %38
%45 = tail call i32 @mpf_set(i32 %0, i32 undef)
%46 = tail call i32 @mpf_set(i32 %1, i32 undef)
br i1 %24, label %47, label %64
47: ; preds = %44
%48 = tail call double @mpf_get_d(i32 undef)
%49 = tail call double @mpf_get_d(i32 undef)
%50 = tail call double @mpf_get_d(i32 %0)
%51 = tail call double @mpf_get_d(i32 %1)
%52 = fmul double %49, %49
%53 = tail call double @llvm.fmuladd.f64(double %48, double %48, double %52)
%54 = fmul double %51, %51
%55 = tail call double @llvm.fmuladd.f64(double %50, double %50, double %54)
%56 = fmul double %25, %55
%57 = fcmp olt double %53, %56
%58 = icmp sgt i32 %28, 5
%59 = xor i1 %58, true
%60 = select i1 %57, i1 %59, i1 false
%61 = zext i1 %60 to i32
%62 = add nsw i32 %28, %61
%63 = select i1 %57, i1 %58, i1 false
br i1 %63, label %68, label %64
64: ; preds = %47, %44
%65 = phi i32 [ %62, %47 ], [ %28, %44 ]
%66 = add nuw i32 %27, 1
%67 = icmp eq i32 %27, %5
br i1 %67, label %68, label %26
68: ; preds = %64, %47, %7
%69 = tail call i32 @mpf_mul(i32 undef, i32 %2, i32 undef)
%70 = tail call i32 @mpf_sub(i32 %0, i32 %0, i32 undef)
%71 = tail call i32 @mpf_mul(i32 undef, i32 %3, i32 undef)
%72 = tail call i32 @mpf_sub(i32 %1, i32 %1, i32 undef)
%73 = tail call i32 @mpf_div_ui(i32 undef, i32 undef, i32 2)
%74 = tail call i32 @mpf_add(i32 %0, i32 %0, i32 undef)
%75 = tail call i32 @mpf_clear(i32 undef)
%76 = tail call i32 @mpf_clear(i32 undef)
%77 = tail call i32 @mpf_clear(i32 undef)
%78 = tail call i32 @mpf_clear(i32 undef)
%79 = tail call i32 @mpf_clear(i32 undef)
%80 = tail call i32 @mpf_clear(i32 undef)
%81 = tail call i32 @mpf_clear(i32 undef)
%82 = tail call i32 @mpf_clear(i32 undef)
%83 = tail call i32 @mpf_clear(i32 undef)
%84 = tail call i32 @mpf_clear(i32 undef)
ret void
}