#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 scale_dLx(double, double, double, double, double, double);
double scale_dLy(double, double, double, double, double, double);
double scale_dLz(double, double, double, double, double, double);
double scale_vol(double x, double y, double z, double dx, double dy,
                 double dz) {
  return scale_dLx(x, y, z, dx, dy, dz) * scale_dLy(x, y, z, dx, dy, dz) *
         scale_dLz(x, y, z, dx, dy, dz);
}


x86 assembly (clang, -O0):
<scale_vol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm5
call   1040 <scale_dLx@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm5
call   1030 <scale_dLy@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm5
call   1050 <scale_dLz@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<scale_vol>:
sub    $0x38,%rsp
movsd  %xmm5,0x30(%rsp)
movsd  %xmm4,0x28(%rsp)
movsd  %xmm3,0x20(%rsp)
movsd  %xmm2,0x18(%rsp)
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
call   1040 <scale_dLx@plt>
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x20(%rsp),%xmm3
movsd  0x28(%rsp),%xmm4
movsd  0x30(%rsp),%xmm5
call   1030 <scale_dLy@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x20(%rsp),%xmm3
movsd  0x28(%rsp),%xmm4
movsd  0x30(%rsp),%xmm5
call   1050 <scale_dLz@plt>
mulsd  (%rsp),%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @scale_vol(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double %3, double* %10
store double %4, double* %11
store double %5, double* %12
%13 = load double, double* %7
%14 = load double, double* %8
%15 = load double, double* %9
%16 = load double, double* %10
%17 = load double, double* %11
%18 = load double, double* %12
%19 = call double @scale_dLx(double %13, double %14, double %15, double %16, double %17, double %18)
%20 = load double, double* %7
%21 = load double, double* %8
%22 = load double, double* %9
%23 = load double, double* %10
%24 = load double, double* %11
%25 = load double, double* %12
%26 = call double @scale_dLy(double %20, double %21, double %22, double %23, double %24, double %25)
%27 = fmul double %19, %26
%28 = load double, double* %7
%29 = load double, double* %8
%30 = load double, double* %9
%31 = load double, double* %10
%32 = load double, double* %11
%33 = load double, double* %12
%34 = call double @scale_dLz(double %28, double %29, double %30, double %31, double %32, double %33)
%35 = fmul double %27, %34
ret double %35
}

LLVM IR (-O2):
define double @scale_vol(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = tail call double @scale_dLx(double %0, double %1, double %2, double %3, double %4, double %5)
%8 = tail call double @scale_dLy(double %0, double %1, double %2, double %3, double %4, double %5)
%9 = fmul double %7, %8
%10 = tail call double @scale_dLz(double %0, double %1, double %2, double %3, double %4, double %5)
%11 = fmul double %9, %10
ret double %11
}