#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 exp(scalar_t__);
double log(double);
double pow(int, double);
scalar_t__ sqrt(double);
double ss(double);
double udb(double xx, double Q2) {
  double s = ss(Q2);
  double s2 = s * s;
  double alfa = 1.451;
  double beta = 0.271;
  double a = 0.41 - 0.232 * s;
  double b = 0.534 - 0.457 * s;
  double A = 0.89 - 0.14 * s;
  double B = -0.981;
  double C = 0.32 + 0.683 * s;
  double D = 4.752 + 1.164 * s + 0.286 * s2;
  double E = 4.119 + 1.713 * s;
  double Eprim = 0.682 + 2.978 * s;
  return (pow(xx, a) * (A + B * xx + C * xx * xx) * pow(log(1.0 / xx), b) +
          pow(s, alfa) * exp(-E + sqrt(Eprim * pow(s, beta) * log(1.0 / xx)))) *
         pow(1 - xx, D);
}


x86 assembly (clang, -O0):
<udb>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1040 <ss@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xf05(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xef0(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xece(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xeca(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xe9c(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe98(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xe6a(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe66(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe45(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xe23(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe1f(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xdf1(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xded(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xdcc(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xda2(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd9e(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xd70(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd6c(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
cvttsd2si -0x8(%rbp),%edi
movsd  -0x38(%rbp),%xmm0
call   1060 <pow@plt>
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movsd  -0x8(%rbp),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  -0x8(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xd05(%rip),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1050 <log@plt>
cvttsd2si %xmm0,%edi
movsd  -0x40(%rbp),%xmm0
call   1060 <pow@plt>
movsd  %xmm0,-0x88(%rbp)
ff
cvttsd2si -0x18(%rbp),%edi
movsd  -0x28(%rbp),%xmm0
call   1060 <pow@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
cvttsd2si -0x18(%rbp),%edi
movsd  -0x30(%rbp),%xmm0
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xc6f(%rip),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1050 <log@plt>
movaps %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
call   1070 <sqrt@plt>
movsd  -0x98(%rbp),%xmm0
ff
cvtsi2sd %rax,%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rdi
call   1030 <exp@plt>
movsd  -0x90(%rbp),%xmm1
ff
movsd  -0x88(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0x80(%rbp),%xmm0
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xc05(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%edi
movsd  -0x60(%rbp),%xmm0
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm1,%xmm0
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<udb>:
push   %rbx
sub    $0x40,%rsp
movsd  %xmm0,0x30(%rsp)
movapd %xmm1,%xmm0
call   1040 <ss@plt>
movapd %xmm0,%xmm3
movsd  %xmm0,0x8(%rsp)
mulsd  %xmm0,%xmm0
movapd %xmm0,%xmm2
movsd  0xe82(%rip),%xmm0
mulsd  %xmm3,%xmm0
addsd  0xe7e(%rip),%xmm0
movsd  0xe7e(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  0xe7a(%rip),%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  0xe74(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  0xe70(%rip),%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0xe6a(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  0xe66(%rip),%xmm1
movsd  %xmm1,(%rsp)
movsd  0xe61(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  0xe5d(%rip),%xmm1
mulsd  0xe5d(%rip),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x38(%rsp)
movsd  0xe53(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  0xe4f(%rip),%xmm1
movsd  %xmm1,0x28(%rsp)
movsd  0xe49(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  0xe45(%rip),%xmm1
movsd  %xmm1,0x10(%rsp)
cvttsd2si 0x30(%rsp),%edi
call   1060 <pow@plt>
movsd  0xe34(%rip),%xmm2
movsd  0x30(%rsp),%xmm1
mulsd  %xmm1,%xmm2
addsd  0x18(%rsp),%xmm2
movsd  (%rsp),%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
mulsd  %xmm3,%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0xe09(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
call   1050 <log@plt>
cvttsd2si %xmm0,%edi
movsd  0x20(%rsp),%xmm0
call   1060 <pow@plt>
movsd  %xmm0,0x20(%rsp)
cvttsd2si 0x8(%rsp),%ebx
movsd  0xde0(%rip),%xmm0
mov    %ebx,%edi
call   1060 <pow@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0xdd3(%rip),%xmm0
mov    %ebx,%edi
call   1060 <pow@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  (%rsp),%xmm0
call   1050 <log@plt>
mulsd  0x10(%rsp),%xmm0
call   1070 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
subsd  0x28(%rsp),%xmm0
cvttsd2si %xmm0,%rdi
call   1030 <exp@plt>
mulsd  0x8(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
mulsd  0x18(%rsp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0xd5f(%rip),%xmm0
subsd  0x30(%rsp),%xmm0
cvttsd2si %xmm0,%edi
movsd  0x38(%rsp),%xmm0
call   1060 <pow@plt>
mulsd  0x28(%rsp),%xmm0
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @udb(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
%14 = alloca double
%15 = alloca double
%16 = alloca double
store double %0, double* %3
store double %1, double* %4
%17 = load double, double* %4
%18 = call double @ss(double %17)
store double %18, double* %5
%19 = load double, double* %5
%20 = load double, double* %5
%21 = fmul double %19, %20
store double %21, double* %6
store double 1.451000e+00, double* %7
store double 2.710000e-01, double* %8
%22 = load double, double* %5
%23 = call double @llvm.fmuladd.f64(double -2.320000e-01, double %22, double 4.100000e-01)
store double %23, double* %9
%24 = load double, double* %5
%25 = call double @llvm.fmuladd.f64(double -4.570000e-01, double %24, double 5.340000e-01)
store double %25, double* %10
%26 = load double, double* %5
%27 = call double @llvm.fmuladd.f64(double -1.400000e-01, double %26, double 8.900000e-01)
store double %27, double* %11
store double 0xBFEF645A1CAC0831, double* %12
%28 = load double, double* %5
%29 = call double @llvm.fmuladd.f64(double 6.830000e-01, double %28, double 3.200000e-01)
store double %29, double* %13
%30 = load double, double* %5
%31 = call double @llvm.fmuladd.f64(double 1.164000e+00, double %30, double 4.752000e+00)
%32 = load double, double* %6
%33 = call double @llvm.fmuladd.f64(double 2.860000e-01, double %32, double %31)
store double %33, double* %14
%34 = load double, double* %5
%35 = call double @llvm.fmuladd.f64(double 1.713000e+00, double %34, double 4.119000e+00)
store double %35, double* %15
%36 = load double, double* %5
%37 = call double @llvm.fmuladd.f64(double 2.978000e+00, double %36, double 6.820000e-01)
store double %37, double* %16
%38 = load double, double* %3
%39 = fptosi double %38 to i32
%40 = load double, double* %9
%41 = call double @pow(i32 %39, double %40)
%42 = load double, double* %11
%43 = load double, double* %12
%44 = load double, double* %3
%45 = call double @llvm.fmuladd.f64(double %43, double %44, double %42)
%46 = load double, double* %13
%47 = load double, double* %3
%48 = fmul double %46, %47
%49 = load double, double* %3
%50 = call double @llvm.fmuladd.f64(double %48, double %49, double %45)
%51 = fmul double %41, %50
%52 = load double, double* %3
%53 = fdiv double 1.000000e+00, %52
%54 = call double @log(double %53)
%55 = fptosi double %54 to i32
%56 = load double, double* %10
%57 = call double @pow(i32 %55, double %56)
%58 = load double, double* %5
%59 = fptosi double %58 to i32
%60 = load double, double* %7
%61 = call double @pow(i32 %59, double %60)
%62 = load double, double* %15
%63 = fneg double %62
%64 = load double, double* %16
%65 = load double, double* %5
%66 = fptosi double %65 to i32
%67 = load double, double* %8
%68 = call double @pow(i32 %66, double %67)
%69 = fmul double %64, %68
%70 = load double, double* %3
%71 = fdiv double 1.000000e+00, %70
%72 = call double @log(double %71)
%73 = fmul double %69, %72
%74 = call i64 @sqrt(double %73)
%75 = sitofp i64 %74 to double
%76 = fadd double %63, %75
%77 = fptosi double %76 to i64
%78 = call double @exp(i64 %77)
%79 = fmul double %61, %78
%80 = call double @llvm.fmuladd.f64(double %51, double %57, double %79)
%81 = load double, double* %3
%82 = fsub double 1.000000e+00, %81
%83 = fptosi double %82 to i32
%84 = load double, double* %14
%85 = call double @pow(i32 %83, double %84)
%86 = fmul double %80, %85
ret double %86
}

LLVM IR (-O2):
define double @udb(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.320000e-01, double 4.100000e-01)
%6 = tail call double @llvm.fmuladd.f64(double %3, double -4.570000e-01, double 5.340000e-01)
%7 = tail call double @llvm.fmuladd.f64(double %3, double -1.400000e-01, double 8.900000e-01)
%8 = tail call double @llvm.fmuladd.f64(double %3, double 6.830000e-01, double 3.200000e-01)
%9 = tail call double @llvm.fmuladd.f64(double %3, double 1.164000e+00, double 4.752000e+00)
%10 = tail call double @llvm.fmuladd.f64(double %4, double 2.860000e-01, double %9)
%11 = tail call double @llvm.fmuladd.f64(double %3, double 1.713000e+00, double 4.119000e+00)
%12 = tail call double @llvm.fmuladd.f64(double %3, double 2.978000e+00, double 6.820000e-01)
%13 = fptosi double %0 to i32
%14 = tail call double @pow(i32 %13, double %5)
%15 = tail call double @llvm.fmuladd.f64(double %0, double 0xBFEF645A1CAC0831, double %7)
%16 = fmul double %8, %0
%17 = tail call double @llvm.fmuladd.f64(double %16, double %0, double %15)
%18 = fmul double %14, %17
%19 = fdiv double 1.000000e+00, %0
%20 = tail call double @log(double %19)
%21 = fptosi double %20 to i32
%22 = tail call double @pow(i32 %21, double %6)
%23 = fptosi double %3 to i32
%24 = tail call double @pow(i32 %23, double 1.451000e+00)
%25 = tail call double @pow(i32 %23, double 2.710000e-01)
%26 = fmul double %12, %25
%27 = tail call double @log(double %19)
%28 = fmul double %26, %27
%29 = tail call i64 @sqrt(double %28)
%30 = sitofp i64 %29 to double
%31 = fsub double %30, %11
%32 = fptosi double %31 to i64
%33 = tail call double @exp(i64 %32)
%34 = fmul double %24, %33
%35 = tail call double @llvm.fmuladd.f64(double %18, double %22, double %34)
%36 = fsub double 1.000000e+00, %0
%37 = fptosi double %36 to i32
%38 = tail call double @pow(i32 %37, double %10)
%39 = fmul double %38, %35
ret double %39
}