#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 RTLD_GLOBAL;
int RTLD_LAZY;
int RTLD_LOCAL;
int RTLD_NOW;
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char *argv[]) {
  printf("RTLD_LAZY == %d\n", RTLD_LAZY);
  printf("RTLD_NOW == %d\n", RTLD_NOW);
  printf("RTLD_GLOBAL == %d\n", RTLD_GLOBAL);
  printf("RTLD_LOCAL == %d\n", RTLD_LOCAL);
  printf("RTLD_LAZY | RTLD_GLOBAL == %d\n", RTLD_LAZY | RTLD_GLOBAL);
  printf("RTLD_LAZY | RTLD_LOCAL == %d\n", RTLD_LAZY | RTLD_LOCAL);
  printf("RTLD_NOW | RTLD_GLOBAL == %d\n", RTLD_NOW | RTLD_GLOBAL);
  printf("(RTLD_LAZY | RTLD_GLOBAL) & 255 == %d\n",
         (RTLD_LAZY | RTLD_GLOBAL) & 255);
  printf("(RTLD_NOW | RTLD_GLOBAL) & 255 == %d\n",
         (RTLD_NOW | RTLD_GLOBAL) & 255);
  printf("1 | 2 == %d\n", 1 | 2);
  printf("1 | 255 == %d\n", 1 | 255);
  printf("1 | 256 | 512 == %d\n", 1 | 256 | 512);
  printf("768^512 == %d\n", 768 ^ 512);
  printf("sizeof(int) == %d\n", sizeof(int));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2ea3(%rip),%rax
mov    (%rax),%esi
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e9e(%rip),%rax
mov    (%rax),%esi
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%esi
lea    0xf09(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e54(%rip),%rax
mov    (%rax),%esi
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e4f(%rip),%rax
mov    (%rax),%esi
mov    0x2e5e(%rip),%rax
or     (%rax),%esi
lea    0xe8e(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e31(%rip),%rax
mov    (%rax),%esi
mov    0x2e18(%rip),%rax
or     (%rax),%esi
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e23(%rip),%rax
mov    (%rax),%esi
mov    0x2e22(%rip),%rax
or     (%rax),%esi
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
mov    0x2df5(%rip),%rax
mov    (%rax),%esi
mov    0x2e04(%rip),%rax
or     (%rax),%esi
and    $0xff,%esi
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
mov    0x2de1(%rip),%rax
mov    (%rax),%esi
mov    0x2de0(%rip),%rax
or     (%rax),%esi
and    $0xff,%esi
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
lea    0xea6(%rip),%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
lea    0xea2(%rip),%rdi
mov    $0xff,%esi
call   1030 <printf@plt>
lea    0xea0(%rip),%rdi
mov    $0x301,%esi
call   1030 <printf@plt>
lea    0xea4(%rip),%rdi
mov    $0x100,%esi
call   1030 <printf@plt>
lea    0xea2(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    0x2eb1(%rip),%r15
mov    (%r15),%esi
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
mov    0x2eab(%rip),%r14
mov    (%r14),%esi
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e9d(%rip),%rbx
mov    (%rbx),%esi
lea    0xf15(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e60(%rip),%r12
mov    (%r12),%esi
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%esi
or     (%r15),%esi
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
mov    (%r12),%esi
or     (%r15),%esi
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%esi
or     (%r14),%esi
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
movzbl (%r15),%eax
movzbl (%rbx),%esi
or     %eax,%esi
lea    0xec7(%rip),%rdi
call   1030 <printf@plt>
movzbl (%r14),%eax
movzbl (%rbx),%esi
or     %eax,%esi
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0xff,%esi
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x301,%esi
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
mov    $0x100,%esi
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [17 x i8] c"RTLD_LAZY == %d\0A\00"
@RTLD_LAZY = global i32 0
@.str.1 = [16 x i8] c"RTLD_NOW == %d\0A\00"
@RTLD_NOW = global i32 0
@.str.2 = [19 x i8] c"RTLD_GLOBAL == %d\0A\00"
@RTLD_GLOBAL = global i32 0
@.str.3 = [18 x i8] c"RTLD_LOCAL == %d\0A\00"
@RTLD_LOCAL = global i32 0
@.str.4 = [31 x i8] c"RTLD_LAZY | RTLD_GLOBAL == %d\0A\00"
@.str.5 = [30 x i8] c"RTLD_LAZY | RTLD_LOCAL == %d\0A\00"
@.str.6 = [30 x i8] c"RTLD_NOW | RTLD_GLOBAL == %d\0A\00"
@.str.7 = [39 x i8] c"(RTLD_LAZY | RTLD_GLOBAL) & 255 == %d\0A\00"
@.str.8 = [38 x i8] c"(RTLD_NOW | RTLD_GLOBAL) & 255 == %d\0A\00"
@.str.9 = [13 x i8] c"1 | 2 == %d\0A\00"
@.str.10 = [15 x i8] c"1 | 255 == %d\0A\00"
@.str.11 = [21 x i8] c"1 | 256 | 512 == %d\0A\00"
@.str.12 = [15 x i8] c"768^512 == %d\0A\00"
@.str.13 = [19 x i8] c"sizeof(int) == %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* @RTLD_LAZY
%7 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @RTLD_NOW
%9 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @RTLD_GLOBAL
%11 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @RTLD_LOCAL
%13 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @RTLD_LAZY
%15 = load i32, i32* @RTLD_GLOBAL
%16 = or i32 %14, %15
%17 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @RTLD_LAZY
%19 = load i32, i32* @RTLD_LOCAL
%20 = or i32 %18, %19
%21 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %20)
%22 = load i32, i32* @RTLD_NOW
%23 = load i32, i32* @RTLD_GLOBAL
%24 = or i32 %22, %23
%25 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i32 %24)
%26 = load i32, i32* @RTLD_LAZY
%27 = load i32, i32* @RTLD_GLOBAL
%28 = or i32 %26, %27
%29 = and i32 %28, 255
%30 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0), i32 %29)
%31 = load i32, i32* @RTLD_NOW
%32 = load i32, i32* @RTLD_GLOBAL
%33 = or i32 %31, %32
%34 = and i32 %33, 255
%35 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32 %34)
%36 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 3)
%37 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 255)
%38 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 769)
%39 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32 256)
%40 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), i32 4)
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"RTLD_LAZY == %d\0A\00"
@RTLD_LAZY = global i32 0
@.str.1 = [16 x i8] c"RTLD_NOW == %d\0A\00"
@RTLD_NOW = global i32 0
@.str.2 = [19 x i8] c"RTLD_GLOBAL == %d\0A\00"
@RTLD_GLOBAL = global i32 0
@.str.3 = [18 x i8] c"RTLD_LOCAL == %d\0A\00"
@RTLD_LOCAL = global i32 0
@.str.4 = [31 x i8] c"RTLD_LAZY | RTLD_GLOBAL == %d\0A\00"
@.str.5 = [30 x i8] c"RTLD_LAZY | RTLD_LOCAL == %d\0A\00"
@.str.6 = [30 x i8] c"RTLD_NOW | RTLD_GLOBAL == %d\0A\00"
@.str.7 = [39 x i8] c"(RTLD_LAZY | RTLD_GLOBAL) & 255 == %d\0A\00"
@.str.8 = [38 x i8] c"(RTLD_NOW | RTLD_GLOBAL) & 255 == %d\0A\00"
@.str.9 = [13 x i8] c"1 | 2 == %d\0A\00"
@.str.10 = [15 x i8] c"1 | 255 == %d\0A\00"
@.str.11 = [21 x i8] c"1 | 256 | 512 == %d\0A\00"
@.str.12 = [15 x i8] c"768^512 == %d\0A\00"
@.str.13 = [19 x i8] c"sizeof(int) == %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @RTLD_LAZY
%4 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @RTLD_NOW
%6 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @RTLD_GLOBAL
%8 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @RTLD_LOCAL
%10 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @RTLD_LAZY
%12 = load i32, i32* @RTLD_GLOBAL
%13 = or i32 %12, %11
%14 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @RTLD_LAZY
%16 = load i32, i32* @RTLD_LOCAL
%17 = or i32 %16, %15
%18 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @RTLD_NOW
%20 = load i32, i32* @RTLD_GLOBAL
%21 = or i32 %20, %19
%22 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @RTLD_LAZY
%24 = load i32, i32* @RTLD_GLOBAL
%25 = or i32 %24, %23
%26 = and i32 %25, 255
%27 = tail call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0), i32 %26)
%28 = load i32, i32* @RTLD_NOW
%29 = load i32, i32* @RTLD_GLOBAL
%30 = or i32 %29, %28
%31 = and i32 %30, 255
%32 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32 %31)
%33 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 3)
%34 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 255)
%35 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 769)
%36 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32 256)
%37 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), i32 4)
ret i32 0
}