#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__ malloc(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int i, j, a[10], b[10], c[10];
  struct point {
    int x;
    int y;
  };
  struct point *pts;
  pts = (struct point *)malloc(4 * sizeof(struct point));
  for (i = 0; i < 4; i++) {
    scanf("%d %d", &(pts[i].x), &(pts[i].y));
  }
  for (i = 0; i < 4; i = i + 2) {
    a[i] = (pts[i].x - pts[i + 1].x) / 2;
    a[i + 1] = (pts[i].y - pts[i].y) / 2;
  }
  for (i = 0; i < 4; i = i + 2) {
    b[i] = (pts[i].x + pts[i + 1].x) / 2;
    b[i + 1] = (pts[i].y + pts[i + 1].y) / 2;
  }
  for (i = 0; i < 1; i = i + 2) {
    c[i] = b[i] - b[i + 2];
    c[i + 1] = b[i + 1] - b[i + 3];
  }
  for (i = 0; i < 1; i++) {
    if ((c[i] >= (a[i] + a[i + 2])) && (c[i + 1] >= (a[i + 1] + a[i + 3])))
      printf("YES");
    else
      printf("NO");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x20,%edi
call   1040 <malloc@plt>
mov    %rax,-0xa8(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    11a6 <main+0x76>
mov    -0xa8(%rbp),%rsi
movslq -0x8(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rsi
mov    -0xa8(%rbp),%rdx
movslq -0x8(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
add    $0x4,%rdx
lea    0xe6d(%rip),%rdi
call   1050 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    115a <main+0x2a>
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    122c <main+0xfc>
mov    -0xa8(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%eax
mov    -0xa8(%rbp),%rcx
mov    -0x8(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
sub    (%rcx,%rdx,8),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x40(%rbp,%rax,4)
mov    -0xa8(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    0x4(%rax,%rcx,8),%eax
mov    -0xa8(%rbp),%rcx
movslq -0x8(%rbp),%rdx
sub    0x4(%rcx,%rdx,8),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0x40(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    11ad <main+0x7d>
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    12b7 <main+0x187>
mov    -0xa8(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%eax
mov    -0xa8(%rbp),%rcx
mov    -0x8(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
add    (%rcx,%rdx,8),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x70(%rbp,%rax,4)
mov    -0xa8(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    0x4(%rax,%rcx,8),%eax
mov    -0xa8(%rbp),%rcx
mov    -0x8(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
add    0x4(%rcx,%rdx,8),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0x70(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    1233 <main+0x103>
movl   $0x0,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jge    131c <main+0x1ec>
movslq -0x8(%rbp),%rax
mov    -0x70(%rbp,%rax,4),%ecx
mov    -0x8(%rbp),%eax
add    $0x2,%eax
cltq
sub    -0x70(%rbp,%rax,4),%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0xa0(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0x70(%rbp,%rax,4),%ecx
mov    -0x8(%rbp),%eax
add    $0x3,%eax
cltq
sub    -0x70(%rbp,%rax,4),%ecx
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0xa0(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    12be <main+0x18e>
movl   $0x0,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jge    13b6 <main+0x286>
movslq -0x8(%rbp),%rax
mov    -0xa0(%rbp,%rax,4),%eax
movslq -0x8(%rbp),%rcx
mov    -0x40(%rbp,%rcx,4),%ecx
mov    -0x8(%rbp),%edx
add    $0x2,%edx
movslq %edx,%rdx
add    -0x40(%rbp,%rdx,4),%ecx
cmp    %ecx,%eax
jl     1397 <main+0x267>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0xa0(%rbp,%rax,4),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    -0x40(%rbp,%rcx,4),%ecx
mov    -0x8(%rbp),%edx
add    $0x3,%edx
movslq %edx,%rdx
add    -0x40(%rbp,%rdx,4),%ecx
cmp    %ecx,%eax
jl     1397 <main+0x267>
lea    0xc79(%rip),%rdi
call   1030 <printf@plt>
jmp    13a3 <main+0x273>
lea    0xc6c(%rip),%rdi
call   1030 <printf@plt>
jmp    13a8 <main+0x278>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1323 <main+0x1f3>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x20,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
lea    0x4(%rax),%r14
lea    0xead(%rip),%rbp
mov    %rbp,%rdi
mov    %rax,%rsi
mov    %r14,%rdx
call   1050 <scanf@plt>
lea    0x8(%rbx),%rsi
lea    0xc(%rbx),%r15
mov    %rbp,%rdi
mov    %r15,%rdx
call   1050 <scanf@plt>
lea    0x10(%rbx),%rsi
lea    0x14(%rbx),%r12
mov    %rbp,%rdi
mov    %r12,%rdx
call   1050 <scanf@plt>
lea    0x18(%rbx),%rsi
lea    0x1c(%rbx),%r13
mov    %rbp,%rdi
mov    %r13,%rdx
call   1050 <scanf@plt>
mov    (%rbx),%eax
mov    0x8(%rbx),%r8d
mov    %eax,%edx
sub    %r8d,%edx
mov    %edx,%esi
shr    $0x1f,%esi
add    %edx,%esi
sar    %esi
mov    0x10(%rbx),%ecx
mov    0x18(%rbx),%edi
mov    %ecx,%ebp
sub    %edi,%ebp
mov    %ebp,%edx
shr    $0x1f,%edx
add    %ebp,%edx
sar    %edx
add    %esi,%edx
add    %r8d,%eax
mov    %eax,%esi
shr    $0x1f,%esi
add    %eax,%esi
sar    %esi
add    %ecx,%edi
mov    %edi,%eax
shr    $0x1f,%eax
add    %edi,%eax
sar    %eax
sub    %eax,%esi
cmp    %edx,%esi
jl     120d <main+0xdd>
mov    0x0(%r13),%eax
add    (%r12),%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
mov    (%r15),%eax
add    (%r14),%eax
mov    %eax,%edx
shr    $0x1f,%edx
add    %eax,%edx
sar    %edx
cmp    %ecx,%edx
js     120d <main+0xdd>
lea    0xdfb(%rip),%rdi
jmp    1214 <main+0xe4>
lea    0xdf6(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.point = type { i32, i32 }
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [4 x i8] c"YES\00"
@.str.2 = [3 x i8] c"NO\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [10 x i32]
%5 = alloca [10 x i32]
%6 = alloca [10 x i32]
%7 = alloca %struct.point*
store i32 0, i32* %1
%8 = call i64 @malloc(i32 32)
%9 = inttoptr i64 %8 to %struct.point*
store %struct.point* %9, %struct.point** %7
store i32 0, i32* %2
br label %10
10: ; preds = %25, %0
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 4
br i1 %12, label %13, label %28
13: ; preds = %10
%14 = load %struct.point*, %struct.point** %7
%15 = load i32, i32* %2
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds %struct.point, %struct.point* %14, i64 %16
%18 = getelementptr inbounds %struct.point, %struct.point* %17, i32 0, i32 0
%19 = load %struct.point*, %struct.point** %7
%20 = load i32, i32* %2
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds %struct.point, %struct.point* %19, i64 %21
%23 = getelementptr inbounds %struct.point, %struct.point* %22, i32 0, i32 1
%24 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %18, i32* %23)
br label %25
25: ; preds = %13
%26 = load i32, i32* %2
%27 = add nsw i32 %26, 1
store i32 %27, i32* %2
br label %10
28: ; preds = %10
store i32 0, i32* %2
br label %29
29: ; preds = %69, %28
%30 = load i32, i32* %2
%31 = icmp slt i32 %30, 4
br i1 %31, label %32, label %72
32: ; preds = %29
%33 = load %struct.point*, %struct.point** %7
%34 = load i32, i32* %2
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds %struct.point, %struct.point* %33, i64 %35
%37 = getelementptr inbounds %struct.point, %struct.point* %36, i32 0, i32 0
%38 = load i32, i32* %37
%39 = load %struct.point*, %struct.point** %7
%40 = load i32, i32* %2
%41 = add nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds %struct.point, %struct.point* %39, i64 %42
%44 = getelementptr inbounds %struct.point, %struct.point* %43, i32 0, i32 0
%45 = load i32, i32* %44
%46 = sub nsw i32 %38, %45
%47 = sdiv i32 %46, 2
%48 = load i32, i32* %2
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %49
store i32 %47, i32* %50
%51 = load %struct.point*, %struct.point** %7
%52 = load i32, i32* %2
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds %struct.point, %struct.point* %51, i64 %53
%55 = getelementptr inbounds %struct.point, %struct.point* %54, i32 0, i32 1
%56 = load i32, i32* %55
%57 = load %struct.point*, %struct.point** %7
%58 = load i32, i32* %2
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds %struct.point, %struct.point* %57, i64 %59
%61 = getelementptr inbounds %struct.point, %struct.point* %60, i32 0, i32 1
%62 = load i32, i32* %61
%63 = sub nsw i32 %56, %62
%64 = sdiv i32 %63, 2
%65 = load i32, i32* %2
%66 = add nsw i32 %65, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %67
store i32 %64, i32* %68
br label %69
69: ; preds = %32
%70 = load i32, i32* %2
%71 = add nsw i32 %70, 2
store i32 %71, i32* %2
br label %29
72: ; preds = %29
store i32 0, i32* %2
br label %73
73: ; preds = %114, %72
%74 = load i32, i32* %2
%75 = icmp slt i32 %74, 4
br i1 %75, label %76, label %117
76: ; preds = %73
%77 = load %struct.point*, %struct.point** %7
%78 = load i32, i32* %2
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds %struct.point, %struct.point* %77, i64 %79
%81 = getelementptr inbounds %struct.point, %struct.point* %80, i32 0, i32 0
%82 = load i32, i32* %81
%83 = load %struct.point*, %struct.point** %7
%84 = load i32, i32* %2
%85 = add nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds %struct.point, %struct.point* %83, i64 %86
%88 = getelementptr inbounds %struct.point, %struct.point* %87, i32 0, i32 0
%89 = load i32, i32* %88
%90 = add nsw i32 %82, %89
%91 = sdiv i32 %90, 2
%92 = load i32, i32* %2
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 %93
store i32 %91, i32* %94
%95 = load %struct.point*, %struct.point** %7
%96 = load i32, i32* %2
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds %struct.point, %struct.point* %95, i64 %97
%99 = getelementptr inbounds %struct.point, %struct.point* %98, i32 0, i32 1
%100 = load i32, i32* %99
%101 = load %struct.point*, %struct.point** %7
%102 = load i32, i32* %2
%103 = add nsw i32 %102, 1
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds %struct.point, %struct.point* %101, i64 %104
%106 = getelementptr inbounds %struct.point, %struct.point* %105, i32 0, i32 1
%107 = load i32, i32* %106
%108 = add nsw i32 %100, %107
%109 = sdiv i32 %108, 2
%110 = load i32, i32* %2
%111 = add nsw i32 %110, 1
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 %112
store i32 %109, i32* %113
br label %114
114: ; preds = %76
%115 = load i32, i32* %2
%116 = add nsw i32 %115, 2
store i32 %116, i32* %2
br label %73
117: ; preds = %73
store i32 0, i32* %2
br label %118
118: ; preds = %150, %117
%119 = load i32, i32* %2
%120 = icmp slt i32 %119, 1
br i1 %120, label %121, label %153
121: ; preds = %118
%122 = load i32, i32* %2
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 %123
%125 = load i32, i32* %124
%126 = load i32, i32* %2
%127 = add nsw i32 %126, 2
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 %128
%130 = load i32, i32* %129
%131 = sub nsw i32 %125, %130
%132 = load i32, i32* %2
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %133
store i32 %131, i32* %134
%135 = load i32, i32* %2
%136 = add nsw i32 %135, 1
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 %137
%139 = load i32, i32* %138
%140 = load i32, i32* %2
%141 = add nsw i32 %140, 3
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 %142
%144 = load i32, i32* %143
%145 = sub nsw i32 %139, %144
%146 = load i32, i32* %2
%147 = add nsw i32 %146, 1
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %148
store i32 %145, i32* %149
br label %150
150: ; preds = %121
%151 = load i32, i32* %2
%152 = add nsw i32 %151, 2
store i32 %152, i32* %2
br label %118
153: ; preds = %118
store i32 0, i32* %2
br label %154
154: ; preds = %196, %153
%155 = load i32, i32* %2
%156 = icmp slt i32 %155, 1
br i1 %156, label %157, label %199
157: ; preds = %154
%158 = load i32, i32* %2
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %159
%161 = load i32, i32* %160
%162 = load i32, i32* %2
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %163
%165 = load i32, i32* %164
%166 = load i32, i32* %2
%167 = add nsw i32 %166, 2
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %168
%170 = load i32, i32* %169
%171 = add nsw i32 %165, %170
%172 = icmp sge i32 %161, %171
br i1 %172, label %173, label %193
173: ; preds = %157
%174 = load i32, i32* %2
%175 = add nsw i32 %174, 1
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %176
%178 = load i32, i32* %177
%179 = load i32, i32* %2
%180 = add nsw i32 %179, 1
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %181
%183 = load i32, i32* %182
%184 = load i32, i32* %2
%185 = add nsw i32 %184, 3
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %186
%188 = load i32, i32* %187
%189 = add nsw i32 %183, %188
%190 = icmp sge i32 %178, %189
br i1 %190, label %191, label %193
191: ; preds = %173
%192 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %195
193: ; preds = %173, %157
%194 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %195
195: ; preds = %193, %191
br label %196
196: ; preds = %195
%197 = load i32, i32* %2
%198 = add nsw i32 %197, 1
store i32 %198, i32* %2
br label %154
199: ; preds = %154
ret i32 0
}

LLVM IR (-O2):
%struct.point = type { i32, i32 }
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [4 x i8] c"YES\00"
@.str.2 = [3 x i8] c"NO\00"
define i32 @main() {
%1 = tail call i64 @malloc(i32 32)
%2 = inttoptr i64 %1 to %struct.point*
%3 = getelementptr inbounds %struct.point, %struct.point* %2, i64 0, i32 0
%4 = getelementptr inbounds %struct.point, %struct.point* %2, i64 0, i32 1
%5 = tail call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4)
%6 = getelementptr inbounds %struct.point, %struct.point* %2, i64 1, i32 0
%7 = getelementptr inbounds %struct.point, %struct.point* %2, i64 1, i32 1
%8 = tail call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %6, i32* %7)
%9 = getelementptr inbounds %struct.point, %struct.point* %2, i64 2, i32 0
%10 = getelementptr inbounds %struct.point, %struct.point* %2, i64 2, i32 1
%11 = tail call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %9, i32* %10)
%12 = getelementptr inbounds %struct.point, %struct.point* %2, i64 3, i32 0
%13 = getelementptr inbounds %struct.point, %struct.point* %2, i64 3, i32 1
%14 = tail call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %12, i32* %13)
%15 = load i32, i32* %3
%16 = load i32, i32* %6
%17 = sub nsw i32 %15, %16
%18 = sdiv i32 %17, 2
%19 = load i32, i32* %9
%20 = load i32, i32* %12
%21 = sub nsw i32 %19, %20
%22 = sdiv i32 %21, 2
%23 = add nsw i32 %16, %15
%24 = sdiv i32 %23, 2
%25 = add nsw i32 %20, %19
%26 = sdiv i32 %25, -2
%27 = add nsw i32 %26, %24
%28 = add nsw i32 %22, %18
%29 = icmp slt i32 %27, %28
br i1 %29, label %41, label %30
30: ; preds = %0
%31 = load i32, i32* %13
%32 = load i32, i32* %10
%33 = add nsw i32 %31, %32
%34 = sdiv i32 %33, -2
%35 = load i32, i32* %7
%36 = load i32, i32* %4
%37 = add nsw i32 %35, %36
%38 = sdiv i32 %37, 2
%39 = add nsw i32 %34, %38
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %30, %0
br label %42
42: ; preds = %30, %41
%43 = phi i8* [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %41 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), %30 ]
%44 = tail call i32 @printf(i8* dereferenceable(1) %43)
ret i32 0
}