#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 pow(double, double);
double range3d(double x1, double y1, double z1, double x2, double y2,
               double z2) {
  ;
  ;
  return pow((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1) +
                 (z2 - z1) * (z2 - z1),
             0.5);
}


x86 assembly (clang, -O0):
<range3d>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%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  -0x20(%rbp),%xmm1
subsd  -0x8(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
subsd  -0x8(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm3
subsd  -0x10(%rbp),%xmm3
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm2
subsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe72(%rip),%xmm1
call   1030 <pow@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<range3d>:
subsd  %xmm0,%xmm3
subsd  %xmm1,%xmm4
mulsd  %xmm4,%xmm4
mulsd  %xmm3,%xmm3
addsd  %xmm4,%xmm3
subsd  %xmm2,%xmm5
mulsd  %xmm5,%xmm5
addsd  %xmm3,%xmm5
movsd  0xec8(%rip),%xmm1
movapd %xmm5,%xmm0
jmp    1030 <pow@plt>

LLVM IR (-O0):
define double @range3d(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* %10
%14 = load double, double* %7
%15 = fsub double %13, %14
%16 = load double, double* %10
%17 = load double, double* %7
%18 = fsub double %16, %17
%19 = load double, double* %11
%20 = load double, double* %8
%21 = fsub double %19, %20
%22 = load double, double* %11
%23 = load double, double* %8
%24 = fsub double %22, %23
%25 = fmul double %21, %24
%26 = call double @llvm.fmuladd.f64(double %15, double %18, double %25)
%27 = load double, double* %12
%28 = load double, double* %9
%29 = fsub double %27, %28
%30 = load double, double* %12
%31 = load double, double* %9
%32 = fsub double %30, %31
%33 = call double @llvm.fmuladd.f64(double %29, double %32, double %26)
%34 = call double @pow(double %33, double 5.000000e-01)
ret double %34
}

LLVM IR (-O2):
define double @range3d(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = fsub double %3, %0
%8 = fsub double %4, %1
%9 = fmul double %8, %8
%10 = tail call double @llvm.fmuladd.f64(double %7, double %7, double %9)
%11 = fsub double %5, %2
%12 = tail call double @llvm.fmuladd.f64(double %11, double %11, double %10)
%13 = tail call double @pow(double %12, double 5.000000e-01)
ret double %13
}