#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 _cs_ellipsoid_kernel(double, double, double, double const, double const,
                            double const, double const, double const);
double Iqac(double qab, double qc, double radius_equat_core, double x_core,
            double thick_shell, double x_polar_shell, double core_sld,
            double shell_sld, double solvent_sld) {
  const double sld_core_shell = core_sld - shell_sld;
  const double sld_shell_solvent = shell_sld - solvent_sld;
  const double polar_core = radius_equat_core * x_core;
  const double equat_shell = radius_equat_core + thick_shell;
  const double polar_shell =
      radius_equat_core * x_core + thick_shell * x_polar_shell;
  double fq =
      _cs_ellipsoid_kernel(qab, qc, radius_equat_core, polar_core, equat_shell,
                           polar_shell, sld_core_shell, sld_shell_solvent);
  return 1.0e-4 * fq * fq;
}


x86 assembly (clang, -O0):
<Iqac>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movsd  0x10(%rbp),%xmm8
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  -0x38(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
subsd  0x10(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x18(%rbp),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm1
mulsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm3
movsd  -0x60(%rbp),%xmm4
movsd  -0x68(%rbp),%xmm5
movsd  -0x48(%rbp),%xmm6
movsd  -0x50(%rbp),%xmm7
call   1030 <_cs_ellipsoid_kernel@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  0xe23(%rip),%xmm0
mulsd  -0x70(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Iqac>:
push   %rax
subsd  %xmm7,%xmm6
subsd  0x10(%rsp),%xmm7
mulsd  %xmm2,%xmm3
movapd %xmm2,%xmm8
addsd  %xmm4,%xmm8
mulsd  %xmm4,%xmm5
addsd  %xmm3,%xmm5
movapd %xmm8,%xmm4
call   1030 <_cs_ellipsoid_kernel@plt>
movsd  0xebd(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @Iqac(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8) {
%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
%23 = alloca double
%24 = alloca double
store double %0, double* %10
store double %1, double* %11
store double %2, double* %12
store double %3, double* %13
store double %4, double* %14
store double %5, double* %15
store double %6, double* %16
store double %7, double* %17
store double %8, double* %18
%25 = load double, double* %16
%26 = load double, double* %17
%27 = fsub double %25, %26
store double %27, double* %19
%28 = load double, double* %17
%29 = load double, double* %18
%30 = fsub double %28, %29
store double %30, double* %20
%31 = load double, double* %12
%32 = load double, double* %13
%33 = fmul double %31, %32
store double %33, double* %21
%34 = load double, double* %12
%35 = load double, double* %14
%36 = fadd double %34, %35
store double %36, double* %22
%37 = load double, double* %12
%38 = load double, double* %13
%39 = load double, double* %14
%40 = load double, double* %15
%41 = fmul double %39, %40
%42 = call double @llvm.fmuladd.f64(double %37, double %38, double %41)
store double %42, double* %23
%43 = load double, double* %10
%44 = load double, double* %11
%45 = load double, double* %12
%46 = load double, double* %21
%47 = load double, double* %22
%48 = load double, double* %23
%49 = load double, double* %19
%50 = load double, double* %20
%51 = call double @_cs_ellipsoid_kernel(double %43, double %44, double %45, double %46, double %47, double %48, double %49, double %50)
store double %51, double* %24
%52 = load double, double* %24
%53 = fmul double 1.000000e-04, %52
%54 = load double, double* %24
%55 = fmul double %53, %54
ret double %55
}

LLVM IR (-O2):
define double @Iqac(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8) {
%10 = fsub double %6, %7
%11 = fsub double %7, %8
%12 = fmul double %2, %3
%13 = fadd double %2, %4
%14 = fmul double %4, %5
%15 = tail call double @llvm.fmuladd.f64(double %2, double %3, double %14)
%16 = tail call double @_cs_ellipsoid_kernel(double %0, double %1, double %2, double %12, double %13, double %15, double %10, double %11)
%17 = fmul double %16, 1.000000e-04
%18 = fmul double %16, %17
ret double %18
}