#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*/ circBuffer_appendAllNoWrap_dataCorrect();
int /*<<< orphan*/ circBuffer_appendAllWrap_dataCorrect();
int /*<<< orphan*/ circBuffer_insertOneItem_headCorrect();
int /*<<< orphan*/ circBuffer_reset_dataCorrect();
int /*<<< orphan*/ circBuffer_resizeWrap_dataCorrect();
int /*<<< orphan*/ printf(char *);
void test_circBuffer_all() {
  printf("================================ Testing Circular Buffer\n");
  circBuffer_insertOneItem_headCorrect();
  circBuffer_appendAllNoWrap_dataCorrect();
  circBuffer_appendAllWrap_dataCorrect();
  circBuffer_resizeWrap_dataCorrect();
  circBuffer_reset_dataCorrect();
  printf(
      "================================ End Circular Buffer Test: Success\n");
}


x86 assembly (clang, -O0):
<test_circBuffer_all>:
push   %rbp
mov    %rsp,%rbp
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1080 <circBuffer_insertOneItem_headCorrect@plt>
mov    $0x0,%al
call   1060 <circBuffer_appendAllNoWrap_dataCorrect@plt>
mov    $0x0,%al
call   1070 <circBuffer_appendAllWrap_dataCorrect@plt>
mov    $0x0,%al
call   1050 <circBuffer_resizeWrap_dataCorrect@plt>
mov    $0x0,%al
call   1040 <circBuffer_reset_dataCorrect@plt>
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_circBuffer_all>:
push   %rax
lea    0xe98(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1080 <circBuffer_insertOneItem_headCorrect@plt>
xor    %eax,%eax
call   1060 <circBuffer_appendAllNoWrap_dataCorrect@plt>
xor    %eax,%eax
call   1070 <circBuffer_appendAllWrap_dataCorrect@plt>
xor    %eax,%eax
call   1050 <circBuffer_resizeWrap_dataCorrect@plt>
xor    %eax,%eax
call   1040 <circBuffer_reset_dataCorrect@plt>
lea    0xea2(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [58 x i8] c"================================ Testing Circular Buffer\0A\00"
@.str.1 = [68 x i8] c"================================ End Circular Buffer Test: Success\0A\00"
define void @test_circBuffer_all() {
%1 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @circBuffer_insertOneItem_headCorrect()
%3 = call i32 (...) @circBuffer_appendAllNoWrap_dataCorrect()
%4 = call i32 (...) @circBuffer_appendAllWrap_dataCorrect()
%5 = call i32 (...) @circBuffer_resizeWrap_dataCorrect()
%6 = call i32 (...) @circBuffer_reset_dataCorrect()
%7 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [57 x i8] c"================================ Testing Circular Buffer\00"
@str.2 = [67 x i8] c"================================ End Circular Buffer Test: Success\00"
define void @test_circBuffer_all() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @circBuffer_insertOneItem_headCorrect()
%3 = tail call i32 (...) @circBuffer_appendAllNoWrap_dataCorrect()
%4 = tail call i32 (...) @circBuffer_appendAllWrap_dataCorrect()
%5 = tail call i32 (...) @circBuffer_resizeWrap_dataCorrect()
%6 = tail call i32 (...) @circBuffer_reset_dataCorrect()
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.2, i64 0, i64 0))
ret void
}