#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 Rgsquare(double, double);
double const expm1(double);
double Rgsquareshort(double L, double b) {
  const double r = b / L;
  return Rgsquare(L, b) *
         (1.0 + r * (-1.5 + r * (1.5 + r * 0.75 * expm1(-2.0 / r))));
}


x86 assembly (clang, -O0):
<Rgsquareshort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1030 <Rgsquare@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xeaf(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe95(%rip),%xmm0
divsd  -0x18(%rbp),%xmm0
call   1040 <expm1@plt>
movsd  -0x38(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm1
movaps %xmm0,%xmm4
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm4,%xmm3
movsd  0xe60(%rip),%xmm4
addsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm2
movsd  0xe48(%rip),%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe30(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Rgsquareshort>:
sub    $0x18,%rsp
movapd %xmm1,%xmm2
divsd  %xmm0,%xmm2
movsd  %xmm2,(%rsp)
call   1030 <Rgsquare@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xebc(%rip),%xmm0
movsd  (%rsp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xead(%rip),%xmm0
divsd  %xmm1,%xmm0
call   1040 <expm1@plt>
mulsd  0x8(%rsp),%xmm0
addsd  0xe9e(%rip),%xmm0
movsd  (%rsp),%xmm1
mulsd  %xmm1,%xmm0
addsd  0xe95(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xe91(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @Rgsquareshort(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %3
store double %1, double* %4
%6 = load double, double* %4
%7 = load double, double* %3
%8 = fdiv double %6, %7
store double %8, double* %5
%9 = load double, double* %3
%10 = load double, double* %4
%11 = call double @Rgsquare(double %9, double %10)
%12 = load double, double* %5
%13 = load double, double* %5
%14 = load double, double* %5
%15 = fmul double %14, 7.500000e-01
%16 = load double, double* %5
%17 = fdiv double -2.000000e+00, %16
%18 = call double @expm1(double %17)
%19 = call double @llvm.fmuladd.f64(double %15, double %18, double 1.500000e+00)
%20 = call double @llvm.fmuladd.f64(double %13, double %19, double -1.500000e+00)
%21 = call double @llvm.fmuladd.f64(double %12, double %20, double 1.000000e+00)
%22 = fmul double %11, %21
ret double %22
}

LLVM IR (-O2):
define double @Rgsquareshort(double %0, double %1) {
%3 = fdiv double %1, %0
%4 = tail call double @Rgsquare(double %0, double %1)
%5 = fmul double %3, 7.500000e-01
%6 = fdiv double -2.000000e+00, %3
%7 = tail call double @expm1(double %6)
%8 = tail call double @llvm.fmuladd.f64(double %5, double %7, double 1.500000e+00)
%9 = tail call double @llvm.fmuladd.f64(double %3, double %8, double -1.500000e+00)
%10 = tail call double @llvm.fmuladd.f64(double %3, double %9, double 1.000000e+00)
%11 = fmul double %4, %10
ret double %11
}