#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 checkPoint(float, float);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, float *, float *);
int /*<<< orphan*/ testCheckPoint();
int main(int argc, char *argv[]) {
  float xCor;
  float yCor;
  testCheckPoint();
  printf("insert x and y coordinates (x,y):");
  scanf("%f,%f", &xCor, &yCor);
  int truePoint = checkPoint(xCor, yCor);
  if (truePoint == 1) {
    printf("It is in the graph!\n");
  } else {
    printf("It is outside of the graph!\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <testCheckPoint@plt>
lea    0xe9c(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb2(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1050 <scanf@plt>
movss  -0x14(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
call   1060 <checkPoint@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    11aa <main+0x6a>
lea    0xe88(%rip),%rdi
call   1040 <printf@plt>
jmp    11b6 <main+0x76>
lea    0xe8c(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <testCheckPoint@plt>
lea    0xea1(%rip),%rdi
call   1050 <printf@plt>
lea    0xeb7(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1060 <scanf@plt>
movss  0x4(%rsp),%xmm0
movss  (%rsp),%xmm1
call   1070 <checkPoint@plt>
cmp    $0x1,%eax
lea    0xeb2(%rip),%rax
lea    0xe8f(%rip),%rdi
cmove  %rax,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [34 x i8] c"insert x and y coordinates (x,y):\00"
@.str.1 = [6 x i8] c"%f,%f\00"
@.str.2 = [21 x i8] c"It is in the graph!\0A\00"
@.str.3 = [29 x i8] c"It is outside of the graph!\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca float
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = call i32 (...) @testCheckPoint()
%10 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %6, float* %7)
%12 = load float, float* %6
%13 = load float, float* %7
%14 = call i32 @checkPoint(float %12, float %13)
store i32 %14, i32* %8
%15 = load i32, i32* %8
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %21
19: ; preds = %2
%20 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
br label %21
21: ; preds = %19, %17
%22 = load i32, i32* %3
ret i32 %22
}

LLVM IR (-O2):
@.str = [34 x i8] c"insert x and y coordinates (x,y):\00"
@.str.1 = [6 x i8] c"%f,%f\00"
@str = [28 x i8] c"It is outside of the graph!\00"
@str.4 = [20 x i8] c"It is in the graph!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca float
%4 = alloca float
%5 = bitcast float* %3 to i8*
%6 = bitcast float* %4 to i8*
%7 = tail call i32 (...) @testCheckPoint()
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %3, float* %4)
%10 = load float, float* %3
%11 = load float, float* %4
%12 = call i32 @checkPoint(float %10, float %11)
%13 = icmp eq i32 %12, 1
%14 = select i1 %13, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @str.4, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0)
%15 = call i32 @puts(i8* dereferenceable(1) %14)
ret i32 0
}