#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 *, float *, float *, float *, float *, float *);
float sqrtf(float);
int main() {
  float x, y;
  float r;
  float x1, y1;
  scanf("%f%f%f%f%f", &x, &y, &r, &x1, &y1);
  float a = (x1 - x) * (x1 - x);
  float b = (y1 - y) * (y1 - y);
  float c = a + b;
  float d = sqrtf(c);
  if (d < r)
    printf("Point is inside the Circle.");
  else if (d == r)
    printf("Point is on the Circle.");
  else
    printf("Point is outside the Circle.");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
lea    -0x18(%rbp),%r9
call   1050 <scanf@plt>
movss  -0x14(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
subss  -0x8(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x18(%rbp),%xmm0
subss  -0xc(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
subss  -0xc(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm0
addss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x24(%rbp),%xmm0
call   1040 <sqrtf@plt>
movss  %xmm0,-0x28(%rbp)
movss  -0x28(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    11db <main+0xab>
lea    0xe3a(%rip),%rdi
call   1030 <printf@plt>
jmp    1212 <main+0xe2>
movss  -0x28(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jne    1201 <main+0xd1>
jp     1201 <main+0xd1>
lea    0xe30(%rip),%rdi
call   1030 <printf@plt>
jmp    120d <main+0xdd>
lea    0xe37(%rip),%rdi
call   1030 <printf@plt>
jmp    1212 <main+0xe2>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xec5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
lea    0x8(%rsp),%r8
lea    0x4(%rsp),%r9
call   1050 <scanf@plt>
movss  0x4(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
unpcklps %xmm0,%xmm1
movss  0x10(%rsp),%xmm0
movss  0x14(%rsp),%xmm2
unpcklps %xmm0,%xmm2
subps  %xmm2,%xmm1
mulps  %xmm1,%xmm1
movaps %xmm1,%xmm0
shufps $0x55,%xmm1,%xmm0
addss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1196 <main+0x66>
sqrtss %xmm0,%xmm0
jmp    119b <main+0x6b>
call   1040 <sqrtf@plt>
movss  0xc(%rsp),%xmm1
ucomiss %xmm1,%xmm0
lea    0xe94(%rip),%rax
lea    0xe75(%rip),%rcx
cmovne %rax,%rcx
cmovp  %rax,%rcx
ucomiss %xmm0,%xmm1
lea    0xe47(%rip),%rdi
cmovbe %rcx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"%f%f%f%f%f\00"
@.str.1 = [28 x i8] c"Point is inside the Circle.\00"
@.str.2 = [24 x i8] c"Point is on the Circle.\00"
@.str.3 = [29 x i8] c"Point is outside 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 ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float* %1, float* %2, float* %3, float* %4, float* %5)
%12 = load float, float* %4
%13 = load float, float* %1
%14 = load float, float* %5
%15 = load float, float* %2
%16 = insertelement <2 x float> poison, float %12, i64 0
%17 = insertelement <2 x float> %16, float %14, i64 1
%18 = insertelement <2 x float> poison, float %13, i64 0
%19 = insertelement <2 x float> %18, float %15, i64 1
%20 = fsub <2 x float> %17, %19
%21 = fmul <2 x float> %20, %20
%22 = shufflevector <2 x float> %21, <2 x float> poison, <2 x i32> <i32 1, i32 undef>
%23 = fadd <2 x float> %21, %22
%24 = extractelement <2 x float> %23, i64 0
%25 = call float @sqrtf(float %24)
%26 = load float, float* %3
%27 = fcmp olt float %25, %26
%28 = fcmp oeq float %25, %26
%29 = select i1 %28, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0)
%30 = select i1 %27, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %29
%31 = call i32 @printf(i8* dereferenceable(1) %30)
ret i32 0
}