#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*/ printf(char *);
int /*<<< orphan*/ scanf(char *, double *);
int main() {
  double pointX, pointY;
  printf("Please enter X coordinate: ");
  scanf("%lf", &pointX);
  printf("Please enter Y coordinate: ");
  scanf("%lf", &pointY);
  double centerX = 1, centerY = 1, radius = 1.5;
  int isInCircle = ((pointX - centerX) * (pointX - centerX) +
                    (pointY - centerY) * (pointY - centerY)) <= radius * radius;
  double top = 1, left = -1, width = 6, height = 2, bottomRightX = left + width,
         bottomRightY = top - height;
  int isInRect = ((pointX >= left) && (pointX <= bottomRightX)) &&
                 ((pointY <= top) && (pointY >= bottomRightY));
  int isInCircleAndOutRect = isInCircle && !isInRect;
  if (isInCircleAndOutRect) {
    printf("Yes\n");
  } else {
    printf("No\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeef(%rip),%rdi
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xef3(%rip),%rdi
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
movsd  0xea6(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe99(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe94(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x10(%rbp),%xmm1
subsd  -0x20(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
subsd  -0x20(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm3
subsd  -0x28(%rbp),%xmm3
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x34(%rbp)
movsd  0xe32(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe1d(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe08(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xdf3(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x48(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x40(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x48(%rbp),%xmm0
mov    %al,-0x71(%rbp)
jb     128d <main+0x16d>
movsd  -0x10(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
xor    %eax,%eax
ucomisd %xmm1,%xmm0
mov    %al,-0x71(%rbp)
jb     128d <main+0x16d>
movsd  -0x18(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
xor    %eax,%eax
ucomisd %xmm1,%xmm0
mov    %al,-0x72(%rbp)
jb     1287 <main+0x167>
movsd  -0x18(%rbp),%xmm0
ucomisd -0x68(%rbp),%xmm0
setae  %al
mov    %al,-0x72(%rbp)
mov    -0x72(%rbp),%al
mov    %al,-0x71(%rbp)
mov    -0x71(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x6c(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x34(%rbp)
mov    %al,-0x73(%rbp)
je     12b3 <main+0x193>
cmpl   $0x0,-0x6c(%rbp)
setne  %al
xor    $0xff,%al
mov    %al,-0x73(%rbp)
mov    -0x73(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x70(%rbp)
cmpl   $0x0,-0x70(%rbp)
je     12d9 <main+0x1b9>
lea    0xd95(%rip),%rdi
call   1030 <printf@plt>
jmp    12e5 <main+0x1c5>
lea    0xd89(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xee4(%rip),%rdi
call   1040 <printf@plt>
lea    0xef4(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xee4(%rip),%rdi
call   1040 <printf@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
ucomisd 0xe81(%rip),%xmm0
mov    $0x1,%al
jb     11ad <main+0x7d>
movsd  0xe7d(%rip),%xmm2
ucomisd %xmm0,%xmm2
jb     11ad <main+0x7d>
movsd  0xe77(%rip),%xmm2
ucomisd %xmm1,%xmm2
setb   %cl
ucomisd 0xe58(%rip),%xmm1
setb   %al
or     %cl,%al
movsd  0xe4b(%rip),%xmm2
addsd  %xmm2,%xmm0
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
lea    0xe8f(%rip),%rdi
lea    0xe85(%rip),%rcx
test   %al,%al
cmove  %rcx,%rdi
movsd  0xe33(%rip),%xmm1
ucomisd %xmm0,%xmm1
cmovb  %rcx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [28 x i8] c"Please enter X coordinate: \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [28 x i8] c"Please enter Y coordinate: \00"
@.str.3 = [5 x i8] c"Yes\0A\00"
@.str.4 = [4 x i8] c"No\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca i32
%15 = alloca i32
store i32 0, i32* %1
%16 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%18 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%19 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %3)
store double 1.000000e+00, double* %4
store double 1.000000e+00, double* %5
store double 1.500000e+00, double* %6
%20 = load double, double* %2
%21 = load double, double* %4
%22 = fsub double %20, %21
%23 = load double, double* %2
%24 = load double, double* %4
%25 = fsub double %23, %24
%26 = load double, double* %3
%27 = load double, double* %5
%28 = fsub double %26, %27
%29 = load double, double* %3
%30 = load double, double* %5
%31 = fsub double %29, %30
%32 = fmul double %28, %31
%33 = call double @llvm.fmuladd.f64(double %22, double %25, double %32)
%34 = load double, double* %6
%35 = load double, double* %6
%36 = fmul double %34, %35
%37 = fcmp ole double %33, %36
%38 = zext i1 %37 to i32
store i32 %38, i32* %7
store double 1.000000e+00, double* %8
store double -1.000000e+00, double* %9
store double 6.000000e+00, double* %10
store double 2.000000e+00, double* %11
%39 = load double, double* %9
%40 = load double, double* %10
%41 = fadd double %39, %40
store double %41, double* %12
%42 = load double, double* %8
%43 = load double, double* %11
%44 = fsub double %42, %43
store double %44, double* %13
%45 = load double, double* %2
%46 = load double, double* %9
%47 = fcmp oge double %45, %46
br i1 %47, label %48, label %62
48: ; preds = %0
%49 = load double, double* %2
%50 = load double, double* %12
%51 = fcmp ole double %49, %50
br i1 %51, label %52, label %62
52: ; preds = %48
%53 = load double, double* %3
%54 = load double, double* %8
%55 = fcmp ole double %53, %54
br i1 %55, label %56, label %60
56: ; preds = %52
%57 = load double, double* %3
%58 = load double, double* %13
%59 = fcmp oge double %57, %58
br label %60
60: ; preds = %56, %52
%61 = phi i1 [ false, %52 ], [ %59, %56 ]
br label %62
62: ; preds = %60, %48, %0
%63 = phi i1 [ false, %48 ], [ false, %0 ], [ %61, %60 ]
%64 = zext i1 %63 to i32
store i32 %64, i32* %14
%65 = load i32, i32* %7
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %71
67: ; preds = %62
%68 = load i32, i32* %14
%69 = icmp ne i32 %68, 0
%70 = xor i1 %69, true
br label %71
71: ; preds = %67, %62
%72 = phi i1 [ false, %62 ], [ %70, %67 ]
%73 = zext i1 %72 to i32
store i32 %73, i32* %15
%74 = load i32, i32* %15
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %78
76: ; preds = %71
%77 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %80
78: ; preds = %71
%79 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %80
80: ; preds = %78, %76
ret i32 0
}

LLVM IR (-O2):
@.str = [28 x i8] c"Please enter X coordinate: \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [28 x i8] c"Please enter Y coordinate: \00"
@str = [3 x i8] c"No\00"
@str.5 = [4 x i8] c"Yes\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = bitcast double* %1 to i8*
%4 = bitcast double* %2 to i8*
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %1)
%7 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%9 = load double, double* %1
%10 = load double, double* %2
%11 = fcmp ult double %9, -1.000000e+00
%12 = fcmp ugt double %9, 5.000000e+00
%13 = or i1 %11, %12
br i1 %13, label %18, label %14
14: ; preds = %0
%15 = fcmp ugt double %10, 1.000000e+00
%16 = fcmp ult double %10, -1.000000e+00
%17 = or i1 %15, %16
br label %18
18: ; preds = %14, %0
%19 = phi i1 [ true, %0 ], [ %17, %14 ]
%20 = fadd double %9, -1.000000e+00
%21 = fadd double %10, -1.000000e+00
%22 = fmul double %21, %21
%23 = call double @llvm.fmuladd.f64(double %20, double %20, double %22)
%24 = fcmp ole double %23, 2.250000e+00
%25 = select i1 %24, i1 %19, i1 false
%26 = select i1 %25, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0)
%27 = call i32 @puts(i8* dereferenceable(1) %26)
ret i32 0
}