#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 *, double *, double *, double *,
                 double *, double *, double *);
int main(void) {
  double xa1, ya1, xa2, ya2, xb1, yb1, xb2, yb2;
  while (scanf("%lf %lf %lf %lf %lf %lf %lf %lf\n", &xa1, &ya1, &xa2, &ya2,
               &xb1, &yb1, &xb2, &yb2) != EOF) {
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
lea    -0x28(%rbp),%r8
lea    -0x30(%rbp),%r9
lea    -0x38(%rbp),%r11
lea    -0x40(%rbp),%r10
lea    -0x48(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <scanf@plt>
mov    0x2e88(%rip),%rcx
cmp    (%rcx),%rax
je     116e <main+0x5e>
jmp    111f <main+0xf>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
lea    0x40(%rsp),%r15
lea    0x38(%rsp),%r12
lea    0x30(%rsp),%r13
lea    0x28(%rsp),%rbx
lea    0x20(%rsp),%rbp
mov    0x2eaa(%rip),%r14
xchg   %ax,%ax
sub    $0x8,%rsp
lea    0xeb5(%rip),%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %rbx,%r8
mov    %rbp,%r9
lea    0x10(%rsp),%rax
push   %rax
lea    0x20(%rsp),%rax
push   %rax
lea    0x30(%rsp),%rax
push   %rax
call   1030 <scanf@plt>
add    $0x20,%rsp
cmp    (%r14),%rax
jne    1140 <main+0x30>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [33 x i8] c"%lf %lf %lf %lf %lf %lf %lf %lf\0A\00"
@EOF = global i64 0
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store i32 0, i32* %1
br label %10
10: ; preds = %14, %0
%11 = call i64 @scanf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, double* %8, double* %9)
%12 = load i64, i64* @EOF
%13 = icmp ne i64 %11, %12
br i1 %13, label %14, label %15
14: ; preds = %10
br label %10
15: ; preds = %10
%16 = load i32, i32* %1
ret i32 %16
}

LLVM IR (-O2):
@.str = [33 x i8] c"%lf %lf %lf %lf %lf %lf %lf %lf\0A\00"
@EOF = global i64 0
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = bitcast double* %1 to i8*
%10 = bitcast double* %2 to i8*
%11 = bitcast double* %3 to i8*
%12 = bitcast double* %4 to i8*
%13 = bitcast double* %5 to i8*
%14 = bitcast double* %6 to i8*
%15 = bitcast double* %7 to i8*
%16 = bitcast double* %8 to i8*
br label %17
17: ; preds = %17, %0
%18 = call i64 @scanf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, double* %8)
%19 = load i64, i64* @EOF
%20 = icmp eq i64 %18, %19
br i1 %20, label %21, label %17
21: ; preds = %17
ret i32 0
}