#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*/ verify_div1(int, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ verify_div1_negations(int, int, int, int);
int main() {
  verify_div1_negations(0, 1, 0, 0);
  verify_div1_negations(1, 1, 1, 0);
  verify_div1_negations(1, 2, 0, 1);
  verify_div1_negations(17, 19, 0, 17);
  verify_div1_negations(19, 17, 1, 2);
  verify_div1_negations(77773, 101, 770, 3);
  verify_div1(-0x80000000, 1, -0x80000000, 0);
  verify_div1(-0x80000000, -1, -0x80000000, 0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %ecx,%ecx
mov    $0x1,%esi
mov    %ecx,%edi
mov    %ecx,%edx
call   1030 <verify_div1_negations@plt>
mov    $0x1,%edx
xor    %ecx,%ecx
mov    %edx,%edi
mov    %edx,%esi
call   1030 <verify_div1_negations@plt>
mov    $0x1,%ecx
mov    $0x2,%esi
xor    %edx,%edx
mov    %ecx,%edi
call   1030 <verify_div1_negations@plt>
mov    $0x11,%ecx
mov    $0x13,%esi
xor    %edx,%edx
mov    %ecx,%edi
call   1030 <verify_div1_negations@plt>
mov    $0x13,%edi
mov    $0x11,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
call   1030 <verify_div1_negations@plt>
mov    $0x12fcd,%edi
mov    $0x65,%esi
mov    $0x302,%edx
mov    $0x3,%ecx
call   1030 <verify_div1_negations@plt>
mov    $0x80000000,%edx
mov    $0x1,%esi
xor    %ecx,%ecx
mov    %edx,%edi
call   1040 <verify_div1@plt>
mov    $0x80000000,%edx
mov    $0xffffffff,%esi
xor    %ecx,%ecx
mov    %edx,%edi
call   1040 <verify_div1@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1030 <verify_div1_negations@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
call   1030 <verify_div1_negations@plt>
mov    $0x1,%edi
mov    $0x2,%esi
xor    %edx,%edx
mov    $0x1,%ecx
call   1030 <verify_div1_negations@plt>
mov    $0x11,%edi
mov    $0x13,%esi
xor    %edx,%edx
mov    $0x11,%ecx
call   1030 <verify_div1_negations@plt>
mov    $0x13,%edi
mov    $0x11,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
call   1030 <verify_div1_negations@plt>
mov    $0x12fcd,%edi
mov    $0x65,%esi
mov    $0x302,%edx
mov    $0x3,%ecx
call   1030 <verify_div1_negations@plt>
mov    $0x80000000,%edi
mov    $0x1,%esi
mov    $0x80000000,%edx
xor    %ecx,%ecx
call   1040 <verify_div1@plt>
mov    $0x80000000,%edi
mov    $0xffffffff,%esi
mov    $0x80000000,%edx
xor    %ecx,%ecx
call   1040 <verify_div1@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @verify_div1_negations(i32 0, i32 1, i32 0, i32 0)
%3 = call i32 @verify_div1_negations(i32 1, i32 1, i32 1, i32 0)
%4 = call i32 @verify_div1_negations(i32 1, i32 2, i32 0, i32 1)
%5 = call i32 @verify_div1_negations(i32 17, i32 19, i32 0, i32 17)
%6 = call i32 @verify_div1_negations(i32 19, i32 17, i32 1, i32 2)
%7 = call i32 @verify_div1_negations(i32 77773, i32 101, i32 770, i32 3)
%8 = call i32 @verify_div1(i32 -2147483648, i32 1, i32 -2147483648, i32 0)
%9 = call i32 @verify_div1(i32 -2147483648, i32 -1, i32 -2147483648, i32 0)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @verify_div1_negations(i32 0, i32 1, i32 0, i32 0)
%2 = tail call i32 @verify_div1_negations(i32 1, i32 1, i32 1, i32 0)
%3 = tail call i32 @verify_div1_negations(i32 1, i32 2, i32 0, i32 1)
%4 = tail call i32 @verify_div1_negations(i32 17, i32 19, i32 0, i32 17)
%5 = tail call i32 @verify_div1_negations(i32 19, i32 17, i32 1, i32 2)
%6 = tail call i32 @verify_div1_negations(i32 77773, i32 101, i32 770, i32 3)
%7 = tail call i32 @verify_div1(i32 -2147483648, i32 1, i32 -2147483648, i32 0)
%8 = tail call i32 @verify_div1(i32 -2147483648, i32 -1, i32 -2147483648, i32 0)
ret i32 0
}