#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*/ doit(int, int);
int main(int argc, char *argv[]) {
  doit(0x00000000, 0x00000000);
  doit(0x00000000, 0x00000001);
  doit(0x00000001, 0x00000000);
  doit(0x00000001, 0x00000001);
  doit(0x00000090, 0x00000040);
  doit(0x00000040, 0x00000090);
  doit(0x00000500, 0x00000a00);
  doit(0x00000a00, 0x00000500);
  doit(0x000f0000, 0x001e0000);
  doit(0x001e0000, 0x000f0000);
  doit(0xffffffff, 0xffffffff);
  doit(0xfffffffe, 0xffffffff);
  doit(0xffffffff, 0xfffffffe);
  doit(0xfffffffe, 0xfffffffe);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1030 <doit@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <doit@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <doit@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1030 <doit@plt>
mov    $0x90,%edi
mov    $0x40,%esi
call   1030 <doit@plt>
mov    $0x40,%edi
mov    $0x90,%esi
call   1030 <doit@plt>
mov    $0x500,%edi
mov    $0xa00,%esi
call   1030 <doit@plt>
mov    $0xa00,%edi
mov    $0x500,%esi
call   1030 <doit@plt>
mov    $0xf0000,%edi
mov    $0x1e0000,%esi
call   1030 <doit@plt>
mov    $0x1e0000,%edi
mov    $0xf0000,%esi
call   1030 <doit@plt>
mov    $0xffffffff,%esi
mov    %esi,%edi
call   1030 <doit@plt>
mov    $0xfffffffe,%edi
mov    $0xffffffff,%esi
call   1030 <doit@plt>
mov    $0xffffffff,%edi
mov    $0xfffffffe,%esi
call   1030 <doit@plt>
mov    $0xfffffffe,%esi
mov    %esi,%edi
call   1030 <doit@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
call   1030 <doit@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <doit@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <doit@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1030 <doit@plt>
mov    $0x90,%edi
mov    $0x40,%esi
call   1030 <doit@plt>
mov    $0x40,%edi
mov    $0x90,%esi
call   1030 <doit@plt>
mov    $0x500,%edi
mov    $0xa00,%esi
call   1030 <doit@plt>
mov    $0xa00,%edi
mov    $0x500,%esi
call   1030 <doit@plt>
mov    $0xf0000,%edi
mov    $0x1e0000,%esi
call   1030 <doit@plt>
mov    $0x1e0000,%edi
mov    $0xf0000,%esi
call   1030 <doit@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
call   1030 <doit@plt>
mov    $0xfffffffe,%edi
mov    $0xffffffff,%esi
call   1030 <doit@plt>
mov    $0xffffffff,%edi
mov    $0xfffffffe,%esi
call   1030 <doit@plt>
mov    $0xfffffffe,%edi
mov    $0xfffffffe,%esi
call   1030 <doit@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @doit(i32 0, i32 0)
%7 = call i32 @doit(i32 0, i32 1)
%8 = call i32 @doit(i32 1, i32 0)
%9 = call i32 @doit(i32 1, i32 1)
%10 = call i32 @doit(i32 144, i32 64)
%11 = call i32 @doit(i32 64, i32 144)
%12 = call i32 @doit(i32 1280, i32 2560)
%13 = call i32 @doit(i32 2560, i32 1280)
%14 = call i32 @doit(i32 983040, i32 1966080)
%15 = call i32 @doit(i32 1966080, i32 983040)
%16 = call i32 @doit(i32 -1, i32 -1)
%17 = call i32 @doit(i32 -2, i32 -1)
%18 = call i32 @doit(i32 -1, i32 -2)
%19 = call i32 @doit(i32 -2, i32 -2)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @doit(i32 0, i32 0)
%4 = tail call i32 @doit(i32 0, i32 1)
%5 = tail call i32 @doit(i32 1, i32 0)
%6 = tail call i32 @doit(i32 1, i32 1)
%7 = tail call i32 @doit(i32 144, i32 64)
%8 = tail call i32 @doit(i32 64, i32 144)
%9 = tail call i32 @doit(i32 1280, i32 2560)
%10 = tail call i32 @doit(i32 2560, i32 1280)
%11 = tail call i32 @doit(i32 983040, i32 1966080)
%12 = tail call i32 @doit(i32 1966080, i32 983040)
%13 = tail call i32 @doit(i32 -1, i32 -1)
%14 = tail call i32 @doit(i32 -2, i32 -1)
%15 = tail call i32 @doit(i32 -1, i32 -2)
%16 = tail call i32 @doit(i32 -2, i32 -2)
ret i32 0
}