#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 */
int /*<<< orphan*/ u(int *, double, double, double const);
int sizeArr(double g_x0, double g_y0, double g_z0, double x1, double y1,
            double z1, const double dx, const double dy, const double dz) {
  int size = 2;
  u(&size, g_x0, x1, dx);
  u(&size, g_y0, y1, dy);
  u(&size, g_z0, z1, dz);
  return size;
}


x86 assembly (clang, -O0):
<sizeArr>:
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)
movl   $0x2,-0x44(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
lea    -0x44(%rbp),%rdi
call   1030 <u@plt>
movsd  -0x10(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
lea    -0x44(%rbp),%rdi
call   1030 <u@plt>
movsd  -0x18(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  0x10(%rbp),%xmm2
lea    -0x44(%rbp),%rdi
call   1030 <u@plt>
mov    -0x44(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sizeArr>:
push   %rbx
sub    $0x30,%rsp
movsd  %xmm7,0x18(%rsp)
movsd  %xmm5,0x28(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm2,0x20(%rsp)
movsd  %xmm1,0x8(%rsp)
movl   $0x2,0x4(%rsp)
lea    0x4(%rsp),%rbx
mov    %rbx,%rdi
movaps %xmm3,%xmm1
movaps %xmm6,%xmm2
call   1030 <u@plt>
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
call   1030 <u@plt>
mov    %rbx,%rdi
movsd  0x20(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0x40(%rsp),%xmm2
call   1030 <u@plt>
mov    0x4(%rsp),%eax
add    $0x30,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @sizeArr(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8) {
%10 = alloca i32
%11 = bitcast i32* %10 to i8*
store i32 2, i32* %10
%12 = call i32 @u(i32* %10, double %0, double %3, double %6)
%13 = call i32 @u(i32* %10, double %1, double %4, double %7)
%14 = call i32 @u(i32* %10, double %2, double %5, double %8)
%15 = load i32, i32* %10
ret i32 %15
}