#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;
  scanf("%f%f%f%f%f", x, y, r, x1, y1);
  float s = sqrt(((x1 - x) * (x1 - x)) + ((y1 - y) * (y1 - y)));
  if (s == r) {
    printf("Point is on the Circle.");
  } else {
    if (s > r) {
      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)
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
movss  -0x10(%rbp),%xmm2
movss  -0x14(%rbp),%xmm3
movss  -0x18(%rbp),%xmm4
lea    0xea1(%rip),%rdi
call   1040 <scanf@plt>
movss  -0x14(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
movss  -0x14(%rbp),%xmm2
subss  -0x8(%rbp),%xmm2
movss  -0x18(%rbp),%xmm1
subss  -0xc(%rbp),%xmm1
movss  -0x18(%rbp),%xmm3
subss  -0xc(%rbp),%xmm3
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1050 <sqrt@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jne    11c8 <main+0x98>
jp     11c8 <main+0x98>
lea    0xe4d(%rip),%rdi
call   1030 <printf@plt>
jmp    11f9 <main+0xc9>
movss  -0x1c(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    11e8 <main+0xb8>
lea    0xe45(%rip),%rdi
call   1030 <printf@plt>
jmp    11f4 <main+0xc4>
lea    0xe51(%rip),%rdi
call   1030 <printf@plt>
jmp    11f9 <main+0xc9>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <scanf@plt>
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"%f%f%f%f%f\00"
@.str.3 = [28 x i8] c"Point is inside the Circle.\00"
define i32 @main() {
%1 = tail call i32 @scanf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float undef, float undef, float undef, float undef, float undef)
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}