#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_2J1x_x(double const);
double sas_sinx_x(double);
double sqrt(double);
double square(double const);
double Iqabc(double qa, double qb, double qc, double radius_minor,
             double r_ratio, double length, double sld, double solvent_sld) {
  const double qr = radius_minor * sqrt(square(r_ratio * qb) + square(qa));
  const double be = sas_2J1x_x(qr);
  const double si = sas_sinx_x(qc * 0.5 * length);
  const double fq = be * si;
  const double contrast = sld - solvent_sld;
  const double volume = form_volume(radius_minor, r_ratio, length);
  return 1.0e-4 * square(contrast * volume * fq);
}


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

x86 assembly (clang, -O2):
<Iqabc>:
sub    $0x48,%rsp
movsd  %xmm7,0x38(%rsp)
movsd  %xmm6,0x18(%rsp)
movsd  %xmm5,0x28(%rsp)
movsd  %xmm3,0x20(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
movsd  %xmm4,0x40(%rsp)
mulsd  %xmm4,%xmm1
movapd %xmm1,%xmm0
call   1030 <square@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <square@plt>
addsd  0x30(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     11b2 <Iqabc+0x62>
sqrtsd %xmm0,%xmm0
jmp    11b7 <Iqabc+0x67>
call   1060 <sqrt@plt>
mulsd  0x20(%rsp),%xmm0
call   1040 <sas_2J1x_x@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xe2a(%rip),%xmm0
mulsd  0x28(%rsp),%xmm0
call   1070 <sas_sinx_x@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
subsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x20(%rsp),%xmm0
movsd  0x40(%rsp),%xmm1
movsd  0x28(%rsp),%xmm2
call   1050 <form_volume@plt>
mulsd  0x18(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
call   1030 <square@plt>
mulsd  0xdd9(%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
%21 = alloca double
%22 = 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
%23 = load double, double* %12
%24 = load double, double* %13
%25 = load double, double* %10
%26 = fmul double %24, %25
%27 = call double @square(double %26)
%28 = load double, double* %9
%29 = call double @square(double %28)
%30 = fadd double %27, %29
%31 = call double @sqrt(double %30)
%32 = fmul double %23, %31
store double %32, double* %17
%33 = load double, double* %17
%34 = call double @sas_2J1x_x(double %33)
store double %34, double* %18
%35 = load double, double* %11
%36 = fmul double %35, 5.000000e-01
%37 = load double, double* %14
%38 = fmul double %36, %37
%39 = call double @sas_sinx_x(double %38)
store double %39, double* %19
%40 = load double, double* %18
%41 = load double, double* %19
%42 = fmul double %40, %41
store double %42, double* %20
%43 = load double, double* %15
%44 = load double, double* %16
%45 = fsub double %43, %44
store double %45, double* %21
%46 = load double, double* %12
%47 = load double, double* %13
%48 = load double, double* %14
%49 = call double @form_volume(double %46, double %47, double %48)
store double %49, double* %22
%50 = load double, double* %21
%51 = load double, double* %22
%52 = fmul double %50, %51
%53 = load double, double* %20
%54 = fmul double %52, %53
%55 = call double @square(double %54)
%56 = fmul double 1.000000e-04, %55
ret double %56
}

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 %1, %4
%10 = tail call double @square(double %9)
%11 = tail call double @square(double %0)
%12 = fadd double %10, %11
%13 = tail call double @sqrt(double %12)
%14 = fmul double %13, %3
%15 = tail call double @sas_2J1x_x(double %14)
%16 = fmul double %2, 5.000000e-01
%17 = fmul double %16, %5
%18 = tail call double @sas_sinx_x(double %17)
%19 = fmul double %15, %18
%20 = fsub double %6, %7
%21 = tail call double @form_volume(double %3, double %4, double %5)
%22 = fmul double %20, %21
%23 = fmul double %19, %22
%24 = tail call double @square(double %23)
%25 = fmul double %24, 1.000000e-04
ret double %25
}