#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 */
scalar_t__ pow(float, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, float *, float *, float *, float *, float *);
float sqrtf(scalar_t__);
int main() {
  float x, y, r, x1, y1, d;
  scanf("%f%f%f%f%f", &x, &y, &r, &x1, &y1);
  d = sqrtf(pow((x1 - x), 2) + pow((y1 - y), 2));
  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    0xeaa(%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
mov    $0x2,%edi
call   1060 <pow@plt>
mov    %rax,-0x28(%rbp)
movss  -0x18(%rbp),%xmm0
subss  -0xc(%rbp),%xmm0
mov    $0x2,%edi
call   1060 <pow@plt>
mov    -0x28(%rbp),%rdi
add    %rax,%rdi
call   1040 <sqrtf@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    11d0 <main+0x90>
lea    0xe45(%rip),%rdi
call   1030 <printf@plt>
jmp    1207 <main+0xc7>
movss  -0x1c(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jne    11f6 <main+0xb6>
jp     11f6 <main+0xb6>
lea    0xe3b(%rip),%rdi
call   1030 <printf@plt>
jmp    1202 <main+0xc2>
lea    0xe42(%rip),%rdi
call   1030 <printf@plt>
jmp    1207 <main+0xc7>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xeb4(%rip),%rdi
lea    0x1c(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x14(%rsp),%rcx
lea    0x10(%rsp),%r8
lea    0xc(%rsp),%r9
call   1050 <scanf@plt>
movss  0x10(%rsp),%xmm0
subss  0x1c(%rsp),%xmm0
mov    $0x2,%edi
call   1060 <pow@plt>
mov    %rax,%rbx
movss  0xc(%rsp),%xmm0
subss  0x18(%rsp),%xmm0
mov    $0x2,%edi
call   1060 <pow@plt>
add    %rax,%rbx
mov    %rbx,%rdi
call   1040 <sqrtf@plt>
movss  0x14(%rsp),%xmm1
ucomiss %xmm1,%xmm0
lea    0xe8b(%rip),%rax
lea    0xe6c(%rip),%rcx
cmovne %rax,%rcx
cmovp  %rax,%rcx
ucomiss %xmm0,%xmm1
lea    0xe3e(%rip),%rdi
cmovbe %rcx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
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
store i32 0, i32* %1
%8 = 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)
%9 = load float, float* %5
%10 = load float, float* %2
%11 = fsub float %9, %10
%12 = call i64 @pow(float %11, i32 2)
%13 = load float, float* %6
%14 = load float, float* %3
%15 = fsub float %13, %14
%16 = call i64 @pow(float %15, i32 2)
%17 = add nsw i64 %12, %16
%18 = call float @sqrtf(i64 %17)
store float %18, float* %7
%19 = load float, float* %7
%20 = load float, float* %4
%21 = fcmp olt float %19, %20
br i1 %21, label %22, label %24
22: ; preds = %0
%23 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
br label %33
24: ; preds = %0
%25 = load float, float* %7
%26 = load float, float* %4
%27 = fcmp oeq float %25, %26
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
br label %32
30: ; preds = %24
%31 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
br label %32
32: ; preds = %30, %28
br label %33
33: ; preds = %32, %22
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 = fsub float %12, %13
%15 = call i64 @pow(float %14, i32 2)
%16 = load float, float* %5
%17 = load float, float* %2
%18 = fsub float %16, %17
%19 = call i64 @pow(float %18, i32 2)
%20 = add nsw i64 %19, %15
%21 = call float @sqrtf(i64 %20)
%22 = load float, float* %3
%23 = fcmp olt float %21, %22
%24 = fcmp oeq float %21, %22
%25 = select i1 %24, 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)
%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
}