#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_sinx_x(double);
double Iqabc(double qa, double qb, double qc, double sld, double solvent_sld,
             double length_a, double length_b, double length_c) {
  const double siA = sas_sinx_x(0.5 * length_a * qa);
  const double siB = sas_sinx_x(0.5 * length_b * qb);
  const double siC = sas_sinx_x(0.5 * length_c * qc);
  const double V = form_volume(length_a, length_b, length_c);
  const double drho = (sld - solvent_sld);
  const double form = V * drho * siA * siB * siC;
  return 1.0e-4 * form * form;
}


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  0xeb0(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1040 <sas_sinx_x@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  0xe94(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
call   1040 <sas_sinx_x@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  0xe78(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1040 <sas_sinx_x@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
call   1030 <form_volume@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x20(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xe0e(%rip),%xmm0
mulsd  -0x70(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Iqabc>:
sub    $0x48,%rsp
movsd  %xmm7,0x20(%rsp)
movsd  %xmm6,0x18(%rsp)
movsd  %xmm5,0x28(%rsp)
movsd  %xmm4,0x40(%rsp)
movsd  %xmm3,0x38(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movapd %xmm5,%xmm1
mulsd  0xea6(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <sas_sinx_x@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0x18(%rsp),%xmm0
mulsd  0xe89(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1040 <sas_sinx_x@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0xe70(%rip),%xmm0
mulsd  0x20(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
call   1040 <sas_sinx_x@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
call   1030 <form_volume@plt>
movsd  0x38(%rsp),%xmm1
subsd  0x40(%rsp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  0x30(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
movsd  0xe20(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm1,%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* %14
%24 = fmul double 5.000000e-01, %23
%25 = load double, double* %9
%26 = fmul double %24, %25
%27 = call double @sas_sinx_x(double %26)
store double %27, double* %17
%28 = load double, double* %15
%29 = fmul double 5.000000e-01, %28
%30 = load double, double* %10
%31 = fmul double %29, %30
%32 = call double @sas_sinx_x(double %31)
store double %32, double* %18
%33 = load double, double* %16
%34 = fmul double 5.000000e-01, %33
%35 = load double, double* %11
%36 = fmul double %34, %35
%37 = call double @sas_sinx_x(double %36)
store double %37, double* %19
%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* %20
%42 = load double, double* %12
%43 = load double, double* %13
%44 = fsub double %42, %43
store double %44, double* %21
%45 = load double, double* %20
%46 = load double, double* %21
%47 = fmul double %45, %46
%48 = load double, double* %17
%49 = fmul double %47, %48
%50 = load double, double* %18
%51 = fmul double %49, %50
%52 = load double, double* %19
%53 = fmul double %51, %52
store double %53, double* %22
%54 = load double, double* %22
%55 = fmul double 1.000000e-04, %54
%56 = load double, double* %22
%57 = fmul double %55, %56
ret double %57
}

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