#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 stacked_disks_1d(double, double, double, double, int, double, double,
                        double, double);
double Iq(double q, double thick_core, double thick_layer, double radius,
          double fp_n_stacking, double sigma_dnn, double core_sld,
          double layer_sld, double solvent_sld) {
  int n_stacking = (int)(fp_n_stacking + 0.5);
  return stacked_disks_1d(q, thick_core, thick_layer, radius, n_stacking,
                          sigma_dnn, core_sld, layer_sld, solvent_sld);
}


x86 assembly (clang, -O0):
<Iq>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%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  0xeb2(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x44(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
mov    -0x44(%rbp),%edi
movsd  -0x30(%rbp),%xmm4
movsd  -0x38(%rbp),%xmm5
movsd  -0x40(%rbp),%xmm6
movsd  0x10(%rbp),%xmm7
call   1030 <stacked_disks_1d@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Iq>:
movaps %xmm7,%xmm8
movsd  0x8(%rsp),%xmm7
addsd  0xede(%rip),%xmm4
cvttsd2si %xmm4,%edi
movaps %xmm5,%xmm4
movaps %xmm6,%xmm5
movaps %xmm8,%xmm6
jmp    1030 <stacked_disks_1d@plt>

LLVM IR (-O0):
define double @Iq(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 i32
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
%20 = load double, double* %14
%21 = fadd double %20, 5.000000e-01
%22 = fptosi double %21 to i32
store i32 %22, i32* %19
%23 = load double, double* %10
%24 = load double, double* %11
%25 = load double, double* %12
%26 = load double, double* %13
%27 = load i32, i32* %19
%28 = load double, double* %15
%29 = load double, double* %16
%30 = load double, double* %17
%31 = load double, double* %18
%32 = call double @stacked_disks_1d(double %23, double %24, double %25, double %26, i32 %27, double %28, double %29, double %30, double %31)
ret double %32
}

LLVM IR (-O2):
define double @Iq(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8) {
%10 = fadd double %4, 5.000000e-01
%11 = fptosi double %10 to i32
%12 = tail call double @stacked_disks_1d(double %0, double %1, double %2, double %3, i32 %11, double %5, double %6, double %7, double %8)
ret double %12
}