#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 sqrt(double);
double calculate_Fu_and_Li_F(double totalHZ, double Eta, double Eta_E,
                             double cn, double n, double a1, double a2,
                             double a1nplus1) {
  double uf;
  double vf;
  double numerator;
  double denominator;
  vf = (cn + 2 * (n * n + n + 3) / (9 * n * (n - 1)) - 2 / (n - 1)) /
       (a1 * a1 + a2);
  uf = (1 + (n + 1) / (3 * (n - 1)) -
        4 * (n + 1) / ((n - 1) * (n - 1)) * (a1nplus1 - (2 * n / (n + 1)))) /
           a1 -
       vf;
  numerator = totalHZ - Eta_E;
  denominator = sqrt(uf * Eta + vf * Eta * Eta);
  return (numerator / denominator);
}


x86 assembly (clang, -O0):
<calculate_Fu_and_Li_F>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%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  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm1
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  0xeb4(%rip),%xmm1
addsd  %xmm1,%xmm2
movsd  0xe98(%rip),%xmm1
mulsd  %xmm2,%xmm1
movsd  0xea4(%rip),%xmm2
mulsd  -0x28(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  0xe72(%rip),%xmm4
subsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  0xe55(%rip),%xmm1
subsd  %xmm1,%xmm2
movsd  0xe51(%rip),%xmm1
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm3
movsd  -0x38(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe19(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  0xe07(%rip),%xmm1
subsd  %xmm1,%xmm2
movsd  0xe13(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  0xdeb(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xddf(%rip),%xmm2
addsd  -0x28(%rbp),%xmm2
movsd  0xde2(%rip),%xmm0
mulsd  %xmm2,%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  0xdc1(%rip),%xmm3
subsd  %xmm3,%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  0xdb0(%rip),%xmm4
subsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  0xd9f(%rip),%xmm3
mulsd  -0x28(%rbp),%xmm3
movsd  0xd8a(%rip),%xmm4
addsd  -0x28(%rbp),%xmm4
divsd  %xmm4,%xmm3
subsd  %xmm3,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x30(%rbp),%xmm0
subsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x58(%rbp),%xmm0
divsd  -0x60(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculate_Fu_and_Li_F>:
push   %rax
movapd %xmm0,%xmm12
movapd %xmm4,%xmm0
mulsd  %xmm4,%xmm0
addsd  %xmm4,%xmm0
movsd  0xed5(%rip),%xmm10
addsd  %xmm10,%xmm0
addsd  %xmm0,%xmm0
movsd  0xecb(%rip),%xmm11
mulsd  %xmm4,%xmm11
movapd %xmm4,%xmm8
unpcklpd %xmm4,%xmm8
addpd  0xecb(%rip),%xmm8
movapd %xmm8,%xmm9
unpckhpd %xmm8,%xmm9
mulsd  %xmm9,%xmm11
shufpd $0x2,0xec3(%rip),%xmm0
shufpd $0x2,%xmm8,%xmm11
divpd  %xmm11,%xmm0
addsd  %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
subsd  %xmm0,%xmm3
movapd %xmm5,%xmm11
mulsd  %xmm5,%xmm11
addsd  %xmm6,%xmm11
mulsd  %xmm10,%xmm9
addsd  %xmm4,%xmm4
divsd  %xmm8,%xmm4
movapd %xmm8,%xmm0
movlpd 0xe6a(%rip),%xmm0
mulpd  %xmm8,%xmm0
divsd  %xmm9,%xmm8
addsd  0xe4f(%rip),%xmm8
subsd  %xmm4,%xmm7
movapd %xmm0,%xmm4
unpckhpd %xmm0,%xmm4
divsd  %xmm4,%xmm0
mulsd  %xmm7,%xmm0
addsd  %xmm8,%xmm0
unpcklpd %xmm3,%xmm0
unpcklpd %xmm11,%xmm5
divpd  %xmm5,%xmm0
movapd %xmm0,%xmm3
unpckhpd %xmm0,%xmm3
subsd  %xmm3,%xmm0
subsd  %xmm2,%xmm12
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm0
addsd  %xmm3,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1218 <calculate_Fu_and_Li_F+0x108>
sqrtsd %xmm0,%xmm0
jmp    1229 <calculate_Fu_and_Li_F+0x119>
movsd  %xmm12,(%rsp)
call   1030 <sqrt@plt>
movsd  (%rsp),%xmm12
divsd  %xmm0,%xmm12
movapd %xmm12,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @calculate_Fu_and_Li_F(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
store double %0, double* %9
store double %1, double* %10
store double %2, double* %11
store double %3, double* %12
store double %4, double* %13
store double %5, double* %14
store double %6, double* %15
store double %7, double* %16
%21 = load double, double* %12
%22 = load double, double* %13
%23 = load double, double* %13
%24 = load double, double* %13
%25 = call double @llvm.fmuladd.f64(double %22, double %23, double %24)
%26 = fadd double %25, 3.000000e+00
%27 = fmul double 2.000000e+00, %26
%28 = load double, double* %13
%29 = fmul double 9.000000e+00, %28
%30 = load double, double* %13
%31 = fsub double %30, 1.000000e+00
%32 = fmul double %29, %31
%33 = fdiv double %27, %32
%34 = fadd double %21, %33
%35 = load double, double* %13
%36 = fsub double %35, 1.000000e+00
%37 = fdiv double 2.000000e+00, %36
%38 = fsub double %34, %37
%39 = load double, double* %14
%40 = load double, double* %14
%41 = load double, double* %15
%42 = call double @llvm.fmuladd.f64(double %39, double %40, double %41)
%43 = fdiv double %38, %42
store double %43, double* %18
%44 = load double, double* %13
%45 = fadd double %44, 1.000000e+00
%46 = load double, double* %13
%47 = fsub double %46, 1.000000e+00
%48 = fmul double 3.000000e+00, %47
%49 = fdiv double %45, %48
%50 = fadd double 1.000000e+00, %49
%51 = load double, double* %13
%52 = fadd double %51, 1.000000e+00
%53 = fmul double 4.000000e+00, %52
%54 = load double, double* %13
%55 = fsub double %54, 1.000000e+00
%56 = load double, double* %13
%57 = fsub double %56, 1.000000e+00
%58 = fmul double %55, %57
%59 = fdiv double %53, %58
%60 = load double, double* %16
%61 = load double, double* %13
%62 = fmul double 2.000000e+00, %61
%63 = load double, double* %13
%64 = fadd double %63, 1.000000e+00
%65 = fdiv double %62, %64
%66 = fsub double %60, %65
%67 = fneg double %59
%68 = call double @llvm.fmuladd.f64(double %67, double %66, double %50)
%69 = load double, double* %14
%70 = fdiv double %68, %69
%71 = load double, double* %18
%72 = fsub double %70, %71
store double %72, double* %17
%73 = load double, double* %9
%74 = load double, double* %11
%75 = fsub double %73, %74
store double %75, double* %19
%76 = load double, double* %17
%77 = load double, double* %10
%78 = load double, double* %18
%79 = load double, double* %10
%80 = fmul double %78, %79
%81 = load double, double* %10
%82 = fmul double %80, %81
%83 = call double @llvm.fmuladd.f64(double %76, double %77, double %82)
%84 = call double @sqrt(double %83)
store double %84, double* %20
%85 = load double, double* %19
%86 = load double, double* %20
%87 = fdiv double %85, %86
ret double %87
}

LLVM IR (-O2):
define double @calculate_Fu_and_Li_F(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = tail call double @llvm.fmuladd.f64(double %4, double %4, double %4)
%10 = fadd double %9, 3.000000e+00
%11 = fmul double %10, 2.000000e+00
%12 = fmul double %4, 9.000000e+00
%13 = insertelement <2 x double> poison, double %4, i64 0
%14 = shufflevector <2 x double> %13, <2 x double> poison, <2 x i32> zeroinitializer
%15 = fadd <2 x double> %14, <double 1.000000e+00, double -1.000000e+00>
%16 = extractelement <2 x double> %15, i64 1
%17 = fmul double %12, %16
%18 = insertelement <2 x double> <double poison, double 2.000000e+00>, double %11, i64 0
%19 = insertelement <2 x double> %15, double %17, i64 0
%20 = fdiv <2 x double> %18, %19
%21 = extractelement <2 x double> %20, i64 0
%22 = fadd double %21, %3
%23 = extractelement <2 x double> %20, i64 1
%24 = fsub double %22, %23
%25 = tail call double @llvm.fmuladd.f64(double %5, double %5, double %6)
%26 = fmul double %16, 3.000000e+00
%27 = extractelement <2 x double> %15, i64 0
%28 = fdiv double %27, %26
%29 = fadd double %28, 1.000000e+00
%30 = fmul double %4, 2.000000e+00
%31 = fdiv double %30, %27
%32 = fsub double %7, %31
%33 = insertelement <2 x double> %15, double -4.000000e+00, i64 0
%34 = fmul <2 x double> %15, %33
%35 = extractelement <2 x double> %34, i64 0
%36 = extractelement <2 x double> %34, i64 1
%37 = fdiv double %35, %36
%38 = tail call double @llvm.fmuladd.f64(double %37, double %32, double %29)
%39 = insertelement <2 x double> poison, double %38, i64 0
%40 = insertelement <2 x double> %39, double %24, i64 1
%41 = insertelement <2 x double> poison, double %5, i64 0
%42 = insertelement <2 x double> %41, double %25, i64 1
%43 = fdiv <2 x double> %40, %42
%44 = extractelement <2 x double> %43, i64 0
%45 = extractelement <2 x double> %43, i64 1
%46 = fsub double %44, %45
%47 = fsub double %0, %2
%48 = fmul double %45, %1
%49 = fmul double %48, %1
%50 = tail call double @llvm.fmuladd.f64(double %46, double %1, double %49)
%51 = tail call double @sqrt(double %50)
%52 = fdiv double %47, %51
ret double %52
}