#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*/ _dbg_register(int, char *);
int /*<<< orphan*/ err_set_program_name(char const *);
int /*<<< orphan*/ tim_start(char *);
void maa_init(const char *programName) {
  tim_start("total");
  err_set_program_name(programName);
  _dbg_register((3 << 30 | 1 << 29), ".memory");
  _dbg_register((3 << 30 | 1 << 28), ".time");
  _dbg_register((3 << 30 | 1 << 27), ".pr");
  _dbg_register((3 << 30 | 1 << 26), ".sl");
  _dbg_register((3 << 30 | 1 << 24), ".src");
  _dbg_register((3 << 30 | 1 << 25), ".parse");
}


x86 assembly (clang, -O0):
<maa_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xebd(%rip),%rdi
call   1050 <tim_start@plt>
mov    -0x8(%rbp),%rdi
call   1040 <err_set_program_name@plt>
mov    $0xe0000000,%edi
lea    0xea9(%rip),%rsi
call   1030 <_dbg_register@plt>
mov    $0xd0000000,%edi
lea    0xea0(%rip),%rsi
call   1030 <_dbg_register@plt>
mov    $0xc8000000,%edi
lea    0xe95(%rip),%rsi
call   1030 <_dbg_register@plt>
mov    $0xc4000000,%edi
lea    0xe88(%rip),%rsi
call   1030 <_dbg_register@plt>
mov    $0xc1000000,%edi
lea    0xe7b(%rip),%rsi
call   1030 <_dbg_register@plt>
mov    $0xc2000000,%edi
lea    0xe6f(%rip),%rsi
call   1030 <_dbg_register@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<maa_init>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rdi
call   1050 <tim_start@plt>
mov    %rbx,%rdi
call   1040 <err_set_program_name@plt>
lea    0xeb7(%rip),%rsi
mov    $0xe0000000,%edi
call   1030 <_dbg_register@plt>
lea    0xeae(%rip),%rsi
mov    $0xd0000000,%edi
call   1030 <_dbg_register@plt>
lea    0xea3(%rip),%rsi
mov    $0xc8000000,%edi
call   1030 <_dbg_register@plt>
lea    0xe96(%rip),%rsi
mov    $0xc4000000,%edi
call   1030 <_dbg_register@plt>
lea    0xe89(%rip),%rsi
mov    $0xc1000000,%edi
call   1030 <_dbg_register@plt>
lea    0xe7d(%rip),%rsi
mov    $0xc2000000,%edi
pop    %rbx
jmp    1030 <_dbg_register@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"total\00"
@.str.1 = [8 x i8] c".memory\00"
@.str.2 = [6 x i8] c".time\00"
@.str.3 = [4 x i8] c".pr\00"
@.str.4 = [4 x i8] c".sl\00"
@.str.5 = [5 x i8] c".src\00"
@.str.6 = [7 x i8] c".parse\00"
define void @maa_init(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @tim_start(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 @err_set_program_name(i8* %4)
%6 = call i32 @_dbg_register(i32 -536870912, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @_dbg_register(i32 -805306368, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @_dbg_register(i32 -939524096, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @_dbg_register(i32 -1006632960, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @_dbg_register(i32 -1056964608, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 @_dbg_register(i32 -1040187392, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"total\00"
@.str.1 = [8 x i8] c".memory\00"
@.str.2 = [6 x i8] c".time\00"
@.str.3 = [4 x i8] c".pr\00"
@.str.4 = [4 x i8] c".sl\00"
@.str.5 = [5 x i8] c".src\00"
@.str.6 = [7 x i8] c".parse\00"
define void @maa_init(i8* %0) {
%2 = tail call i32 @tim_start(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @err_set_program_name(i8* %0)
%4 = tail call i32 @_dbg_register(i32 -536870912, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @_dbg_register(i32 -805306368, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @_dbg_register(i32 -939524096, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @_dbg_register(i32 -1006632960, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @_dbg_register(i32 -1056964608, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 @_dbg_register(i32 -1040187392, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
ret void
}