#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 */
int exp(double);
double log(double);
double pow(double, double);
double sqrt(double);
double ss(double);
double sb(double xx, double Q2) {
  double s = ss(Q2);
  double s2 = s * s;
  double alfa = 0.914;
  double beta = 0.577;
  double a = 1.798 - 0.596 * s;
  double A = -5.548 + 3.669 * sqrt(s) - 0.616 * s;
  double B = 18.92 - 16.73 * sqrt(s) + 5.168 * s;
  double D = 6.379 - 0.35 * s + 0.142 * s2;
  double E = 3.981 + 1.638 * s;
  double Eprim = 6.402;
  return pow(s, alfa) / pow(log(1.0 / xx), a) * (1 + A * sqrt(xx) + B * xx) *
         pow(1 - xx, D) * exp(-E + sqrt(Eprim * pow(s, beta) * log(1.0 / xx)));
}


x86 assembly (clang, -O0):
<sb>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%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  0xef5(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xee0(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xebe(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xeba(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xe84(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe80(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xe5f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xe2d(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe29(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xe08(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xdde(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xdda(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xdb9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xd8f(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd8b(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xd6a(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
call   1060 <pow@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xd3e(%rip),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1050 <log@plt>
movsd  -0x38(%rbp),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
call   1070 <sqrt@plt>
movsd  -0x98(%rbp),%xmm2
ff
movaps %xmm0,%xmm1
movsd  -0x90(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm2
movsd  0xcdd(%rip),%xmm1
addsd  %xmm1,%xmm2
movsd  -0x48(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xcb3(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x88(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x58(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xc3d(%rip),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1050 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm1,%xmm0
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
addsd  %xmm1,%xmm0
call   1030 <exp@plt>
movsd  -0x68(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sb>:
sub    $0x48,%rsp
movsd  %xmm0,0x30(%rsp)
movapd %xmm1,%xmm0
call   1040 <ss@plt>
movapd %xmm0,%xmm1
movsd  %xmm0,0x8(%rsp)
movsd  0xe8b(%rip),%xmm0
mulsd  %xmm1,%xmm0
sqrtsd %xmm1,%xmm4
xorpd  %xmm5,%xmm5
ucomisd %xmm5,%xmm1
movapd %xmm4,%xmm3
movsd  %xmm1,0x10(%rsp)
jae    11c0 <sb+0x70>
movsd  %xmm0,0x18(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  %xmm4,(%rsp)
call   1070 <sqrt@plt>
xorpd  %xmm5,%xmm5
movsd  (%rsp),%xmm4
movsd  0x10(%rsp),%xmm1
movapd %xmm0,%xmm3
movsd  0x18(%rsp),%xmm0
movapd %xmm1,%xmm2
mulsd  %xmm1,%xmm2
addsd  0xe38(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
mulsd  0xe32(%rip),%xmm3
addsd  0xe32(%rip),%xmm3
movsd  0xe32(%rip),%xmm0
mulsd  %xmm1,%xmm0
ucomisd %xmm5,%xmm1
jae    122f <sb+0xdf>
movsd  %xmm0,0x20(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  %xmm2,0x28(%rsp)
movsd  %xmm3,(%rsp)
call   1070 <sqrt@plt>
movsd  (%rsp),%xmm3
movsd  0x28(%rsp),%xmm2
movsd  0x10(%rsp),%xmm1
movapd %xmm0,%xmm4
movsd  0x20(%rsp),%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm0,0x20(%rsp)
mulsd  0xde7(%rip),%xmm4
addsd  0xde7(%rip),%xmm4
movsd  0xde7(%rip),%xmm3
mulsd  %xmm1,%xmm3
movsd  0xde3(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xddf(%rip),%xmm0
mulsd  0xddf(%rip),%xmm2
addsd  %xmm4,%xmm3
movsd  %xmm3,0x40(%rsp)
addsd  %xmm0,%xmm2
movsd  %xmm2,0x28(%rsp)
mulsd  0xdcb(%rip),%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0xdcd(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1060 <pow@plt>
movsd  %xmm0,(%rsp)
movsd  0xdbd(%rip),%xmm0
divsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
call   1050 <log@plt>
movsd  0x18(%rsp),%xmm1
call   1060 <pow@plt>
movsd  0x30(%rsp),%xmm1
movsd  (%rsp),%xmm2
divsd  %xmm0,%xmm2
movsd  %xmm2,(%rsp)
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jb     12f6 <sb+0x1a6>
xorps  %xmm0,%xmm0
sqrtsd %xmm1,%xmm0
jmp    1305 <sb+0x1b5>
movapd %xmm1,%xmm0
call   1070 <sqrt@plt>
movsd  0x30(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
mulsd  %xmm0,%xmm2
movsd  0x10(%rsp),%xmm0
addsd  0xd43(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xd45(%rip),%xmm0
addsd  %xmm0,%xmm2
movsd  0x40(%rsp),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  (%rsp),%xmm2
mulsd  %xmm3,%xmm2
movsd  %xmm2,(%rsp)
subsd  %xmm1,%xmm0
movsd  0x28(%rsp),%xmm1
call   1060 <pow@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xd0c(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1060 <pow@plt>
mulsd  0xd01(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x38(%rsp),%xmm0
call   1050 <log@plt>
mulsd  0x8(%rsp),%xmm0
ucomisd 0xcea(%rip),%xmm0
jb     13a6 <sb+0x256>
sqrtsd %xmm0,%xmm0
jmp    13ab <sb+0x25b>
call   1070 <sqrt@plt>
subsd  0x10(%rsp),%xmm0
call   1030 <exp@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  (%rsp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x48,%rsp
ret

LLVM IR (-O0):
define double @sb(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
store double %0, double* %3
store double %1, double* %4
%15 = load double, double* %4
%16 = call double @ss(double %15)
store double %16, double* %5
%17 = load double, double* %5
%18 = load double, double* %5
%19 = fmul double %17, %18
store double %19, double* %6
store double 9.140000e-01, double* %7
store double 5.770000e-01, double* %8
%20 = load double, double* %5
%21 = call double @llvm.fmuladd.f64(double -5.960000e-01, double %20, double 1.798000e+00)
store double %21, double* %9
%22 = load double, double* %5
%23 = call double @sqrt(double %22)
%24 = call double @llvm.fmuladd.f64(double 3.669000e+00, double %23, double -5.548000e+00)
%25 = load double, double* %5
%26 = call double @llvm.fmuladd.f64(double -6.160000e-01, double %25, double %24)
store double %26, double* %10
%27 = load double, double* %5
%28 = call double @sqrt(double %27)
%29 = call double @llvm.fmuladd.f64(double -1.673000e+01, double %28, double 1.892000e+01)
%30 = load double, double* %5
%31 = call double @llvm.fmuladd.f64(double 5.168000e+00, double %30, double %29)
store double %31, double* %11
%32 = load double, double* %5
%33 = call double @llvm.fmuladd.f64(double -3.500000e-01, double %32, double 6.379000e+00)
%34 = load double, double* %6
%35 = call double @llvm.fmuladd.f64(double 1.420000e-01, double %34, double %33)
store double %35, double* %12
%36 = load double, double* %5
%37 = call double @llvm.fmuladd.f64(double 1.638000e+00, double %36, double 3.981000e+00)
store double %37, double* %13
store double 6.402000e+00, double* %14
%38 = load double, double* %5
%39 = load double, double* %7
%40 = call double @pow(double %38, double %39)
%41 = load double, double* %3
%42 = fdiv double 1.000000e+00, %41
%43 = call double @log(double %42)
%44 = load double, double* %9
%45 = call double @pow(double %43, double %44)
%46 = fdiv double %40, %45
%47 = load double, double* %10
%48 = load double, double* %3
%49 = call double @sqrt(double %48)
%50 = call double @llvm.fmuladd.f64(double %47, double %49, double 1.000000e+00)
%51 = load double, double* %11
%52 = load double, double* %3
%53 = call double @llvm.fmuladd.f64(double %51, double %52, double %50)
%54 = fmul double %46, %53
%55 = load double, double* %3
%56 = fsub double 1.000000e+00, %55
%57 = load double, double* %12
%58 = call double @pow(double %56, double %57)
%59 = fmul double %54, %58
%60 = load double, double* %13
%61 = fneg double %60
%62 = load double, double* %14
%63 = load double, double* %5
%64 = load double, double* %8
%65 = call double @pow(double %63, double %64)
%66 = fmul double %62, %65
%67 = load double, double* %3
%68 = fdiv double 1.000000e+00, %67
%69 = call double @log(double %68)
%70 = fmul double %66, %69
%71 = call double @sqrt(double %70)
%72 = fadd double %61, %71
%73 = call i32 @exp(double %72)
%74 = sitofp i32 %73 to double
%75 = fmul double %59, %74
ret double %75
}

LLVM IR (-O2):
define double @sb(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 -5.960000e-01, double 1.798000e+00)
%6 = tail call double @sqrt(double %3)
%7 = tail call double @llvm.fmuladd.f64(double %6, double 3.669000e+00, double -5.548000e+00)
%8 = tail call double @llvm.fmuladd.f64(double %3, double -6.160000e-01, double %7)
%9 = tail call double @sqrt(double %3)
%10 = tail call double @llvm.fmuladd.f64(double %9, double -1.673000e+01, double 1.892000e+01)
%11 = tail call double @llvm.fmuladd.f64(double %3, double 5.168000e+00, double %10)
%12 = tail call double @llvm.fmuladd.f64(double %3, double -3.500000e-01, double 6.379000e+00)
%13 = tail call double @llvm.fmuladd.f64(double %4, double 1.420000e-01, double %12)
%14 = tail call double @llvm.fmuladd.f64(double %3, double 1.638000e+00, double 3.981000e+00)
%15 = tail call double @pow(double %3, double 9.140000e-01)
%16 = fdiv double 1.000000e+00, %0
%17 = tail call double @log(double %16)
%18 = tail call double @pow(double %17, double %5)
%19 = fdiv double %15, %18
%20 = tail call double @sqrt(double %0)
%21 = tail call double @llvm.fmuladd.f64(double %8, double %20, double 1.000000e+00)
%22 = tail call double @llvm.fmuladd.f64(double %11, double %0, double %21)
%23 = fmul double %19, %22
%24 = fsub double 1.000000e+00, %0
%25 = tail call double @pow(double %24, double %13)
%26 = fmul double %25, %23
%27 = tail call double @pow(double %3, double 5.770000e-01)
%28 = fmul double %27, 6.402000e+00
%29 = tail call double @log(double %16)
%30 = fmul double %28, %29
%31 = tail call double @sqrt(double %30)
%32 = fsub double %31, %14
%33 = tail call i32 @exp(double %32)
%34 = sitofp i32 %33 to double
%35 = fmul double %26, %34
ret double %35
}