#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*/ mpz_t;
typedef int /*<<< orphan*/ mpf_t;

/* Variables and functions */
int /*<<< orphan*/ c_binomial_d(int /*<<< orphan*/, int /*<<< orphan*/, double,
                                double, 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_add_ui(int /*<<< orphan*/, int /*<<< orphan*/, int);
int /*<<< orphan*/ mpf_clear(int /*<<< orphan*/);
int /*<<< orphan*/ mpf_div_ui(int /*<<< orphan*/, int /*<<< orphan*/, int);
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_d(int /*<<< orphan*/, double);
int /*<<< orphan*/ mpf_set_ui(int /*<<< orphan*/, int);
int /*<<< orphan*/ mpf_sub(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ mpz_clear(int /*<<< orphan*/);
int /*<<< orphan*/ mpz_init(int /*<<< orphan*/);
void a_sub_s(mpf_t re_a, mpf_t im_a, double re_s, double im_s,
             unsigned int prec) {
  int k;
  mpf_t rebin, imbin, term, zt, 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(zt);
  mpf_init(rebin);
  mpf_init(imbin);
  mpf_init(gam);
  mpz_t tmpa, tmpb;
  mpz_init(tmpa);
  mpz_init(tmpb);
  mpf_set_ui(one, 1);
  mpf_set_ui(re_a, 0);
  mpf_set_ui(im_a, 0);
  int n = 1500;
  for (k = 1; k <= n; k++) {
    c_binomial_d(rebin, imbin, re_s, im_s, k);
    int ndigits = 0;
    fp_zeta(rzeta, k + 1, prec + ndigits);
    mpf_div_ui(zt, rzeta, k + 1);
    mpf_div_ui(ok, one, k);
    mpf_sub(term, ok, zt);
    mpf_mul(rzeta, term, rebin);
    mpf_mul(izeta, term, imbin);
    if (k % 2) {
      mpf_sub(racc, re_a, rzeta);
      mpf_sub(iacc, im_a, izeta);
    } else {
      mpf_add(racc, re_a, rzeta);
      mpf_add(iacc, im_a, izeta);
    }
    mpf_set(re_a, racc);
    mpf_set(im_a, iacc);
  }
  mpf_add_ui(term, re_a, 1);
  fp_euler_mascheroni(gam, prec);
  mpf_sub(re_a, term, gam);
  double rex = 2.0 * (re_s + 1.0);
  double imx = 2.0 * im_s;
  double den = rex * rex + imx * imx;
  rex = rex / den;
  imx = -imx / den;
  mpf_set_d(ok, rex);
  mpf_sub(term, re_a, ok);
  mpf_set(re_a, term);
  mpf_set_d(ok, imx);
  mpf_sub(term, im_a, ok);
  mpf_set(im_a, term);
  mpf_clear(term);
  mpf_clear(racc);
  mpf_clear(iacc);
  mpf_clear(rzeta);
  mpf_clear(izeta);
  mpf_clear(ok);
  mpf_clear(one);
  mpf_clear(zt);
  mpf_clear(rebin);
  mpf_clear(imbin);
  mpf_clear(gam);
  mpz_clear(tmpa);
  mpz_clear(tmpb);
}


x86 assembly (clang, -O0):
<a_sub_s>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x2c(%rbp),%edi
call   1060 <mpf_init@plt>
mov    -0x3c(%rbp),%edi
call   1060 <mpf_init@plt>
mov    -0x40(%rbp),%edi
call   1060 <mpf_init@plt>
mov    -0x44(%rbp),%edi
call   1060 <mpf_init@plt>
mov    -0x48(%rbp),%edi
call   1060 <mpf_init@plt>
mov    -0x34(%rbp),%edi
call   1060 <mpf_init@plt>
mov    -0x38(%rbp),%edi
call   1060 <mpf_init@plt>
mov    -0x30(%rbp),%edi
call   1060 <mpf_init@plt>
mov    -0x24(%rbp),%edi
call   1060 <mpf_init@plt>
mov    -0x28(%rbp),%edi
call   1060 <mpf_init@plt>
mov    -0x4c(%rbp),%edi
call   1060 <mpf_init@plt>
mov    -0x50(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x54(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x38(%rbp),%edi
mov    $0x1,%esi
call   10b0 <mpf_set_ui@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   10b0 <mpf_set_ui@plt>
mov    -0x8(%rbp),%edi
xor    %esi,%esi
call   10b0 <mpf_set_ui@plt>
movl   $0x5dc,-0x58(%rbp)
movl   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x58(%rbp),%eax
jg     13a2 <a_sub_s+0x1b2>
mov    -0x24(%rbp),%edi
mov    -0x28(%rbp),%esi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
mov    -0x20(%rbp),%edx
call   1030 <c_binomial_d@plt>
movl   $0x0,-0x5c(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x20(%rbp),%esi
add    $0x1,%esi
mov    -0x1c(%rbp),%edx
add    -0x5c(%rbp),%edx
call   1110 <fp_zeta@plt>
mov    -0x30(%rbp),%edi
mov    -0x44(%rbp),%esi
mov    -0x20(%rbp),%edx
add    $0x1,%edx
call   1090 <mpf_div_ui@plt>
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    -0x20(%rbp),%edx
call   1090 <mpf_div_ui@plt>
mov    -0x2c(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x30(%rbp),%edx
call   10d0 <mpf_sub@plt>
mov    -0x44(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    -0x24(%rbp),%edx
call   10e0 <mpf_mul@plt>
mov    -0x48(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    -0x28(%rbp),%edx
call   10e0 <mpf_mul@plt>
mov    -0x20(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1362 <a_sub_s+0x172>
mov    -0x3c(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    -0x44(%rbp),%edx
call   10d0 <mpf_sub@plt>
mov    -0x40(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x48(%rbp),%edx
call   10d0 <mpf_sub@plt>
jmp    137e <a_sub_s+0x18e>
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   1080 <mpf_set@plt>
mov    -0x8(%rbp),%edi
mov    -0x40(%rbp),%esi
call   1080 <mpf_set@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12a5 <a_sub_s+0xb5>
mov    -0x2c(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    $0x1,%edx
call   1100 <mpf_add_ui@plt>
mov    -0x4c(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   10c0 <fp_euler_mascheroni@plt>
mov    -0x4(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    -0x4c(%rbp),%edx
call   10d0 <mpf_sub@plt>
movsd  0xc35(%rip),%xmm1
addsd  -0x10(%rbp),%xmm1
movsd  0xc20(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xc0f(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x68(%rbp),%xmm0
divsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x70(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x34(%rbp),%edi
movsd  -0x68(%rbp),%xmm0
call   10a0 <mpf_set_d@plt>
mov    -0x2c(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    -0x34(%rbp),%edx
call   10d0 <mpf_sub@plt>
mov    -0x4(%rbp),%edi
mov    -0x2c(%rbp),%esi
call   1080 <mpf_set@plt>
mov    -0x34(%rbp),%edi
movsd  -0x70(%rbp),%xmm0
call   10a0 <mpf_set_d@plt>
mov    -0x2c(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x34(%rbp),%edx
call   10d0 <mpf_sub@plt>
mov    -0x8(%rbp),%edi
mov    -0x2c(%rbp),%esi
call   1080 <mpf_set@plt>
mov    -0x2c(%rbp),%edi
call   1070 <mpf_clear@plt>
mov    -0x3c(%rbp),%edi
call   1070 <mpf_clear@plt>
mov    -0x40(%rbp),%edi
call   1070 <mpf_clear@plt>
mov    -0x44(%rbp),%edi
call   1070 <mpf_clear@plt>
mov    -0x48(%rbp),%edi
call   1070 <mpf_clear@plt>
mov    -0x34(%rbp),%edi
call   1070 <mpf_clear@plt>
mov    -0x38(%rbp),%edi
call   1070 <mpf_clear@plt>
mov    -0x30(%rbp),%edi
call   1070 <mpf_clear@plt>
mov    -0x24(%rbp),%edi
call   1070 <mpf_clear@plt>
mov    -0x28(%rbp),%edi
call   1070 <mpf_clear@plt>
mov    -0x4c(%rbp),%edi
call   1070 <mpf_clear@plt>
mov    -0x50(%rbp),%edi
call   10f0 <mpz_clear@plt>
mov    -0x54(%rbp),%edi
call   10f0 <mpz_clear@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<a_sub_s>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
mov    %edx,%r14d
movaps %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
mov    %esi,%r15d
mov    %edi,%r12d
call   1060 <mpf_init@plt>
call   1060 <mpf_init@plt>
call   1060 <mpf_init@plt>
call   1060 <mpf_init@plt>
call   1060 <mpf_init@plt>
call   1060 <mpf_init@plt>
call   1060 <mpf_init@plt>
call   1060 <mpf_init@plt>
call   1060 <mpf_init@plt>
call   1060 <mpf_init@plt>
call   1060 <mpf_init@plt>
call   1050 <mpz_init@plt>
call   1050 <mpz_init@plt>
mov    $0x1,%ebx
mov    $0x1,%esi
call   10b0 <mpf_set_ui@plt>
mov    %r12d,%edi
xor    %esi,%esi
call   10b0 <mpf_set_ui@plt>
mov    %r15d,%edi
xor    %esi,%esi
call   10b0 <mpf_set_ui@plt>
jmp    12a5 <a_sub_s+0xb5>
cs nopw 0x0(%rax,%rax,1)
call   1040 <mpf_add@plt>
mov    %r15d,%esi
call   1040 <mpf_add@plt>
mov    %r12d,%edi
call   1080 <mpf_set@plt>
mov    %r15d,%edi
call   1080 <mpf_set@plt>
cmp    $0x5dd,%ebx
je     12fb <a_sub_s+0x10b>
mov    %ebx,%ebp
movsd  0x8(%rsp),%xmm0
movaps 0x10(%rsp),%xmm1
mov    %ebx,%edx
call   1030 <c_binomial_d@plt>
lea    0x1(%rbp),%ebx
mov    %ebx,%esi
mov    %r14d,%edx
call   1110 <fp_zeta@plt>
mov    %ebx,%edx
call   1090 <mpf_div_ui@plt>
mov    %ebp,%edx
call   1090 <mpf_div_ui@plt>
call   10d0 <mpf_sub@plt>
call   10e0 <mpf_mul@plt>
call   10e0 <mpf_mul@plt>
mov    %r12d,%esi
test   $0x1,%bpl
je     1280 <a_sub_s+0x90>
call   10d0 <mpf_sub@plt>
mov    %r15d,%esi
call   10d0 <mpf_sub@plt>
jmp    128d <a_sub_s+0x9d>
mov    %r12d,%esi
mov    $0x1,%edx
call   1100 <mpf_add_ui@plt>
mov    %r14d,%esi
call   10c0 <fp_euler_mascheroni@plt>
mov    %r12d,%edi
call   10d0 <mpf_sub@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xcda(%rip),%xmm0
addsd  %xmm0,%xmm0
movapd 0x10(%rsp),%xmm3
addsd  %xmm3,%xmm3
movapd %xmm3,%xmm2
mulsd  %xmm3,%xmm2
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
xorpd  0xcbc(%rip),%xmm3
divsd  %xmm1,%xmm3
movapd %xmm3,0x10(%rsp)
call   10a0 <mpf_set_d@plt>
mov    %r12d,%esi
call   10d0 <mpf_sub@plt>
mov    %r12d,%edi
call   1080 <mpf_set@plt>
movaps 0x10(%rsp),%xmm0
call   10a0 <mpf_set_d@plt>
mov    %r15d,%esi
call   10d0 <mpf_sub@plt>
mov    %r15d,%edi
call   1080 <mpf_set@plt>
call   1070 <mpf_clear@plt>
call   1070 <mpf_clear@plt>
call   1070 <mpf_clear@plt>
call   1070 <mpf_clear@plt>
call   1070 <mpf_clear@plt>
call   1070 <mpf_clear@plt>
call   1070 <mpf_clear@plt>
call   1070 <mpf_clear@plt>
call   1070 <mpf_clear@plt>
call   1070 <mpf_clear@plt>
call   1070 <mpf_clear@plt>
call   10f0 <mpz_clear@plt>
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    10f0 <mpz_clear@plt>

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

LLVM IR (-O2):
define void @a_sub_s(i32 %0, i32 %1, double %2, double %3, i32 %4) {
%6 = tail call i32 @mpf_init(i32 undef)
%7 = tail call i32 @mpf_init(i32 undef)
%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 @mpz_init(i32 undef)
%18 = tail call i32 @mpz_init(i32 undef)
%19 = tail call i32 @mpf_set_ui(i32 undef, i32 1)
%20 = tail call i32 @mpf_set_ui(i32 %0, i32 0)
%21 = tail call i32 @mpf_set_ui(i32 %1, i32 0)
br label %22
22: ; preds = %5, %40
%23 = phi i32 [ 1, %5 ], [ %25, %40 ]
%24 = tail call i32 @c_binomial_d(i32 undef, i32 undef, double %2, double %3, i32 %23)
%25 = add nuw nsw i32 %23, 1
%26 = tail call i32 @fp_zeta(i32 undef, i32 %25, i32 %4)
%27 = tail call i32 @mpf_div_ui(i32 undef, i32 undef, i32 %25)
%28 = tail call i32 @mpf_div_ui(i32 undef, i32 undef, i32 %23)
%29 = tail call i32 @mpf_sub(i32 undef, i32 undef, i32 undef)
%30 = tail call i32 @mpf_mul(i32 undef, i32 undef, i32 undef)
%31 = tail call i32 @mpf_mul(i32 undef, i32 undef, i32 undef)
%32 = and i32 %23, 1
%33 = icmp eq i32 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %22
%35 = tail call i32 @mpf_sub(i32 undef, i32 %0, i32 undef)
%36 = tail call i32 @mpf_sub(i32 undef, i32 %1, i32 undef)
br label %40
37: ; preds = %22
%38 = tail call i32 @mpf_add(i32 undef, i32 %0, i32 undef)
%39 = tail call i32 @mpf_add(i32 undef, i32 %1, i32 undef)
br label %40
40: ; preds = %37, %34
%41 = tail call i32 @mpf_set(i32 %0, i32 undef)
%42 = tail call i32 @mpf_set(i32 %1, i32 undef)
%43 = icmp eq i32 %25, 1501
br i1 %43, label %44, label %22
44: ; preds = %40
%45 = tail call i32 @mpf_add_ui(i32 undef, i32 %0, i32 1)
%46 = tail call i32 @fp_euler_mascheroni(i32 undef, i32 %4)
%47 = tail call i32 @mpf_sub(i32 %0, i32 undef, i32 undef)
%48 = fadd double %2, 1.000000e+00
%49 = fmul double %48, 2.000000e+00
%50 = fmul double %3, 2.000000e+00
%51 = fmul double %50, %50
%52 = tail call double @llvm.fmuladd.f64(double %49, double %49, double %51)
%53 = fdiv double %49, %52
%54 = fneg double %50
%55 = fdiv double %54, %52
%56 = tail call i32 @mpf_set_d(i32 undef, double %53)
%57 = tail call i32 @mpf_sub(i32 undef, i32 %0, i32 undef)
%58 = tail call i32 @mpf_set(i32 %0, i32 undef)
%59 = tail call i32 @mpf_set_d(i32 undef, double %55)
%60 = tail call i32 @mpf_sub(i32 undef, i32 %1, i32 undef)
%61 = tail call i32 @mpf_set(i32 %1, i32 undef)
%62 = tail call i32 @mpf_clear(i32 undef)
%63 = tail call i32 @mpf_clear(i32 undef)
%64 = tail call i32 @mpf_clear(i32 undef)
%65 = tail call i32 @mpf_clear(i32 undef)
%66 = tail call i32 @mpf_clear(i32 undef)
%67 = tail call i32 @mpf_clear(i32 undef)
%68 = tail call i32 @mpf_clear(i32 undef)
%69 = tail call i32 @mpf_clear(i32 undef)
%70 = tail call i32 @mpf_clear(i32 undef)
%71 = tail call i32 @mpf_clear(i32 undef)
%72 = tail call i32 @mpf_clear(i32 undef)
%73 = tail call i32 @mpz_clear(i32 undef)
%74 = tail call i32 @mpz_clear(i32 undef)
ret void
}