#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ EOF;
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, float *, float *, float *,
                  float *, float *);
scalar_t__ incircle(float, float, float);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ puts(char *);
int main(int argc, char *argv[]) {
  FILE *fp;
  float cx, cy, r, px, py;
  if (argc != 2) {
    printf("Usage: %s [FILE]\n", argv[0]);
    return 1;
  }
  fp = fopen(*++argv, "r");
  while (fscanf(fp, "Center: (%f, %f); Radius: %f; Point: (%f, %f)\n", &cx, &cy,
                &r, &px, &py) != EOF)
    puts(incircle(cx - px, cy - py, r) ? "true" : "false");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     118f <main+0x3f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe82(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1232 <main+0xe2>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    0x8(%rax),%rdi
lea    0xe69(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe57(%rip),%rsi
lea    -0x1c(%rbp),%rdx
lea    -0x20(%rbp),%rcx
lea    -0x24(%rbp),%r8
lea    -0x28(%rbp),%r9
lea    -0x2c(%rbp),%rax
mov    %rax,(%rsp)
call   1060 <fscanf@plt>
mov    0x2e07(%rip),%rcx
cmp    (%rcx),%rax
je     122b <main+0xdb>
movss  -0x1c(%rbp),%xmm0
subss  -0x28(%rbp),%xmm0
movss  -0x20(%rbp),%xmm1
subss  -0x2c(%rbp),%xmm1
movss  -0x24(%rbp),%xmm2
call   1040 <incircle@plt>
mov    %rax,%rcx
lea    0xe36(%rip),%rdi
lea    0xe2a(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rdi
call   1030 <puts@plt>
jmp    11b2 <main+0x62>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
cmp    $0x2,%edi
jne    1238 <main+0xe8>
mov    0x8(%rsi),%rdi
lea    0xea0(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%rbx
lea    0x24(%rsp),%r15
mov    %r15,(%rsp)
lea    0xe8a(%rip),%rsi
lea    0x20(%rsp),%rdx
lea    0x1c(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0x14(%rsp),%r9
mov    %rax,%rdi
call   1060 <fscanf@plt>
mov    0x2e3b(%rip),%r12
xor    %ecx,%ecx
cmp    (%r12),%rax
je     124c <main+0xfc>
lea    0x1c(%rsp),%r13
lea    0x18(%rsp),%rbp
lea    0x14(%rsp),%r14
nopl   0x0(%rax,%rax,1)
movss  0x20(%rsp),%xmm0
subss  0x14(%rsp),%xmm0
movss  0x1c(%rsp),%xmm1
subss  0x24(%rsp),%xmm1
movss  0x18(%rsp),%xmm2
call   1040 <incircle@plt>
test   %rax,%rax
lea    0xe46(%rip),%rdi
lea    0xe44(%rip),%rax
cmove  %rax,%rdi
call   1030 <puts@plt>
mov    %r15,(%rsp)
mov    %rbx,%rdi
lea    0xdf9(%rip),%rsi
lea    0x20(%rsp),%rdx
mov    %r13,%rcx
mov    %rbp,%r8
mov    %r14,%r9
call   1060 <fscanf@plt>
cmp    (%r12),%rax
jne    11d0 <main+0x80>
xor    %ecx,%ecx
jmp    124c <main+0xfc>
mov    (%rsi),%rsi
lea    0xdbe(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%ecx
mov    %ecx,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"Usage: %s [FILE]\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [47 x i8] c"Center: (%f, %f); Radius: %f; Point: (%f, %f)\0A\00"
@EOF = global i64 0
@.str.3 = [5 x i8] c"true\00"
@.str.4 = [6 x i8] c"false\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i32, i32* %4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 0
%17 = load i8*, i8** %16
%18 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %17)
store i32 1, i32* %3
br label %43
19: ; preds = %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i32 1
store i8** %21, i8*** %5
%22 = load i8*, i8** %21
%23 = call i32* @fopen(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %23, i32** %6
br label %24
24: ; preds = %29, %19
%25 = load i32*, i32** %6
%26 = call i64 @fscanf(i32* %25, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), float* %7, float* %8, float* %9, float* %10, float* %11)
%27 = load i64, i64* @EOF
%28 = icmp ne i64 %26, %27
br i1 %28, label %29, label %42
29: ; preds = %24
%30 = load float, float* %7
%31 = load float, float* %10
%32 = fsub float %30, %31
%33 = load float, float* %8
%34 = load float, float* %11
%35 = fsub float %33, %34
%36 = load float, float* %9
%37 = call i64 @incircle(float %32, float %35, float %36)
%38 = icmp ne i64 %37, 0
%39 = zext i1 %38 to i64
%40 = select i1 %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%41 = call i32 @puts(i8* %40)
br label %24
42: ; preds = %24
store i32 0, i32* %3
br label %43
43: ; preds = %42, %14
%44 = load i32, i32* %3
ret i32 %44
}

LLVM IR (-O2):
@.str = [18 x i8] c"Usage: %s [FILE]\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [47 x i8] c"Center: (%f, %f); Radius: %f; Point: (%f, %f)\0A\00"
@EOF = global i64 0
@.str.3 = [5 x i8] c"true\00"
@.str.4 = [6 x i8] c"false\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = bitcast float* %3 to i8*
%9 = bitcast float* %4 to i8*
%10 = bitcast float* %5 to i8*
%11 = bitcast float* %6 to i8*
%12 = bitcast float* %7 to i8*
%13 = icmp eq i32 %0, 2
br i1 %13, label %17, label %14
14: ; preds = %2
%15 = load i8*, i8** %1
%16 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %15)
br label %39
17: ; preds = %2
%18 = getelementptr inbounds i8*, i8** %1, i64 1
%19 = load i8*, i8** %18
%20 = tail call i32* @fopen(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%21 = call i64 @fscanf(i32* %20, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), float* %3, float* %4, float* %5, float* %6, float* %7)
%22 = load i64, i64* @EOF
%23 = icmp eq i64 %21, %22
br i1 %23, label %39, label %24
24: ; preds = %17, %24
%25 = load float, float* %3
%26 = load float, float* %6
%27 = fsub float %25, %26
%28 = load float, float* %4
%29 = load float, float* %7
%30 = fsub float %28, %29
%31 = load float, float* %5
%32 = call i64 @incircle(float %27, float %30, float %31)
%33 = icmp eq i64 %32, 0
%34 = select i1 %33, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%35 = call i32 @puts(i8* dereferenceable(1) %34)
%36 = call i64 @fscanf(i32* %20, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), float* %3, float* %4, float* %5, float* %6, float* %7)
%37 = load i64, i64* @EOF
%38 = icmp eq i64 %36, %37
br i1 %38, label %39, label %24
39: ; preds = %24, %17, %14
%40 = phi i32 [ 1, %14 ], [ 0, %17 ], [ 0, %24 ]
ret i32 %40
}