#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 /*<<< orphan*/ st_mode;
};
struct dirent {
  char *d_name;
};
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
scalar_t__ S_ISDIR(int /*<<< orphan*/);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
char *info(char const *);
int /*<<< orphan*/ lstat(char *, struct stat *);
char *malloc(int);
int /*<<< orphan*/ *opendir(char const *);
int /*<<< orphan*/ printf(char *, char const *, ...);
struct dirent *readdir(int /*<<< orphan*/ *);
int /*<<< orphan*/ sprintf(char *, char *, char const *, char *);
scalar_t__ strcmp(char *, char *);
int strlen(char const *);
void parc(const char *rep, int arg[4], char *tab) {
  DIR *dir;
  dir = opendir(rep);
  struct dirent *entry;
  if (arg[3] == 1) {
    if (arg[2] == 1) {
      printf("%s ", info(rep));
    }
    printf("%s\n", rep);
    exit(0);
  }
  while ((entry = readdir(dir)) != NULL) {
    if (arg[0] == 0 && entry->d_name[0] == '.') {
      continue;
    }
    struct stat tmp;
    char *chemin =
        malloc(sizeof(char) * (strlen(rep) + strlen(entry->d_name) + 2));
    sprintf(chemin, "%s/%s", rep, entry->d_name);
    lstat(chemin, &tmp);
    if (arg[2] == 1) {
      printf("%s ", info(chemin));
    }
    if (S_ISDIR(tmp.st_mode)) {
      printf("\e[0;34m%s%s\e[0m\n", tab, entry->d_name);
    } else {
      printf("%s%s\n", tab, entry->d_name);
    }
    if (arg[1] == 1) {
      if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) {
        continue;
      }
      if (S_ISDIR(tmp.st_mode)) {
        char *tab2 = malloc(sizeof(char) * (strlen(tab) + strlen(" ") + 2));
        sprintf(tab2, "%s%s", tab, " ");
        parc(chemin, arg, tab2);
      }
    }
  }
}


x86 assembly (clang, -O0):
<parc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <opendir@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
cmpl   $0x1,0xc(%rax)
jne    1230 <parc+0x70>
mov    -0x10(%rbp),%rax
cmpl   $0x1,0x8(%rax)
jne    1217 <parc+0x57>
mov    -0x8(%rbp),%rdi
call   10e0 <info@plt>
mov    %rax,%rsi
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xdfb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
jmp    1235 <parc+0x75>
mov    -0x20(%rbp),%rdi
call   1090 <readdir@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
je     1405 <parc+0x245>
mov    -0x10(%rbp),%rax
cmpl   $0x0,(%rax)
jne    1271 <parc+0xb1>
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x2e,%eax
jne    1271 <parc+0xb1>
jmp    1235 <parc+0x75>
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x44(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x44(%rbp),%eax
add    %ecx,%eax
add    $0x2,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    -0x28(%rbp),%rax
mov    (%rax),%rcx
lea    0xd4a(%rip),%rsi
call   10c0 <sprintf@plt>
mov    -0x38(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1070 <lstat@plt>
mov    -0x10(%rbp),%rax
cmpl   $0x1,0x8(%rax)
jne    12f4 <parc+0x134>
mov    -0x38(%rbp),%rdi
call   10e0 <info@plt>
mov    %rax,%rsi
lea    0xd13(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x30(%rbp),%edi
call   1060 <S_ISDIR@plt>
cmp    $0x0,%rax
je     1324 <parc+0x164>
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rax
mov    (%rax),%rdx
lea    0xcf2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    133d <parc+0x17d>
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rax
mov    (%rax),%rdx
lea    0xce5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
cmpl   $0x1,0x4(%rax)
jne    1400 <parc+0x240>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
lea    0xcc9(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
je     1385 <parc+0x1c5>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
lea    0xcab(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    138a <parc+0x1ca>
jmp    1235 <parc+0x75>
mov    -0x30(%rbp),%edi
call   1060 <S_ISDIR@plt>
cmp    $0x0,%rax
je     13fb <parc+0x23b>
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x48(%rbp)
lea    0xc53(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x48(%rbp),%eax
add    %ecx,%eax
add    $0x2,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xc46(%rip),%rsi
lea    0xc1d(%rip),%rcx
call   10c0 <sprintf@plt>
mov    -0x38(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x40(%rbp),%rdx
call   10b0 <parc@plt>
jmp    1400 <parc+0x240>
jmp    1235 <parc+0x75>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parc>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdx,0x10(%rsp)
mov    %rsi,%rbx
mov    %rdi,%r14
call   1030 <opendir@plt>
cmpl   $0x1,0xc(%rbx)
je     137a <parc+0x1ba>
mov    %rax,%r12
mov    %rax,%rdi
call   1090 <readdir@plt>
test   %rax,%rax
je     136b <parc+0x1ab>
mov    %rax,%r13
jmp    1224 <parc+0x64>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
call   1090 <readdir@plt>
mov    %rax,%r13
test   %rax,%rax
je     136b <parc+0x1ab>
cmpl   $0x0,(%rbx)
jne    1232 <parc+0x72>
mov    0x0(%r13),%rax
cmpb   $0x2e,(%rax)
je     1210 <parc+0x50>
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    0x0(%r13),%rdi
call   1040 <strlen@plt>
lea    (%rax,%rbp,1),%edi
add    $0x2,%edi
call   10a0 <malloc@plt>
mov    %rax,%rbp
mov    0x0(%r13),%rcx
mov    %rax,%rdi
lea    0xda3(%rip),%rsi
mov    %r14,%rdx
call   10c0 <sprintf@plt>
mov    %rbp,%rdi
lea    0x8(%rsp),%rsi
call   1070 <lstat@plt>
cmpl   $0x1,0x8(%rbx)
jne    1295 <parc+0xd5>
mov    %rbp,%rdi
call   10e0 <info@plt>
lea    0xd75(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%r15d
mov    %r15d,%edi
call   1060 <S_ISDIR@plt>
test   %rax,%rax
mov    0x0(%r13),%rdx
lea    0xd5a(%rip),%rdi
lea    0xd64(%rip),%rax
cmove  %rax,%rdi
mov    0x10(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x1,0x4(%rbx)
jne    1210 <parc+0x50>
mov    0x0(%r13),%rdi
lea    0xd46(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1210 <parc+0x50>
mov    0x0(%r13),%rdi
lea    0xd2c(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1210 <parc+0x50>
mov    %r15d,%edi
call   1060 <S_ISDIR@plt>
test   %rax,%rax
je     1210 <parc+0x50>
mov    0x10(%rsp),%r13
mov    %r13,%rdi
call   1040 <strlen@plt>
mov    %eax,%r15d
lea    0xcd7(%rip),%rdi
call   1040 <strlen@plt>
lea    (%r15,%rax,1),%edi
add    $0x2,%edi
call   10a0 <malloc@plt>
mov    %rax,%r15
mov    %rax,%rdi
lea    0xcdb(%rip),%rsi
mov    %r13,%rdx
lea    0xcaf(%rip),%rcx
call   10c0 <sprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
call   10b0 <parc@plt>
jmp    1210 <parc+0x50>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
cmpl   $0x1,0x8(%rbx)
jne    1399 <parc+0x1d9>
mov    %r14,%rdi
call   10e0 <info@plt>
lea    0xc71(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc7d(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
%struct.dirent = type { i8* }
%struct.stat = type { i32 }
@.str = [4 x i8] c"%s \00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [6 x i8] c"%s/%s\00"
@.str.3 = [17 x i8] c"\1B[0;34m%s%s\1B[0m\0A\00"
@.str.4 = [6 x i8] c"%s%s\0A\00"
@.str.5 = [2 x i8] c".\00"
@.str.6 = [3 x i8] c"..\00"
@.str.7 = [2 x i8] c" \00"
@.str.8 = [5 x i8] c"%s%s\00"
define void @parc(i8* %0, i32* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca %struct.dirent*
%9 = alloca %struct.stat
%10 = alloca i8*
%11 = alloca i8*
store i8* %0, i8** %4
store i32* %1, i32** %5
store i8* %2, i8** %6
%12 = load i8*, i8** %4
%13 = call i32* @opendir(i8* %12)
store i32* %13, i32** %7
%14 = load i32*, i32** %5
%15 = getelementptr inbounds i32, i32* %14, i64 3
%16 = load i32, i32* %15
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %31
18: ; preds = %3
%19 = load i32*, i32** %5
%20 = getelementptr inbounds i32, i32* %19, i64 2
%21 = load i32, i32* %20
%22 = icmp eq i32 %21, 1
br i1 %22, label %23, label %27
23: ; preds = %18
%24 = load i8*, i8** %4
%25 = call i8* @info(i8* %24)
%26 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %25)
br label %27
27: ; preds = %23, %18
%28 = load i8*, i8** %4
%29 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %28)
%30 = call i32 @exit(i32 0)
unreachable
31: ; preds = %3
br label %32
32: ; preds = %136, %113, %49, %31
%33 = load i32*, i32** %7
%34 = call %struct.dirent* @readdir(i32* %33)
store %struct.dirent* %34, %struct.dirent** %8
%35 = icmp ne %struct.dirent* %34, null
br i1 %35, label %36, label %137
36: ; preds = %32
%37 = load i32*, i32** %5
%38 = getelementptr inbounds i32, i32* %37, i64 0
%39 = load i32, i32* %38
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %50
41: ; preds = %36
%42 = load %struct.dirent*, %struct.dirent** %8
%43 = getelementptr inbounds %struct.dirent, %struct.dirent* %42, i32 0, i32 0
%44 = load i8*, i8** %43
%45 = getelementptr inbounds i8, i8* %44, i64 0
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 46
br i1 %48, label %49, label %50
49: ; preds = %41
br label %32
50: ; preds = %41, %36
%51 = load i8*, i8** %4
%52 = call i32 @strlen(i8* %51)
%53 = load %struct.dirent*, %struct.dirent** %8
%54 = getelementptr inbounds %struct.dirent, %struct.dirent* %53, i32 0, i32 0
%55 = load i8*, i8** %54
%56 = call i32 @strlen(i8* %55)
%57 = add nsw i32 %52, %56
%58 = add nsw i32 %57, 2
%59 = sext i32 %58 to i64
%60 = mul i64 1, %59
%61 = trunc i64 %60 to i32
%62 = call i8* @malloc(i32 %61)
store i8* %62, i8** %10
%63 = load i8*, i8** %10
%64 = load i8*, i8** %4
%65 = load %struct.dirent*, %struct.dirent** %8
%66 = getelementptr inbounds %struct.dirent, %struct.dirent* %65, i32 0, i32 0
%67 = load i8*, i8** %66
%68 = call i32 @sprintf(i8* %63, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %64, i8* %67)
%69 = load i8*, i8** %10
%70 = call i32 @lstat(i8* %69, %struct.stat* %9)
%71 = load i32*, i32** %5
%72 = getelementptr inbounds i32, i32* %71, i64 2
%73 = load i32, i32* %72
%74 = icmp eq i32 %73, 1
br i1 %74, label %75, label %79
75: ; preds = %50
%76 = load i8*, i8** %10
%77 = call i8* @info(i8* %76)
%78 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %77)
br label %79
79: ; preds = %75, %50
%80 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 0
%81 = load i32, i32* %80
%82 = call i64 @S_ISDIR(i32 %81)
%83 = icmp ne i64 %82, 0
br i1 %83, label %84, label %90
84: ; preds = %79
%85 = load i8*, i8** %6
%86 = load %struct.dirent*, %struct.dirent** %8
%87 = getelementptr inbounds %struct.dirent, %struct.dirent* %86, i32 0, i32 0
%88 = load i8*, i8** %87
%89 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* %85, i8* %88)
br label %96
90: ; preds = %79
%91 = load i8*, i8** %6
%92 = load %struct.dirent*, %struct.dirent** %8
%93 = getelementptr inbounds %struct.dirent, %struct.dirent* %92, i32 0, i32 0
%94 = load i8*, i8** %93
%95 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %91, i8* %94)
br label %96
96: ; preds = %90, %84
%97 = load i32*, i32** %5
%98 = getelementptr inbounds i32, i32* %97, i64 1
%99 = load i32, i32* %98
%100 = icmp eq i32 %99, 1
br i1 %100, label %101, label %136
101: ; preds = %96
%102 = load %struct.dirent*, %struct.dirent** %8
%103 = getelementptr inbounds %struct.dirent, %struct.dirent* %102, i32 0, i32 0
%104 = load i8*, i8** %103
%105 = call i64 @strcmp(i8* %104, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%106 = icmp eq i64 %105, 0
br i1 %106, label %113, label %107
107: ; preds = %101
%108 = load %struct.dirent*, %struct.dirent** %8
%109 = getelementptr inbounds %struct.dirent, %struct.dirent* %108, i32 0, i32 0
%110 = load i8*, i8** %109
%111 = call i64 @strcmp(i8* %110, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %114
113: ; preds = %107, %101
br label %32
114: ; preds = %107
%115 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 0
%116 = load i32, i32* %115
%117 = call i64 @S_ISDIR(i32 %116)
%118 = icmp ne i64 %117, 0
br i1 %118, label %119, label %135
119: ; preds = %114
%120 = load i8*, i8** %6
%121 = call i32 @strlen(i8* %120)
%122 = call i32 @strlen(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%123 = add nsw i32 %121, %122
%124 = add nsw i32 %123, 2
%125 = sext i32 %124 to i64
%126 = mul i64 1, %125
%127 = trunc i64 %126 to i32
%128 = call i8* @malloc(i32 %127)
store i8* %128, i8** %11
%129 = load i8*, i8** %11
%130 = load i8*, i8** %6
%131 = call i32 @sprintf(i8* %129, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %130, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%132 = load i8*, i8** %10
%133 = load i32*, i32** %5
%134 = load i8*, i8** %11
br label %135
135: ; preds = %119, %114
br label %136
136: ; preds = %135, %96
br label %32
137: ; preds = %32
ret void
}

LLVM IR (-O2):
%struct.stat = type { i32 }
%struct.dirent = type { i8* }
@.str = [4 x i8] c"%s \00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [6 x i8] c"%s/%s\00"
@.str.3 = [17 x i8] c"\1B[0;34m%s%s\1B[0m\0A\00"
@.str.4 = [6 x i8] c"%s%s\0A\00"
@.str.5 = [2 x i8] c".\00"
@.str.6 = [3 x i8] c"..\00"
@.str.7 = [2 x i8] c" \00"
@.str.8 = [5 x i8] c"%s%s\00"
define void @parc(i8* %0, i32* nocapture %1, i8* %2) {
%4 = alloca %struct.stat
%5 = tail call i32* @opendir(i8* %0)
%6 = getelementptr inbounds i32, i32* %1, i64 3
%7 = load i32, i32* %6
%8 = icmp eq i32 %7, 1
br i1 %8, label %17, label %9
9: ; preds = %3
%10 = tail call %struct.dirent* @readdir(i32* %5)
%11 = icmp eq %struct.dirent* %10, null
br i1 %11, label %83, label %12
12: ; preds = %9
%13 = bitcast %struct.stat* %4 to i8*
%14 = getelementptr inbounds i32, i32* %1, i64 2
%15 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 0
%16 = getelementptr inbounds i32, i32* %1, i64 1
br label %27
17: ; preds = %3
%18 = getelementptr inbounds i32, i32* %1, i64 2
%19 = load i32, i32* %18
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = tail call i8* @info(i8* %0)
%23 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %22)
br label %24
24: ; preds = %21, %17
%25 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%26 = tail call i32 @exit(i32 0)
unreachable
27: ; preds = %12, %36
%28 = phi %struct.dirent* [ %10, %12 ], [ %37, %36 ]
%29 = load i32, i32* %1
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %39
31: ; preds = %27
%32 = getelementptr inbounds %struct.dirent, %struct.dirent* %28, i64 0, i32 0
%33 = load i8*, i8** %32
%34 = load i8, i8* %33
%35 = icmp eq i8 %34, 46
br i1 %35, label %36, label %39
36: ; preds = %31, %82
%37 = tail call %struct.dirent* @readdir(i32* %5)
%38 = icmp eq %struct.dirent* %37, null
br i1 %38, label %83, label %27
39: ; preds = %31, %27
%40 = tail call i32 @strlen(i8* %0)
%41 = getelementptr inbounds %struct.dirent, %struct.dirent* %28, i64 0, i32 0
%42 = load i8*, i8** %41
%43 = tail call i32 @strlen(i8* %42)
%44 = add i32 %40, 2
%45 = add i32 %44, %43
%46 = tail call i8* @malloc(i32 %45)
%47 = load i8*, i8** %41
%48 = tail call i32 @sprintf(i8* dereferenceable(1) %46, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %0, i8* %47)
%49 = call i32 @lstat(i8* %46, %struct.stat* %4)
%50 = load i32, i32* %14
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %55
52: ; preds = %39
%53 = tail call i8* @info(i8* %46)
%54 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %53)
br label %55
55: ; preds = %52, %39
%56 = load i32, i32* %15
%57 = tail call i64 @S_ISDIR(i32 %56)
%58 = icmp eq i64 %57, 0
%59 = load i8*, i8** %41
%60 = select i1 %58, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0)
%61 = tail call i32 (i8*, i8*, ...) @printf(i8* %60, i8* %2, i8* %59)
%62 = load i32, i32* %16
%63 = icmp eq i32 %62, 1
br i1 %63, label %64, label %82
64: ; preds = %55
%65 = load i8*, i8** %41
%66 = tail call i64 @strcmp(i8* %65, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %82, label %68
68: ; preds = %64
%69 = load i8*, i8** %41
%70 = tail call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %82, label %72
72: ; preds = %68
%73 = tail call i64 @S_ISDIR(i32 %56)
%74 = icmp eq i64 %73, 0
br i1 %74, label %82, label %75
75: ; preds = %72
%76 = tail call i32 @strlen(i8* %2)
%77 = tail call i32 @strlen(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%78 = add i32 %76, 2
%79 = add i32 %78, %77
%80 = tail call i8* @malloc(i32 %79)
%81 = tail call i32 @sprintf(i8* dereferenceable(1) %80, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
tail call void @parc(i8* %46, i32* %1, i8* %80)
br label %82
82: ; preds = %55, %75, %72, %64, %68
br label %36
83: ; preds = %36, %9
ret void
}