int inPoint(double x, double y, double xtest, double ytest) {
  x -= 20;
  y -= 20;
  return (x >= xtest - 5) && (x <= xtest + 5) && (y >= ytest - 5) &&
         (y <= ytest + 5);
}


x86 assembly (clang, -O0):
<inPoint>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xee3(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xecd(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  0xeaa(%rip),%xmm2
subsd  %xmm2,%xmm1
xor    %eax,%eax
ucomisd %xmm1,%xmm0
mov    %al,-0x21(%rbp)
jb     11cb <inPoint+0xcb>
movsd  -0x8(%rbp),%xmm1
movsd  0xe8a(%rip),%xmm0
addsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
ucomisd %xmm1,%xmm0
mov    %al,-0x21(%rbp)
jb     11cb <inPoint+0xcb>
movsd  -0x10(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0xe64(%rip),%xmm2
subsd  %xmm2,%xmm1
xor    %eax,%eax
ucomisd %xmm1,%xmm0
mov    %al,-0x21(%rbp)
jb     11cb <inPoint+0xcb>
movsd  -0x10(%rbp),%xmm1
movsd  0xe44(%rip),%xmm0
addsd  -0x20(%rbp),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<inPoint>:
movsd  0xef8(%rip),%xmm4
addsd  %xmm4,%xmm0
addsd  %xmm4,%xmm1
movsd  0xef0(%rip),%xmm4
movapd %xmm2,%xmm5
addsd  %xmm4,%xmm5
ucomisd %xmm5,%xmm0
setae  %al
movsd  0xee1(%rip),%xmm5
addsd  %xmm5,%xmm2
ucomisd %xmm0,%xmm2
setae  %cl
and    %al,%cl
addsd  %xmm3,%xmm4
ucomisd %xmm4,%xmm1
setae  %al
addsd  %xmm5,%xmm3
ucomisd %xmm1,%xmm3
setae  %dl
and    %al,%dl
and    %cl,%dl
movzbl %dl,%eax
ret

LLVM IR (-O0):
define i32 @inPoint(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%9 = load double, double* %5
%10 = fsub double %9, 2.000000e+01
store double %10, double* %5
%11 = load double, double* %6
%12 = fsub double %11, 2.000000e+01
store double %12, double* %6
%13 = load double, double* %5
%14 = load double, double* %7
%15 = fsub double %14, 5.000000e+00
%16 = fcmp oge double %13, %15
br i1 %16, label %17, label %32
17: ; preds = %4
%18 = load double, double* %5
%19 = load double, double* %7
%20 = fadd double %19, 5.000000e+00
%21 = fcmp ole double %18, %20
br i1 %21, label %22, label %32
22: ; preds = %17
%23 = load double, double* %6
%24 = load double, double* %8
%25 = fsub double %24, 5.000000e+00
%26 = fcmp oge double %23, %25
br i1 %26, label %27, label %32
27: ; preds = %22
%28 = load double, double* %6
%29 = load double, double* %8
%30 = fadd double %29, 5.000000e+00
%31 = fcmp ole double %28, %30
br label %32
32: ; preds = %27, %22, %17, %4
%33 = phi i1 [ false, %22 ], [ false, %17 ], [ false, %4 ], [ %31, %27 ]
%34 = zext i1 %33 to i32
ret i32 %34
}

LLVM IR (-O2):
define i32 @inPoint(double %0, double %1, double %2, double %3) {
%5 = fadd double %0, -2.000000e+01
%6 = fadd double %1, -2.000000e+01
%7 = fadd double %2, -5.000000e+00
%8 = fcmp ult double %5, %7
%9 = fadd double %2, 5.000000e+00
%10 = fcmp ugt double %5, %9
%11 = or i1 %8, %10
%12 = fadd double %3, -5.000000e+00
%13 = fcmp ult double %6, %12
%14 = or i1 %11, %13
%15 = fadd double %3, 5.000000e+00
%16 = fcmp ole double %6, %15
%17 = xor i1 %14, true
%18 = and i1 %16, %17
%19 = zext i1 %18 to i32
ret i32 %19
}