#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 */
int beta(int);
double chi(int, int);
int n(int);
double pow(int, int);
int t2_zeta(int, int);
double t2_b(int i, int j) {
  return chi(i, j) * pow(1 + pow(beta(i), n(i)) * pow(t2_zeta(i, j), n(i)),
                         -1 / (2 * n(i)));
}


x86 assembly (clang, -O0):
<t2_b>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <chi@plt>
movsd  %xmm0,-0x10(%rbp)
mov    -0x4(%rbp),%edi
call   1060 <beta@plt>
mov    %eax,-0x28(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <n@plt>
mov    -0x28(%rbp),%edi
mov    %eax,%esi
call   1070 <pow@plt>
movsd  %xmm0,-0x20(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <t2_zeta@plt>
mov    %eax,-0x24(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <n@plt>
mov    -0x24(%rbp),%edi
mov    %eax,%esi
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe3c(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <n@plt>
mov    -0x14(%rbp),%edi
mov    %eax,%ecx
shl    $0x1,%ecx
mov    $0xffffffff,%eax
cltd
idiv   %ecx
mov    %eax,%esi
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t2_b>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %esi,%r14d
mov    %edi,%ebx
call   1030 <chi@plt>
movsd  %xmm0,0x8(%rsp)
mov    %ebx,%edi
call   1060 <beta@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1040 <n@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1070 <pow@plt>
movsd  %xmm0,(%rsp)
mov    %ebx,%edi
mov    %r14d,%esi
call   1050 <t2_zeta@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1040 <n@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1070 <pow@plt>
mulsd  (%rsp),%xmm0
addsd  0xe51(%rip),%xmm0
cvttsd2si %xmm0,%ebp
mov    %ebx,%edi
call   1040 <n@plt>
mov    %eax,%ecx
add    %eax,%ecx
mov    $0xffffffff,%eax
cltd
idiv   %ecx
mov    %ebp,%edi
mov    %eax,%esi
call   1070 <pow@plt>
mulsd  0x8(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define double @t2_b(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = call double @chi(i32 %5, i32 %6)
%8 = load i32, i32* %3
%9 = call i32 @beta(i32 %8)
%10 = load i32, i32* %3
%11 = call i32 @n(i32 %10)
%12 = call double @pow(i32 %9, i32 %11)
%13 = load i32, i32* %3
%14 = load i32, i32* %4
%15 = call i32 @t2_zeta(i32 %13, i32 %14)
%16 = load i32, i32* %3
%17 = call i32 @n(i32 %16)
%18 = call double @pow(i32 %15, i32 %17)
%19 = call double @llvm.fmuladd.f64(double %12, double %18, double 1.000000e+00)
%20 = fptosi double %19 to i32
%21 = load i32, i32* %3
%22 = call i32 @n(i32 %21)
%23 = mul nsw i32 2, %22
%24 = sdiv i32 -1, %23
%25 = call double @pow(i32 %20, i32 %24)
%26 = fmul double %7, %25
ret double %26
}

LLVM IR (-O2):
define double @t2_b(i32 %0, i32 %1) {
%3 = tail call double @chi(i32 %0, i32 %1)
%4 = tail call i32 @beta(i32 %0)
%5 = tail call i32 @n(i32 %0)
%6 = tail call double @pow(i32 %4, i32 %5)
%7 = tail call i32 @t2_zeta(i32 %0, i32 %1)
%8 = tail call i32 @n(i32 %0)
%9 = tail call double @pow(i32 %7, i32 %8)
%10 = tail call double @llvm.fmuladd.f64(double %6, double %9, double 1.000000e+00)
%11 = fptosi double %10 to i32
%12 = tail call i32 @n(i32 %0)
%13 = shl nsw i32 %12, 1
%14 = sdiv i32 -1, %13
%15 = tail call double @pow(i32 %11, i32 %14)
%16 = fmul double %3, %15
ret double %16
}