#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 /*<<< orphan*/ Rgsquare(double, double);
double Sdebye(double const);
double pow(double const, double);
double sqrt(int /*<<< orphan*/);
double w_WR(double const);
double Sexv(double q, double L, double b) {
  const double C1 = 1.22;
  const double C2 = 0.4288;
  const double C3 = -1.651;
  const double miu = 0.585;
  const double qr = q * sqrt(Rgsquare(L, b));
  const double qr_miu = pow(qr, -1.0 / miu);
  const double w = w_WR(qr);
  const double t10 = Sdebye(qr * qr) * (1.0 - w);
  const double t11 = ((C3 * qr_miu + C2) * qr_miu + C1) * qr_miu;
  return t10 + w * t11;
}


x86 assembly (clang, -O0):
<Sexv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  0xe91(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe94(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe7f(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe92(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
call   1050 <Rgsquare@plt>
mov    %eax,%edi
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  0xe47(%rip),%xmm1
call   1060 <pow@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1030 <w_WR@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
call   1040 <Sdebye@plt>
movsd  0xe0f(%rip),%xmm1
subsd  -0x50(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  0xde4(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xde0(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xdbb(%rip),%xmm1
addsd  %xmm1,%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Sexv>:
sub    $0x18,%rsp
movsd  %xmm0,(%rsp)
movapd %xmm1,%xmm0
movaps %xmm2,%xmm1
call   1050 <Rgsquare@plt>
mov    %eax,%edi
call   1070 <sqrt@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe82(%rip),%xmm1
call   1060 <pow@plt>
movsd  %xmm0,0x10(%rsp)
movsd  (%rsp),%xmm0
call   1030 <w_WR@plt>
movsd  %xmm0,0x8(%rsp)
movsd  (%rsp),%xmm0
mulsd  %xmm0,%xmm0
call   1040 <Sdebye@plt>
movsd  0xe59(%rip),%xmm1
movsd  0xe59(%rip),%xmm2
movsd  0x10(%rsp),%xmm3
mulsd  %xmm3,%xmm2
addsd  0xe4f(%rip),%xmm2
movsd  0x8(%rsp),%xmm4
subsd  %xmm4,%xmm1
mulsd  %xmm3,%xmm2
addsd  0xe41(%rip),%xmm2
mulsd  %xmm1,%xmm0
mulsd  %xmm3,%xmm2
mulsd  %xmm4,%xmm2
addsd  %xmm2,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @Sexv(double %0, double %1, double %2) {
%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
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
store double 1.220000e+00, double* %7
store double 4.288000e-01, double* %8
store double -1.651000e+00, double* %9
store double 5.850000e-01, double* %10
%16 = load double, double* %4
%17 = load double, double* %5
%18 = load double, double* %6
%19 = call i32 @Rgsquare(double %17, double %18)
%20 = call double @sqrt(i32 %19)
%21 = fmul double %16, %20
store double %21, double* %11
%22 = load double, double* %11
%23 = call double @pow(double %22, double 0xBFFB59B59B59B59C)
store double %23, double* %12
%24 = load double, double* %11
%25 = call double @w_WR(double %24)
store double %25, double* %13
%26 = load double, double* %11
%27 = load double, double* %11
%28 = fmul double %26, %27
%29 = call double @Sdebye(double %28)
%30 = load double, double* %13
%31 = fsub double 1.000000e+00, %30
%32 = fmul double %29, %31
store double %32, double* %14
%33 = load double, double* %12
%34 = call double @llvm.fmuladd.f64(double -1.651000e+00, double %33, double 4.288000e-01)
%35 = load double, double* %12
%36 = call double @llvm.fmuladd.f64(double %34, double %35, double 1.220000e+00)
%37 = load double, double* %12
%38 = fmul double %36, %37
store double %38, double* %15
%39 = load double, double* %14
%40 = load double, double* %13
%41 = load double, double* %15
%42 = call double @llvm.fmuladd.f64(double %40, double %41, double %39)
ret double %42
}

LLVM IR (-O2):
define double @Sexv(double %0, double %1, double %2) {
%4 = tail call i32 @Rgsquare(double %1, double %2)
%5 = tail call double @sqrt(i32 %4)
%6 = fmul double %5, %0
%7 = tail call double @pow(double %6, double 0xBFFB59B59B59B59C)
%8 = tail call double @w_WR(double %6)
%9 = fmul double %6, %6
%10 = tail call double @Sdebye(double %9)
%11 = fsub double 1.000000e+00, %8
%12 = fmul double %10, %11
%13 = tail call double @llvm.fmuladd.f64(double %7, double -1.651000e+00, double 4.288000e-01)
%14 = tail call double @llvm.fmuladd.f64(double %13, double %7, double 1.220000e+00)
%15 = fmul double %7, %14
%16 = tail call double @llvm.fmuladd.f64(double %8, double %15, double %12)
ret double %16
}