#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 */
double asin(double);
double exp(double);
double doc(double a, double b) {
  return (((exp(a) + exp(-a)) / (exp(b) - exp(-b))) * asin((a + b) / 2));
}


x86 assembly (clang, -O0):
<doc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1040 <exp@plt>
movsd  -0x28(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x20(%rbp),%xmm0
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  0xe31(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <asin@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<doc>:
sub    $0x48,%rsp
movaps %xmm1,0x10(%rsp)
movaps %xmm0,0x30(%rsp)
call   1040 <exp@plt>
movsd  %xmm0,0x8(%rsp)
movapd 0x30(%rsp),%xmm0
xorpd  0xeb9(%rip),%xmm0
call   1040 <exp@plt>
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movaps 0x10(%rsp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,0x28(%rsp)
movapd 0xe90(%rip),%xmm0
xorpd  0x10(%rsp),%xmm0
call   1040 <exp@plt>
movsd  0x28(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  0x8(%rsp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movapd 0x30(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
mulsd  0xe67(%rip),%xmm0
call   1030 <asin@plt>
mulsd  0x8(%rsp),%xmm0
add    $0x48,%rsp
ret

LLVM IR (-O0):
define double @doc(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = call double @exp(double %5)
%7 = load double, double* %3
%8 = fneg double %7
%9 = call double @exp(double %8)
%10 = fadd double %6, %9
%11 = load double, double* %4
%12 = call double @exp(double %11)
%13 = load double, double* %4
%14 = fneg double %13
%15 = call double @exp(double %14)
%16 = fsub double %12, %15
%17 = fdiv double %10, %16
%18 = load double, double* %3
%19 = load double, double* %4
%20 = fadd double %18, %19
%21 = fdiv double %20, 2.000000e+00
%22 = call double @asin(double %21)
%23 = fmul double %17, %22
ret double %23
}

LLVM IR (-O2):
define double @doc(double %0, double %1) {
%3 = tail call double @exp(double %0)
%4 = fneg double %0
%5 = tail call double @exp(double %4)
%6 = fadd double %3, %5
%7 = tail call double @exp(double %1)
%8 = fneg double %1
%9 = tail call double @exp(double %8)
%10 = fsub double %7, %9
%11 = fdiv double %6, %10
%12 = fadd double %0, %1
%13 = fmul double %12, 5.000000e-01
%14 = tail call double @asin(double %13)
%15 = fmul double %14, %11
ret double %15
}