#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*/ fp_ess(int /*<<< orphan*/, int /*<<< orphan*/, unsigned int,
                          unsigned int);
int /*<<< orphan*/ fp_pi(int /*<<< orphan*/, unsigned int);
int /*<<< orphan*/ mpf_clear(int /*<<< orphan*/);
int /*<<< orphan*/ mpf_div(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ mpf_init(int /*<<< orphan*/);
int /*<<< orphan*/ mpf_mul(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ mpf_pow_ui(int /*<<< orphan*/, int /*<<< orphan*/,
                              unsigned int);
int /*<<< orphan*/ mpf_set(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ mpf_set_str(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ mpf_sub(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
void fp_zeta_odd_helper(mpf_t zeta, unsigned int n, char *sdiv, char *spi,
                        char *sminus, char *splus, unsigned int prec) {
  mpf_t pi, pip, piterm, spos, sneg, spos_term, sneg_term, tmp;
  mpf_init(pi);
  mpf_init(pip);
  mpf_init(piterm);
  mpf_init(spos);
  mpf_init(sneg);
  mpf_init(spos_term);
  mpf_init(sneg_term);
  mpf_init(tmp);
  mpf_t div, c_pi, c_plus, c_minus;
  mpf_init(div);
  mpf_init(c_pi);
  mpf_init(c_plus);
  mpf_init(c_minus);
  mpf_set_str(div, sdiv, 10);
  mpf_set_str(c_pi, spi, 10);
  mpf_set_str(c_plus, splus, 10);
  mpf_set_str(c_minus, sminus, 10);
  fp_ess(spos, sneg, n, prec);
  mpf_mul(spos_term, spos, c_plus);
  mpf_mul(sneg_term, sneg, c_minus);
  fp_pi(pi, prec);
  mpf_pow_ui(pip, pi, n);
  mpf_mul(piterm, pip, c_pi);
  mpf_set(tmp, piterm);
  mpf_sub(zeta, tmp, spos_term);
  mpf_sub(tmp, zeta, sneg_term);
  mpf_div(zeta, tmp, div);
  mpf_clear(pi);
  mpf_clear(pip);
  mpf_clear(piterm);
  mpf_clear(spos);
  mpf_clear(sneg);
  mpf_clear(spos_term);
  mpf_clear(sneg_term);
  mpf_clear(tmp);
  mpf_clear(div);
  mpf_clear(c_pi);
  mpf_clear(c_plus);
  mpf_clear(c_minus);
}


x86 assembly (clang, -O0):
<fp_zeta_odd_helper>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
call   1030 <mpf_init@plt>
mov    -0x30(%rbp),%edi
call   1030 <mpf_init@plt>
mov    -0x34(%rbp),%edi
call   1030 <mpf_init@plt>
mov    -0x38(%rbp),%edi
call   1030 <mpf_init@plt>
mov    -0x3c(%rbp),%edi
call   1030 <mpf_init@plt>
mov    -0x40(%rbp),%edi
call   1030 <mpf_init@plt>
mov    -0x44(%rbp),%edi
call   1030 <mpf_init@plt>
mov    -0x48(%rbp),%edi
call   1030 <mpf_init@plt>
mov    -0x4c(%rbp),%edi
call   1030 <mpf_init@plt>
mov    -0x50(%rbp),%edi
call   1030 <mpf_init@plt>
mov    -0x54(%rbp),%edi
call   1030 <mpf_init@plt>
mov    -0x58(%rbp),%edi
call   1030 <mpf_init@plt>
mov    -0x4c(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0xa,%edx
call   10a0 <mpf_set_str@plt>
mov    -0x50(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    $0xa,%edx
call   10a0 <mpf_set_str@plt>
mov    -0x54(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    $0xa,%edx
call   10a0 <mpf_set_str@plt>
mov    -0x58(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    $0xa,%edx
call   10a0 <mpf_set_str@plt>
mov    -0x38(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    0x10(%rbp),%ecx
call   1050 <fp_ess@plt>
mov    -0x40(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    -0x54(%rbp),%edx
call   1090 <mpf_mul@plt>
mov    -0x44(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    -0x58(%rbp),%edx
call   1090 <mpf_mul@plt>
mov    -0x2c(%rbp),%edi
mov    0x10(%rbp),%esi
call   10c0 <fp_pi@plt>
mov    -0x30(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    -0x8(%rbp),%edx
call   1080 <mpf_pow_ui@plt>
mov    -0x34(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    -0x50(%rbp),%edx
call   1090 <mpf_mul@plt>
mov    -0x48(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1060 <mpf_set@plt>
mov    -0x4(%rbp),%edi
mov    -0x48(%rbp),%esi
mov    -0x40(%rbp),%edx
call   1070 <mpf_sub@plt>
mov    -0x48(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    -0x44(%rbp),%edx
call   1070 <mpf_sub@plt>
mov    -0x4(%rbp),%edi
mov    -0x48(%rbp),%esi
mov    -0x4c(%rbp),%edx
call   10b0 <mpf_div@plt>
mov    -0x2c(%rbp),%edi
call   1040 <mpf_clear@plt>
mov    -0x30(%rbp),%edi
call   1040 <mpf_clear@plt>
mov    -0x34(%rbp),%edi
call   1040 <mpf_clear@plt>
mov    -0x38(%rbp),%edi
call   1040 <mpf_clear@plt>
mov    -0x3c(%rbp),%edi
call   1040 <mpf_clear@plt>
mov    -0x40(%rbp),%edi
call   1040 <mpf_clear@plt>
mov    -0x44(%rbp),%edi
call   1040 <mpf_clear@plt>
mov    -0x48(%rbp),%edi
call   1040 <mpf_clear@plt>
mov    -0x4c(%rbp),%edi
call   1040 <mpf_clear@plt>
mov    -0x50(%rbp),%edi
call   1040 <mpf_clear@plt>
mov    -0x54(%rbp),%edi
call   1040 <mpf_clear@plt>
mov    -0x58(%rbp),%edi
call   1040 <mpf_clear@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fp_zeta_odd_helper>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r12
mov    %r8,(%rsp)
mov    %rcx,%r13
mov    %rdx,%r15
mov    %esi,%r14d
mov    %edi,%ebx
mov    0x40(%rsp),%ebp
call   1030 <mpf_init@plt>
call   1030 <mpf_init@plt>
call   1030 <mpf_init@plt>
call   1030 <mpf_init@plt>
call   1030 <mpf_init@plt>
call   1030 <mpf_init@plt>
call   1030 <mpf_init@plt>
call   1030 <mpf_init@plt>
call   1030 <mpf_init@plt>
call   1030 <mpf_init@plt>
call   1030 <mpf_init@plt>
call   1030 <mpf_init@plt>
mov    %r15,%rsi
mov    $0xa,%edx
call   10a0 <mpf_set_str@plt>
mov    %r13,%rsi
mov    $0xa,%edx
call   10a0 <mpf_set_str@plt>
mov    %r12,%rsi
mov    $0xa,%edx
call   10a0 <mpf_set_str@plt>
mov    (%rsp),%rsi
mov    $0xa,%edx
call   10a0 <mpf_set_str@plt>
mov    %r14d,%edx
mov    %ebp,%ecx
call   1050 <fp_ess@plt>
call   1090 <mpf_mul@plt>
call   1090 <mpf_mul@plt>
mov    %ebp,%esi
call   10c0 <fp_pi@plt>
mov    %r14d,%edx
call   1080 <mpf_pow_ui@plt>
call   1090 <mpf_mul@plt>
call   1060 <mpf_set@plt>
mov    %ebx,%edi
call   1070 <mpf_sub@plt>
mov    %ebx,%esi
call   1070 <mpf_sub@plt>
mov    %ebx,%edi
call   10b0 <mpf_div@plt>
call   1040 <mpf_clear@plt>
call   1040 <mpf_clear@plt>
call   1040 <mpf_clear@plt>
call   1040 <mpf_clear@plt>
call   1040 <mpf_clear@plt>
call   1040 <mpf_clear@plt>
call   1040 <mpf_clear@plt>
call   1040 <mpf_clear@plt>
call   1040 <mpf_clear@plt>
call   1040 <mpf_clear@plt>
call   1040 <mpf_clear@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <mpf_clear@plt>

LLVM IR (-O0):
define void @fp_zeta_odd_helper(i32 %0, i32 %1, i8* %2, i8* %3, i8* %4, i8* %5, i32 %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%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
store i32 %0, i32* %8
store i32 %1, i32* %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i8* %4, i8** %12
store i8* %5, i8** %13
store i32 %6, i32* %14
%27 = load i32, i32* %15
%28 = call i32 @mpf_init(i32 %27)
%29 = load i32, i32* %16
%30 = call i32 @mpf_init(i32 %29)
%31 = load i32, i32* %17
%32 = call i32 @mpf_init(i32 %31)
%33 = load i32, i32* %18
%34 = call i32 @mpf_init(i32 %33)
%35 = load i32, i32* %19
%36 = call i32 @mpf_init(i32 %35)
%37 = load i32, i32* %20
%38 = call i32 @mpf_init(i32 %37)
%39 = load i32, i32* %21
%40 = call i32 @mpf_init(i32 %39)
%41 = load i32, i32* %22
%42 = call i32 @mpf_init(i32 %41)
%43 = load i32, i32* %23
%44 = call i32 @mpf_init(i32 %43)
%45 = load i32, i32* %24
%46 = call i32 @mpf_init(i32 %45)
%47 = load i32, i32* %25
%48 = call i32 @mpf_init(i32 %47)
%49 = load i32, i32* %26
%50 = call i32 @mpf_init(i32 %49)
%51 = load i32, i32* %23
%52 = load i8*, i8** %10
%53 = call i32 @mpf_set_str(i32 %51, i8* %52, i32 10)
%54 = load i32, i32* %24
%55 = load i8*, i8** %11
%56 = call i32 @mpf_set_str(i32 %54, i8* %55, i32 10)
%57 = load i32, i32* %25
%58 = load i8*, i8** %13
%59 = call i32 @mpf_set_str(i32 %57, i8* %58, i32 10)
%60 = load i32, i32* %26
%61 = load i8*, i8** %12
%62 = call i32 @mpf_set_str(i32 %60, i8* %61, i32 10)
%63 = load i32, i32* %18
%64 = load i32, i32* %19
%65 = load i32, i32* %9
%66 = load i32, i32* %14
%67 = call i32 @fp_ess(i32 %63, i32 %64, i32 %65, i32 %66)
%68 = load i32, i32* %20
%69 = load i32, i32* %18
%70 = load i32, i32* %25
%71 = call i32 @mpf_mul(i32 %68, i32 %69, i32 %70)
%72 = load i32, i32* %21
%73 = load i32, i32* %19
%74 = load i32, i32* %26
%75 = call i32 @mpf_mul(i32 %72, i32 %73, i32 %74)
%76 = load i32, i32* %15
%77 = load i32, i32* %14
%78 = call i32 @fp_pi(i32 %76, i32 %77)
%79 = load i32, i32* %16
%80 = load i32, i32* %15
%81 = load i32, i32* %9
%82 = call i32 @mpf_pow_ui(i32 %79, i32 %80, i32 %81)
%83 = load i32, i32* %17
%84 = load i32, i32* %16
%85 = load i32, i32* %24
%86 = call i32 @mpf_mul(i32 %83, i32 %84, i32 %85)
%87 = load i32, i32* %22
%88 = load i32, i32* %17
%89 = call i32 @mpf_set(i32 %87, i32 %88)
%90 = load i32, i32* %8
%91 = load i32, i32* %22
%92 = load i32, i32* %20
%93 = call i32 @mpf_sub(i32 %90, i32 %91, i32 %92)
%94 = load i32, i32* %22
%95 = load i32, i32* %8
%96 = load i32, i32* %21
%97 = call i32 @mpf_sub(i32 %94, i32 %95, i32 %96)
%98 = load i32, i32* %8
%99 = load i32, i32* %22
%100 = load i32, i32* %23
%101 = call i32 @mpf_div(i32 %98, i32 %99, i32 %100)
%102 = load i32, i32* %15
%103 = call i32 @mpf_clear(i32 %102)
%104 = load i32, i32* %16
%105 = call i32 @mpf_clear(i32 %104)
%106 = load i32, i32* %17
%107 = call i32 @mpf_clear(i32 %106)
%108 = load i32, i32* %18
%109 = call i32 @mpf_clear(i32 %108)
%110 = load i32, i32* %19
%111 = call i32 @mpf_clear(i32 %110)
%112 = load i32, i32* %20
%113 = call i32 @mpf_clear(i32 %112)
%114 = load i32, i32* %21
%115 = call i32 @mpf_clear(i32 %114)
%116 = load i32, i32* %22
%117 = call i32 @mpf_clear(i32 %116)
%118 = load i32, i32* %23
%119 = call i32 @mpf_clear(i32 %118)
%120 = load i32, i32* %24
%121 = call i32 @mpf_clear(i32 %120)
%122 = load i32, i32* %25
%123 = call i32 @mpf_clear(i32 %122)
%124 = load i32, i32* %26
%125 = call i32 @mpf_clear(i32 %124)
ret void
}

LLVM IR (-O2):
define void @fp_zeta_odd_helper(i32 %0, i32 %1, i8* %2, i8* %3, i8* %4, i8* %5, i32 %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_init(i32 undef)
%19 = tail call i32 @mpf_init(i32 undef)
%20 = tail call i32 @mpf_set_str(i32 undef, i8* %2, i32 10)
%21 = tail call i32 @mpf_set_str(i32 undef, i8* %3, i32 10)
%22 = tail call i32 @mpf_set_str(i32 undef, i8* %5, i32 10)
%23 = tail call i32 @mpf_set_str(i32 undef, i8* %4, i32 10)
%24 = tail call i32 @fp_ess(i32 undef, i32 undef, i32 %1, i32 %6)
%25 = tail call i32 @mpf_mul(i32 undef, i32 undef, i32 undef)
%26 = tail call i32 @mpf_mul(i32 undef, i32 undef, i32 undef)
%27 = tail call i32 @fp_pi(i32 undef, i32 %6)
%28 = tail call i32 @mpf_pow_ui(i32 undef, i32 undef, i32 %1)
%29 = tail call i32 @mpf_mul(i32 undef, i32 undef, i32 undef)
%30 = tail call i32 @mpf_set(i32 undef, i32 undef)
%31 = tail call i32 @mpf_sub(i32 %0, i32 undef, i32 undef)
%32 = tail call i32 @mpf_sub(i32 undef, i32 %0, i32 undef)
%33 = tail call i32 @mpf_div(i32 %0, i32 undef, i32 undef)
%34 = tail call i32 @mpf_clear(i32 undef)
%35 = tail call i32 @mpf_clear(i32 undef)
%36 = tail call i32 @mpf_clear(i32 undef)
%37 = tail call i32 @mpf_clear(i32 undef)
%38 = tail call i32 @mpf_clear(i32 undef)
%39 = tail call i32 @mpf_clear(i32 undef)
%40 = tail call i32 @mpf_clear(i32 undef)
%41 = tail call i32 @mpf_clear(i32 undef)
%42 = tail call i32 @mpf_clear(i32 undef)
%43 = tail call i32 @mpf_clear(i32 undef)
%44 = tail call i32 @mpf_clear(i32 undef)
%45 = tail call i32 @mpf_clear(i32 undef)
ret void
}