#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, char *, char *);
scalar_t__ test_create();
scalar_t__ test_empty();
scalar_t__ test_isEmpty();
scalar_t__ test_isFull();
scalar_t__ test_pop();
scalar_t__ test_push();
scalar_t__ test_size();
int main() {
  char test_string[] = "Runnig Test to: %s\nResult: %s\n";
  printf(test_string, "Create", (test_create()) ? "Fail" : "Ok");
  printf(test_string, "Empty", (test_empty()) ? "Fail" : "Ok");
  printf(test_string, "Size", (test_size()) ? "Fail" : "Ok");
  printf(test_string, "IsEmpty", (test_isEmpty()) ? "Fail" : "Ok");
  printf(test_string, "IsFull", (test_isFull()) ? "Fail" : "Ok");
  printf(test_string, "Push", (test_push()) ? "Fail" : "Ok");
  printf(test_string, "Pop", (test_pop()) ? "Fail" : "Ok");
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xe6a(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe67(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe64(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe62(%rip),%eax
mov    %eax,-0x18(%rbp)
mov    0xe5c(%rip),%ax
mov    %ax,-0x14(%rbp)
mov    0xe54(%rip),%al
mov    %al,-0x12(%rbp)
lea    -0x30(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    $0x0,%al
call   10a0 <test_create@plt>
mov    -0x68(%rbp),%rdi
mov    %rax,%rcx
lea    0xe41(%rip),%rdx
lea    0xe35(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rdx
lea    0xe1f(%rip),%rsi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    $0x0,%al
call   1070 <test_empty@plt>
mov    -0x60(%rbp),%rdi
mov    %rax,%rcx
lea    0xe09(%rip),%rdx
lea    0xdfd(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rdx
lea    0xdfd(%rip),%rsi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    $0x0,%al
call   1040 <test_size@plt>
mov    -0x58(%rbp),%rdi
mov    %rax,%rcx
lea    0xdd1(%rip),%rdx
lea    0xdc5(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rdx
lea    0xdbe(%rip),%rsi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    $0x0,%al
call   1030 <test_isEmpty@plt>
mov    -0x50(%rbp),%rdi
mov    %rax,%rcx
lea    0xd99(%rip),%rdx
lea    0xd8d(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rdx
lea    0xd8b(%rip),%rsi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    $0x0,%al
call   1080 <test_isFull@plt>
mov    -0x48(%rbp),%rdi
mov    %rax,%rcx
lea    0xd61(%rip),%rdx
lea    0xd55(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rdx
lea    0xd5b(%rip),%rsi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    $0x0,%al
call   1090 <test_push@plt>
mov    -0x40(%rbp),%rdi
mov    %rax,%rcx
lea    0xd29(%rip),%rdx
lea    0xd1d(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rdx
lea    0xd2a(%rip),%rsi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   1060 <test_pop@plt>
mov    -0x38(%rbp),%rdi
mov    %rax,%rcx
lea    0xcf1(%rip),%rdx
lea    0xce5(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rdx
lea    0xcf7(%rip),%rsi
call   1050 <printf@plt>
mov    0x2c84(%rip),%rax
mov    (%rax),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
movups 0xe7f(%rip),%xmm0
movups %xmm0,0xf(%rsp)
movaps 0xe64(%rip),%xmm0
movaps %xmm0,(%rsp)
xor    %eax,%eax
call   10a0 <test_create@plt>
test   %rax,%rax
lea    0xe7a(%rip),%r15
lea    0xe6e(%rip),%rbx
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xe59(%rip),%rsi
mov    %rsp,%r14
mov    %r14,%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1070 <test_empty@plt>
test   %rax,%rax
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xe4c(%rip),%rsi
mov    %r14,%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <test_size@plt>
test   %rax,%rax
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xe25(%rip),%rsi
mov    %r14,%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <test_isEmpty@plt>
test   %rax,%rax
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xe0a(%rip),%rsi
mov    %r14,%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <test_isFull@plt>
test   %rax,%rax
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xdf2(%rip),%rsi
mov    %r14,%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1090 <test_push@plt>
test   %rax,%rax
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xdd9(%rip),%rsi
mov    %r14,%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1060 <test_pop@plt>
test   %rax,%rax
cmove  %r15,%rbx
lea    0xdc1(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1050 <printf@plt>
mov    0x2d48(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.test_string = [31 x i8] c"Runnig Test to: %s\0AResult: %s\0A\00"
@.str = [7 x i8] c"Create\00"
@.str.1 = [5 x i8] c"Fail\00"
@.str.2 = [3 x i8] c"Ok\00"
@.str.3 = [6 x i8] c"Empty\00"
@.str.4 = [5 x i8] c"Size\00"
@.str.5 = [8 x i8] c"IsEmpty\00"
@.str.6 = [7 x i8] c"IsFull\00"
@.str.7 = [5 x i8] c"Push\00"
@.str.8 = [4 x i8] c"Pop\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [31 x i8]
store i32 0, i32* %1
%3 = bitcast [31 x i8]* %2 to i8*
%4 = getelementptr inbounds [31 x i8], [31 x i8]* %2, i64 0, i64 0
%5 = call i64 (...) @test_create()
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%9 = call i32 @printf(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %8)
%10 = getelementptr inbounds [31 x i8], [31 x i8]* %2, i64 0, i64 0
%11 = call i64 (...) @test_empty()
%12 = icmp ne i64 %11, 0
%13 = zext i1 %12 to i64
%14 = select i1 %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%15 = call i32 @printf(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %14)
%16 = getelementptr inbounds [31 x i8], [31 x i8]* %2, i64 0, i64 0
%17 = call i64 (...) @test_size()
%18 = icmp ne i64 %17, 0
%19 = zext i1 %18 to i64
%20 = select i1 %18, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%21 = call i32 @printf(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %20)
%22 = getelementptr inbounds [31 x i8], [31 x i8]* %2, i64 0, i64 0
%23 = call i64 (...) @test_isEmpty()
%24 = icmp ne i64 %23, 0
%25 = zext i1 %24 to i64
%26 = select i1 %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%27 = call i32 @printf(i8* %22, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %26)
%28 = getelementptr inbounds [31 x i8], [31 x i8]* %2, i64 0, i64 0
%29 = call i64 (...) @test_isFull()
%30 = icmp ne i64 %29, 0
%31 = zext i1 %30 to i64
%32 = select i1 %30, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%33 = call i32 @printf(i8* %28, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %32)
%34 = getelementptr inbounds [31 x i8], [31 x i8]* %2, i64 0, i64 0
%35 = call i64 (...) @test_push()
%36 = icmp ne i64 %35, 0
%37 = zext i1 %36 to i64
%38 = select i1 %36, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%39 = call i32 @printf(i8* %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %38)
%40 = getelementptr inbounds [31 x i8], [31 x i8]* %2, i64 0, i64 0
%41 = call i64 (...) @test_pop()
%42 = icmp ne i64 %41, 0
%43 = zext i1 %42 to i64
%44 = select i1 %42, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%45 = call i32 @printf(i8* %40, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %44)
%46 = load i32, i32* @EXIT_SUCCESS
ret i32 %46
}

LLVM IR (-O2):
@__const.main.test_string = [31 x i8] c"Runnig Test to: %s\0AResult: %s\0A\00"
@.str = [7 x i8] c"Create\00"
@.str.1 = [5 x i8] c"Fail\00"
@.str.2 = [3 x i8] c"Ok\00"
@.str.3 = [6 x i8] c"Empty\00"
@.str.4 = [5 x i8] c"Size\00"
@.str.5 = [8 x i8] c"IsEmpty\00"
@.str.6 = [7 x i8] c"IsFull\00"
@.str.7 = [5 x i8] c"Push\00"
@.str.8 = [4 x i8] c"Pop\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca [31 x i8]
%2 = getelementptr inbounds [31 x i8], [31 x i8]* %1, i64 0, i64 0
%3 = tail call i64 (...) @test_create()
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%6 = call i32 @printf(i8* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = call i64 (...) @test_empty()
%8 = icmp eq i64 %7, 0
%9 = select i1 %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%10 = call i32 @printf(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %9)
%11 = call i64 (...) @test_size()
%12 = icmp eq i64 %11, 0
%13 = select i1 %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%14 = call i32 @printf(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %13)
%15 = call i64 (...) @test_isEmpty()
%16 = icmp eq i64 %15, 0
%17 = select i1 %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%18 = call i32 @printf(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %17)
%19 = call i64 (...) @test_isFull()
%20 = icmp eq i64 %19, 0
%21 = select i1 %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%22 = call i32 @printf(i8* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %21)
%23 = call i64 (...) @test_push()
%24 = icmp eq i64 %23, 0
%25 = select i1 %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%26 = call i32 @printf(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %25)
%27 = call i64 (...) @test_pop()
%28 = icmp eq i64 %27, 0
%29 = select i1 %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%30 = call i32 @printf(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %29)
%31 = load i32, i32* @EXIT_SUCCESS
ret i32 %31
}