#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__ INT_MAX;
scalar_t__ LONG_MAX;
int /*<<< orphan*/ abort();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int main(void) {
  void *x = ((void *)((unsigned int)INT_MAX + 2));
  void *y = ((void *)((unsigned long)LONG_MAX + 2));
  if (x >= ((void *)((unsigned int)INT_MAX + 1)) &&
      x <= ((void *)((unsigned int)INT_MAX + 6)) &&
      y >= ((void *)((unsigned long)LONG_MAX + 1)) &&
      y <= ((void *)((unsigned long)LONG_MAX + 6)))
    exit(0);
  else
    abort();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eb2(%rip),%rax
mov    (%rax),%rax
add    $0x2,%eax
mov    %eax,%eax
mov    %rax,-0x10(%rbp)
mov    0x2e8f(%rip),%rax
mov    (%rax),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x2e89(%rip),%rcx
mov    (%rcx),%rcx
add    $0x1,%ecx
mov    %ecx,%ecx
cmp    %rcx,%rax
jb     11c9 <main+0xa9>
mov    -0x10(%rbp),%rax
mov    0x2e6d(%rip),%rcx
mov    (%rcx),%rcx
add    $0x6,%ecx
mov    %ecx,%ecx
cmp    %rcx,%rax
ja     11c9 <main+0xa9>
mov    -0x18(%rbp),%rax
mov    0x2e41(%rip),%rcx
mov    (%rcx),%rcx
add    $0x1,%rcx
cmp    %rcx,%rax
jb     11c9 <main+0xa9>
mov    -0x18(%rbp),%rax
mov    0x2e26(%rip),%rcx
mov    (%rcx),%rcx
add    $0x6,%rcx
cmp    %rcx,%rax
ja     11c9 <main+0xa9>
xor    %edi,%edi
call   1040 <exit@plt>
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ec0(%rip),%rax
mov    (%rax),%rax
lea    0x2(%rax),%ecx
lea    0x1(%rax),%edx
cmp    %rdx,%rcx
jb     1165 <main+0x45>
add    $0x6,%eax
cmp    %rax,%rcx
ja     1165 <main+0x45>
mov    0x2e93(%rip),%rax
mov    (%rax),%rax
lea    0x2(%rax),%rcx
lea    0x1(%rax),%rdx
cmp    %rdx,%rcx
jb     1165 <main+0x45>
add    $0x6,%rax
cmp    %rax,%rcx
ja     1165 <main+0x45>
xor    %edi,%edi
call   1040 <exit@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@INT_MAX = global i64 0
@LONG_MAX = global i64 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
store i32 0, i32* %1
%4 = load i64, i64* @INT_MAX
%5 = trunc i64 %4 to i32
%6 = add i32 %5, 2
%7 = zext i32 %6 to i64
%8 = inttoptr i64 %7 to i8*
store i8* %8, i8** %2
%9 = load i64, i64* @LONG_MAX
%10 = add i64 %9, 2
%11 = inttoptr i64 %10 to i8*
store i8* %11, i8** %3
%12 = load i8*, i8** %2
%13 = load i64, i64* @INT_MAX
%14 = trunc i64 %13 to i32
%15 = add i32 %14, 1
%16 = zext i32 %15 to i64
%17 = inttoptr i64 %16 to i8*
%18 = icmp uge i8* %12, %17
br i1 %18, label %19, label %41
19: ; preds = %0
%20 = load i8*, i8** %2
%21 = load i64, i64* @INT_MAX
%22 = trunc i64 %21 to i32
%23 = add i32 %22, 6
%24 = zext i32 %23 to i64
%25 = inttoptr i64 %24 to i8*
%26 = icmp ule i8* %20, %25
br i1 %26, label %27, label %41
27: ; preds = %19
%28 = load i8*, i8** %3
%29 = load i64, i64* @LONG_MAX
%30 = add i64 %29, 1
%31 = inttoptr i64 %30 to i8*
%32 = icmp uge i8* %28, %31
br i1 %32, label %33, label %41
33: ; preds = %27
%34 = load i8*, i8** %3
%35 = load i64, i64* @LONG_MAX
%36 = add i64 %35, 6
%37 = inttoptr i64 %36 to i8*
%38 = icmp ule i8* %34, %37
br i1 %38, label %39, label %41
39: ; preds = %33
%40 = call i32 @exit(i32 0)
unreachable
41: ; preds = %33, %27, %19, %0
%42 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
@INT_MAX = global i64 0
@LONG_MAX = global i64 0
define i32 @main() {
%1 = load i64, i64* @INT_MAX
%2 = add i64 %1, 2
%3 = and i64 %2, 4294967295
%4 = inttoptr i64 %3 to i8*
%5 = load i64, i64* @LONG_MAX
%6 = add i64 %5, 2
%7 = inttoptr i64 %6 to i8*
%8 = add i64 %1, 1
%9 = and i64 %8, 4294967295
%10 = inttoptr i64 %9 to i8*
%11 = icmp ult i8* %4, %10
br i1 %11, label %27, label %12
12: ; preds = %0
%13 = add i64 %1, 6
%14 = and i64 %13, 4294967295
%15 = inttoptr i64 %14 to i8*
%16 = icmp ugt i8* %4, %15
%17 = add i64 %5, 1
%18 = inttoptr i64 %17 to i8*
%19 = icmp ult i8* %7, %18
%20 = select i1 %16, i1 true, i1 %19
%21 = add i64 %5, 6
%22 = inttoptr i64 %21 to i8*
%23 = icmp ugt i8* %7, %22
%24 = select i1 %20, i1 true, i1 %23
br i1 %24, label %27, label %25
25: ; preds = %12
%26 = tail call i32 @exit(i32 0)
unreachable
27: ; preds = %12, %0
%28 = tail call i32 (...) @abort()
unreachable
}