#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*/ assert(int /*<<< orphan*/);
int /*<<< orphan*/ swap_correct(int, int);
int main() {
  assert(swap_correct(0, 0));
  assert(swap_correct(0, 1));
  assert(swap_correct(1, 0));
  assert(swap_correct(32, 76));
  assert(swap_correct(0xFFFFFFFF, 0));
  assert(swap_correct(0, 0xFFFFFFFF));
  assert(swap_correct(0xFFFFFFFF, 0xFFFFFFFF));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
mov    $0x20,%edi
mov    $0x4c,%esi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
mov    $0xffffffff,%esi
mov    %esi,%edi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
mov    $0x20,%edi
mov    $0x4c,%esi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
call   1040 <swap_correct@plt>
mov    %eax,%edi
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @swap_correct(i32 0, i32 0)
%3 = call i32 @assert(i32 %2)
%4 = call i32 @swap_correct(i32 0, i32 1)
%5 = call i32 @assert(i32 %4)
%6 = call i32 @swap_correct(i32 1, i32 0)
%7 = call i32 @assert(i32 %6)
%8 = call i32 @swap_correct(i32 32, i32 76)
%9 = call i32 @assert(i32 %8)
%10 = call i32 @swap_correct(i32 -1, i32 0)
%11 = call i32 @assert(i32 %10)
%12 = call i32 @swap_correct(i32 0, i32 -1)
%13 = call i32 @assert(i32 %12)
%14 = call i32 @swap_correct(i32 -1, i32 -1)
%15 = call i32 @assert(i32 %14)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @swap_correct(i32 0, i32 0)
%2 = tail call i32 @assert(i32 %1)
%3 = tail call i32 @swap_correct(i32 0, i32 1)
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 @swap_correct(i32 1, i32 0)
%6 = tail call i32 @assert(i32 %5)
%7 = tail call i32 @swap_correct(i32 32, i32 76)
%8 = tail call i32 @assert(i32 %7)
%9 = tail call i32 @swap_correct(i32 -1, i32 0)
%10 = tail call i32 @assert(i32 %9)
%11 = tail call i32 @swap_correct(i32 0, i32 -1)
%12 = tail call i32 @assert(i32 %11)
%13 = tail call i32 @swap_correct(i32 -1, i32 -1)
%14 = tail call i32 @assert(i32 %13)
ret i32 0
}