#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_bcdstring2string();
int /*<<< orphan*/ test_dec2string();
int /*<<< orphan*/ test_hex2string();
int /*<<< orphan*/ test_hex2stringArr();
int /*<<< orphan*/ test_hexArr2stringArr();
int /*<<< orphan*/ test_splitStringBySpace();
int /*<<< orphan*/ test_string2dec();
int /*<<< orphan*/ test_string2hex();
int /*<<< orphan*/ test_stringArr2hexArr();
int /*<<< orphan*/ things_must_know();
int main() {
  printf("Init test");
  test_dec2string();
  test_string2dec();
  test_hex2string();
  test_string2hex();
  test_stringArr2hexArr();
  test_hexArr2stringArr();
  test_splitStringBySpace();
  test_hex2stringArr();
  test_bcdstring2string();
  things_must_know();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe3a(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   10b0 <test_dec2string@plt>
mov    $0x0,%al
call   1070 <test_string2dec@plt>
mov    $0x0,%al
call   1080 <test_hex2string@plt>
mov    $0x0,%al
call   1090 <test_string2hex@plt>
mov    $0x0,%al
call   10d0 <test_stringArr2hexArr@plt>
mov    $0x0,%al
call   10a0 <test_hexArr2stringArr@plt>
mov    $0x0,%al
call   1060 <test_splitStringBySpace@plt>
mov    $0x0,%al
call   1050 <test_hex2stringArr@plt>
mov    $0x0,%al
call   10c0 <test_bcdstring2string@plt>
mov    $0x0,%al
call   1030 <things_must_know@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xe48(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   10b0 <test_dec2string@plt>
xor    %eax,%eax
call   1070 <test_string2dec@plt>
xor    %eax,%eax
call   1080 <test_hex2string@plt>
xor    %eax,%eax
call   1090 <test_string2hex@plt>
xor    %eax,%eax
call   10d0 <test_stringArr2hexArr@plt>
xor    %eax,%eax
call   10a0 <test_hexArr2stringArr@plt>
xor    %eax,%eax
call   1060 <test_splitStringBySpace@plt>
xor    %eax,%eax
call   1050 <test_hex2stringArr@plt>
xor    %eax,%eax
call   10c0 <test_bcdstring2string@plt>
xor    %eax,%eax
call   1030 <things_must_know@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"Init test\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @test_dec2string()
%4 = call i32 (...) @test_string2dec()
%5 = call i32 (...) @test_hex2string()
%6 = call i32 (...) @test_string2hex()
%7 = call i32 (...) @test_stringArr2hexArr()
%8 = call i32 (...) @test_hexArr2stringArr()
%9 = call i32 (...) @test_splitStringBySpace()
%10 = call i32 (...) @test_hex2stringArr()
%11 = call i32 (...) @test_bcdstring2string()
%12 = call i32 (...) @things_must_know()
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"Init test\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @test_dec2string()
%3 = tail call i32 (...) @test_string2dec()
%4 = tail call i32 (...) @test_hex2string()
%5 = tail call i32 (...) @test_string2hex()
%6 = tail call i32 (...) @test_stringArr2hexArr()
%7 = tail call i32 (...) @test_hexArr2stringArr()
%8 = tail call i32 (...) @test_splitStringBySpace()
%9 = tail call i32 (...) @test_hex2stringArr()
%10 = tail call i32 (...) @test_bcdstring2string()
%11 = tail call i32 (...) @things_must_know()
ret i32 0
}