#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 sqrt(scalar_t__);
int main() {
  float x, y, r, x1, y1, d;
  scanf("%f", &x);
  scanf("%f", &y);
  scanf("%f", &r);
  scanf("%f", &x1);
  scanf("%f", &y1);
  d = sqrt(pow(x - x1, 2) + pow(y - y1, 2));
  if (d < r) {
    printf("Point is inside the Circle.");
  }
  if (d > r) {
    printf("Point is outside 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
call   1040 <scanf@plt>
lea    0xe9a(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe8a(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe7a(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe6a(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
subss  -0x14(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mov    %rax,-0x28(%rbp)
movss  -0xc(%rbp),%xmm0
subss  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mov    -0x28(%rbp),%rdi
add    %rax,%rdi
call   1060 <sqrt@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    11fb <main+0xbb>
lea    0xe0d(%rip),%rdi
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    121b <main+0xdb>
lea    0xe0e(%rip),%rdi
call   1030 <printf@plt>
jmp    1227 <main+0xe7>
lea    0xe1a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xeb4(%rip),%rbx
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x1c(%rsp),%xmm0
subss  0x14(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mov    %rax,%rbx
movss  0x18(%rsp),%xmm0
subss  0x10(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
add    %rax,%rbx
mov    %rbx,%rdi
call   1060 <sqrt@plt>
movss  0x8(%rsp),%xmm1
ucomiss %xmm0,%xmm1
jbe    11f0 <main+0xb0>
lea    0xe2a(%rip),%rdi
movss  %xmm0,0xc(%rsp)
call   1030 <printf@plt>
movss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
ucomiss %xmm1,%xmm0
lea    0xe25(%rip),%rax
lea    0xe3b(%rip),%rdi
cmova  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [28 x i8] c"Point is inside the Circle.\00"
@.str.2 = [29 x i8] c"Point is outside the Circle.\00"
@.str.3 = [24 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 ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %4)
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %5)
%16 = load float, float* %1
%17 = load float, float* %4
%18 = fsub float %16, %17
%19 = call i64 @pow(float %18, i32 2)
%20 = load float, float* %2
%21 = load float, float* %5
%22 = fsub float %20, %21
%23 = call i64 @pow(float %22, i32 2)
%24 = add nsw i64 %23, %19
%25 = call float @sqrt(i64 %24)
%26 = load float, float* %3
%27 = fcmp olt float %25, %26
br i1 %27, label %28, label %31
28: ; preds = %0
%29 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%30 = load float, float* %3
br label %31
31: ; preds = %28, %0
%32 = phi float [ %30, %28 ], [ %26, %0 ]
%33 = fcmp ogt float %25, %32
%34 = select i1 %33, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0)
%35 = call i32 @printf(i8* dereferenceable(1) %34)
ret i32 0
}