#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*/ section(char *);
int /*<<< orphan*/ separate(int /*<<< orphan*/ *);
int /*<<< orphan*/ test_base64();
int /*<<< orphan*/ test_dynmem();
int /*<<< orphan*/ test_dynmem_init();
int /*<<< orphan*/ test_hashmap();
int /*<<< orphan*/ test_xlowpan();
int main(int argc, char *argv[]) {
  int i;
  section("base64");
  test_base64();
  section("dynmem");
  test_dynmem_init();
  for (i = 0; i < 3; ++i) {
    separate(NULL);
    test_dynmem();
  }
  section("hashmap");
  test_hashmap();
  section("xlowpan");
  test_xlowpan();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe73(%rip),%rdi
call   1080 <section@plt>
mov    $0x0,%al
call   1070 <test_base64@plt>
lea    0xe67(%rip),%rdi
call   1080 <section@plt>
mov    $0x0,%al
call   1030 <test_dynmem_init@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    11db <main+0x6b>
xor    %eax,%eax
mov    %eax,%edi
call   1050 <separate@plt>
mov    $0x0,%al
call   1040 <test_dynmem@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11b3 <main+0x43>
lea    0xe2c(%rip),%rdi
call   1080 <section@plt>
mov    $0x0,%al
call   1090 <test_hashmap@plt>
lea    0xe21(%rip),%rdi
call   1080 <section@plt>
mov    $0x0,%al
call   1060 <test_xlowpan@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xe88(%rip),%rdi
call   1080 <section@plt>
xor    %eax,%eax
call   1070 <test_base64@plt>
lea    0xe7c(%rip),%rdi
call   1080 <section@plt>
xor    %eax,%eax
call   1030 <test_dynmem_init@plt>
xor    %edi,%edi
call   1050 <separate@plt>
xor    %eax,%eax
call   1040 <test_dynmem@plt>
xor    %edi,%edi
call   1050 <separate@plt>
xor    %eax,%eax
call   1040 <test_dynmem@plt>
xor    %edi,%edi
call   1050 <separate@plt>
xor    %eax,%eax
call   1040 <test_dynmem@plt>
lea    0xe46(%rip),%rdi
call   1080 <section@plt>
xor    %eax,%eax
call   1090 <test_hashmap@plt>
lea    0xe3b(%rip),%rdi
call   1080 <section@plt>
xor    %eax,%eax
call   1060 <test_xlowpan@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"base64\00"
@.str.1 = [7 x i8] c"dynmem\00"
@.str.2 = [8 x i8] c"hashmap\00"
@.str.3 = [8 x i8] c"xlowpan\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 @section(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (...) @test_base64()
%9 = call i32 @section(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (...) @test_dynmem_init()
store i32 0, i32* %6
br label %11
11: ; preds = %17, %2
%12 = load i32, i32* %6
%13 = icmp slt i32 %12, 3
br i1 %13, label %14, label %20
14: ; preds = %11
%15 = call i32 @separate(i32* null)
%16 = call i32 (...) @test_dynmem()
br label %17
17: ; preds = %14
%18 = load i32, i32* %6
%19 = add nsw i32 %18, 1
store i32 %19, i32* %6
br label %11
20: ; preds = %11
%21 = call i32 @section(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 (...) @test_hashmap()
%23 = call i32 @section(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%24 = call i32 (...) @test_xlowpan()
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"base64\00"
@.str.1 = [7 x i8] c"dynmem\00"
@.str.2 = [8 x i8] c"hashmap\00"
@.str.3 = [8 x i8] c"xlowpan\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @section(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 (...) @test_base64()
%5 = tail call i32 @section(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 (...) @test_dynmem_init()
%7 = tail call i32 @separate(i32* null)
%8 = tail call i32 (...) @test_dynmem()
%9 = tail call i32 @separate(i32* null)
%10 = tail call i32 (...) @test_dynmem()
%11 = tail call i32 @separate(i32* null)
%12 = tail call i32 (...) @test_dynmem()
%13 = tail call i32 @section(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%14 = tail call i32 (...) @test_hashmap()
%15 = tail call i32 @section(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%16 = tail call i32 (...) @test_xlowpan()
ret i32 0
}