#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_nlink;
  int st_size;
  int st_mode;
};

/* Variables and functions */
int S_IRGRP;
int S_IROTH;
int S_IRUSR;
scalar_t__ S_ISBLK(int);
scalar_t__ S_ISCHR(int);
scalar_t__ S_ISDIR(int);
scalar_t__ S_ISFIFO(int);
scalar_t__ S_ISLNK(int);
int S_IWGRP;
int S_IWOTH;
int S_IWUSR;
int S_IXGRP;
int S_IXOTH;
int S_IXUSR;
int /*<<< orphan*/ lstat(char const *, struct stat *);
char *malloc(int);
char *recup(int);
int /*<<< orphan*/ sprintf(char *, char *, char, char *, char *, char *);
int strlen(char *);
char *info(const char *rep) {
  struct stat tmp;
  char type = '-';
  char *rwx = malloc(sizeof(char) * 9);
  int i;
  lstat(rep, &tmp);
  int nb_lien = tmp.st_nlink;
  int taille = tmp.st_size;
  if (S_ISDIR(tmp.st_mode)) {
    type = 'd';
  } else if (S_ISLNK(tmp.st_mode)) {
    type = 'l';
  } else if (S_ISFIFO(tmp.st_mode)) {
    type = 'f';
  } else if (S_ISBLK(tmp.st_mode)) {
    type = 'b';
  } else if (S_ISCHR(tmp.st_mode)) {
    type = 'c';
  }
  for (i = 0; i < 9; i++) {
    rwx[i] = '-';
  }
  if (tmp.st_mode & S_IRUSR) {
    rwx[0] = 'r';
  }
  if (tmp.st_mode & S_IWUSR) {
    rwx[1] = 'w';
  }
  if (tmp.st_mode & S_IXUSR) {
    rwx[2] = 'x';
  }
  if (tmp.st_mode & S_IRGRP) {
    rwx[3] = 'r';
  }
  if (tmp.st_mode & S_IWGRP) {
    rwx[4] = 'w';
  }
  if (tmp.st_mode & S_IXGRP) {
    rwx[5] = 'x';
  }
  if (tmp.st_mode & S_IROTH) {
    rwx[6] = 'r';
  }
  if (tmp.st_mode & S_IWOTH) {
    rwx[7] = 'w';
  }
  if (tmp.st_mode & S_IXOTH) {
    rwx[8] = 'x';
  }
  char *n = recup(nb_lien);
  char *t = recup(taille);
  char *final = malloc(sizeof(char) * (sizeof(char) + strlen(rwx) + strlen(t) +
                                       strlen(n) + strlen("   ") + 2));
  sprintf(final, "%c%s %s %s", type, rwx, n, t);
  return final;
}


x86 assembly (clang, -O0):
<info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
movb   $0x2d,-0x19(%rbp)
mov    $0x9,%edi
call   1090 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1070 <lstat@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%edi
call   1060 <S_ISDIR@plt>
cmp    $0x0,%rax
je     11f2 <info+0x52>
movb   $0x64,-0x19(%rbp)
jmp    126d <info+0xcd>
mov    -0x10(%rbp),%edi
call   1030 <S_ISLNK@plt>
cmp    $0x0,%rax
je     120d <info+0x6d>
movb   $0x6c,-0x19(%rbp)
jmp    1268 <info+0xc8>
mov    -0x10(%rbp),%edi
call   1050 <S_ISFIFO@plt>
cmp    $0x0,%rax
je     1228 <info+0x88>
movb   $0x66,-0x19(%rbp)
jmp    1263 <info+0xc3>
mov    -0x10(%rbp),%edi
call   10b0 <S_ISBLK@plt>
cmp    $0x0,%rax
je     1243 <info+0xa3>
movb   $0x62,-0x19(%rbp)
jmp    125e <info+0xbe>
mov    -0x10(%rbp),%edi
call   10a0 <S_ISCHR@plt>
cmp    $0x0,%rax
je     1259 <info+0xb9>
movb   $0x63,-0x19(%rbp)
jmp    125e <info+0xbe>
jmp    1263 <info+0xc3>
jmp    1268 <info+0xc8>
jmp    126d <info+0xcd>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x9,-0x2c(%rbp)
jge    1298 <info+0xf8>
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1274 <info+0xd4>
mov    -0x10(%rbp),%eax
mov    0x2d06(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12b4 <info+0x114>
mov    -0x28(%rbp),%rax
movb   $0x72,(%rax)
mov    -0x10(%rbp),%eax
mov    0x2d12(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12d1 <info+0x131>
mov    -0x28(%rbp),%rax
movb   $0x77,0x1(%rax)
mov    -0x10(%rbp),%eax
mov    0x2d05(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12ee <info+0x14e>
mov    -0x28(%rbp),%rax
movb   $0x78,0x2(%rax)
mov    -0x10(%rbp),%eax
mov    0x2cc0(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     130b <info+0x16b>
mov    -0x28(%rbp),%rax
movb   $0x72,0x3(%rax)
mov    -0x10(%rbp),%eax
mov    0x2cc3(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1328 <info+0x188>
mov    -0x28(%rbp),%rax
movb   $0x77,0x4(%rax)
mov    -0x10(%rbp),%eax
mov    0x2c96(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1345 <info+0x1a5>
mov    -0x28(%rbp),%rax
movb   $0x78,0x5(%rax)
mov    -0x10(%rbp),%eax
mov    0x2c61(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1362 <info+0x1c2>
mov    -0x28(%rbp),%rax
movb   $0x72,0x6(%rax)
mov    -0x10(%rbp),%eax
mov    0x2c2c(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     137f <info+0x1df>
mov    -0x28(%rbp),%rax
movb   $0x77,0x7(%rax)
mov    -0x10(%rbp),%eax
mov    0x2c5f(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     139c <info+0x1fc>
mov    -0x28(%rbp),%rax
movb   $0x78,0x8(%rax)
mov    -0x30(%rbp),%edi
call   1080 <recup@plt>
mov    %rax,-0x40(%rbp)
mov    -0x34(%rbp),%edi
call   1080 <recup@plt>
mov    %rax,-0x48(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
cltq
add    $0x1,%rax
mov    %rax,-0x68(%rbp)
mov    -0x48(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x68(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x40(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x60(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
lea    0xc00(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
add    $0x2,%rax
shl    $0x0,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rdi
mov    -0x19(%rbp),%al
mov    -0x28(%rbp),%rcx
mov    -0x40(%rbp),%r8
mov    -0x48(%rbp),%r9
lea    0xbc6(%rip),%rsi
movsbl %al,%edx
call   10c0 <sprintf@plt>
mov    -0x50(%rbp),%rax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<info>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdi,%rbp
mov    $0x9,%edi
call   1090 <malloc@plt>
mov    %rax,%r13
lea    0x8(%rsp),%rsi
mov    %rbp,%rdi
call   1070 <lstat@plt>
mov    0x8(%rsp),%r15d
mov    0xc(%rsp),%r14d
mov    0x10(%rsp),%ebp
mov    %ebp,%edi
call   1060 <S_ISDIR@plt>
mov    $0x64,%cl
test   %rax,%rax
jne    1228 <info+0x88>
mov    %ebp,%edi
call   1030 <S_ISLNK@plt>
mov    $0x6c,%cl
test   %rax,%rax
jne    1228 <info+0x88>
mov    %ebp,%edi
call   1050 <S_ISFIFO@plt>
mov    $0x66,%cl
test   %rax,%rax
jne    1228 <info+0x88>
mov    %ebp,%edi
call   10b0 <S_ISBLK@plt>
mov    $0x62,%cl
test   %rax,%rax
jne    1228 <info+0x88>
mov    %ebp,%edi
call   10a0 <S_ISCHR@plt>
test   %rax,%rax
mov    $0x2d,%eax
mov    $0x63,%ecx
cmove  %eax,%ecx
movabs $0x2d2d2d2d2d2d2d2d,%rax
2d 2d 2d
mov    %rax,0x0(%r13)
movb   $0x2d,0x8(%r13)
mov    0x2d66(%rip),%rax
test   %ebp,(%rax)
je     124b <info+0xab>
movb   $0x72,0x0(%r13)
mov    0x2d7e(%rip),%rax
test   %ebp,(%rax)
je     125b <info+0xbb>
movb   $0x77,0x1(%r13)
mov    0x2d7e(%rip),%rax
test   %ebp,(%rax)
je     126b <info+0xcb>
movb   $0x78,0x2(%r13)
mov    0x2d46(%rip),%rax
test   %ebp,(%rax)
je     127b <info+0xdb>
movb   $0x72,0x3(%r13)
mov    0x2d56(%rip),%rax
test   %ebp,(%rax)
je     128b <info+0xeb>
movb   $0x77,0x4(%r13)
mov    0x2d36(%rip),%rax
test   %ebp,(%rax)
je     129b <info+0xfb>
movb   $0x78,0x5(%r13)
mov    0x2d0e(%rip),%rax
test   %ebp,(%rax)
je     12ab <info+0x10b>
movb   $0x72,0x6(%r13)
mov    0x2ce6(%rip),%rax
test   %ebp,(%rax)
je     12bb <info+0x11b>
movb   $0x77,0x7(%r13)
mov    %ecx,0x4(%rsp)
mov    0x2d22(%rip),%rax
test   %ebp,(%rax)
je     12cf <info+0x12f>
movb   $0x78,0x8(%r13)
mov    %r15d,%edi
call   1080 <recup@plt>
mov    %rax,%r15
mov    %r14d,%edi
call   1080 <recup@plt>
mov    %rax,%r14
mov    %r13,%rdi
call   1040 <strlen@plt>
mov    %eax,%r12d
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebx
lea    0xcf5(%rip),%rdi
call   1040 <strlen@plt>
add    %r12d,%ebp
add    %ebx,%ebp
lea    (%rax,%rbp,1),%edi
add    $0x3,%edi
call   1090 <malloc@plt>
mov    %rax,%rbx
movzbl 0x4(%rsp),%edx
lea    0xcd5(%rip),%rsi
mov    %rax,%rdi
mov    %r13,%rcx
mov    %r15,%r8
mov    %r14,%r9
call   10c0 <sprintf@plt>
mov    %rbx,%rax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
%struct.stat = type { i32, i32, i32 }
@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 = [4 x i8] c" \00"
@.str.1 = [11 x i8] c"%c%s %s %s\00"
define noalias i8* @info(i8* nocapture %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = tail call dereferenceable_or_null(9) i8* @malloc(i32 9)
%5 = call i32 @lstat(i8* %0, %struct.stat* %2)
%6 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%7 = load i32, i32* %6
%8 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 1
%9 = load i32, i32* %8
%10 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 2
%11 = load i32, i32* %10
%12 = tail call i64 @S_ISDIR(i32 %11)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %27
14: ; preds = %1
%15 = tail call i64 @S_ISLNK(i32 %11)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %27
17: ; preds = %14
%18 = tail call i64 @S_ISFIFO(i32 %11)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %17
%21 = tail call i64 @S_ISBLK(i32 %11)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %20
%24 = tail call i64 @S_ISCHR(i32 %11)
%25 = icmp eq i64 %24, 0
%26 = select i1 %25, i8 45, i8 99
br label %27
27: ; preds = %23, %20, %17, %14, %1
%28 = phi i8 [ 100, %1 ], [ 108, %14 ], [ 102, %17 ], [ 98, %20 ], [ %26, %23 ]
%29 = load i32, i32* @S_IRUSR
%30 = and i32 %29, %11
%31 = icmp eq i32 %30, 0
br i1 %31, label %33, label %32
32: ; preds = %27
store i8 114, i8* %4
br label %33
33: ; preds = %32, %27
%34 = load i32, i32* @S_IWUSR
%35 = and i32 %34, %11
%36 = icmp eq i32 %35, 0
br i1 %36, label %39, label %37
37: ; preds = %33
%38 = getelementptr inbounds i8, i8* %4, i64 1
store i8 119, i8* %38
br label %39
39: ; preds = %37, %33
%40 = load i32, i32* @S_IXUSR
%41 = and i32 %40, %11
%42 = icmp eq i32 %41, 0
br i1 %42, label %45, label %43
43: ; preds = %39
%44 = getelementptr inbounds i8, i8* %4, i64 2
store i8 120, i8* %44
br label %45
45: ; preds = %43, %39
%46 = load i32, i32* @S_IRGRP
%47 = and i32 %46, %11
%48 = icmp eq i32 %47, 0
br i1 %48, label %51, label %49
49: ; preds = %45
%50 = getelementptr inbounds i8, i8* %4, i64 3
store i8 114, i8* %50
br label %51
51: ; preds = %49, %45
%52 = load i32, i32* @S_IWGRP
%53 = and i32 %52, %11
%54 = icmp eq i32 %53, 0
br i1 %54, label %57, label %55
55: ; preds = %51
%56 = getelementptr inbounds i8, i8* %4, i64 4
store i8 119, i8* %56
br label %57
57: ; preds = %55, %51
%58 = load i32, i32* @S_IXGRP
%59 = and i32 %58, %11
%60 = icmp eq i32 %59, 0
br i1 %60, label %63, label %61
61: ; preds = %57
%62 = getelementptr inbounds i8, i8* %4, i64 5
store i8 120, i8* %62
br label %63
63: ; preds = %61, %57
%64 = load i32, i32* @S_IROTH
%65 = and i32 %64, %11
%66 = icmp eq i32 %65, 0
br i1 %66, label %69, label %67
67: ; preds = %63
%68 = getelementptr inbounds i8, i8* %4, i64 6
store i8 114, i8* %68
br label %69
69: ; preds = %67, %63
%70 = load i32, i32* @S_IWOTH
%71 = and i32 %70, %11
%72 = icmp eq i32 %71, 0
br i1 %72, label %75, label %73
73: ; preds = %69
%74 = getelementptr inbounds i8, i8* %4, i64 7
store i8 119, i8* %74
br label %75
75: ; preds = %73, %69
%76 = load i32, i32* @S_IXOTH
%77 = and i32 %76, %11
%78 = icmp eq i32 %77, 0
br i1 %78, label %81, label %79
79: ; preds = %75
%80 = getelementptr inbounds i8, i8* %4, i64 8
store i8 120, i8* %80
br label %81
81: ; preds = %79, %75
%82 = tail call i8* @recup(i32 %7)
%83 = tail call i8* @recup(i32 %9)
%84 = tail call i32 @strlen(i8* %4)
%85 = tail call i32 @strlen(i8* %83)
%86 = tail call i32 @strlen(i8* %82)
%87 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%88 = add i32 %84, 3
%89 = add i32 %88, %85
%90 = add i32 %89, %86
%91 = add i32 %90, %87
%92 = tail call i8* @malloc(i32 %91)
%93 = tail call i32 @sprintf(i8* dereferenceable(1) %92, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext %28, i8* %4, i8* %82, i8* %83)
ret i8* %92
}