#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 fabs(double);
int samePoint(double x1, double y1, double z1, double x2, double y2,
              double z2) {
  if (fabs(x1 - x2) > (1.e-10) || fabs(y1 - y2) > (1.e-10) ||
      fabs(z1 - z2) > (1.e-10))
    return 0;
  else
    return 1;
}


x86 assembly (clang, -O0):
<samePoint>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  %xmm4,-0x30(%rbp)
movsd  %xmm5,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
movaps 0xedd(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xec1(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     1197 <samePoint+0x97>
movsd  -0x18(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movaps 0xeb6(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xe9a(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     1197 <samePoint+0x97>
movsd  -0x20(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movaps 0xe8f(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xe73(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11a3 <samePoint+0xa3>
movl   $0x0,-0x4(%rbp)
jmp    11aa <samePoint+0xaa>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<samePoint>:
subsd  %xmm3,%xmm0
andpd  0xef4(%rip),%xmm0
xor    %eax,%eax
ucomisd 0xefa(%rip),%xmm0
ja     1149 <samePoint+0x49>
subsd  %xmm4,%xmm1
andpd  0xedc(%rip),%xmm1
ucomisd 0xee4(%rip),%xmm1
ja     1149 <samePoint+0x49>
subsd  %xmm5,%xmm2
andpd  0xec6(%rip),%xmm2
ucomisd 0xece(%rip),%xmm2
ja     1149 <samePoint+0x49>
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @samePoint(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
store double %0, double* %8
store double %1, double* %9
store double %2, double* %10
store double %3, double* %11
store double %4, double* %12
store double %5, double* %13
%14 = load double, double* %8
%15 = load double, double* %11
%16 = fsub double %14, %15
%17 = call double @llvm.fabs.f64(double %16)
%18 = fcmp ogt double %17, 1.000000e-10
br i1 %18, label %31, label %19
19: ; preds = %6
%20 = load double, double* %9
%21 = load double, double* %12
%22 = fsub double %20, %21
%23 = call double @llvm.fabs.f64(double %22)
%24 = fcmp ogt double %23, 1.000000e-10
br i1 %24, label %31, label %25
25: ; preds = %19
%26 = load double, double* %10
%27 = load double, double* %13
%28 = fsub double %26, %27
%29 = call double @llvm.fabs.f64(double %28)
%30 = fcmp ogt double %29, 1.000000e-10
br i1 %30, label %31, label %32
31: ; preds = %25, %19, %6
store i32 0, i32* %7
br label %33
32: ; preds = %25
store i32 1, i32* %7
br label %33
33: ; preds = %32, %31
%34 = load i32, i32* %7
ret i32 %34
}

LLVM IR (-O2):
define i32 @samePoint(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = fsub double %0, %3
%8 = tail call double @llvm.fabs.f64(double %7)
%9 = fcmp ogt double %8, 1.000000e-10
br i1 %9, label %19, label %10
10: ; preds = %6
%11 = fsub double %1, %4
%12 = tail call double @llvm.fabs.f64(double %11)
%13 = fcmp ogt double %12, 1.000000e-10
br i1 %13, label %19, label %14
14: ; preds = %10
%15 = fsub double %2, %5
%16 = tail call double @llvm.fabs.f64(double %15)
%17 = fcmp ogt double %16, 1.000000e-10
br i1 %17, label %19, label %18
18: ; preds = %14
br label %19
19: ; preds = %6, %10, %14, %18
%20 = phi i32 [ 1, %18 ], [ 0, %14 ], [ 0, %10 ], [ 0, %6 ]
ret i32 %20
}