#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*/ debug_dump(char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void debug_dump_all(void) {
  fprintf(stderr, "*** General Symbols ***\n");
  debug_dump("symbols");
  fprintf(stderr, "*** Alphabets ***\n");
  debug_dump("alphabets");
  fprintf(stderr, "*** Events ***\n");
  debug_dump("events");
  fprintf(stderr, "*** Event Queue ***\n");
  debug_dump("queue");
  fprintf(stderr, "*** Event History ***\n");
  debug_dump("history");
}


x86 assembly (clang, -O0):
<debug_dump_all>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
lea    0xed9(%rip),%rdi
call   1040 <debug_dump@plt>
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
lea    0xed3(%rip),%rdi
call   1040 <debug_dump@plt>
mov    0x2e73(%rip),%rax
mov    (%rax),%edi
lea    0xec8(%rip),%rsi
call   1030 <fprintf@plt>
lea    0xecc(%rip),%rdi
call   1040 <debug_dump@plt>
mov    0x2e52(%rip),%rax
mov    (%rax),%edi
lea    0xebe(%rip),%rsi
call   1030 <fprintf@plt>
lea    0xec7(%rip),%rdi
call   1040 <debug_dump@plt>
mov    0x2e31(%rip),%rax
mov    (%rax),%edi
lea    0xeb8(%rip),%rsi
call   1030 <fprintf@plt>
lea    0xec3(%rip),%rdi
call   1040 <debug_dump@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<debug_dump_all>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
lea    0xedc(%rip),%rdi
call   1040 <debug_dump@plt>
mov    (%rbx),%edi
lea    0xed6(%rip),%rsi
call   1030 <fprintf@plt>
lea    0xedd(%rip),%rdi
call   1040 <debug_dump@plt>
mov    (%rbx),%edi
lea    0xed9(%rip),%rsi
call   1030 <fprintf@plt>
lea    0xedd(%rip),%rdi
call   1040 <debug_dump@plt>
mov    (%rbx),%edi
lea    0xed6(%rip),%rsi
call   1030 <fprintf@plt>
lea    0xedf(%rip),%rdi
call   1040 <debug_dump@plt>
mov    (%rbx),%edi
lea    0xed7(%rip),%rsi
call   1030 <fprintf@plt>
lea    0xee2(%rip),%rdi
pop    %rbx
jmp    1040 <debug_dump@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [25 x i8] c"*** General Symbols ***\0A\00"
@.str.1 = [8 x i8] c"symbols\00"
@.str.2 = [19 x i8] c"*** Alphabets ***\0A\00"
@.str.3 = [10 x i8] c"alphabets\00"
@.str.4 = [16 x i8] c"*** Events ***\0A\00"
@.str.5 = [7 x i8] c"events\00"
@.str.6 = [21 x i8] c"*** Event Queue ***\0A\00"
@.str.7 = [6 x i8] c"queue\00"
@.str.8 = [23 x i8] c"*** Event History ***\0A\00"
@.str.9 = [8 x i8] c"history\00"
define void @debug_dump_all() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @debug_dump(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @debug_dump(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @debug_dump(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%12 = call i32 @debug_dump(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 @debug_dump(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [25 x i8] c"*** General Symbols ***\0A\00"
@.str.1 = [8 x i8] c"symbols\00"
@.str.2 = [19 x i8] c"*** Alphabets ***\0A\00"
@.str.3 = [10 x i8] c"alphabets\00"
@.str.4 = [16 x i8] c"*** Events ***\0A\00"
@.str.5 = [7 x i8] c"events\00"
@.str.6 = [21 x i8] c"*** Event Queue ***\0A\00"
@.str.7 = [6 x i8] c"queue\00"
@.str.8 = [23 x i8] c"*** Event History ***\0A\00"
@.str.9 = [8 x i8] c"history\00"
define void @debug_dump_all() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @debug_dump(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @debug_dump(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @debug_dump(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%12 = tail call i32 @debug_dump(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0))
%15 = tail call i32 @debug_dump(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
ret void
}