#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*/ NewSystemHandler(void *, char *, char *, char *, int);
void CreateSystemHandlers(void *theEnv) {
  NewSystemHandler(theEnv, "USER", "init", "init-slots", 0);
  NewSystemHandler(theEnv, "USER", "delete", "delete-instance", 0);
  NewSystemHandler(theEnv, "USER", "create", "(create-instance)", 0);
  NewSystemHandler(theEnv, "USER", "print", "ppinstance", 0);
  NewSystemHandler(theEnv, "USER", "direct-modify", "(direct-modify)", 1);
  NewSystemHandler(theEnv, "USER", "message-modify", "(message-modify)", 1);
  NewSystemHandler(theEnv, "USER", "direct-duplicate", "(direct-duplicate)", 2);
  NewSystemHandler(theEnv, "USER", "message-duplicate", "(message-duplicate)",
                   2);
}


x86 assembly (clang, -O0):
<CreateSystemHandlers>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
lea    0xed7(%rip),%rdx
lea    0xed5(%rip),%rcx
xor    %r8d,%r8d
call   1030 <NewSystemHandler@plt>
mov    -0x8(%rbp),%rdi
lea    0xeb8(%rip),%rsi
lea    0xec6(%rip),%rdx
lea    0xec6(%rip),%rcx
xor    %r8d,%r8d
call   1030 <NewSystemHandler@plt>
mov    -0x8(%rbp),%rdi
lea    0xe97(%rip),%rsi
lea    0xebc(%rip),%rdx
lea    0xebc(%rip),%rcx
xor    %r8d,%r8d
call   1030 <NewSystemHandler@plt>
mov    -0x8(%rbp),%rdi
lea    0xe76(%rip),%rsi
lea    0xeb4(%rip),%rdx
lea    0xeb3(%rip),%rcx
xor    %r8d,%r8d
call   1030 <NewSystemHandler@plt>
mov    -0x8(%rbp),%rdi
lea    0xe55(%rip),%rsi
lea    0xea4(%rip),%rdx
lea    0xeab(%rip),%rcx
mov    $0x1,%r8d
call   1030 <NewSystemHandler@plt>
mov    -0x8(%rbp),%rdi
lea    0xe31(%rip),%rsi
lea    0xe9e(%rip),%rdx
lea    0xea6(%rip),%rcx
mov    $0x1,%r8d
call   1030 <NewSystemHandler@plt>
mov    -0x8(%rbp),%rdi
lea    0xe0d(%rip),%rsi
lea    0xe9a(%rip),%rdx
lea    0xea4(%rip),%rcx
mov    $0x2,%r8d
call   1030 <NewSystemHandler@plt>
mov    -0x8(%rbp),%rdi
lea    0xde9(%rip),%rsi
lea    0xe9a(%rip),%rdx
lea    0xea5(%rip),%rcx
mov    $0x2,%r8d
call   1030 <NewSystemHandler@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CreateSystemHandlers>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee2(%rip),%r14
lea    0xee0(%rip),%rdx
lea    0xede(%rip),%rcx
mov    %r14,%rsi
xor    %r8d,%r8d
call   1030 <NewSystemHandler@plt>
lea    0xed7(%rip),%rdx
lea    0xed7(%rip),%rcx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %r8d,%r8d
call   1030 <NewSystemHandler@plt>
lea    0xed2(%rip),%rdx
lea    0xed2(%rip),%rcx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %r8d,%r8d
call   1030 <NewSystemHandler@plt>
lea    0xecf(%rip),%rdx
lea    0xece(%rip),%rcx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %r8d,%r8d
call   1030 <NewSystemHandler@plt>
lea    0xec4(%rip),%rdx
lea    0xecb(%rip),%rcx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x1,%r8d
call   1030 <NewSystemHandler@plt>
lea    0xec3(%rip),%rdx
lea    0xecb(%rip),%rcx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x1,%r8d
call   1030 <NewSystemHandler@plt>
lea    0xec4(%rip),%rdx
lea    0xece(%rip),%rcx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x2,%r8d
call   1030 <NewSystemHandler@plt>
lea    0xec9(%rip),%rdx
lea    0xed4(%rip),%rcx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x2,%r8d
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <NewSystemHandler@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"USER\00"
@.str.1 = [5 x i8] c"init\00"
@.str.2 = [11 x i8] c"init-slots\00"
@.str.3 = [7 x i8] c"delete\00"
@.str.4 = [16 x i8] c"delete-instance\00"
@.str.5 = [7 x i8] c"create\00"
@.str.6 = [18 x i8] c"(create-instance)\00"
@.str.7 = [6 x i8] c"print\00"
@.str.8 = [11 x i8] c"ppinstance\00"
@.str.9 = [14 x i8] c"direct-modify\00"
@.str.10 = [16 x i8] c"(direct-modify)\00"
@.str.11 = [15 x i8] c"message-modify\00"
@.str.12 = [17 x i8] c"(message-modify)\00"
@.str.13 = [17 x i8] c"direct-duplicate\00"
@.str.14 = [19 x i8] c"(direct-duplicate)\00"
@.str.15 = [18 x i8] c"message-duplicate\00"
@.str.16 = [20 x i8] c"(message-duplicate)\00"
define void @CreateSystemHandlers(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @NewSystemHandler(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 0)
%5 = load i8*, i8** %2
%6 = call i32 @NewSystemHandler(i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 0)
%7 = load i8*, i8** %2
%8 = call i32 @NewSystemHandler(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 0)
%9 = load i8*, i8** %2
%10 = call i32 @NewSystemHandler(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i32 0)
%11 = load i8*, i8** %2
%12 = call i32 @NewSystemHandler(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 1)
%13 = load i8*, i8** %2
%14 = call i32 @NewSystemHandler(i8* %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i32 1)
%15 = load i8*, i8** %2
%16 = call i32 @NewSystemHandler(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), i32 2)
%17 = load i8*, i8** %2
%18 = call i32 @NewSystemHandler(i8* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0), i32 2)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"USER\00"
@.str.1 = [5 x i8] c"init\00"
@.str.2 = [11 x i8] c"init-slots\00"
@.str.3 = [7 x i8] c"delete\00"
@.str.4 = [16 x i8] c"delete-instance\00"
@.str.5 = [7 x i8] c"create\00"
@.str.6 = [18 x i8] c"(create-instance)\00"
@.str.7 = [6 x i8] c"print\00"
@.str.8 = [11 x i8] c"ppinstance\00"
@.str.9 = [14 x i8] c"direct-modify\00"
@.str.10 = [16 x i8] c"(direct-modify)\00"
@.str.11 = [15 x i8] c"message-modify\00"
@.str.12 = [17 x i8] c"(message-modify)\00"
@.str.13 = [17 x i8] c"direct-duplicate\00"
@.str.14 = [19 x i8] c"(direct-duplicate)\00"
@.str.15 = [18 x i8] c"message-duplicate\00"
@.str.16 = [20 x i8] c"(message-duplicate)\00"
define void @CreateSystemHandlers(i8* %0) {
%2 = tail call i32 @NewSystemHandler(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 0)
%3 = tail call i32 @NewSystemHandler(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 0)
%4 = tail call i32 @NewSystemHandler(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 0)
%5 = tail call i32 @NewSystemHandler(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i32 0)
%6 = tail call i32 @NewSystemHandler(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 1)
%7 = tail call i32 @NewSystemHandler(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i32 1)
%8 = tail call i32 @NewSystemHandler(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), i32 2)
%9 = tail call i32 @NewSystemHandler(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0), i32 2)
ret void
}