#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(int, double);
double sqrt(double);
double ss(double);
double uv(double xx, double Q2) {
  double s = ss(Q2);
  double s2 = s * s;
  double a = 0.59 - 0.024 * s;
  double b = 0.131 + 0.063 * s;
  double N = 2.284 + 0.802 * s + 0.055 * s2;
  double A = -0.449 - 0.138 * s - 0.076 * s2;
  double B = 0.213 + 2.669 * s - 0.728 * s2;
  double C = 8.854 - 9.135 * s + 1.979 * s2;
  double D = 2.997 + 0.753 * s - 0.076 * s2;
  return N * pow(xx, a) * (1 + A * pow(xx, b) + xx * (B + C * sqrt(xx))) *
         pow(1 - xx, D);
}


x86 assembly (clang, -O0):
<uv>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <ss@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xf18(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xf14(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xee6(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xee2(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xeb4(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xeb0(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xe8f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xe65(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe61(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xe00(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xe1e(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe1a(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xdf9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xdcf(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xdcb(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xdaa(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xd80(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xd7c(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xd5b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
cvttsd2si -0x8(%rbp),%edi
movsd  -0x28(%rbp),%xmm0
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x98(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
cvttsd2si -0x8(%rbp),%edi
movsd  -0x30(%rbp),%xmm0
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x90(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  0xce3(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
call   1050 <sqrt@plt>
movsd  -0x88(%rbp),%xmm3
ff
movsd  -0x80(%rbp),%xmm4
movsd  -0x78(%rbp),%xmm1
movsd  -0x70(%rbp),%xmm2
movaps %xmm0,%xmm5
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm5,%xmm3
addsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xc6f(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%edi
movsd  -0x58(%rbp),%xmm0
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uv>:
push   %rbx
sub    $0x40,%rsp
movsd  %xmm0,0x18(%rsp)
movapd %xmm1,%xmm0
call   1030 <ss@plt>
movapd %xmm0,%xmm3
movapd %xmm0,%xmm4
movsd  0xeac(%rip),%xmm0
mulsd  %xmm3,%xmm0
addsd  0xea8(%rip),%xmm0
movsd  0xea8(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  0xea4(%rip),%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0xe9e(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  0xe9a(%rip),%xmm1
mulsd  %xmm4,%xmm4
movsd  0xe96(%rip),%xmm2
mulsd  %xmm4,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
movsd  0xe88(%rip),%xmm2
mulsd  %xmm3,%xmm2
addsd  0xe84(%rip),%xmm2
movsd  0xe84(%rip),%xmm1
mulsd  %xmm4,%xmm1
addsd  %xmm1,%xmm2
movsd  %xmm2,0x20(%rsp)
movsd  0xe76(%rip),%xmm2
mulsd  %xmm3,%xmm2
addsd  0xe72(%rip),%xmm2
movsd  0xe72(%rip),%xmm5
mulsd  %xmm4,%xmm5
addsd  %xmm2,%xmm5
movsd  %xmm5,0x28(%rsp)
movsd  0xe64(%rip),%xmm2
mulsd  %xmm3,%xmm2
addsd  0xe60(%rip),%xmm2
mulsd  0xe60(%rip),%xmm4
mulsd  0xe60(%rip),%xmm3
addsd  0xe60(%rip),%xmm3
addsd  %xmm2,%xmm4
movsd  %xmm4,0x30(%rsp)
addsd  %xmm1,%xmm3
movsd  %xmm3,0x38(%rsp)
cvttsd2si 0x18(%rsp),%ebx
mov    %ebx,%edi
call   1040 <pow@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %ebx,%edi
movsd  0x10(%rsp),%xmm0
call   1040 <pow@plt>
movsd  0x18(%rsp),%xmm1
movapd %xmm0,%xmm3
mulsd  0x20(%rsp),%xmm3
addsd  0xe16(%rip),%xmm3
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jb     128d <uv+0x15d>
xorps  %xmm0,%xmm0
sqrtsd %xmm1,%xmm0
jmp    12a8 <uv+0x178>
movapd %xmm1,%xmm0
movsd  %xmm3,0x10(%rsp)
call   1050 <sqrt@plt>
movsd  0x10(%rsp),%xmm3
movsd  0x18(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
mulsd  %xmm0,%xmm2
addsd  0x28(%rsp),%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm3,%xmm2
movsd  0x8(%rsp),%xmm0
mulsd  %xmm2,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xdb8(%rip),%xmm0
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
movsd  0x38(%rsp),%xmm0
call   1040 <pow@plt>
mulsd  0x8(%rsp),%xmm0
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @uv(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
store double %0, double* %3
store double %1, double* %4
%14 = load double, double* %4
%15 = call double @ss(double %14)
store double %15, double* %5
%16 = load double, double* %5
%17 = load double, double* %5
%18 = fmul double %16, %17
store double %18, double* %6
%19 = load double, double* %5
%20 = call double @llvm.fmuladd.f64(double -2.400000e-02, double %19, double 5.900000e-01)
store double %20, double* %7
%21 = load double, double* %5
%22 = call double @llvm.fmuladd.f64(double 6.300000e-02, double %21, double 1.310000e-01)
store double %22, double* %8
%23 = load double, double* %5
%24 = call double @llvm.fmuladd.f64(double 8.020000e-01, double %23, double 2.284000e+00)
%25 = load double, double* %6
%26 = call double @llvm.fmuladd.f64(double 5.500000e-02, double %25, double %24)
store double %26, double* %9
%27 = load double, double* %5
%28 = call double @llvm.fmuladd.f64(double -1.380000e-01, double %27, double -4.490000e-01)
%29 = load double, double* %6
%30 = call double @llvm.fmuladd.f64(double 0xBFB374BC6A7EF9DB, double %29, double %28)
store double %30, double* %10
%31 = load double, double* %5
%32 = call double @llvm.fmuladd.f64(double 2.669000e+00, double %31, double 2.130000e-01)
%33 = load double, double* %6
%34 = call double @llvm.fmuladd.f64(double 0xBFE74BC6A7EF9DB2, double %33, double %32)
store double %34, double* %11
%35 = load double, double* %5
%36 = call double @llvm.fmuladd.f64(double -9.135000e+00, double %35, double 8.854000e+00)
%37 = load double, double* %6
%38 = call double @llvm.fmuladd.f64(double 1.979000e+00, double %37, double %36)
store double %38, double* %12
%39 = load double, double* %5
%40 = call double @llvm.fmuladd.f64(double 7.530000e-01, double %39, double 2.997000e+00)
%41 = load double, double* %6
%42 = call double @llvm.fmuladd.f64(double 0xBFB374BC6A7EF9DB, double %41, double %40)
store double %42, double* %13
%43 = load double, double* %9
%44 = load double, double* %3
%45 = fptosi double %44 to i32
%46 = load double, double* %7
%47 = call double @pow(i32 %45, double %46)
%48 = fmul double %43, %47
%49 = load double, double* %10
%50 = load double, double* %3
%51 = fptosi double %50 to i32
%52 = load double, double* %8
%53 = call double @pow(i32 %51, double %52)
%54 = call double @llvm.fmuladd.f64(double %49, double %53, double 1.000000e+00)
%55 = load double, double* %3
%56 = load double, double* %11
%57 = load double, double* %12
%58 = load double, double* %3
%59 = call double @sqrt(double %58)
%60 = call double @llvm.fmuladd.f64(double %57, double %59, double %56)
%61 = call double @llvm.fmuladd.f64(double %55, double %60, double %54)
%62 = fmul double %48, %61
%63 = load double, double* %3
%64 = fsub double 1.000000e+00, %63
%65 = fptosi double %64 to i32
%66 = load double, double* %13
%67 = call double @pow(i32 %65, double %66)
%68 = fmul double %62, %67
ret double %68
}

LLVM IR (-O2):
define double @uv(double %0, double %1) {
%3 = tail call double @ss(double %1)
%4 = fmul double %3, %3
%5 = tail call double @llvm.fmuladd.f64(double %3, double -2.400000e-02, double 5.900000e-01)
%6 = tail call double @llvm.fmuladd.f64(double %3, double 6.300000e-02, double 1.310000e-01)
%7 = tail call double @llvm.fmuladd.f64(double %3, double 8.020000e-01, double 2.284000e+00)
%8 = tail call double @llvm.fmuladd.f64(double %4, double 5.500000e-02, double %7)
%9 = tail call double @llvm.fmuladd.f64(double %3, double -1.380000e-01, double -4.490000e-01)
%10 = tail call double @llvm.fmuladd.f64(double %4, double 0xBFB374BC6A7EF9DB, double %9)
%11 = tail call double @llvm.fmuladd.f64(double %3, double 2.669000e+00, double 2.130000e-01)
%12 = tail call double @llvm.fmuladd.f64(double %4, double 0xBFE74BC6A7EF9DB2, double %11)
%13 = tail call double @llvm.fmuladd.f64(double %3, double -9.135000e+00, double 8.854000e+00)
%14 = tail call double @llvm.fmuladd.f64(double %4, double 1.979000e+00, double %13)
%15 = tail call double @llvm.fmuladd.f64(double %3, double 7.530000e-01, double 2.997000e+00)
%16 = tail call double @llvm.fmuladd.f64(double %4, double 0xBFB374BC6A7EF9DB, double %15)
%17 = fptosi double %0 to i32
%18 = tail call double @pow(i32 %17, double %5)
%19 = fmul double %18, %8
%20 = tail call double @pow(i32 %17, double %6)
%21 = tail call double @llvm.fmuladd.f64(double %10, double %20, double 1.000000e+00)
%22 = tail call double @sqrt(double %0)
%23 = tail call double @llvm.fmuladd.f64(double %14, double %22, double %12)
%24 = tail call double @llvm.fmuladd.f64(double %0, double %23, double %21)
%25 = fmul double %19, %24
%26 = fsub double 1.000000e+00, %0
%27 = fptosi double %26 to i32
%28 = tail call double @pow(i32 %27, double %16)
%29 = fmul double %28, %25
ret double %29
}