#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 EXIT_SUCCESS;
int /*<<< orphan*/ checkInput(double *, double *);
int isInisdeCircle(double, double, double);
int isInsedeRectangle(double, double);
int /*<<< orphan*/ printf(char *);
int main() {
  bool isInCircle, isInRectangle, isInCircleOutRectangle;
  double R = 1.5;
  double pointX, pointY;
  printf("Point coordinate: ");
  checkInput(&pointX, &pointY);
  isInCircle = isInisdeCircle(pointX, pointY, R);
  isInRectangle = isInsedeRectangle(pointX, pointY);
  isInCircleOutRectangle = isInCircle && !isInRectangle;
  if (isInCircleOutRectangle) {
    printf("Yes");
  } else {
    printf("No");
  }
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xea9(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
lea    0xea5(%rip),%rdi
call   1040 <printf@plt>
lea    -0x20(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1060 <checkInput@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
call   1030 <isInisdeCircle@plt>
mov    %eax,-0x8(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
call   1050 <isInsedeRectangle@plt>
mov    %eax,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x29(%rbp)
je     11b9 <main+0x79>
cmpl   $0x0,-0xc(%rbp)
setne  %al
xor    $0xff,%al
mov    %al,-0x29(%rbp)
mov    -0x29(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
je     11df <main+0x9f>
lea    0xe46(%rip),%rdi
call   1040 <printf@plt>
jmp    11eb <main+0xab>
lea    0xe39(%rip),%rdi
call   1040 <printf@plt>
mov    0x2dee(%rip),%rax
mov    (%rax),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xebc(%rip),%rdi
call   1040 <printf@plt>
lea    0x8(%rsp),%rdi
mov    %rsp,%rsi
call   1060 <checkInput@plt>
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
movsd  0xe8f(%rip),%xmm2
call   1030 <isInisdeCircle@plt>
mov    %eax,%ebx
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
call   1050 <isInsedeRectangle@plt>
test   %eax,%eax
lea    0xe8a(%rip),%rdi
lea    0xe87(%rip),%rax
cmovne %rax,%rdi
test   %ebx,%ebx
cmove  %rax,%rdi
call   1040 <printf@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"Point coordinate: \00"
@.str.1 = [4 x i8] c"Yes\00"
@.str.2 = [3 x i8] c"No\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca double
%6 = alloca double
%7 = alloca double
store i32 0, i32* %1
store double 1.500000e+00, double* %5
%8 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @checkInput(double* %6, double* %7)
%10 = load double, double* %6
%11 = load double, double* %7
%12 = load double, double* %5
%13 = call i32 @isInisdeCircle(double %10, double %11, double %12)
store i32 %13, i32* %2
%14 = load double, double* %6
%15 = load double, double* %7
%16 = call i32 @isInsedeRectangle(double %14, double %15)
store i32 %16, i32* %3
%17 = load i32, i32* %2
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %0
%20 = load i32, i32* %3
%21 = icmp ne i32 %20, 0
%22 = xor i1 %21, true
br label %23
23: ; preds = %19, %0
%24 = phi i1 [ false, %0 ], [ %22, %19 ]
%25 = zext i1 %24 to i32
store i32 %25, i32* %4
%26 = load i32, i32* %4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %23
%29 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %32
30: ; preds = %23
%31 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %32
32: ; preds = %30, %28
%33 = load i32, i32* @EXIT_SUCCESS
ret i32 %33
}

LLVM IR (-O2):
@.str = [19 x i8] c"Point coordinate: \00"
@.str.1 = [4 x i8] c"Yes\00"
@.str.2 = [3 x i8] c"No\00"
@EXIT_SUCCESS = global i32 0
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 ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @checkInput(double* %1, double* %2)
%7 = load double, double* %1
%8 = load double, double* %2
%9 = call i32 @isInisdeCircle(double %7, double %8, double 1.500000e+00)
%10 = load double, double* %1
%11 = load double, double* %2
%12 = call i32 @isInsedeRectangle(double %10, double %11)
%13 = icmp ne i32 %9, 0
%14 = icmp eq i32 %12, 0
%15 = select i1 %13, i1 %14, i1 false
%16 = select i1 %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%17 = call i32 @printf(i8* dereferenceable(1) %16)
%18 = load i32, i32* @EXIT_SUCCESS
ret i32 %18
}