#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 dv(double xx, double Q2) {
  double s = ss(Q2);
  double s2 = s * s;
  double a = 0.376;
  double b = 0.486 + 0.062 * s;
  double N = 0.371 + 0.083 * s + 0.039 * s2;
  double A = -0.509 + 3.31 * s - 1.248 * s2;
  double B = 12.41 - 10.52 * s + 2.267 * s2;
  double C = 6.373 - 6.208 * s + 1.418 * s2;
  double D = 3.691 + 0.799 * s - 0.071 * s2;
  return N * pow(xx, a) * (1 + A * pow(xx, b) + xx * (B + C * sqrt(xx))) *
         pow(1 - xx, D);
}


x86 assembly (clang, -O0):
<dv>:
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  0xf25(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xf03(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xeff(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xed1(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xecd(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xeac(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xe82(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe7e(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xe5d(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xe33(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe2f(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xe0e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xde4(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xde0(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xdbf(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xd95(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xd91(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xd70(%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  0xcf8(%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  0xc84(%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):
<dv>:
push   %rbx
sub    $0x40,%rsp
movsd  %xmm0,0x18(%rsp)
movapd %xmm1,%xmm0
call   1030 <ss@plt>
movapd %xmm0,%xmm3
mulsd  %xmm0,%xmm3
movsd  0xeac(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xea8(%rip),%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0xea2(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xe9e(%rip),%xmm1
movsd  0xe9e(%rip),%xmm2
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
movsd  0xe90(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xe8c(%rip),%xmm1
movsd  0xe8c(%rip),%xmm4
mulsd  %xmm3,%xmm4
movsd  0xe88(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  0xe84(%rip),%xmm2
addsd  %xmm1,%xmm4
movsd  %xmm4,0x20(%rsp)
movsd  0xe7a(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,0x30(%rsp)
movsd  0xe6c(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xe68(%rip),%xmm1
movsd  0xe68(%rip),%xmm2
mulsd  %xmm3,%xmm2
mulsd  0xe64(%rip),%xmm0
addsd  0xe64(%rip),%xmm0
mulsd  0xe64(%rip),%xmm3
addsd  %xmm1,%xmm2
movsd  %xmm2,0x28(%rsp)
addsd  %xmm0,%xmm3
movsd  %xmm3,0x38(%rsp)
cvttsd2si 0x18(%rsp),%ebx
movsd  0xe4a(%rip),%xmm0
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  0xe1a(%rip),%xmm3
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jb     1289 <dv+0x159>
xorps  %xmm0,%xmm0
sqrtsd %xmm1,%xmm0
jmp    12a4 <dv+0x174>
movapd %xmm1,%xmm0
movsd  %xmm3,0x10(%rsp)
call   1050 <sqrt@plt>
movsd  0x10(%rsp),%xmm3
movsd  0x18(%rsp),%xmm1
movsd  0x28(%rsp),%xmm2
mulsd  %xmm0,%xmm2
addsd  0x30(%rsp),%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm3,%xmm2
movsd  0x8(%rsp),%xmm0
mulsd  %xmm2,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xdbc(%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 @dv(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
store double 3.760000e-01, double* %7
%19 = load double, double* %5
%20 = call double @llvm.fmuladd.f64(double 6.200000e-02, double %19, double 4.860000e-01)
store double %20, double* %8
%21 = load double, double* %5
%22 = call double @llvm.fmuladd.f64(double 8.300000e-02, double %21, double 3.710000e-01)
%23 = load double, double* %6
%24 = call double @llvm.fmuladd.f64(double 3.900000e-02, double %23, double %22)
store double %24, double* %9
%25 = load double, double* %5
%26 = call double @llvm.fmuladd.f64(double 3.310000e+00, double %25, double -5.090000e-01)
%27 = load double, double* %6
%28 = call double @llvm.fmuladd.f64(double -1.248000e+00, double %27, double %26)
store double %28, double* %10
%29 = load double, double* %5
%30 = call double @llvm.fmuladd.f64(double -1.052000e+01, double %29, double 1.241000e+01)
%31 = load double, double* %6
%32 = call double @llvm.fmuladd.f64(double 2.267000e+00, double %31, double %30)
store double %32, double* %11
%33 = load double, double* %5
%34 = call double @llvm.fmuladd.f64(double -6.208000e+00, double %33, double 6.373000e+00)
%35 = load double, double* %6
%36 = call double @llvm.fmuladd.f64(double 1.418000e+00, double %35, double %34)
store double %36, double* %12
%37 = load double, double* %5
%38 = call double @llvm.fmuladd.f64(double 7.990000e-01, double %37, double 3.691000e+00)
%39 = load double, double* %6
%40 = call double @llvm.fmuladd.f64(double 0xBFB22D0E56041893, double %39, double %38)
store double %40, double* %13
%41 = load double, double* %9
%42 = load double, double* %3
%43 = fptosi double %42 to i32
%44 = load double, double* %7
%45 = call double @pow(i32 %43, double %44)
%46 = fmul double %41, %45
%47 = load double, double* %10
%48 = load double, double* %3
%49 = fptosi double %48 to i32
%50 = load double, double* %8
%51 = call double @pow(i32 %49, double %50)
%52 = call double @llvm.fmuladd.f64(double %47, double %51, double 1.000000e+00)
%53 = load double, double* %3
%54 = load double, double* %11
%55 = load double, double* %12
%56 = load double, double* %3
%57 = call double @sqrt(double %56)
%58 = call double @llvm.fmuladd.f64(double %55, double %57, double %54)
%59 = call double @llvm.fmuladd.f64(double %53, double %58, double %52)
%60 = fmul double %46, %59
%61 = load double, double* %3
%62 = fsub double 1.000000e+00, %61
%63 = fptosi double %62 to i32
%64 = load double, double* %13
%65 = call double @pow(i32 %63, double %64)
%66 = fmul double %60, %65
ret double %66
}

LLVM IR (-O2):
define double @dv(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 6.200000e-02, double 4.860000e-01)
%6 = tail call double @llvm.fmuladd.f64(double %3, double 8.300000e-02, double 3.710000e-01)
%7 = tail call double @llvm.fmuladd.f64(double %4, double 3.900000e-02, double %6)
%8 = tail call double @llvm.fmuladd.f64(double %3, double 3.310000e+00, double -5.090000e-01)
%9 = tail call double @llvm.fmuladd.f64(double %4, double -1.248000e+00, double %8)
%10 = tail call double @llvm.fmuladd.f64(double %3, double -1.052000e+01, double 1.241000e+01)
%11 = tail call double @llvm.fmuladd.f64(double %4, double 2.267000e+00, double %10)
%12 = tail call double @llvm.fmuladd.f64(double %3, double -6.208000e+00, double 6.373000e+00)
%13 = tail call double @llvm.fmuladd.f64(double %4, double 1.418000e+00, double %12)
%14 = tail call double @llvm.fmuladd.f64(double %3, double 7.990000e-01, double 3.691000e+00)
%15 = tail call double @llvm.fmuladd.f64(double %4, double 0xBFB22D0E56041893, double %14)
%16 = fptosi double %0 to i32
%17 = tail call double @pow(i32 %16, double 3.760000e-01)
%18 = fmul double %17, %7
%19 = tail call double @pow(i32 %16, double %5)
%20 = tail call double @llvm.fmuladd.f64(double %9, double %19, double 1.000000e+00)
%21 = tail call double @sqrt(double %0)
%22 = tail call double @llvm.fmuladd.f64(double %13, double %21, double %11)
%23 = tail call double @llvm.fmuladd.f64(double %0, double %22, double %20)
%24 = fmul double %18, %23
%25 = fsub double 1.000000e+00, %0
%26 = fptosi double %25 to i32
%27 = tail call double @pow(i32 %26, double %15)
%28 = fmul double %27, %24
ret double %28
}