#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 EPOLLERR;
int EPOLLHUP;
int EPOLLIN;
int EPOLLOUT;
int EPOLLPRI;
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  printf("EPOLLIN=%d\n", EPOLLIN);
  printf("EPOLLOUT=%d\n", EPOLLOUT);
  printf("EPOLLPRI=%d\n", EPOLLPRI);
  printf("EPOLLERR=%d\n", EPOLLERR);
  printf("EPOLLHUP=%d\n", EPOLLHUP);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%esi
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e8d(%rip),%rax
mov    (%rax),%esi
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%esi
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%esi
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e46(%rip),%rax
mov    (%rax),%esi
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%esi
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
mov    0x2eae(%rip),%rax
mov    (%rax),%esi
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e79(%rip),%rax
mov    (%rax),%esi
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e54(%rip),%rax
mov    (%rax),%esi
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"EPOLLIN=%d\0A\00"
@EPOLLIN = global i32 0
@.str.1 = [13 x i8] c"EPOLLOUT=%d\0A\00"
@EPOLLOUT = global i32 0
@.str.2 = [13 x i8] c"EPOLLPRI=%d\0A\00"
@EPOLLPRI = global i32 0
@.str.3 = [13 x i8] c"EPOLLERR=%d\0A\00"
@EPOLLERR = global i32 0
@.str.4 = [13 x i8] c"EPOLLHUP=%d\0A\00"
@EPOLLHUP = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @EPOLLIN
%3 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = load i32, i32* @EPOLLOUT
%5 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @EPOLLPRI
%7 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @EPOLLERR
%9 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @EPOLLHUP
%11 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %10)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"EPOLLIN=%d\0A\00"
@EPOLLIN = global i32 0
@.str.1 = [13 x i8] c"EPOLLOUT=%d\0A\00"
@EPOLLOUT = global i32 0
@.str.2 = [13 x i8] c"EPOLLPRI=%d\0A\00"
@EPOLLPRI = global i32 0
@.str.3 = [13 x i8] c"EPOLLERR=%d\0A\00"
@EPOLLERR = global i32 0
@.str.4 = [13 x i8] c"EPOLLHUP=%d\0A\00"
@EPOLLHUP = global i32 0
define i32 @main() {
%1 = load i32, i32* @EPOLLIN
%2 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @EPOLLOUT
%4 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @EPOLLPRI
%6 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @EPOLLERR
%8 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @EPOLLHUP
%10 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %9)
ret i32 0
}