#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 log(double);
double uOfX_f(double a, double b, double nlC, double nlD, double x, double lu) {
  return ((2.0 * (nlC * log(nlC - lu) - (nlC - lu)) - nlD) - b * x / a);
}


x86 assembly (clang, -O0):
<uOfX_f>:
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  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
call   1030 <log@plt>
movaps %xmm0,%xmm2
movsd  -0x38(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
subsd  -0x30(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  -0x28(%rbp),%xmm1
divsd  -0x8(%rbp),%xmm1
subsd  %xmm1,%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uOfX_f>:
sub    $0x38,%rsp
movsd  %xmm4,0x30(%rsp)
movsd  %xmm3,0x20(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x18(%rsp)
movsd  %xmm0,0x28(%rsp)
movapd %xmm2,%xmm0
subsd  %xmm5,%xmm0
movsd  %xmm0,0x8(%rsp)
call   1030 <log@plt>
mulsd  0x10(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
addsd  %xmm0,%xmm0
subsd  0x20(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  0x30(%rsp),%xmm1
divsd  0x28(%rsp),%xmm1
subsd  %xmm1,%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @uOfX_f(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* %9
%14 = load double, double* %9
%15 = load double, double* %12
%16 = fsub double %14, %15
%17 = call double @log(double %16)
%18 = load double, double* %9
%19 = load double, double* %12
%20 = fsub double %18, %19
%21 = fneg double %20
%22 = call double @llvm.fmuladd.f64(double %13, double %17, double %21)
%23 = load double, double* %10
%24 = fneg double %23
%25 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %22, double %24)
%26 = load double, double* %8
%27 = load double, double* %11
%28 = fmul double %26, %27
%29 = load double, double* %7
%30 = fdiv double %28, %29
%31 = fsub double %25, %30
ret double %31
}

LLVM IR (-O2):
define double @uOfX_f(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = fsub double %2, %5
%8 = tail call double @log(double %7)
%9 = fneg double %7
%10 = tail call double @llvm.fmuladd.f64(double %2, double %8, double %9)
%11 = fneg double %3
%12 = tail call double @llvm.fmuladd.f64(double %10, double 2.000000e+00, double %11)
%13 = fmul double %1, %4
%14 = fdiv double %13, %0
%15 = fsub double %12, %14
ret double %15
}