#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_FAILURE;
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ flush();
int scanf(char *, int *, int *);
void getCordinate(const int num, int x[], int y[]) {
  assert(num >= 0);
  for (int i = 0; i < num; i++) {
    if (scanf("%d %d", &x[i], &y[i]) != 2) {
      exit(EXIT_FAILURE);
    }
  }
  flush();
}


x86 assembly (clang, -O0):
<getCordinate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpl   $0x0,-0x4(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11cb <getCordinate+0x8b>
mov    -0x10(%rbp),%rsi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
mov    -0x18(%rbp),%rdx
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xe64(%rip),%rdi
call   1050 <scanf@plt>
cmp    $0x2,%eax
je     11b8 <getCordinate+0x78>
mov    0x2e2f(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>
jmp    11bd <getCordinate+0x7d>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    116b <getCordinate+0x2b>
mov    $0x0,%al
call   1030 <flush@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getCordinate>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %edi,%ebp
not    %edi
shr    $0x1f,%edi
call   1040 <assert@plt>
test   %ebp,%ebp
jle    1191 <getCordinate+0x51>
mov    %ebp,%ebp
lea    0xe9a(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1050 <scanf@plt>
cmp    $0x2,%eax
jne    11a2 <getCordinate+0x62>
add    $0x4,%r14
add    $0x4,%rbx
add    $0xffffffffffffffff,%rbp
jne    1170 <getCordinate+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <flush@plt>
mov    0x2e37(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@EXIT_FAILURE = global i32 0
define void @getCordinate(i32 %0, i32* %1, i32* %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32
store i32 %0, i32* %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%8 = load i32, i32* %4
%9 = icmp sge i32 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 %10)
store i32 0, i32* %7
br label %12
12: ; preds = %31, %3
%13 = load i32, i32* %7
%14 = load i32, i32* %4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %34
16: ; preds = %12
%17 = load i32*, i32** %5
%18 = load i32, i32* %7
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, i32* %17, i64 %19
%21 = load i32*, i32** %6
%22 = load i32, i32* %7
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, i32* %21, i64 %23
%25 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %20, i32* %24)
%26 = icmp ne i32 %25, 2
br i1 %26, label %27, label %30
27: ; preds = %16
%28 = load i32, i32* @EXIT_FAILURE
%29 = call i32 @exit(i32 %28)
unreachable
30: ; preds = %16
br label %31
31: ; preds = %30
%32 = load i32, i32* %7
%33 = add nsw i32 %32, 1
store i32 %33, i32* %7
br label %12
34: ; preds = %12
%35 = call i32 (...) @flush()
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@EXIT_FAILURE = global i32 0
define void @getCordinate(i32 %0, i32* %1, i32* %2) {
%4 = xor i32 %0, -1
%5 = lshr i32 %4, 31
%6 = tail call i32 @assert(i32 %5)
%7 = icmp sgt i32 %0, 0
br i1 %7, label %8, label %12
8: ; preds = %3
%9 = zext i32 %0 to i64
br label %14
10: ; preds = %14
%11 = icmp eq i64 %20, %9
br i1 %11, label %12, label %14
12: ; preds = %10, %3
%13 = tail call i32 (...) @flush()
ret void
14: ; preds = %8, %10
%15 = phi i64 [ 0, %8 ], [ %20, %10 ]
%16 = getelementptr inbounds i32, i32* %1, i64 %15
%17 = getelementptr inbounds i32, i32* %2, i64 %15
%18 = tail call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %16, i32* %17)
%19 = icmp eq i32 %18, 2
%20 = add nuw nsw i64 %15, 1
br i1 %19, label %10, label %21
21: ; preds = %14
%22 = load i32, i32* @EXIT_FAILURE
%23 = tail call i32 @exit(i32 %22)
unreachable
}