#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*/ test(int, int, int, int, int, int, int, int);
int main(void) {
  test(-3, 0, 3, 4, 0, -1, 9, 2);
  test(-2, -2, 2, 2, -2, -2, 2, 2);
  test(0, 0, 0, 0, -1, -1, 1, 1);
  test(-2, -2, 2, 2, 3, 3, 4, 4);
  test(-2, -2, 2, 2, -3, -3, 3, -1);
  test(-2, -2, 2, 2, -1, 4, 1, 6);
  test(-1500000001, 0, -1500000000, 1, 1500000000, 0, 1500000001, 1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xfffffffd,%edi
xor    %r8d,%r8d
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0xffffffff,%r9d
mov    %r8d,%esi
movl   $0x9,(%rsp)
movl   $0x2,0x8(%rsp)
call   1030 <test@plt>
mov    $0xfffffffe,%r9d
mov    $0x2,%ecx
mov    %r9d,%edi
mov    %r9d,%esi
mov    %ecx,%edx
mov    %r9d,%r8d
movl   $0x2,(%rsp)
movl   $0x2,0x8(%rsp)
call   1030 <test@plt>
xor    %ecx,%ecx
mov    $0xffffffff,%r9d
mov    %ecx,%edi
mov    %ecx,%esi
mov    %ecx,%edx
mov    %r9d,%r8d
movl   $0x1,(%rsp)
movl   $0x1,0x8(%rsp)
call   1030 <test@plt>
mov    $0xfffffffe,%esi
mov    $0x2,%ecx
mov    $0x3,%r9d
mov    %esi,%edi
mov    %ecx,%edx
mov    %r9d,%r8d
movl   $0x4,(%rsp)
movl   $0x4,0x8(%rsp)
call   1030 <test@plt>
mov    $0xfffffffe,%esi
mov    $0x2,%ecx
mov    $0xfffffffd,%r9d
mov    %esi,%edi
mov    %ecx,%edx
mov    %r9d,%r8d
movl   $0x3,(%rsp)
movl   $0xffffffff,0x8(%rsp)
ff
call   1030 <test@plt>
mov    $0xfffffffe,%esi
mov    $0x2,%ecx
mov    $0xffffffff,%r8d
mov    $0x4,%r9d
mov    %esi,%edi
mov    %ecx,%edx
movl   $0x1,(%rsp)
movl   $0x6,0x8(%rsp)
call   1030 <test@plt>
mov    $0xa697d0ff,%edi
xor    %r9d,%r9d
mov    $0xa697d100,%edx
mov    $0x1,%ecx
mov    $0x59682f00,%r8d
mov    %r9d,%esi
movl   $0x59682f01,(%rsp)
movl   $0x1,0x8(%rsp)
call   1030 <test@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xfffffffd,%edi
xor    %esi,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
xor    %r8d,%r8d
mov    $0xffffffff,%r9d
push   $0x2
push   $0x9
call   1030 <test@plt>
add    $0x10,%rsp
mov    $0xfffffffe,%edi
mov    $0xfffffffe,%esi
mov    $0x2,%edx
mov    $0x2,%ecx
mov    $0xfffffffe,%r8d
mov    $0xfffffffe,%r9d
push   $0x2
push   $0x2
call   1030 <test@plt>
add    $0x10,%rsp
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0xffffffff,%r8d
mov    $0xffffffff,%r9d
push   $0x1
push   $0x1
call   1030 <test@plt>
add    $0x10,%rsp
mov    $0xfffffffe,%edi
mov    $0xfffffffe,%esi
mov    $0x2,%edx
mov    $0x2,%ecx
mov    $0x3,%r8d
mov    $0x3,%r9d
push   $0x4
push   $0x4
call   1030 <test@plt>
add    $0x10,%rsp
mov    $0xfffffffe,%edi
mov    $0xfffffffe,%esi
mov    $0x2,%edx
mov    $0x2,%ecx
mov    $0xfffffffd,%r8d
mov    $0xfffffffd,%r9d
push   $0xffffffffffffffff
push   $0x3
call   1030 <test@plt>
add    $0x10,%rsp
mov    $0xfffffffe,%edi
mov    $0xfffffffe,%esi
mov    $0x2,%edx
mov    $0x2,%ecx
mov    $0xffffffff,%r8d
mov    $0x4,%r9d
push   $0x6
push   $0x1
call   1030 <test@plt>
add    $0x10,%rsp
mov    $0xa697d0ff,%edi
xor    %esi,%esi
mov    $0xa697d100,%edx
mov    $0x1,%ecx
mov    $0x59682f00,%r8d
xor    %r9d,%r9d
push   $0x1
push   $0x59682f01
call   1030 <test@plt>
add    $0x10,%rsp
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 @test(i32 -3, i32 0, i32 3, i32 4, i32 0, i32 -1, i32 9, i32 2)
%2 = call i32 @test(i32 -2, i32 -2, i32 2, i32 2, i32 -2, i32 -2, i32 2, i32 2)
%3 = call i32 @test(i32 0, i32 0, i32 0, i32 0, i32 -1, i32 -1, i32 1, i32 1)
%4 = call i32 @test(i32 -2, i32 -2, i32 2, i32 2, i32 3, i32 3, i32 4, i32 4)
%5 = call i32 @test(i32 -2, i32 -2, i32 2, i32 2, i32 -3, i32 -3, i32 3, i32 -1)
%6 = call i32 @test(i32 -2, i32 -2, i32 2, i32 2, i32 -1, i32 4, i32 1, i32 6)
%7 = call i32 @test(i32 -1500000001, i32 0, i32 -1500000000, i32 1, i32 1500000000, i32 0, i32 1500000001, i32 1)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @test(i32 -3, i32 0, i32 3, i32 4, i32 0, i32 -1, i32 9, i32 2)
%2 = tail call i32 @test(i32 -2, i32 -2, i32 2, i32 2, i32 -2, i32 -2, i32 2, i32 2)
%3 = tail call i32 @test(i32 0, i32 0, i32 0, i32 0, i32 -1, i32 -1, i32 1, i32 1)
%4 = tail call i32 @test(i32 -2, i32 -2, i32 2, i32 2, i32 3, i32 3, i32 4, i32 4)
%5 = tail call i32 @test(i32 -2, i32 -2, i32 2, i32 2, i32 -3, i32 -3, i32 3, i32 -1)
%6 = tail call i32 @test(i32 -2, i32 -2, i32 2, i32 2, i32 -1, i32 4, i32 1, i32 6)
%7 = tail call i32 @test(i32 -1500000001, i32 0, i32 -1500000000, i32 1, i32 1500000000, i32 0, i32 1500000001, i32 1)
ret i32 0
}