#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*/ printf(char *);
int /*<<< orphan*/ test_addInput();
int /*<<< orphan*/ test_addListener();
int /*<<< orphan*/ test_addState();
int /*<<< orphan*/ test_addTransition();
int /*<<< orphan*/ test_appendEvent();
int /*<<< orphan*/ test_clearTransitionOutput();
int /*<<< orphan*/ test_doTransition();
int /*<<< orphan*/ test_getInputIndex();
int /*<<< orphan*/ test_getNextEvent();
int /*<<< orphan*/ test_getStateIndex();
int /*<<< orphan*/ test_initEvent();
int /*<<< orphan*/ test_initEventQueue();
int /*<<< orphan*/ test_isValidInputID();
int /*<<< orphan*/ test_isValidStateID();
int /*<<< orphan*/ test_isValidTransition();
int /*<<< orphan*/ test_removeInput();
int /*<<< orphan*/ test_removeListener();
int /*<<< orphan*/ test_removeState();
int /*<<< orphan*/ test_removeTransition();
int /*<<< orphan*/ test_removeTransitionAll();
int /*<<< orphan*/ test_sendEvent();
int /*<<< orphan*/ test_setTransitionOutput();
int main(int argc, char **argv) {
  printf("Running tests...\n\n");
  test_getStateIndex();
  test_getInputIndex();
  test_isValidStateID();
  test_isValidInputID();
  test_isValidTransition();
  test_addState();
  test_removeState();
  test_addInput();
  test_removeInput();
  test_addTransition();
  test_removeTransition();
  test_removeTransitionAll();
  test_setTransitionOutput();
  test_clearTransitionOutput();
  test_doTransition();
  test_initEvent();
  test_appendEvent();
  test_getNextEvent();
  test_initEventQueue();
  test_addListener();
  test_removeListener();
  test_sendEvent();
  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)
lea    0xd73(%rip),%rdi
call   10b0 <printf@plt>
mov    $0x0,%al
call   10a0 <test_getStateIndex@plt>
mov    $0x0,%al
call   1170 <test_getInputIndex@plt>
mov    $0x0,%al
call   1030 <test_isValidStateID@plt>
mov    $0x0,%al
call   1160 <test_isValidInputID@plt>
mov    $0x0,%al
call   1060 <test_isValidTransition@plt>
mov    $0x0,%al
call   1190 <test_addState@plt>
mov    $0x0,%al
call   1080 <test_removeState@plt>
mov    $0x0,%al
call   1150 <test_addInput@plt>
mov    $0x0,%al
call   10d0 <test_removeInput@plt>
mov    $0x0,%al
call   10f0 <test_addTransition@plt>
mov    $0x0,%al
call   1090 <test_removeTransition@plt>
mov    $0x0,%al
call   1100 <test_removeTransitionAll@plt>
mov    $0x0,%al
call   1070 <test_setTransitionOutput@plt>
mov    $0x0,%al
call   1040 <test_clearTransitionOutput@plt>
mov    $0x0,%al
call   1130 <test_doTransition@plt>
mov    $0x0,%al
call   1110 <test_initEvent@plt>
mov    $0x0,%al
call   1180 <test_appendEvent@plt>
mov    $0x0,%al
call   10e0 <test_getNextEvent@plt>
mov    $0x0,%al
call   1120 <test_initEventQueue@plt>
mov    $0x0,%al
call   1050 <test_addListener@plt>
mov    $0x0,%al
call   10c0 <test_removeListener@plt>
mov    $0x0,%al
call   1140 <test_sendEvent@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xd88(%rip),%rdi
call   1060 <puts@plt>
xor    %eax,%eax
call   10b0 <test_getStateIndex@plt>
xor    %eax,%eax
call   1170 <test_getInputIndex@plt>
xor    %eax,%eax
call   1030 <test_isValidStateID@plt>
xor    %eax,%eax
call   1160 <test_isValidInputID@plt>
xor    %eax,%eax
call   1070 <test_isValidTransition@plt>
xor    %eax,%eax
call   1190 <test_addState@plt>
xor    %eax,%eax
call   1090 <test_removeState@plt>
xor    %eax,%eax
call   1150 <test_addInput@plt>
xor    %eax,%eax
call   10d0 <test_removeInput@plt>
xor    %eax,%eax
call   10f0 <test_addTransition@plt>
xor    %eax,%eax
call   10a0 <test_removeTransition@plt>
xor    %eax,%eax
call   1100 <test_removeTransitionAll@plt>
xor    %eax,%eax
call   1080 <test_setTransitionOutput@plt>
xor    %eax,%eax
call   1040 <test_clearTransitionOutput@plt>
xor    %eax,%eax
call   1130 <test_doTransition@plt>
xor    %eax,%eax
call   1110 <test_initEvent@plt>
xor    %eax,%eax
call   1180 <test_appendEvent@plt>
xor    %eax,%eax
call   10e0 <test_getNextEvent@plt>
xor    %eax,%eax
call   1120 <test_initEventQueue@plt>
xor    %eax,%eax
call   1050 <test_addListener@plt>
xor    %eax,%eax
call   10c0 <test_removeListener@plt>
xor    %eax,%eax
call   1140 <test_sendEvent@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"Running tests...\0A\0A\00"
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 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (...) @test_getStateIndex()
%8 = call i32 (...) @test_getInputIndex()
%9 = call i32 (...) @test_isValidStateID()
%10 = call i32 (...) @test_isValidInputID()
%11 = call i32 (...) @test_isValidTransition()
%12 = call i32 (...) @test_addState()
%13 = call i32 (...) @test_removeState()
%14 = call i32 (...) @test_addInput()
%15 = call i32 (...) @test_removeInput()
%16 = call i32 (...) @test_addTransition()
%17 = call i32 (...) @test_removeTransition()
%18 = call i32 (...) @test_removeTransitionAll()
%19 = call i32 (...) @test_setTransitionOutput()
%20 = call i32 (...) @test_clearTransitionOutput()
%21 = call i32 (...) @test_doTransition()
%22 = call i32 (...) @test_initEvent()
%23 = call i32 (...) @test_appendEvent()
%24 = call i32 (...) @test_getNextEvent()
%25 = call i32 (...) @test_initEventQueue()
%26 = call i32 (...) @test_addListener()
%27 = call i32 (...) @test_removeListener()
%28 = call i32 (...) @test_sendEvent()
ret i32 0
}

LLVM IR (-O2):
@str = [18 x i8] c"Running tests...\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (...) @test_getStateIndex()
%5 = tail call i32 (...) @test_getInputIndex()
%6 = tail call i32 (...) @test_isValidStateID()
%7 = tail call i32 (...) @test_isValidInputID()
%8 = tail call i32 (...) @test_isValidTransition()
%9 = tail call i32 (...) @test_addState()
%10 = tail call i32 (...) @test_removeState()
%11 = tail call i32 (...) @test_addInput()
%12 = tail call i32 (...) @test_removeInput()
%13 = tail call i32 (...) @test_addTransition()
%14 = tail call i32 (...) @test_removeTransition()
%15 = tail call i32 (...) @test_removeTransitionAll()
%16 = tail call i32 (...) @test_setTransitionOutput()
%17 = tail call i32 (...) @test_clearTransitionOutput()
%18 = tail call i32 (...) @test_doTransition()
%19 = tail call i32 (...) @test_initEvent()
%20 = tail call i32 (...) @test_appendEvent()
%21 = tail call i32 (...) @test_getNextEvent()
%22 = tail call i32 (...) @test_initEventQueue()
%23 = tail call i32 (...) @test_addListener()
%24 = tail call i32 (...) @test_removeListener()
%25 = tail call i32 (...) @test_sendEvent()
ret i32 0
}