#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 exp(int);
double Mezei_F(double t, double tau, int n) {
  return (exp(-t / tau) - exp(-n * t / tau)) * n / (n - 1) / tau;
}


x86 assembly (clang, -O0):
<Mezei_F>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %edi,-0x14(%rbp)
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x10(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <exp@plt>
mov    %eax,-0x18(%rbp)
xor    %eax,%eax
sub    -0x14(%rbp),%eax
cvtsi2sd %eax,%xmm0
mulsd  -0x8(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <exp@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%eax
sub    %ecx,%eax
imul   -0x14(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
divsd  -0x10(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Mezei_F>:
push   %rbp
push   %rbx
sub    $0x28,%rsp
mov    %edi,%ebx
movsd  %xmm1,0x8(%rsp)
movapd %xmm0,0x10(%rsp)
movapd 0xed4(%rip),%xmm2
xorpd  %xmm0,%xmm2
divsd  %xmm1,%xmm2
cvttsd2si %xmm2,%edi
call   1030 <exp@plt>
mov    %eax,%ebp
mov    %ebx,%eax
neg    %eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x10(%rsp),%xmm0
divsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <exp@plt>
sub    %eax,%ebp
imul   %ebx,%ebp
add    $0xffffffff,%ebx
mov    %ebp,%eax
cltd
idiv   %ebx
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0x8(%rsp),%xmm0
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define double @Mezei_F(double %0, double %1, i32 %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca i32
store double %0, double* %4
store double %1, double* %5
store i32 %2, i32* %6
%7 = load double, double* %4
%8 = fneg double %7
%9 = load double, double* %5
%10 = fdiv double %8, %9
%11 = fptosi double %10 to i32
%12 = call i32 @exp(i32 %11)
%13 = load i32, i32* %6
%14 = sub nsw i32 0, %13
%15 = sitofp i32 %14 to double
%16 = load double, double* %4
%17 = fmul double %15, %16
%18 = load double, double* %5
%19 = fdiv double %17, %18
%20 = fptosi double %19 to i32
%21 = call i32 @exp(i32 %20)
%22 = sub nsw i32 %12, %21
%23 = load i32, i32* %6
%24 = mul nsw i32 %22, %23
%25 = load i32, i32* %6
%26 = sub nsw i32 %25, 1
%27 = sdiv i32 %24, %26
%28 = sitofp i32 %27 to double
%29 = load double, double* %5
%30 = fdiv double %28, %29
ret double %30
}

LLVM IR (-O2):
define double @Mezei_F(double %0, double %1, i32 %2) {
%4 = fneg double %0
%5 = fdiv double %4, %1
%6 = fptosi double %5 to i32
%7 = tail call i32 @exp(i32 %6)
%8 = sub nsw i32 0, %2
%9 = sitofp i32 %8 to double
%10 = fmul double %9, %0
%11 = fdiv double %10, %1
%12 = fptosi double %11 to i32
%13 = tail call i32 @exp(i32 %12)
%14 = sub nsw i32 %7, %13
%15 = mul nsw i32 %14, %2
%16 = add nsw i32 %2, -1
%17 = sdiv i32 %15, %16
%18 = sitofp i32 %17 to double
%19 = fdiv double %18, %1
ret double %19
}