#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*/ exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stdout;
int processCoord(int x, int y) {
  int ret;
  if (x < 0 || y < 0) {
    printf("Illegal Coordinate!\n");
    fflush(stdout);
    exit(-1);
  }
  if ((x >= 110) || (y >= 110)) {
    printf("Illegal Coordinate!\n");
    fflush(stdout);
    exit(-1);
  }
  ret = (y * 110) + x;
  return ret;
}


x86 assembly (clang, -O0):
<processCoord>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
jl     1152 <processCoord+0x22>
cmpl   $0x0,-0x8(%rbp)
jge    1176 <processCoord+0x46>
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e7b(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>
cmpl   $0x6e,-0x4(%rbp)
jge    118a <processCoord+0x5a>
cmpl   $0x6e,-0x8(%rbp)
jl     11ae <processCoord+0x7e>
lea    0xe6f(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e43(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>
imul   $0x6e,-0x8(%rbp),%eax
add    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<processCoord>:
push   %rax
mov    %esi,%eax
or     %edi,%eax
js     1148 <processCoord+0x18>
cmp    $0x6d,%edi
jg     1148 <processCoord+0x18>
cmp    $0x6e,%esi
jge    1148 <processCoord+0x18>
imul   $0x6e,%esi,%eax
add    %edi,%eax
pop    %rcx
ret
lea    0xeb1(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e85(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"Illegal Coordinate!\0A\00"
@stdout = global i32 0
define i32 @processCoord(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = load i32, i32* %4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %8, %2
%12 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* @stdout
%14 = call i32 @fflush(i32 %13)
%15 = call i32 @exit(i32 -1)
unreachable
16: ; preds = %8
%17 = load i32, i32* %3
%18 = icmp sge i32 %17, 110
br i1 %18, label %22, label %19
19: ; preds = %16
%20 = load i32, i32* %4
%21 = icmp sge i32 %20, 110
br i1 %21, label %22, label %27
22: ; preds = %19, %16
%23 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%24 = load i32, i32* @stdout
%25 = call i32 @fflush(i32 %24)
%26 = call i32 @exit(i32 -1)
unreachable
27: ; preds = %19
%28 = load i32, i32* %4
%29 = mul nsw i32 %28, 110
%30 = load i32, i32* %3
%31 = add nsw i32 %29, %30
store i32 %31, i32* %5
%32 = load i32, i32* %5
ret i32 %32
}

LLVM IR (-O2):
@stdout = global i32 0
@str.1 = [20 x i8] c"Illegal Coordinate!\00"
define i32 @processCoord(i32 %0, i32 %1) {
%3 = or i32 %1, %0
%4 = icmp sgt i32 %3, -1
br i1 %4, label %10, label %5
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.1, i64 0, i64 0))
%7 = load i32, i32* @stdout
%8 = tail call i32 @fflush(i32 %7)
%9 = tail call i32 @exit(i32 -1)
unreachable
10: ; preds = %2
%11 = icmp sgt i32 %0, 109
%12 = icmp sgt i32 %1, 109
%13 = or i1 %11, %12
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.1, i64 0, i64 0))
%16 = load i32, i32* @stdout
%17 = tail call i32 @fflush(i32 %16)
%18 = tail call i32 @exit(i32 -1)
unreachable
19: ; preds = %10
%20 = mul nsw i32 %1, 110
%21 = add nsw i32 %20, %0
ret i32 %21
}