#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);
double sas_3j1x_x(double const);
double sqrt(double);
double square(double const);
double Iqabc(double qa, double qb, double qc, double sld, double sld_solvent,
             double radius_equat_minor, double radius_equat_major,
             double radius_polar) {
  const double qr =
      sqrt(square(radius_equat_minor * qa) + square(radius_equat_major * qb) +
           square(radius_polar * qc));
  const double fq = sas_3j1x_x(qr);
  const double vol =
      form_volume(radius_equat_minor, radius_equat_major, radius_polar);
  const double drho = (sld - sld_solvent);
  return 1.0e-4 * square(vol * drho * fq);
}


x86 assembly (clang, -O0):
<Iqabc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%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  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1030 <square@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
call   1030 <square@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1030 <square@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
addsd  %xmm1,%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1050 <sas_3j1x_x@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
call   1040 <form_volume@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x20(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
call   1030 <square@plt>
movaps %xmm0,%xmm1
movsd  0xde1(%rip),%xmm0
mulsd  %xmm1,%xmm0
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Iqabc>:
sub    $0x48,%rsp
movsd  %xmm7,0x20(%rsp)
movsd  %xmm6,0x18(%rsp)
movsd  %xmm4,0x38(%rsp)
movsd  %xmm3,0x40(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm5,0x30(%rsp)
mulsd  %xmm5,%xmm0
call   1030 <square@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0x18(%rsp),%xmm0
call   1030 <square@plt>
addsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0x20(%rsp),%xmm0
call   1030 <square@plt>
addsd  0x8(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     11c1 <Iqabc+0x81>
sqrtsd %xmm0,%xmm0
jmp    11c6 <Iqabc+0x86>
call   1060 <sqrt@plt>
call   1050 <sas_3j1x_x@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x30(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
call   1040 <form_volume@plt>
movsd  0x40(%rsp),%xmm1
subsd  0x38(%rsp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  0x10(%rsp),%xmm0
call   1030 <square@plt>
mulsd  0xdf5(%rip),%xmm0
add    $0x48,%rsp
ret

LLVM IR (-O0):
define double @Iqabc(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
store double %0, double* %9
store double %1, double* %10
store double %2, double* %11
store double %3, double* %12
store double %4, double* %13
store double %5, double* %14
store double %6, double* %15
store double %7, double* %16
%21 = load double, double* %14
%22 = load double, double* %9
%23 = fmul double %21, %22
%24 = call double @square(double %23)
%25 = load double, double* %15
%26 = load double, double* %10
%27 = fmul double %25, %26
%28 = call double @square(double %27)
%29 = fadd double %24, %28
%30 = load double, double* %16
%31 = load double, double* %11
%32 = fmul double %30, %31
%33 = call double @square(double %32)
%34 = fadd double %29, %33
%35 = call double @sqrt(double %34)
store double %35, double* %17
%36 = load double, double* %17
%37 = call double @sas_3j1x_x(double %36)
store double %37, double* %18
%38 = load double, double* %14
%39 = load double, double* %15
%40 = load double, double* %16
%41 = call double @form_volume(double %38, double %39, double %40)
store double %41, double* %19
%42 = load double, double* %12
%43 = load double, double* %13
%44 = fsub double %42, %43
store double %44, double* %20
%45 = load double, double* %19
%46 = load double, double* %20
%47 = fmul double %45, %46
%48 = load double, double* %18
%49 = fmul double %47, %48
%50 = call double @square(double %49)
%51 = fmul double 1.000000e-04, %50
ret double %51
}

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