#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 const sas_sinx_x(double);
double Iqabc(double qa, double qb, double qc, double core_sld, double arim_sld,
             double brim_sld, double crim_sld, double solvent_sld,
             double length_a, double length_b, double length_c,
             double thick_rim_a, double thick_rim_b, double thick_rim_c) {
  const double dr0 = core_sld - solvent_sld;
  const double drA = arim_sld - solvent_sld;
  const double drB = brim_sld - solvent_sld;
  const double drC = crim_sld - solvent_sld;
  const double tA = length_a + 2.0 * thick_rim_a;
  const double tB = length_b + 2.0 * thick_rim_b;
  const double tC = length_c + 2.0 * thick_rim_c;
  const double siA = length_a * sas_sinx_x(0.5 * length_a * qa);
  const double siB = length_b * sas_sinx_x(0.5 * length_b * qb);
  const double siC = length_c * sas_sinx_x(0.5 * length_c * qc);
  const double siAt = tA * sas_sinx_x(0.5 * tA * qa);
  const double siBt = tB * sas_sinx_x(0.5 * tB * qb);
  const double siCt = tC * sas_sinx_x(0.5 * tC * qc);
  const double f = dr0 * siA * siB * siC + drA * (siAt - siA) * siB * siC +
                   drB * siA * (siBt - siB) * siC +
                   drC * siA * siB * (siCt - siC);
  return 1.0e-4 * f * f;
}


x86 assembly (clang, -O0):
<Iqabc>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movsd  0x38(%rbp),%xmm8
movsd  0x30(%rbp),%xmm8
movsd  0x28(%rbp),%xmm8
movsd  0x20(%rbp),%xmm8
movsd  0x18(%rbp),%xmm8
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  -0x20(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x30(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x38(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0x10(%rbp),%xmm1
movsd  0x28(%rbp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0x18(%rbp),%xmm1
movsd  0x30(%rbp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0x20(%rbp),%xmm1
movsd  0x38(%rbp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0x10(%rbp),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  0xe0b(%rip),%xmm0
mulsd  0x10(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1030 <sas_sinx_x@plt>
movaps %xmm0,%xmm1
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0x18(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  0xdd3(%rip),%xmm0
mulsd  0x18(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
call   1030 <sas_sinx_x@plt>
movaps %xmm0,%xmm1
movsd  -0xd8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0x20(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0xd98(%rip),%xmm0
mulsd  0x20(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1030 <sas_sinx_x@plt>
movaps %xmm0,%xmm1
movsd  -0xd0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0xd5d(%rip),%xmm0
mulsd  -0x68(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1030 <sas_sinx_x@plt>
movaps %xmm0,%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  0xd22(%rip),%xmm0
mulsd  -0x70(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
call   1030 <sas_sinx_x@plt>
movaps %xmm0,%xmm1
movsd  -0xc0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0xce7(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1030 <sas_sinx_x@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
mulsd  -0x80(%rbp),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  -0x90(%rbp),%xmm2
ff
movsd  -0x50(%rbp),%xmm1
movsd  -0x98(%rbp),%xmm3
ff
subsd  -0x80(%rbp),%xmm3
mulsd  %xmm3,%xmm1
mulsd  -0x88(%rbp),%xmm1
ff
mulsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x58(%rbp),%xmm1
mulsd  -0x80(%rbp),%xmm1
movsd  -0xa0(%rbp),%xmm2
ff
subsd  -0x88(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
movsd  -0x90(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  -0x80(%rbp),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  -0xa8(%rbp),%xmm2
ff
subsd  -0x90(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0xc09(%rip),%xmm0
mulsd  -0xb0(%rbp),%xmm0
ff
mulsd  -0xb0(%rbp),%xmm0
ff
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Iqabc>:
sub    $0x68,%rsp
movsd  %xmm2,0x20(%rsp)
movsd  %xmm1,0x8(%rsp)
movapd %xmm0,%xmm8
movsd  %xmm0,0x28(%rsp)
movsd  0x98(%rsp),%xmm0
movsd  0x90(%rsp),%xmm1
movsd  0x70(%rsp),%xmm9
movsd  0x88(%rsp),%xmm2
subsd  %xmm7,%xmm3
movsd  %xmm3,0x48(%rsp)
subsd  %xmm7,%xmm4
movsd  %xmm4,0x50(%rsp)
subsd  %xmm7,%xmm5
movsd  %xmm5,0x58(%rsp)
subsd  %xmm7,%xmm6
movsd  %xmm6,0x60(%rsp)
addsd  %xmm2,%xmm2
addsd  %xmm9,%xmm2
movsd  %xmm2,(%rsp)
addsd  %xmm1,%xmm1
addsd  0x78(%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
addsd  %xmm0,%xmm0
addsd  0x80(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movapd %xmm9,%xmm0
mulsd  0xe4d(%rip),%xmm0
mulsd  %xmm8,%xmm0
call   1030 <sas_sinx_x@plt>
mulsd  0x70(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
movsd  0x78(%rsp),%xmm0
mulsd  0xe29(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1030 <sas_sinx_x@plt>
mulsd  0x78(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
movsd  0x80(%rsp),%xmm0
mulsd  0xe01(%rip),%xmm0
mulsd  0x20(%rsp),%xmm0
call   1030 <sas_sinx_x@plt>
mulsd  0x80(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  (%rsp),%xmm0
mulsd  0xdda(%rip),%xmm0
mulsd  0x28(%rsp),%xmm0
call   1030 <sas_sinx_x@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xdb7(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1030 <sas_sinx_x@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xd98(%rip),%xmm0
mulsd  0x18(%rsp),%xmm0
mulsd  0x20(%rsp),%xmm0
call   1030 <sas_sinx_x@plt>
mulsd  0x18(%rsp),%xmm0
movsd  0x48(%rsp),%xmm1
movsd  0x40(%rsp),%xmm3
mulsd  %xmm3,%xmm1
movsd  0x38(%rsp),%xmm2
mulsd  %xmm2,%xmm1
movsd  (%rsp),%xmm5
subsd  %xmm3,%xmm5
mulsd  0x50(%rsp),%xmm5
mulsd  %xmm2,%xmm5
movapd %xmm2,%xmm4
movsd  0x30(%rsp),%xmm2
mulsd  %xmm2,%xmm5
movapd %xmm5,%xmm6
mulsd  %xmm2,%xmm1
movapd %xmm2,%xmm5
addsd  %xmm6,%xmm1
movsd  0x58(%rsp),%xmm2
mulsd  %xmm3,%xmm2
movsd  0x8(%rsp),%xmm6
subsd  %xmm4,%xmm6
mulsd  %xmm2,%xmm6
mulsd  %xmm5,%xmm6
addsd  %xmm1,%xmm6
movapd %xmm3,%xmm1
mulsd  0x60(%rsp),%xmm1
mulsd  %xmm4,%xmm1
subsd  %xmm5,%xmm0
mulsd  %xmm1,%xmm0
addsd  %xmm6,%xmm0
movsd  0xcfc(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm1,%xmm0
add    $0x68,%rsp
ret

LLVM IR (-O0):
define double @Iqabc(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11, double %12, double %13) {
%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
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca double
%39 = alloca double
%40 = alloca double
%41 = alloca double
%42 = alloca double
store double %0, double* %15
store double %1, double* %16
store double %2, double* %17
store double %3, double* %18
store double %4, double* %19
store double %5, double* %20
store double %6, double* %21
store double %7, double* %22
store double %8, double* %23
store double %9, double* %24
store double %10, double* %25
store double %11, double* %26
store double %12, double* %27
store double %13, double* %28
%43 = load double, double* %18
%44 = load double, double* %22
%45 = fsub double %43, %44
store double %45, double* %29
%46 = load double, double* %19
%47 = load double, double* %22
%48 = fsub double %46, %47
store double %48, double* %30
%49 = load double, double* %20
%50 = load double, double* %22
%51 = fsub double %49, %50
store double %51, double* %31
%52 = load double, double* %21
%53 = load double, double* %22
%54 = fsub double %52, %53
store double %54, double* %32
%55 = load double, double* %23
%56 = load double, double* %26
%57 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %56, double %55)
store double %57, double* %33
%58 = load double, double* %24
%59 = load double, double* %27
%60 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %59, double %58)
store double %60, double* %34
%61 = load double, double* %25
%62 = load double, double* %28
%63 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %62, double %61)
store double %63, double* %35
%64 = load double, double* %23
%65 = load double, double* %23
%66 = fmul double 5.000000e-01, %65
%67 = load double, double* %15
%68 = fmul double %66, %67
%69 = call double @sas_sinx_x(double %68)
%70 = fmul double %64, %69
store double %70, double* %36
%71 = load double, double* %24
%72 = load double, double* %24
%73 = fmul double 5.000000e-01, %72
%74 = load double, double* %16
%75 = fmul double %73, %74
%76 = call double @sas_sinx_x(double %75)
%77 = fmul double %71, %76
store double %77, double* %37
%78 = load double, double* %25
%79 = load double, double* %25
%80 = fmul double 5.000000e-01, %79
%81 = load double, double* %17
%82 = fmul double %80, %81
%83 = call double @sas_sinx_x(double %82)
%84 = fmul double %78, %83
store double %84, double* %38
%85 = load double, double* %33
%86 = load double, double* %33
%87 = fmul double 5.000000e-01, %86
%88 = load double, double* %15
%89 = fmul double %87, %88
%90 = call double @sas_sinx_x(double %89)
%91 = fmul double %85, %90
store double %91, double* %39
%92 = load double, double* %34
%93 = load double, double* %34
%94 = fmul double 5.000000e-01, %93
%95 = load double, double* %16
%96 = fmul double %94, %95
%97 = call double @sas_sinx_x(double %96)
%98 = fmul double %92, %97
store double %98, double* %40
%99 = load double, double* %35
%100 = load double, double* %35
%101 = fmul double 5.000000e-01, %100
%102 = load double, double* %17
%103 = fmul double %101, %102
%104 = call double @sas_sinx_x(double %103)
%105 = fmul double %99, %104
store double %105, double* %41
%106 = load double, double* %29
%107 = load double, double* %36
%108 = fmul double %106, %107
%109 = load double, double* %37
%110 = fmul double %108, %109
%111 = load double, double* %38
%112 = load double, double* %30
%113 = load double, double* %39
%114 = load double, double* %36
%115 = fsub double %113, %114
%116 = fmul double %112, %115
%117 = load double, double* %37
%118 = fmul double %116, %117
%119 = load double, double* %38
%120 = fmul double %118, %119
%121 = call double @llvm.fmuladd.f64(double %110, double %111, double %120)
%122 = load double, double* %31
%123 = load double, double* %36
%124 = fmul double %122, %123
%125 = load double, double* %40
%126 = load double, double* %37
%127 = fsub double %125, %126
%128 = fmul double %124, %127
%129 = load double, double* %38
%130 = call double @llvm.fmuladd.f64(double %128, double %129, double %121)
%131 = load double, double* %32
%132 = load double, double* %36
%133 = fmul double %131, %132
%134 = load double, double* %37
%135 = fmul double %133, %134
%136 = load double, double* %41
%137 = load double, double* %38
%138 = fsub double %136, %137
%139 = call double @llvm.fmuladd.f64(double %135, double %138, double %130)
store double %139, double* %42
%140 = load double, double* %42
%141 = fmul double 1.000000e-04, %140
%142 = load double, double* %42
%143 = fmul double %141, %142
ret double %143
}

LLVM IR (-O2):
define double @Iqabc(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11, double %12, double %13) {
%15 = fsub double %3, %7
%16 = fsub double %4, %7
%17 = fsub double %5, %7
%18 = fsub double %6, %7
%19 = tail call double @llvm.fmuladd.f64(double %11, double 2.000000e+00, double %8)
%20 = tail call double @llvm.fmuladd.f64(double %12, double 2.000000e+00, double %9)
%21 = tail call double @llvm.fmuladd.f64(double %13, double 2.000000e+00, double %10)
%22 = fmul double %8, 5.000000e-01
%23 = fmul double %22, %0
%24 = tail call double @sas_sinx_x(double %23)
%25 = fmul double %24, %8
%26 = fmul double %9, 5.000000e-01
%27 = fmul double %26, %1
%28 = tail call double @sas_sinx_x(double %27)
%29 = fmul double %28, %9
%30 = fmul double %10, 5.000000e-01
%31 = fmul double %30, %2
%32 = tail call double @sas_sinx_x(double %31)
%33 = fmul double %32, %10
%34 = fmul double %19, 5.000000e-01
%35 = fmul double %34, %0
%36 = tail call double @sas_sinx_x(double %35)
%37 = fmul double %19, %36
%38 = fmul double %20, 5.000000e-01
%39 = fmul double %38, %1
%40 = tail call double @sas_sinx_x(double %39)
%41 = fmul double %20, %40
%42 = fmul double %21, 5.000000e-01
%43 = fmul double %42, %2
%44 = tail call double @sas_sinx_x(double %43)
%45 = fmul double %21, %44
%46 = fmul double %15, %25
%47 = fmul double %46, %29
%48 = fsub double %37, %25
%49 = fmul double %16, %48
%50 = fmul double %29, %49
%51 = fmul double %33, %50
%52 = tail call double @llvm.fmuladd.f64(double %47, double %33, double %51)
%53 = fmul double %17, %25
%54 = fsub double %41, %29
%55 = fmul double %53, %54
%56 = tail call double @llvm.fmuladd.f64(double %55, double %33, double %52)
%57 = fmul double %18, %25
%58 = fmul double %57, %29
%59 = fsub double %45, %33
%60 = tail call double @llvm.fmuladd.f64(double %58, double %59, double %56)
%61 = fmul double %60, 1.000000e-04
%62 = fmul double %60, %61
ret double %62
}