#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 S_IROTH;
int S_IRWXG;
int S_IRWXU;
int S_IXOTH;
int /*<<< orphan*/ mkdir(char *, int);
int execute_mkdir() {
  mkdir("syscalls_dir", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
  mkdir("syscalls_dir", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
  return 0;
}


x86 assembly (clang, -O0):
<execute_mkdir>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%esi
mov    0x2eb4(%rip),%rax
or     (%rax),%esi
mov    0x2e9b(%rip),%rax
or     (%rax),%esi
mov    0x2eaa(%rip),%rax
or     (%rax),%esi
lea    0xec1(%rip),%rdi
call   1030 <mkdir@plt>
mov    0x2e9d(%rip),%rax
mov    (%rax),%esi
mov    0x2e84(%rip),%rax
or     (%rax),%esi
mov    0x2e6b(%rip),%rax
or     (%rax),%esi
mov    0x2e7a(%rip),%rax
or     (%rax),%esi
lea    0xe91(%rip),%rdi
call   1030 <mkdir@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<execute_mkdir>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    0x2ec8(%rip),%r14
mov    0x2eb1(%rip),%r15
mov    (%r15),%esi
or     (%r14),%esi
mov    0x2e94(%rip),%r12
or     (%r12),%esi
mov    0x2ea1(%rip),%r13
or     0x0(%r13),%esi
lea    0xeb6(%rip),%rbx
mov    %rbx,%rdi
call   1030 <mkdir@plt>
mov    (%r15),%esi
or     (%r14),%esi
or     (%r12),%esi
or     0x0(%r13),%esi
mov    %rbx,%rdi
call   1030 <mkdir@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [13 x i8] c"syscalls_dir\00"
@S_IRWXU = global i32 0
@S_IRWXG = global i32 0
@S_IROTH = global i32 0
@S_IXOTH = global i32 0
define i32 @execute_mkdir() {
%1 = load i32, i32* @S_IRWXU
%2 = load i32, i32* @S_IRWXG
%3 = or i32 %1, %2
%4 = load i32, i32* @S_IROTH
%5 = or i32 %3, %4
%6 = load i32, i32* @S_IXOTH
%7 = or i32 %5, %6
%8 = call i32 @mkdir(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @S_IRWXU
%10 = load i32, i32* @S_IRWXG
%11 = or i32 %9, %10
%12 = load i32, i32* @S_IROTH
%13 = or i32 %11, %12
%14 = load i32, i32* @S_IXOTH
%15 = or i32 %13, %14
%16 = call i32 @mkdir(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %15)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"syscalls_dir\00"
@S_IRWXU = global i32 0
@S_IRWXG = global i32 0
@S_IROTH = global i32 0
@S_IXOTH = global i32 0
define i32 @execute_mkdir() {
%1 = load i32, i32* @S_IRWXU
%2 = load i32, i32* @S_IRWXG
%3 = or i32 %2, %1
%4 = load i32, i32* @S_IROTH
%5 = or i32 %3, %4
%6 = load i32, i32* @S_IXOTH
%7 = or i32 %5, %6
%8 = tail call i32 @mkdir(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @S_IRWXU
%10 = load i32, i32* @S_IRWXG
%11 = or i32 %10, %9
%12 = load i32, i32* @S_IROTH
%13 = or i32 %11, %12
%14 = load i32, i32* @S_IXOTH
%15 = or i32 %13, %14
%16 = tail call i32 @mkdir(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %15)
ret i32 0
}