#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 */
struct stat {
  int st_mode;
};

/* Variables and functions */
int S_IRGRP;
int S_IROTH;
int S_IRUSR;
int S_IWGRP;
int S_IWOTH;
int S_IWUSR;
int S_IXGRP;
int S_IXOTH;
int S_IXUSR;
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, char const *const, ...);
int /*<<< orphan*/ stat(char const *const, struct stat *);
int main(int argc, char *argv[]) {
  const char *const filename = argv[1];
  struct stat buf;
  stat(filename, &buf);
  printf("The permission mode of %s is %o.\n", filename, buf.st_mode);
  char *perm = (char *)malloc(11);
  int len = 0;
  perm[len] = '-';
  if (buf.st_mode & S_IRUSR)
    perm[++len] = 'r';
  else
    perm[++len] = '-';
  if (buf.st_mode & S_IWUSR)
    perm[++len] = 'w';
  else
    perm[++len] = '-';
  if (buf.st_mode & S_IXUSR)
    perm[++len] = 'x';
  else
    perm[++len] = '-';
  if (buf.st_mode & S_IRGRP)
    perm[++len] = 'r';
  else
    perm[++len] = '-';
  if (buf.st_mode & S_IWGRP)
    perm[++len] = 'w';
  else
    perm[++len] = '-';
  if (buf.st_mode & S_IXGRP)
    perm[++len] = 'x';
  else
    perm[++len] = '-';
  if (buf.st_mode & S_IROTH)
    perm[++len] = 'r';
  else
    perm[++len] = '-';
  if (buf.st_mode & S_IWOTH)
    perm[++len] = 'w';
  else
    perm[++len] = '-';
  if (buf.st_mode & S_IXOTH)
    perm[++len] = 'x';
  else
    perm[++len] = '-';
  perm[++len] = '\0';
  printf("mock the ls print: %s.\n", perm);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1040 <stat@plt>
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xb,%edi
call   1050 <malloc@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
mov    0x2e09(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11c3 <main+0x93>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x72,(%rax,%rcx,1)
jmp    11d7 <main+0xa7>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
mov    0x2def(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1205 <main+0xd5>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x77,(%rax,%rcx,1)
jmp    1219 <main+0xe9>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
mov    0x2dbd(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1247 <main+0x117>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x78,(%rax,%rcx,1)
jmp    125b <main+0x12b>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
mov    0x2d53(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1289 <main+0x159>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x72,(%rax,%rcx,1)
jmp    129d <main+0x16d>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
mov    0x2d31(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12cb <main+0x19b>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x77,(%rax,%rcx,1)
jmp    12df <main+0x1af>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
mov    0x2cdf(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     130d <main+0x1dd>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x78,(%rax,%rcx,1)
jmp    1321 <main+0x1f1>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
mov    0x2c85(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     134f <main+0x21f>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x72,(%rax,%rcx,1)
jmp    1363 <main+0x233>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
mov    0x2c2b(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1391 <main+0x261>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x77,(%rax,%rcx,1)
jmp    13a5 <main+0x275>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
mov    0x2c39(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     13d3 <main+0x2a3>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x78,(%rax,%rcx,1)
jmp    13e7 <main+0x2b7>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x28(%rbp),%rsi
lea    0xc1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    0x8(%rsi),%r14
mov    %rsp,%rsi
mov    %r14,%rdi
call   1040 <stat@plt>
mov    (%rsp),%ebx
lea    0xeb3(%rip),%rdi
mov    %r14,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0xb,%edi
call   1050 <malloc@plt>
movb   $0x2d,(%rax)
mov    0x2e3b(%rip),%rcx
mov    (%rcx),%ecx
and    %ebx,%ecx
mov    $0x2d,%r8d
mov    $0x72,%edx
cmove  %r8d,%edx
mov    %dl,0x1(%rax)
mov    0x2e46(%rip),%rdx
mov    (%rdx),%edx
and    %ebx,%edx
mov    $0x77,%edx
cmove  %r8d,%edx
mov    %dl,0x2(%rax)
mov    0x2e3f(%rip),%rdx
mov    (%rdx),%edx
and    %ebx,%edx
mov    $0x78,%esi
cmove  %r8d,%esi
mov    $0x72,%edx
mov    %sil,0x3(%rax)
mov    0x2dfa(%rip),%rsi
mov    (%rsi),%esi
and    %ebx,%esi
mov    $0x72,%edi
cmove  %r8d,%edi
mov    $0x77,%esi
mov    %dil,0x4(%rax)
mov    0x2dfd(%rip),%rdi
mov    (%rdi),%edi
and    %ebx,%edi
mov    $0x77,%ecx
cmove  %r8d,%ecx
mov    $0x78,%edi
mov    %cl,0x5(%rax)
mov    0x2dd1(%rip),%rcx
mov    (%rcx),%ecx
and    %ebx,%ecx
mov    $0x78,%ecx
cmove  %r8d,%ecx
mov    %cl,0x6(%rax)
mov    0x2da2(%rip),%rcx
mov    (%rcx),%ecx
and    %ebx,%ecx
cmove  %r8d,%edx
mov    %dl,0x7(%rax)
mov    0x2d78(%rip),%rcx
mov    (%rcx),%ecx
and    %ebx,%ecx
cmove  %r8d,%esi
mov    %sil,0x8(%rax)
mov    0x2db5(%rip),%rcx
and    (%rcx),%ebx
cmove  %r8d,%edi
mov    %dil,0x9(%rax)
movb   $0x0,0xa(%rax)
lea    0xdda(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
@.str = [34 x i8] c"The permission mode of %s is %o.\0A\00"
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@S_IXUSR = global i32 0
@S_IRGRP = global i32 0
@S_IWGRP = global i32 0
@S_IXGRP = global i32 0
@S_IROTH = global i32 0
@S_IWOTH = global i32 0
@S_IXOTH = global i32 0
@.str.1 = [24 x i8] c"mock the ls print: %s.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca %struct.stat
%8 = alloca i8*
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 1
%12 = load i8*, i8** %11
store i8* %12, i8** %6
%13 = load i8*, i8** %6
%14 = call i32 @stat(i8* %13, %struct.stat* %7)
%15 = load i8*, i8** %6
%16 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%17 = load i32, i32* %16
%18 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %15, i32 %17)
%19 = call i64 @malloc(i32 11)
%20 = inttoptr i64 %19 to i8*
store i8* %20, i8** %8
store i32 0, i32* %9
%21 = load i8*, i8** %8
%22 = load i32, i32* %9
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, i8* %21, i64 %23
store i8 45, i8* %24
%25 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%26 = load i32, i32* %25
%27 = load i32, i32* @S_IRUSR
%28 = and i32 %26, %27
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %36
30: ; preds = %2
%31 = load i8*, i8** %8
%32 = load i32, i32* %9
%33 = add nsw i32 %32, 1
store i32 %33, i32* %9
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, i8* %31, i64 %34
store i8 114, i8* %35
br label %42
36: ; preds = %2
%37 = load i8*, i8** %8
%38 = load i32, i32* %9
%39 = add nsw i32 %38, 1
store i32 %39, i32* %9
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, i8* %37, i64 %40
store i8 45, i8* %41
br label %42
42: ; preds = %36, %30
%43 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%44 = load i32, i32* %43
%45 = load i32, i32* @S_IWUSR
%46 = and i32 %44, %45
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %54
48: ; preds = %42
%49 = load i8*, i8** %8
%50 = load i32, i32* %9
%51 = add nsw i32 %50, 1
store i32 %51, i32* %9
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, i8* %49, i64 %52
store i8 119, i8* %53
br label %60
54: ; preds = %42
%55 = load i8*, i8** %8
%56 = load i32, i32* %9
%57 = add nsw i32 %56, 1
store i32 %57, i32* %9
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, i8* %55, i64 %58
store i8 45, i8* %59
br label %60
60: ; preds = %54, %48
%61 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%62 = load i32, i32* %61
%63 = load i32, i32* @S_IXUSR
%64 = and i32 %62, %63
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %72
66: ; preds = %60
%67 = load i8*, i8** %8
%68 = load i32, i32* %9
%69 = add nsw i32 %68, 1
store i32 %69, i32* %9
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, i8* %67, i64 %70
store i8 120, i8* %71
br label %78
72: ; preds = %60
%73 = load i8*, i8** %8
%74 = load i32, i32* %9
%75 = add nsw i32 %74, 1
store i32 %75, i32* %9
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, i8* %73, i64 %76
store i8 45, i8* %77
br label %78
78: ; preds = %72, %66
%79 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%80 = load i32, i32* %79
%81 = load i32, i32* @S_IRGRP
%82 = and i32 %80, %81
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %90
84: ; preds = %78
%85 = load i8*, i8** %8
%86 = load i32, i32* %9
%87 = add nsw i32 %86, 1
store i32 %87, i32* %9
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, i8* %85, i64 %88
store i8 114, i8* %89
br label %96
90: ; preds = %78
%91 = load i8*, i8** %8
%92 = load i32, i32* %9
%93 = add nsw i32 %92, 1
store i32 %93, i32* %9
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8, i8* %91, i64 %94
store i8 45, i8* %95
br label %96
96: ; preds = %90, %84
%97 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%98 = load i32, i32* %97
%99 = load i32, i32* @S_IWGRP
%100 = and i32 %98, %99
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %108
102: ; preds = %96
%103 = load i8*, i8** %8
%104 = load i32, i32* %9
%105 = add nsw i32 %104, 1
store i32 %105, i32* %9
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, i8* %103, i64 %106
store i8 119, i8* %107
br label %114
108: ; preds = %96
%109 = load i8*, i8** %8
%110 = load i32, i32* %9
%111 = add nsw i32 %110, 1
store i32 %111, i32* %9
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8, i8* %109, i64 %112
store i8 45, i8* %113
br label %114
114: ; preds = %108, %102
%115 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%116 = load i32, i32* %115
%117 = load i32, i32* @S_IXGRP
%118 = and i32 %116, %117
%119 = icmp ne i32 %118, 0
br i1 %119, label %120, label %126
120: ; preds = %114
%121 = load i8*, i8** %8
%122 = load i32, i32* %9
%123 = add nsw i32 %122, 1
store i32 %123, i32* %9
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8, i8* %121, i64 %124
store i8 120, i8* %125
br label %132
126: ; preds = %114
%127 = load i8*, i8** %8
%128 = load i32, i32* %9
%129 = add nsw i32 %128, 1
store i32 %129, i32* %9
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i8, i8* %127, i64 %130
store i8 45, i8* %131
br label %132
132: ; preds = %126, %120
%133 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%134 = load i32, i32* %133
%135 = load i32, i32* @S_IROTH
%136 = and i32 %134, %135
%137 = icmp ne i32 %136, 0
br i1 %137, label %138, label %144
138: ; preds = %132
%139 = load i8*, i8** %8
%140 = load i32, i32* %9
%141 = add nsw i32 %140, 1
store i32 %141, i32* %9
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds i8, i8* %139, i64 %142
store i8 114, i8* %143
br label %150
144: ; preds = %132
%145 = load i8*, i8** %8
%146 = load i32, i32* %9
%147 = add nsw i32 %146, 1
store i32 %147, i32* %9
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds i8, i8* %145, i64 %148
store i8 45, i8* %149
br label %150
150: ; preds = %144, %138
%151 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%152 = load i32, i32* %151
%153 = load i32, i32* @S_IWOTH
%154 = and i32 %152, %153
%155 = icmp ne i32 %154, 0
br i1 %155, label %156, label %162
156: ; preds = %150
%157 = load i8*, i8** %8
%158 = load i32, i32* %9
%159 = add nsw i32 %158, 1
store i32 %159, i32* %9
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds i8, i8* %157, i64 %160
store i8 119, i8* %161
br label %168
162: ; preds = %150
%163 = load i8*, i8** %8
%164 = load i32, i32* %9
%165 = add nsw i32 %164, 1
store i32 %165, i32* %9
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds i8, i8* %163, i64 %166
store i8 45, i8* %167
br label %168
168: ; preds = %162, %156
%169 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%170 = load i32, i32* %169
%171 = load i32, i32* @S_IXOTH
%172 = and i32 %170, %171
%173 = icmp ne i32 %172, 0
br i1 %173, label %174, label %180
174: ; preds = %168
%175 = load i8*, i8** %8
%176 = load i32, i32* %9
%177 = add nsw i32 %176, 1
store i32 %177, i32* %9
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds i8, i8* %175, i64 %178
store i8 120, i8* %179
br label %186
180: ; preds = %168
%181 = load i8*, i8** %8
%182 = load i32, i32* %9
%183 = add nsw i32 %182, 1
store i32 %183, i32* %9
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds i8, i8* %181, i64 %184
store i8 45, i8* %185
br label %186
186: ; preds = %180, %174
%187 = load i8*, i8** %8
%188 = load i32, i32* %9
%189 = add nsw i32 %188, 1
store i32 %189, i32* %9
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds i8, i8* %187, i64 %190
store i8 0, i8* %191
%192 = load i8*, i8** %8
%193 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %192)
ret i32 0
}

LLVM IR (-O2):
%struct.stat = type { i32 }
@.str = [34 x i8] c"The permission mode of %s is %o.\0A\00"
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@S_IXUSR = global i32 0
@S_IRGRP = global i32 0
@S_IWGRP = global i32 0
@S_IXGRP = global i32 0
@S_IROTH = global i32 0
@S_IWOTH = global i32 0
@S_IXOTH = global i32 0
@.str.1 = [24 x i8] c"mock the ls print: %s.\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.stat
%4 = getelementptr inbounds i8*, i8** %1, i64 1
%5 = load i8*, i8** %4
%6 = bitcast %struct.stat* %3 to i8*
%7 = call i32 @stat(i8* %5, %struct.stat* %3)
%8 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%9 = load i32, i32* %8
%10 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %5, i32 %9)
%11 = tail call i64 @malloc(i32 11)
%12 = inttoptr i64 %11 to i8*
store i8 45, i8* %12
%13 = load i32, i32* @S_IRUSR
%14 = and i32 %13, %9
%15 = icmp eq i32 %14, 0
%16 = select i1 %15, i8 45, i8 114
%17 = getelementptr inbounds i8, i8* %12, i64 1
store i8 %16, i8* %17
%18 = load i32, i32* @S_IWUSR
%19 = and i32 %18, %9
%20 = icmp eq i32 %19, 0
%21 = select i1 %20, i8 45, i8 119
%22 = getelementptr inbounds i8, i8* %12, i64 2
store i8 %21, i8* %22
%23 = load i32, i32* @S_IXUSR
%24 = and i32 %23, %9
%25 = icmp eq i32 %24, 0
%26 = select i1 %25, i8 45, i8 120
%27 = getelementptr inbounds i8, i8* %12, i64 3
store i8 %26, i8* %27
%28 = load i32, i32* @S_IRGRP
%29 = and i32 %28, %9
%30 = icmp eq i32 %29, 0
%31 = select i1 %30, i8 45, i8 114
%32 = getelementptr inbounds i8, i8* %12, i64 4
store i8 %31, i8* %32
%33 = load i32, i32* @S_IWGRP
%34 = and i32 %33, %9
%35 = icmp eq i32 %34, 0
%36 = select i1 %35, i8 45, i8 119
%37 = getelementptr inbounds i8, i8* %12, i64 5
store i8 %36, i8* %37
%38 = load i32, i32* @S_IXGRP
%39 = and i32 %38, %9
%40 = icmp eq i32 %39, 0
%41 = select i1 %40, i8 45, i8 120
%42 = getelementptr inbounds i8, i8* %12, i64 6
store i8 %41, i8* %42
%43 = load i32, i32* @S_IROTH
%44 = and i32 %43, %9
%45 = icmp eq i32 %44, 0
%46 = select i1 %45, i8 45, i8 114
%47 = getelementptr inbounds i8, i8* %12, i64 7
store i8 %46, i8* %47
%48 = load i32, i32* @S_IWOTH
%49 = and i32 %48, %9
%50 = icmp eq i32 %49, 0
%51 = select i1 %50, i8 45, i8 119
%52 = getelementptr inbounds i8, i8* %12, i64 8
store i8 %51, i8* %52
%53 = load i32, i32* @S_IXOTH
%54 = and i32 %53, %9
%55 = icmp eq i32 %54, 0
%56 = select i1 %55, i8 45, i8 120
%57 = getelementptr inbounds i8, i8* %12, i64 9
store i8 %56, i8* %57
%58 = getelementptr inbounds i8, i8* %12, i64 10
store i8 0, i8* %58
%59 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %12)
ret i32 0
}