#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 */
scalar_t__ EOF;
scalar_t__ scanf(char *, double *, double *);
int ReadData(double *ilon, double *ilat, double *olon, double *olat) {
  int n;
  n = 0;
  while ((n < 4) && (scanf("%lf %lf", &ilon[n], &ilat[n]) != EOF))
    ++n;
  n = 0;
  while ((n < 4) && (scanf("%lf %lf", &olon[n], &olat[n]) != EOF))
    ++n;
  return (0);
}


x86 assembly (clang, -O0):
<ReadData>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
xor    %eax,%eax
cmpl   $0x4,-0x24(%rbp)
mov    %al,-0x25(%rbp)
jge    1178 <ReadData+0x68>
mov    -0x8(%rbp),%rsi
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x10(%rbp),%rdx
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
lea    0xe9d(%rip),%rdi
call   1030 <scanf@plt>
mov    0x2e79(%rip),%rcx
cmp    (%rcx),%rax
setne  %al
mov    %al,-0x25(%rbp)
mov    -0x25(%rbp),%al
test   $0x1,%al
jne    1188 <ReadData+0x78>
jmp    1196 <ReadData+0x86>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    112f <ReadData+0x1f>
movl   $0x0,-0x24(%rbp)
xor    %eax,%eax
cmpl   $0x4,-0x24(%rbp)
mov    %al,-0x26(%rbp)
jge    11e6 <ReadData+0xd6>
mov    -0x18(%rbp),%rsi
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x20(%rbp),%rdx
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
lea    0xe2f(%rip),%rdi
call   1030 <scanf@plt>
mov    0x2e0b(%rip),%rcx
cmp    (%rcx),%rax
setne  %al
mov    %al,-0x26(%rbp)
mov    -0x26(%rbp),%al
test   $0x1,%al
jne    11f6 <ReadData+0xe6>
jmp    1204 <ReadData+0xf4>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    119d <ReadData+0x8d>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ReadData>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
lea    0xed4(%rip),%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
call   1030 <scanf@plt>
mov    0x2eaa(%rip),%r13
cmp    0x0(%r13),%rax
je     1194 <ReadData+0x84>
lea    0x8(%rbx),%rsi
lea    0x8(%r12),%rdx
lea    0xeac(%rip),%rdi
call   1030 <scanf@plt>
cmp    0x0(%r13),%rax
je     1194 <ReadData+0x84>
lea    0x10(%rbx),%rsi
lea    0x10(%r12),%rdx
lea    0xe91(%rip),%rdi
call   1030 <scanf@plt>
cmp    0x0(%r13),%rax
je     1194 <ReadData+0x84>
add    $0x18,%rbx
add    $0x18,%r12
lea    0xe77(%rip),%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
call   1030 <scanf@plt>
lea    0xe65(%rip),%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1030 <scanf@plt>
cmp    0x0(%r13),%rax
je     11fa <ReadData+0xea>
lea    0x8(%r15),%rsi
lea    0x8(%r14),%rdx
lea    0xe45(%rip),%rdi
call   1030 <scanf@plt>
cmp    0x0(%r13),%rax
je     11fa <ReadData+0xea>
lea    0x10(%r15),%rsi
lea    0x10(%r14),%rdx
lea    0xe2b(%rip),%rdi
call   1030 <scanf@plt>
cmp    0x0(%r13),%rax
je     11fa <ReadData+0xea>
add    $0x18,%r15
add    $0x18,%r14
lea    0xe11(%rip),%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1030 <scanf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%lf %lf\00"
@EOF = global i64 0
define i32 @ReadData(double* %0, double* %1, double* %2, double* %3) {
%5 = alloca double*
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
store double* %0, double** %5
store double* %1, double** %6
store double* %2, double** %7
store double* %3, double** %8
store i32 0, i32* %9
br label %10
10: ; preds = %27, %4
%11 = load i32, i32* %9
%12 = icmp slt i32 %11, 4
br i1 %12, label %13, label %25
13: ; preds = %10
%14 = load double*, double** %5
%15 = load i32, i32* %9
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds double, double* %14, i64 %16
%18 = load double*, double** %6
%19 = load i32, i32* %9
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds double, double* %18, i64 %20
%22 = call i64 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %17, double* %21)
%23 = load i64, i64* @EOF
%24 = icmp ne i64 %22, %23
br label %25
25: ; preds = %13, %10
%26 = phi i1 [ false, %10 ], [ %24, %13 ]
br i1 %26, label %27, label %30
27: ; preds = %25
%28 = load i32, i32* %9
%29 = add nsw i32 %28, 1
store i32 %29, i32* %9
br label %10
30: ; preds = %25
store i32 0, i32* %9
br label %31
31: ; preds = %48, %30
%32 = load i32, i32* %9
%33 = icmp slt i32 %32, 4
br i1 %33, label %34, label %46
34: ; preds = %31
%35 = load double*, double** %7
%36 = load i32, i32* %9
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, double* %35, i64 %37
%39 = load double*, double** %8
%40 = load i32, i32* %9
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, double* %39, i64 %41
%43 = call i64 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %38, double* %42)
%44 = load i64, i64* @EOF
%45 = icmp ne i64 %43, %44
br label %46
46: ; preds = %34, %31
%47 = phi i1 [ false, %31 ], [ %45, %34 ]
br i1 %47, label %48, label %51
48: ; preds = %46
%49 = load i32, i32* %9
%50 = add nsw i32 %49, 1
store i32 %50, i32* %9
br label %31
51: ; preds = %46
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"%lf %lf\00"
@EOF = global i64 0
define i32 @ReadData(double* %0, double* %1, double* %2, double* %3) {
%5 = tail call i64 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %0, double* %1)
%6 = load i64, i64* @EOF
%7 = icmp eq i64 %5, %6
br i1 %7, label %24, label %8
8: ; preds = %4
%9 = getelementptr inbounds double, double* %0, i64 1
%10 = getelementptr inbounds double, double* %1, i64 1
%11 = tail call i64 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %9, double* %10)
%12 = load i64, i64* @EOF
%13 = icmp eq i64 %11, %12
br i1 %13, label %24, label %14
14: ; preds = %8
%15 = getelementptr inbounds double, double* %0, i64 2
%16 = getelementptr inbounds double, double* %1, i64 2
%17 = tail call i64 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %15, double* %16)
%18 = load i64, i64* @EOF
%19 = icmp eq i64 %17, %18
br i1 %19, label %24, label %20
20: ; preds = %14
%21 = getelementptr inbounds double, double* %0, i64 3
%22 = getelementptr inbounds double, double* %1, i64 3
%23 = tail call i64 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %21, double* %22)
br label %24
24: ; preds = %20, %14, %8, %4
%25 = tail call i64 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %2, double* %3)
%26 = load i64, i64* @EOF
%27 = icmp eq i64 %25, %26
br i1 %27, label %44, label %28
28: ; preds = %24
%29 = getelementptr inbounds double, double* %2, i64 1
%30 = getelementptr inbounds double, double* %3, i64 1
%31 = tail call i64 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %29, double* %30)
%32 = load i64, i64* @EOF
%33 = icmp eq i64 %31, %32
br i1 %33, label %44, label %34
34: ; preds = %28
%35 = getelementptr inbounds double, double* %2, i64 2
%36 = getelementptr inbounds double, double* %3, i64 2
%37 = tail call i64 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %35, double* %36)
%38 = load i64, i64* @EOF
%39 = icmp eq i64 %37, %38
br i1 %39, label %44, label %40
40: ; preds = %34
%41 = getelementptr inbounds double, double* %2, i64 3
%42 = getelementptr inbounds double, double* %3, i64 3
%43 = tail call i64 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %41, double* %42)
br label %44
44: ; preds = %40, %34, %28, %24
ret i32 0
}