#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 sqrtf(float);
int main() {
  float x, y, r, x1, y1;
  scanf("%f %f %f %f %f", &x, &y, &r, &x1, &y1);
  float m = (x - x1) * (x - x1) + (y - y1) * (y - y1);
  float d = sqrtf(m);
  if (d == r) {
    printf("Point is on the circle.");
  } else if (d > r) {
    printf("Point is outside the circle.");
  } else if (d < r) {
    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   1050 <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
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
call   1040 <sqrtf@plt>
movss  %xmm0,-0x20(%rbp)
movss  -0x20(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jne    11cd <main+0x9d>
jp     11cd <main+0x9d>
lea    0xe4c(%rip),%rdi
call   1030 <printf@plt>
jmp    1216 <main+0xe6>
movss  -0x20(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    11ed <main+0xbd>
lea    0xe44(%rip),%rdi
call   1030 <printf@plt>
jmp    1211 <main+0xe1>
movss  -0x20(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    120c <main+0xdc>
lea    0xe3d(%rip),%rdi
call   1030 <printf@plt>
jmp    1211 <main+0xe1>
jmp    1216 <main+0xe6>
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   1050 <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   1040 <sqrtf@plt>
movss  0xc(%rsp),%xmm1
ucomiss %xmm1,%xmm0
jne    11a6 <main+0x76>
jp     11a6 <main+0x76>
lea    0xe6b(%rip),%rdi
jmp    11bd <main+0x8d>
jbe    11b1 <main+0x81>
lea    0xe78(%rip),%rdi
jmp    11bd <main+0x8d>
ucomiss %xmm0,%xmm1
jbe    11c2 <main+0x92>
lea    0xe87(%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 = [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
%8 = alloca float
store i32 0, i32* %1
%9 = 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)
%10 = load float, float* %2
%11 = load float, float* %5
%12 = fsub float %10, %11
%13 = load float, float* %2
%14 = load float, float* %5
%15 = fsub float %13, %14
%16 = load float, float* %3
%17 = load float, float* %6
%18 = fsub float %16, %17
%19 = load float, float* %3
%20 = load float, float* %6
%21 = fsub float %19, %20
%22 = fmul float %18, %21
%23 = call float @llvm.fmuladd.f32(float %12, float %15, float %22)
store float %23, float* %7
%24 = load float, float* %7
%25 = call float @sqrtf(float %24)
store float %25, float* %8
%26 = load float, float* %8
%27 = load float, float* %4
%28 = fcmp oeq float %26, %27
br i1 %28, label %29, label %31
29: ; preds = %0
%30 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
br label %45
31: ; preds = %0
%32 = load float, float* %8
%33 = load float, float* %4
%34 = fcmp ogt float %32, %33
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
br label %44
37: ; preds = %31
%38 = load float, float* %8
%39 = load float, float* %4
%40 = fcmp olt float %38, %39
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
br label %43
43: ; preds = %41, %37
br label %44
44: ; preds = %43, %35
br label %45
45: ; preds = %44, %29
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* %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 @sqrtf(float %19)
%21 = load float, float* %3
%22 = fcmp oeq float %20, %21
br i1 %22, label %27, label %23
23: ; preds = %0
%24 = fcmp ogt float %20, %21
br i1 %24, label %27, label %25
25: ; preds = %23
%26 = fcmp olt float %20, %21
br i1 %26, label %27, label %30
27: ; preds = %25, %23, %0
%28 = phi i8* [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), %0 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), %23 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), %25 ]
%29 = call i32 @printf(i8* dereferenceable(1) %28)
br label %30
30: ; preds = %27, %25
ret i32 0
}