#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 *);
int main() {
  float x, y, x1, y1, r, s;
  scanf("%f %f %f %f %f", &x, &y, &r, &x1, &y1);
  s = (x - x1) * (x - x1) + (y - y1) * (y - y1) - r * r;
  if (s > 0)
    printf("Point is outside the Circle.");
  if (s == 0)
    printf("Point is on the Circle.");
  if (s < 0)
    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    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x18(%rbp),%rcx
lea    -0x10(%rbp),%r8
lea    -0x14(%rbp),%r9
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm1
subss  -0x10(%rbp),%xmm1
movss  -0x8(%rbp),%xmm2
subss  -0x10(%rbp),%xmm2
movss  -0xc(%rbp),%xmm0
subss  -0x14(%rbp),%xmm0
movss  -0xc(%rbp),%xmm3
subss  -0x14(%rbp),%xmm3
mulss  %xmm3,%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x18(%rbp),%xmm0
movss  -0x18(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    11c4 <main+0xa4>
lea    0xe50(%rip),%rdi
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11e7 <main+0xc7>
jp     11e7 <main+0xc7>
lea    0xe4a(%rip),%rdi
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
ucomiss -0x1c(%rbp),%xmm0
jbe    1200 <main+0xe0>
lea    0xe49(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0x4(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x8(%rsp),%r9
call   1040 <scanf@plt>
movss  0x14(%rsp),%xmm1
subss  0xc(%rsp),%xmm1
movss  0x10(%rsp),%xmm0
subss  0x8(%rsp),%xmm0
mulss  %xmm0,%xmm0
mulss  %xmm1,%xmm1
addss  %xmm0,%xmm1
movss  0x4(%rsp),%xmm0
mulss  %xmm0,%xmm0
subss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm1
movss  %xmm1,(%rsp)
jbe    119c <main+0x7c>
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
movss  (%rsp),%xmm1
ucomiss %xmm0,%xmm1
jne    11b4 <main+0x94>
jp     11b4 <main+0x94>
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
movss  (%rsp),%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm1,%xmm0
jbe    11c8 <main+0xa8>
lea    0xe81(%rip),%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 = [29 x i8] c"Point is outside the Circle.\00"
@.str.2 = [24 x i8] c"Point is on 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 = call i32 @scanf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), float* %2, float* %3, float* %6, float* %4, float* %5)
%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 = load float, float* %6
%24 = load float, float* %6
%25 = fneg float %23
%26 = call float @llvm.fmuladd.f32(float %25, float %24, float %22)
store float %26, float* %7
%27 = load float, float* %7
%28 = fcmp ogt float %27, 0.000000e+00
br i1 %28, label %29, label %31
29: ; preds = %0
%30 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
br label %31
31: ; preds = %29, %0
%32 = load float, float* %7
%33 = fcmp oeq float %32, 0.000000e+00
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
br label %36
36: ; preds = %34, %31
%37 = load float, float* %7
%38 = fcmp olt float %37, 0.000000e+00
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
br label %41
41: ; preds = %39, %36
ret i32 0
}

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