#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 AddObject(int, int, int);
int /*<<< orphan*/ DeleteObject(int, int, int);
int IsObjectExist(int, int, int);
int /*<<< orphan*/ assert(int);
int main(void) {
  assert(0 == AddObject(1, 2, 3));
  assert(0 == AddObject(1, 2, 4));
  assert(0 == AddObject(1, 5, 1));
  assert(0 == AddObject(1, 5, 3));
  assert(0 == AddObject(2, 3, 4));
  assert(0 == AddObject(2, 3, 5));
  assert(0 == AddObject(2, 4, 5));
  assert(0 == AddObject(2, 3, 6));
  assert(-1 == AddObject(2, 3, 6));
  int result = IsObjectExist(1, 5, 3);
  assert(1 == result);
  DeleteObject(2, 0xFFFFFFFF, 5);
  result = IsObjectExist(2, 3, 5);
  assert(0 == result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
call   1060 <AddObject@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x4,%edx
call   1060 <AddObject@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x1,%edx
mov    $0x5,%esi
mov    %edx,%edi
call   1060 <AddObject@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
mov    $0x5,%esi
mov    $0x3,%edx
call   1060 <AddObject@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x2,%edi
mov    $0x3,%esi
mov    $0x4,%edx
call   1060 <AddObject@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x2,%edi
mov    $0x3,%esi
mov    $0x5,%edx
call   1060 <AddObject@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x2,%edi
mov    $0x4,%esi
mov    $0x5,%edx
call   1060 <AddObject@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x2,%edi
mov    $0x3,%esi
mov    $0x6,%edx
call   1060 <AddObject@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x2,%edi
mov    $0x3,%esi
mov    $0x6,%edx
call   1060 <AddObject@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
mov    $0x5,%esi
mov    $0x3,%edx
call   1030 <IsObjectExist@plt>
mov    %eax,-0x8(%rbp)
mov    $0x1,%eax
cmp    -0x8(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x2,%edi
mov    $0xffffffff,%esi
mov    $0x5,%edx
call   1040 <DeleteObject@plt>
mov    $0x2,%edi
mov    $0x3,%esi
mov    $0x5,%edx
call   1030 <IsObjectExist@plt>
mov    %eax,-0x8(%rbp)
xor    %eax,%eax
cmp    -0x8(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
call   1060 <AddObject@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x4,%edx
call   1060 <AddObject@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
mov    $0x1,%edi
mov    $0x5,%esi
mov    $0x1,%edx
call   1060 <AddObject@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
mov    $0x1,%edi
mov    $0x5,%esi
mov    $0x3,%edx
call   1060 <AddObject@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
mov    $0x2,%edi
mov    $0x3,%esi
mov    $0x4,%edx
call   1060 <AddObject@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
mov    $0x2,%edi
mov    $0x3,%esi
mov    $0x5,%edx
call   1060 <AddObject@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
mov    $0x2,%edi
mov    $0x4,%esi
mov    $0x5,%edx
call   1060 <AddObject@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
mov    $0x2,%edi
mov    $0x3,%esi
mov    $0x6,%edx
call   1060 <AddObject@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
mov    $0x2,%edi
mov    $0x3,%esi
mov    $0x6,%edx
call   1060 <AddObject@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1050 <assert@plt>
mov    $0x1,%edi
mov    $0x5,%esi
mov    $0x3,%edx
call   1030 <IsObjectExist@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1050 <assert@plt>
mov    $0x2,%edi
mov    $0xffffffff,%esi
mov    $0x5,%edx
call   1040 <DeleteObject@plt>
mov    $0x2,%edi
mov    $0x3,%esi
mov    $0x5,%edx
call   1030 <IsObjectExist@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @AddObject(i32 1, i32 2, i32 3)
%4 = icmp eq i32 0, %3
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 %5)
%7 = call i32 @AddObject(i32 1, i32 2, i32 4)
%8 = icmp eq i32 0, %7
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 %9)
%11 = call i32 @AddObject(i32 1, i32 5, i32 1)
%12 = icmp eq i32 0, %11
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 %13)
%15 = call i32 @AddObject(i32 1, i32 5, i32 3)
%16 = icmp eq i32 0, %15
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 %17)
%19 = call i32 @AddObject(i32 2, i32 3, i32 4)
%20 = icmp eq i32 0, %19
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 %21)
%23 = call i32 @AddObject(i32 2, i32 3, i32 5)
%24 = icmp eq i32 0, %23
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 %25)
%27 = call i32 @AddObject(i32 2, i32 4, i32 5)
%28 = icmp eq i32 0, %27
%29 = zext i1 %28 to i32
%30 = call i32 @assert(i32 %29)
%31 = call i32 @AddObject(i32 2, i32 3, i32 6)
%32 = icmp eq i32 0, %31
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
%35 = call i32 @AddObject(i32 2, i32 3, i32 6)
%36 = icmp eq i32 -1, %35
%37 = zext i1 %36 to i32
%38 = call i32 @assert(i32 %37)
%39 = call i32 @IsObjectExist(i32 1, i32 5, i32 3)
store i32 %39, i32* %2
%40 = load i32, i32* %2
%41 = icmp eq i32 1, %40
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 %42)
%44 = call i32 @DeleteObject(i32 2, i32 -1, i32 5)
%45 = call i32 @IsObjectExist(i32 2, i32 3, i32 5)
store i32 %45, i32* %2
%46 = load i32, i32* %2
%47 = icmp eq i32 0, %46
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 %48)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @AddObject(i32 1, i32 2, i32 3)
%2 = icmp eq i32 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 @AddObject(i32 1, i32 2, i32 4)
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 %7)
%9 = tail call i32 @AddObject(i32 1, i32 5, i32 1)
%10 = icmp eq i32 %9, 0
%11 = zext i1 %10 to i32
%12 = tail call i32 @assert(i32 %11)
%13 = tail call i32 @AddObject(i32 1, i32 5, i32 3)
%14 = icmp eq i32 %13, 0
%15 = zext i1 %14 to i32
%16 = tail call i32 @assert(i32 %15)
%17 = tail call i32 @AddObject(i32 2, i32 3, i32 4)
%18 = icmp eq i32 %17, 0
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 %19)
%21 = tail call i32 @AddObject(i32 2, i32 3, i32 5)
%22 = icmp eq i32 %21, 0
%23 = zext i1 %22 to i32
%24 = tail call i32 @assert(i32 %23)
%25 = tail call i32 @AddObject(i32 2, i32 4, i32 5)
%26 = icmp eq i32 %25, 0
%27 = zext i1 %26 to i32
%28 = tail call i32 @assert(i32 %27)
%29 = tail call i32 @AddObject(i32 2, i32 3, i32 6)
%30 = icmp eq i32 %29, 0
%31 = zext i1 %30 to i32
%32 = tail call i32 @assert(i32 %31)
%33 = tail call i32 @AddObject(i32 2, i32 3, i32 6)
%34 = icmp eq i32 %33, -1
%35 = zext i1 %34 to i32
%36 = tail call i32 @assert(i32 %35)
%37 = tail call i32 @IsObjectExist(i32 1, i32 5, i32 3)
%38 = icmp eq i32 %37, 1
%39 = zext i1 %38 to i32
%40 = tail call i32 @assert(i32 %39)
%41 = tail call i32 @DeleteObject(i32 2, i32 -1, i32 5)
%42 = tail call i32 @IsObjectExist(i32 2, i32 3, i32 5)
%43 = icmp eq i32 %42, 0
%44 = zext i1 %43 to i32
%45 = tail call i32 @assert(i32 %44)
ret i32 0
}