#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 application_unregister(char *);
int unload_module() {
  int ret = 0;
  ret |= application_unregister("Help");
  ret |= application_unregister("Get");
  ret |= application_unregister("Set");
  ret |= application_unregister("Broadcast");
  return ret;
}


x86 assembly (clang, -O0):
<unload_module>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <application_unregister@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <application_unregister@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
lea    0xebf(%rip),%rdi
call   1030 <application_unregister@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
lea    0xeb1(%rip),%rdi
call   1030 <application_unregister@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unload_module>:
push   %rbp
push   %rbx
push   %rax
lea    0xee6(%rip),%rdi
call   1030 <application_unregister@plt>
mov    %eax,%ebx
lea    0xedd(%rip),%rdi
call   1030 <application_unregister@plt>
mov    %eax,%ebp
or     %ebx,%ebp
lea    0xed1(%rip),%rdi
call   1030 <application_unregister@plt>
mov    %eax,%ebx
lea    0xec7(%rip),%rdi
call   1030 <application_unregister@plt>
or     %ebx,%eax
or     %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"Help\00"
@.str.1 = [4 x i8] c"Get\00"
@.str.2 = [4 x i8] c"Set\00"
@.str.3 = [10 x i8] c"Broadcast\00"
define i32 @unload_module() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @application_unregister(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
%4 = or i32 %3, %2
store i32 %4, i32* %1
%5 = call i32 @application_unregister(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* %1
%7 = or i32 %6, %5
store i32 %7, i32* %1
%8 = call i32 @application_unregister(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* %1
%10 = or i32 %9, %8
store i32 %10, i32* %1
%11 = call i32 @application_unregister(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%12 = load i32, i32* %1
%13 = or i32 %12, %11
store i32 %13, i32* %1
%14 = load i32, i32* %1
ret i32 %14
}

LLVM IR (-O2):
@.str = [5 x i8] c"Help\00"
@.str.1 = [4 x i8] c"Get\00"
@.str.2 = [4 x i8] c"Set\00"
@.str.3 = [10 x i8] c"Broadcast\00"
define i32 @unload_module() {
%1 = tail call i32 @application_unregister(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @application_unregister(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = or i32 %2, %1
%4 = tail call i32 @application_unregister(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%5 = or i32 %3, %4
%6 = tail call i32 @application_unregister(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%7 = or i32 %5, %6
ret i32 %7
}