#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 _fq(double, double, double, double);
double form_volume(double, double);
double square(double const);
double Iqac(double qab, double qc, double sld, double solvent_sld,
            double radius, double length) {
  const double form = _fq(qab, qc, radius, length);
  const double s = (sld - solvent_sld) * form_volume(radius, length);
  return 1.0e-4 * square(s * form);
}


x86 assembly (clang, -O0):
<Iqac>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%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  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
call   1030 <_fq@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
call   1050 <form_volume@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
call   1040 <square@plt>
movaps %xmm0,%xmm1
movsd  0xe43(%rip),%xmm0
mulsd  %xmm1,%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Iqac>:
sub    $0x28,%rsp
movsd  %xmm5,0x10(%rsp)
movsd  %xmm4,0x8(%rsp)
movsd  %xmm3,0x20(%rsp)
movsd  %xmm2,(%rsp)
movaps %xmm4,%xmm2
movaps %xmm5,%xmm3
call   1030 <_fq@plt>
movsd  %xmm0,0x18(%rsp)
movsd  (%rsp),%xmm0
subsd  0x20(%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
call   1050 <form_volume@plt>
mulsd  (%rsp),%xmm0
mulsd  0x18(%rsp),%xmm0
call   1040 <square@plt>
mulsd  0xe6b(%rip),%xmm0
add    $0x28,%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
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
%15 = load double, double* %7
%16 = load double, double* %8
%17 = load double, double* %11
%18 = load double, double* %12
%19 = call double @_fq(double %15, double %16, double %17, double %18)
store double %19, double* %13
%20 = load double, double* %9
%21 = load double, double* %10
%22 = fsub double %20, %21
%23 = load double, double* %11
%24 = load double, double* %12
%25 = call double @form_volume(double %23, double %24)
%26 = fmul double %22, %25
store double %26, double* %14
%27 = load double, double* %14
%28 = load double, double* %13
%29 = fmul double %27, %28
%30 = call double @square(double %29)
%31 = fmul double 1.000000e-04, %30
ret double %31
}

LLVM IR (-O2):
define double @Iqac(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = tail call double @_fq(double %0, double %1, double %4, double %5)
%8 = fsub double %2, %3
%9 = tail call double @form_volume(double %4, double %5)
%10 = fmul double %8, %9
%11 = fmul double %7, %10
%12 = tail call double @square(double %11)
%13 = fmul double %12, 1.000000e-04
ret double %13
}