#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 pow(double, double);
double Fract(double A, double B, double C, double sinphi, double cosphi,
             double k) {
  return (-B * sinphi + C * cosphi) / pow((A + B * cosphi + C * sinphi), k);
}


x86 assembly (clang, -O0):
<Fract>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm1
mulsd  -0x28(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x30(%rbp),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
divsd  %xmm1,%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Fract>:
push   %rax
movapd %xmm2,%xmm7
mulsd  %xmm4,%xmm7
movapd %xmm1,%xmm6
mulsd  %xmm3,%xmm6
subsd  %xmm6,%xmm7
movsd  %xmm7,(%rsp)
mulsd  %xmm4,%xmm1
addsd  %xmm1,%xmm0
mulsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movaps %xmm5,%xmm1
call   1030 <pow@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @Fract(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double %3, double* %10
store double %4, double* %11
store double %5, double* %12
%13 = load double, double* %8
%14 = fneg double %13
%15 = load double, double* %10
%16 = load double, double* %9
%17 = load double, double* %11
%18 = fmul double %16, %17
%19 = call double @llvm.fmuladd.f64(double %14, double %15, double %18)
%20 = load double, double* %7
%21 = load double, double* %8
%22 = load double, double* %11
%23 = call double @llvm.fmuladd.f64(double %21, double %22, double %20)
%24 = load double, double* %9
%25 = load double, double* %10
%26 = call double @llvm.fmuladd.f64(double %24, double %25, double %23)
%27 = load double, double* %12
%28 = call double @pow(double %26, double %27)
%29 = fdiv double %19, %28
ret double %29
}

LLVM IR (-O2):
define double @Fract(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = fneg double %1
%8 = fmul double %2, %4
%9 = tail call double @llvm.fmuladd.f64(double %7, double %3, double %8)
%10 = tail call double @llvm.fmuladd.f64(double %1, double %4, double %0)
%11 = tail call double @llvm.fmuladd.f64(double %2, double %3, double %10)
%12 = tail call double @pow(double %11, double %5)
%13 = fdiv double %9, %12
ret double %13
}