#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 form_volume(double, double);
double sas_3j1x_x(double const);
double sqrt(double);
double square(double const);
double Iqac(double qab, double qc, double sld, double sld_solvent,
            double radius_polar, double radius_equatorial) {
  const double qr =
      sqrt(square(radius_equatorial * qab) + square(radius_polar * qc));
  const double f = sas_3j1x_x(qr);
  const double s =
      (sld - sld_solvent) * form_volume(radius_polar, radius_equatorial);
  return 1.0e-4 * square(f * s);
}


x86 assembly (clang, -O0):
<Iqac>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1030 <square@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
call   1030 <square@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
addsd  %xmm1,%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1050 <sas_3j1x_x@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
call   1040 <form_volume@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
call   1030 <square@plt>
movaps %xmm0,%xmm1
movsd  0xe09(%rip),%xmm0
mulsd  %xmm1,%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Iqac>:
sub    $0x38,%rsp
movsd  %xmm4,0x18(%rsp)
movsd  %xmm3,0x28(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm5,0x30(%rsp)
mulsd  %xmm5,%xmm0
call   1030 <square@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0x18(%rsp),%xmm0
call   1030 <square@plt>
addsd  0x20(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1198 <Iqac+0x58>
sqrtsd %xmm0,%xmm0
jmp    119d <Iqac+0x5d>
call   1060 <sqrt@plt>
call   1050 <sas_3j1x_x@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
subsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1040 <form_volume@plt>
mulsd  0x10(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1030 <square@plt>
mulsd  0xe1c(%rip),%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @Iqac(double %0, double %1, double %2, double %3, double %4, double %5) {
%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* %7
store double %1, double* %8
store double %2, double* %9
store double %3, double* %10
store double %4, double* %11
store double %5, double* %12
%16 = load double, double* %12
%17 = load double, double* %7
%18 = fmul double %16, %17
%19 = call double @square(double %18)
%20 = load double, double* %11
%21 = load double, double* %8
%22 = fmul double %20, %21
%23 = call double @square(double %22)
%24 = fadd double %19, %23
%25 = call double @sqrt(double %24)
store double %25, double* %13
%26 = load double, double* %13
%27 = call double @sas_3j1x_x(double %26)
store double %27, double* %14
%28 = load double, double* %9
%29 = load double, double* %10
%30 = fsub double %28, %29
%31 = load double, double* %11
%32 = load double, double* %12
%33 = call double @form_volume(double %31, double %32)
%34 = fmul double %30, %33
store double %34, double* %15
%35 = load double, double* %14
%36 = load double, double* %15
%37 = fmul double %35, %36
%38 = call double @square(double %37)
%39 = fmul double 1.000000e-04, %38
ret double %39
}

LLVM IR (-O2):
define double @Iqac(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = fmul double %0, %5
%8 = tail call double @square(double %7)
%9 = fmul double %1, %4
%10 = tail call double @square(double %9)
%11 = fadd double %8, %10
%12 = tail call double @sqrt(double %11)
%13 = tail call double @sas_3j1x_x(double %12)
%14 = fsub double %2, %3
%15 = tail call double @form_volume(double %4, double %5)
%16 = fmul double %14, %15
%17 = fmul double %13, %16
%18 = tail call double @square(double %17)
%19 = fmul double %18, 1.000000e-04
ret double %19
}