#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 fabs(double);
double gamm_inc(double, double);
double pow(double, double);
double Fgamma(double m, double x) {
  double val;
  if (fabs(x) < 1.0e-11)
    x = 1.0e-11;
  val = gamm_inc(m + 0.5, x);
  return 0.5 * pow(x, -m - 0.5) * val;
}


x86 assembly (clang, -O0):
<Fgamma>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm1
movaps 0xed2(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  0xeb6(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1161 <Fgamma+0x41>
movsd  0xea4(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xe9f(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1040 <gamm_inc@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xe62(%rip),%xmm2
subsd  %xmm2,%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe4e(%rip),%xmm0
mulsd  %xmm1,%xmm0
mulsd  -0x18(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Fgamma>:
sub    $0x28,%rsp
movsd  %xmm0,(%rsp)
movapd 0xecf(%rip),%xmm2
andpd  %xmm1,%xmm2
movsd  0xed3(%rip),%xmm3
cmpltsd %xmm3,%xmm2
andpd  %xmm2,%xmm3
andnpd %xmm1,%xmm2
orpd   %xmm3,%xmm2
movapd %xmm2,%xmm1
movapd %xmm2,0x10(%rsp)
addsd  0xeb8(%rip),%xmm0
call   1040 <gamm_inc@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0xead(%rip),%xmm1
subsd  (%rsp),%xmm1
movapd 0x10(%rsp),%xmm0
call   1030 <pow@plt>
mulsd  0xe8d(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @Fgamma(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %3
store double %1, double* %4
%6 = load double, double* %4
%7 = call double @llvm.fabs.f64(double %6)
%8 = fcmp olt double %7, 0x3DA5FD7FE1796495
br i1 %8, label %9, label %10
9: ; preds = %2
store double 0x3DA5FD7FE1796495, double* %4
br label %10
10: ; preds = %9, %2
%11 = load double, double* %3
%12 = fadd double %11, 5.000000e-01
%13 = load double, double* %4
%14 = call double @gamm_inc(double %12, double %13)
store double %14, double* %5
%15 = load double, double* %4
%16 = load double, double* %3
%17 = fneg double %16
%18 = fsub double %17, 5.000000e-01
%19 = call double @pow(double %15, double %18)
%20 = fmul double 5.000000e-01, %19
%21 = load double, double* %5
%22 = fmul double %20, %21
ret double %22
}

LLVM IR (-O2):
define double @Fgamma(double %0, double %1) {
%3 = tail call double @llvm.fabs.f64(double %1)
%4 = fcmp olt double %3, 0x3DA5FD7FE1796495
%5 = select i1 %4, double 0x3DA5FD7FE1796495, double %1
%6 = fadd double %0, 5.000000e-01
%7 = tail call double @gamm_inc(double %6, double %5)
%8 = fsub double -5.000000e-01, %0
%9 = tail call double @pow(double %5, double %8)
%10 = fmul double %9, 5.000000e-01
%11 = fmul double %7, %10
ret double %11
}