#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 */
float pow(float, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, float *, float *, float *, float *, float *);
float sqrt(float);
int main() {
  float x, y, r, x1, y1;
  scanf("%f %f %f %f %f", &x, &y, &r, &x1, &y1);
  float A = x - x1;
  float B = y - y1;
  float D, E;
  D = pow(A, 2);
  E = pow(B, 2);
  float F;
  F = sqrt(D + E);
  if (F > r) {
    printf("Point is outside the Circle");
  } else if (F < r) {
    printf("Point is inside the Circle");
  } else {
    printf("Point is on the Circle");
  };
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
lea    -0x18(%rbp),%r9
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
subss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0xc(%rbp),%xmm0
subss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  %xmm0,-0x24(%rbp)
movss  -0x20(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  %xmm0,-0x28(%rbp)
movss  -0x24(%rbp),%xmm0
addss  -0x28(%rbp),%xmm0
call   1060 <sqrt@plt>
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    11e9 <main+0xa9>
lea    0xe30(%rip),%rdi
call   1030 <printf@plt>
jmp    121e <main+0xde>
movss  -0x2c(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    120d <main+0xcd>
lea    0xe28(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <main+0xd9>
lea    0xe32(%rip),%rdi
call   1030 <printf@plt>
jmp    121e <main+0xde>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
lea    0xeb5(%rip),%rdi
lea    0x24(%rsp),%rsi
lea    0x20(%rsp),%rdx
lea    0x1c(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0x14(%rsp),%r9
call   1040 <scanf@plt>
movss  0x24(%rsp),%xmm0
subss  0x18(%rsp),%xmm0
movss  0x20(%rsp),%xmm1
subss  0x14(%rsp),%xmm1
movss  %xmm1,0x10(%rsp)
mov    $0x2,%edi
call   1050 <pow@plt>
movss  %xmm0,0xc(%rsp)
movss  0x10(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
addss  0xc(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     11bb <main+0x7b>
sqrtss %xmm0,%xmm0
jmp    11c0 <main+0x80>
call   1060 <sqrt@plt>
movss  0x1c(%rsp),%xmm1
ucomiss %xmm0,%xmm1
lea    0xe5b(%rip),%rax
lea    0xe6f(%rip),%rcx
cmova  %rax,%rcx
ucomiss %xmm1,%xmm0
lea    0xe2a(%rip),%rdi
cmovbe %rcx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [15 x i8] c"%f %f %f %f %f\00"
@.str.1 = [28 x i8] c"Point is outside the Circle\00"
@.str.2 = [27 x i8] c"Point is inside the Circle\00"
@.str.3 = [23 x i8] c"Point is on the Circle\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
store i32 0, i32* %1
%12 = call i32 @scanf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), float* %2, float* %3, float* %4, float* %5, float* %6)
%13 = load float, float* %2
%14 = load float, float* %5
%15 = fsub float %13, %14
store float %15, float* %7
%16 = load float, float* %3
%17 = load float, float* %6
%18 = fsub float %16, %17
store float %18, float* %8
%19 = load float, float* %7
%20 = call float @pow(float %19, i32 2)
store float %20, float* %9
%21 = load float, float* %8
%22 = call float @pow(float %21, i32 2)
store float %22, float* %10
%23 = load float, float* %9
%24 = load float, float* %10
%25 = fadd float %23, %24
%26 = call float @sqrt(float %25)
store float %26, float* %11
%27 = load float, float* %11
%28 = load float, float* %4
%29 = fcmp ogt float %27, %28
br i1 %29, label %30, label %32
30: ; preds = %0
%31 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
br label %41
32: ; preds = %0
%33 = load float, float* %11
%34 = load float, float* %4
%35 = fcmp olt float %33, %34
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
br label %40
38: ; preds = %32
%39 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
br label %40
40: ; preds = %38, %36
br label %41
41: ; preds = %40, %30
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"%f %f %f %f %f\00"
@.str.1 = [28 x i8] c"Point is outside the Circle\00"
@.str.2 = [27 x i8] c"Point is inside the Circle\00"
@.str.3 = [23 x i8] c"Point is on the Circle\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = bitcast float* %1 to i8*
%7 = bitcast float* %2 to i8*
%8 = bitcast float* %3 to i8*
%9 = bitcast float* %4 to i8*
%10 = bitcast float* %5 to i8*
%11 = call i32 @scanf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), float* %1, float* %2, float* %3, float* %4, float* %5)
%12 = load float, float* %1
%13 = load float, float* %4
%14 = fsub float %12, %13
%15 = load float, float* %2
%16 = load float, float* %5
%17 = fsub float %15, %16
%18 = call float @pow(float %14, i32 2)
%19 = call float @pow(float %17, i32 2)
%20 = fadd float %18, %19
%21 = call float @sqrt(float %20)
%22 = load float, float* %3
%23 = fcmp ogt float %21, %22
%24 = fcmp olt float %21, %22
%25 = select i1 %24, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0)
%26 = select i1 %23, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %25
%27 = call i32 @printf(i8* dereferenceable(1) %26)
ret i32 0
}