#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 sqrt(float);
int main() {
  float x, y, r, x1, y1, s;
  scanf("%f %f %f %f %f", &x, &y, &x1, &y1, &r);
  s = sqrt((x - x1) * (x - x1) + (y - y1) * (y - y1));
  if (r > s) {
    printf("Point is inside the Circle.");
  } else if (r == s) {
    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    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x14(%rbp),%rcx
lea    -0x18(%rbp),%r8
lea    -0x10(%rbp),%r9
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
subss  -0x14(%rbp),%xmm0
movss  -0x8(%rbp),%xmm2
subss  -0x14(%rbp),%xmm2
movss  -0xc(%rbp),%xmm1
subss  -0x18(%rbp),%xmm1
movss  -0xc(%rbp),%xmm3
subss  -0x18(%rbp),%xmm3
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1050 <sqrt@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0x10(%rbp),%xmm0
ucomiss -0x1c(%rbp),%xmm0
jbe    11bd <main+0x8d>
lea    0xe5c(%rip),%rdi
call   1030 <printf@plt>
jmp    11f4 <main+0xc4>
movss  -0x10(%rbp),%xmm0
ucomiss -0x1c(%rbp),%xmm0
jne    11e3 <main+0xb3>
jp     11e3 <main+0xb3>
lea    0xe52(%rip),%rdi
call   1030 <printf@plt>
jmp    11ef <main+0xbf>
lea    0xe59(%rip),%rdi
call   1030 <printf@plt>
jmp    11f4 <main+0xc4>
xor    %eax,%eax
add    $0x20,%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    0x8(%rsp),%rcx
lea    0x4(%rsp),%r8
lea    0xc(%rsp),%r9
call   1040 <scanf@plt>
movss  0x14(%rsp),%xmm0
subss  0x8(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
subss  0x4(%rsp),%xmm1
mulss  %xmm1,%xmm1
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     118b <main+0x5b>
sqrtss %xmm0,%xmm0
jmp    1190 <main+0x60>
call   1050 <sqrt@plt>
movss  0xc(%rsp),%xmm1
ucomiss %xmm1,%xmm0
lea    0xea3(%rip),%rax
lea    0xe84(%rip),%rcx
cmovne %rax,%rcx
cmovp  %rax,%rcx
ucomiss %xmm0,%xmm1
lea    0xe56(%rip),%rdi
cmovbe %rcx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [15 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 ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), float* %2, float* %3, float* %5, float* %6, float* %4)
%9 = load float, float* %2
%10 = load float, float* %5
%11 = fsub float %9, %10
%12 = load float, float* %2
%13 = load float, float* %5
%14 = fsub float %12, %13
%15 = load float, float* %3
%16 = load float, float* %6
%17 = fsub float %15, %16
%18 = load float, float* %3
%19 = load float, float* %6
%20 = fsub float %18, %19
%21 = fmul float %17, %20
%22 = call float @llvm.fmuladd.f32(float %11, float %14, float %21)
%23 = call float @sqrt(float %22)
store float %23, float* %7
%24 = load float, float* %4
%25 = load float, float* %7
%26 = fcmp ogt float %24, %25
br i1 %26, label %27, label %29
27: ; preds = %0
%28 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
br label %38
29: ; preds = %0
%30 = load float, float* %4
%31 = load float, float* %7
%32 = fcmp oeq float %30, %31
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
br label %37
35: ; preds = %29
%36 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
br label %37
37: ; preds = %35, %33
br label %38
38: ; preds = %37, %27
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 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 ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), float* %1, float* %2, float* %4, float* %5, float* %3)
%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 = fmul float %17, %17
%19 = call float @llvm.fmuladd.f32(float %14, float %14, float %18)
%20 = call float @sqrt(float %19)
%21 = load float, float* %3
%22 = fcmp ogt float %21, %20
%23 = fcmp oeq float %21, %20
%24 = select i1 %23, 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)
%25 = select i1 %22, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %24
%26 = call i32 @printf(i8* dereferenceable(1) %25)
ret i32 0
}