#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, x1, y1, r;
  scanf("%f %f %f %f %f", &x, &y, &x1, &y1, &r);
  if (r == sqrt((x - x1) * (x - x1) + (y - y1) * (y - y1))) {
    printf("Point is on the Circle.");
  } else {
    if (r < sqrt((x - x1) * (x - x1) + (y - y1) * (y - y1)))
      printf("Point is outside the Circle.");
    else
      printf("Point is inside 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    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
lea    -0x18(%rbp),%r9
call   1040 <scanf@plt>
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x8(%rbp),%xmm0
subss  -0x10(%rbp),%xmm0
movss  -0x8(%rbp),%xmm2
subss  -0x10(%rbp),%xmm2
movss  -0xc(%rbp),%xmm1
subss  -0x14(%rbp),%xmm1
movss  -0xc(%rbp),%xmm3
subss  -0x14(%rbp),%xmm3
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movss  -0x1c(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jne    11ca <main+0x9a>
jp     11ca <main+0x9a>
lea    0xe4f(%rip),%rdi
call   1030 <printf@plt>
jmp    123d <main+0x10d>
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x8(%rbp),%xmm0
subss  -0x10(%rbp),%xmm0
movss  -0x8(%rbp),%xmm2
subss  -0x10(%rbp),%xmm2
movss  -0xc(%rbp),%xmm1
subss  -0x14(%rbp),%xmm1
movss  -0xc(%rbp),%xmm3
subss  -0x14(%rbp),%xmm3
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1050 <sqrt@plt>
movss  -0x20(%rbp),%xmm1
ucomiss %xmm1,%xmm0
jbe    122c <main+0xfc>
lea    0xe05(%rip),%rdi
call   1030 <printf@plt>
jmp    1238 <main+0x108>
lea    0xe11(%rip),%rdi
call   1030 <printf@plt>
jmp    123d <main+0x10d>
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    0xc(%rsp),%rcx
lea    0x8(%rsp),%r8
lea    0x4(%rsp),%r9
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm2
movss  0x14(%rsp),%xmm0
subss  0xc(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
subss  0x8(%rsp),%xmm1
mulss  %xmm1,%xmm1
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1191 <main+0x61>
sqrtss %xmm0,%xmm0
jmp    11a0 <main+0x70>
movss  %xmm2,(%rsp)
call   1050 <sqrt@plt>
movss  (%rsp),%xmm2
ucomiss %xmm0,%xmm2
jne    11b0 <main+0x80>
jp     11b0 <main+0x80>
lea    0xe61(%rip),%rdi
jmp    120c <main+0xdc>
movss  0x4(%rsp),%xmm2
movss  0x14(%rsp),%xmm0
subss  0xc(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
subss  0x8(%rsp),%xmm1
mulss  %xmm1,%xmm1
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     11e8 <main+0xb8>
sqrtss %xmm0,%xmm0
jmp    11f7 <main+0xc7>
movss  %xmm2,(%rsp)
call   1050 <sqrt@plt>
movss  (%rsp),%xmm2
ucomiss %xmm2,%xmm0
lea    0xe26(%rip),%rax
lea    0xe3c(%rip),%rdi
cmova  %rax,%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 = [24 x i8] c"Point is on the Circle.\00"
@.str.2 = [29 x i8] c"Point is outside the Circle.\00"
@.str.3 = [28 x i8] c"Point is inside the Circle.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
store i32 0, i32* %1
%7 = 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)
%8 = load float, float* %6
%9 = load float, float* %2
%10 = load float, float* %4
%11 = fsub float %9, %10
%12 = load float, float* %2
%13 = load float, float* %4
%14 = fsub float %12, %13
%15 = load float, float* %3
%16 = load float, float* %5
%17 = fsub float %15, %16
%18 = load float, float* %3
%19 = load float, float* %5
%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)
%24 = fcmp oeq float %8, %23
br i1 %24, label %25, label %27
25: ; preds = %0
%26 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
br label %50
27: ; preds = %0
%28 = load float, float* %6
%29 = load float, float* %2
%30 = load float, float* %4
%31 = fsub float %29, %30
%32 = load float, float* %2
%33 = load float, float* %4
%34 = fsub float %32, %33
%35 = load float, float* %3
%36 = load float, float* %5
%37 = fsub float %35, %36
%38 = load float, float* %3
%39 = load float, float* %5
%40 = fsub float %38, %39
%41 = fmul float %37, %40
%42 = call float @llvm.fmuladd.f32(float %31, float %34, float %41)
%43 = call float @sqrt(float %42)
%44 = fcmp olt float %28, %43
br i1 %44, label %45, label %47
45: ; preds = %27
%46 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
br label %49
47: ; preds = %27
%48 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
br label %49
49: ; preds = %47, %45
br label %50
50: ; preds = %49, %25
ret i32 0
}

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