#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 inotify_event {
  int mask;
  char *name;
  scalar_t__ len;
};

/* Variables and functions */
int EXIT_SUCCESS;
int IN_CREATE;
int IN_DELETE;
int IN_ISDIR;
int IN_MODIFY;
int /*<<< orphan*/ close(int);
int inotify_add_watch(int, char *, int);
int inotify_init();
int /*<<< orphan*/ inotify_rm_watch(int, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *);
int read(int, char *, int);
int main(int argc, char **argv) {
  char buffer[(1024 * (sizeof(struct inotify_event) + 24))];
  int file_descriptor = inotify_init();
  if (file_descriptor < 0) {
    perror("inotify_init");
  }
  int watch_descriptor = inotify_add_watch(file_descriptor, "/tmp",
                                           IN_MODIFY | IN_CREATE | IN_DELETE);
  int length = read(file_descriptor, buffer,
                    (1024 * (sizeof(struct inotify_event) + 24)));
  if (length < 0) {
    perror("read");
  }
  int offset = 0;
  while (offset < length) {
    struct inotify_event *event = (struct inotify_event *)&buffer[offset];
    if (event->len) {
      if (event->mask & IN_CREATE) {
        if (event->mask & IN_ISDIR) {
          printf("The directory %s was created.\n", event->name);
        } else {
          printf("The file %s was created.\n", event->name);
        }
      } else if (event->mask & IN_DELETE) {
        if (event->mask & IN_ISDIR) {
          printf("The directory %s was deleted.\n", event->name);
        } else {
          printf("The file %s was deleted.\n", event->name);
        }
      } else if (event->mask & IN_MODIFY) {
        if (event->mask & IN_ISDIR) {
          printf("The directory %s was modified.\n", event->name);
        } else {
          printf("The file %s was modified.\n", event->name);
        }
      }
    }
    offset += sizeof(struct inotify_event) + event->len;
  }
  inotify_rm_watch(file_descriptor, watch_descriptor);
  close(file_descriptor);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc030,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1060 <inotify_init@plt>
mov    %eax,-0xc014(%rbp)
cmpl   $0x0,-0xc014(%rbp)
jge    11af <main+0x3f>
lea    0xe56(%rip),%rdi
call   1080 <perror@plt>
mov    -0xc014(%rbp),%edi
mov    0x2e34(%rip),%rax
mov    (%rax),%edx
mov    0x2e03(%rip),%rax
or     (%rax),%edx
mov    0x2e12(%rip),%rax
or     (%rax),%edx
lea    0xe36(%rip),%rsi
call   1070 <inotify_add_watch@plt>
mov    %eax,-0xc018(%rbp)
mov    -0xc014(%rbp),%edi
lea    -0xc010(%rbp),%rsi
mov    $0xc000,%edx
call   1050 <read@plt>
mov    %eax,-0xc01c(%rbp)
cmpl   $0x0,-0xc01c(%rbp)
jge    1218 <main+0xa8>
lea    0xdff(%rip),%rdi
call   1080 <perror@plt>
movl   $0x0,-0xc020(%rbp)
mov    -0xc020(%rbp),%eax
cmp    -0xc01c(%rbp),%eax
jge    13db <main+0x26b>
movslq -0xc020(%rbp),%rcx
lea    -0xc010(%rbp),%rax
add    %rcx,%rax
mov    %rax,-0xc028(%rbp)
mov    -0xc028(%rbp),%rax
cmpq   $0x0,0x10(%rax)
je     13b7 <main+0x247>
mov    -0xc028(%rbp),%rax
mov    (%rax),%eax
mov    0x2d5a(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12cc <main+0x15c>
mov    -0xc028(%rbp),%rax
mov    (%rax),%eax
mov    0x2d4f(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12b0 <main+0x140>
mov    -0xc028(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd71(%rip),%rdi
call   1030 <printf@plt>
jmp    12c7 <main+0x157>
mov    -0xc028(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd74(%rip),%rdi
call   1030 <printf@plt>
jmp    13b2 <main+0x242>
mov    -0xc028(%rbp),%rax
mov    (%rax),%eax
mov    0x2d04(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     133a <main+0x1ca>
mov    -0xc028(%rbp),%rax
mov    (%rax),%eax
mov    0x2ce1(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     131e <main+0x1ae>
mov    -0xc028(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd3c(%rip),%rdi
call   1030 <printf@plt>
jmp    1335 <main+0x1c5>
mov    -0xc028(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd3f(%rip),%rdi
call   1030 <printf@plt>
jmp    13ad <main+0x23d>
mov    -0xc028(%rbp),%rax
mov    (%rax),%eax
mov    0x2ca6(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     13a8 <main+0x238>
mov    -0xc028(%rbp),%rax
mov    (%rax),%eax
mov    0x2c73(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     138c <main+0x21c>
mov    -0xc028(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd07(%rip),%rdi
call   1030 <printf@plt>
jmp    13a3 <main+0x233>
mov    -0xc028(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd0b(%rip),%rdi
call   1030 <printf@plt>
jmp    13a8 <main+0x238>
jmp    13ad <main+0x23d>
jmp    13b2 <main+0x242>
jmp    13b7 <main+0x247>
mov    -0xc028(%rbp),%rax
mov    0x10(%rax),%rcx
add    $0x18,%rcx
movslq -0xc020(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xc020(%rbp)
jmp    1222 <main+0xb2>
mov    -0xc014(%rbp),%edi
mov    -0xc018(%rbp),%esi
call   1090 <inotify_rm_watch@plt>
mov    -0xc014(%rbp),%edi
call   1040 <close@plt>
mov    0x2bc2(%rip),%rax
mov    (%rax),%eax
add    $0xc030,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc018,%rsp
xor    %eax,%eax
call   1060 <inotify_init@plt>
mov    %eax,%ebx
test   %eax,%eax
js     1297 <main+0x127>
mov    0x2e57(%rip),%rax
mov    0x2e28(%rip),%r15
mov    (%r15),%edx
or     (%rax),%edx
mov    0x2e34(%rip),%rax
or     (%rax),%edx
lea    0xe58(%rip),%rsi
mov    %ebx,%edi
call   1070 <inotify_add_watch@plt>
mov    %eax,0xc(%rsp)
lea    0x10(%rsp),%rsi
mov    %ebx,%edi
mov    $0xc000,%edx
call   1050 <read@plt>
test   %eax,%eax
js     12a8 <main+0x138>
je     12b4 <main+0x144>
mov    %eax,%ebp
xor    %r12d,%r12d
mov    0x2ded(%rip),%r14
jmp    1209 <main+0x99>
lea    0xe42(%rip),%rdi
call   1030 <printf@plt>
add    %r13d,%r12d
add    $0x18,%r12d
cmp    %ebp,%r12d
jge    12b4 <main+0x144>
movslq %r12d,%rax
mov    0x20(%rsp,%rax,1),%r13
test   %r13,%r13
je     11f9 <main+0x89>
mov    0x10(%rsp,%rax,1),%ecx
test   %ecx,(%r15)
je     1240 <main+0xd0>
mov    0x18(%rsp,%rax,1),%rsi
test   %ecx,(%r14)
je     11ed <main+0x7d>
lea    0xde7(%rip),%rdi
jmp    11f4 <main+0x84>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x2d99(%rip),%rdx
test   %ecx,(%rdx)
je     125e <main+0xee>
mov    0x18(%rsp,%rax,1),%rsi
test   %ecx,(%r14)
je     127f <main+0x10f>
lea    0xdf4(%rip),%rdi
jmp    11f4 <main+0x84>
mov    0x2d8b(%rip),%rdx
test   %ecx,(%rdx)
je     11f9 <main+0x89>
mov    0x18(%rsp,%rax,1),%rsi
test   %ecx,(%r14)
je     128b <main+0x11b>
lea    0xe0f(%rip),%rdi
jmp    11f4 <main+0x84>
lea    0xde9(%rip),%rdi
jmp    11f4 <main+0x84>
lea    0xe17(%rip),%rdi
jmp    11f4 <main+0x84>
lea    0xd62(%rip),%rdi
call   1080 <perror@plt>
jmp    1192 <main+0x22>
lea    0xd63(%rip),%rdi
call   1080 <perror@plt>
mov    %ebx,%edi
mov    0xc(%rsp),%esi
call   1090 <inotify_rm_watch@plt>
mov    %ebx,%edi
call   1040 <close@plt>
mov    0x2cf3(%rip),%rax
mov    (%rax),%eax
add    $0xc018,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.inotify_event = type { i32, i8*, i64 }
@.str = [13 x i8] c"inotify_init\00"
@.str.1 = [5 x i8] c"/tmp\00"
@IN_MODIFY = global i32 0
@IN_CREATE = global i32 0
@IN_DELETE = global i32 0
@.str.2 = [5 x i8] c"read\00"
@IN_ISDIR = global i32 0
@.str.3 = [31 x i8] c"The directory %s was created.\0A\00"
@.str.4 = [26 x i8] c"The file %s was created.\0A\00"
@.str.5 = [31 x i8] c"The directory %s was deleted.\0A\00"
@.str.6 = [26 x i8] c"The file %s was deleted.\0A\00"
@.str.7 = [32 x i8] c"The directory %s was modified.\0A\00"
@.str.8 = [27 x i8] c"The file %s was modified.\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [49152 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca %struct.inotify_event*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = call i32 (...) @inotify_init()
store i32 %12, i32* %7
%13 = load i32, i32* %7
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %17
17: ; preds = %15, %2
%18 = load i32, i32* %7
%19 = load i32, i32* @IN_MODIFY
%20 = load i32, i32* @IN_CREATE
%21 = or i32 %19, %20
%22 = load i32, i32* @IN_DELETE
%23 = or i32 %21, %22
%24 = call i32 @inotify_add_watch(i32 %18, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %23)
store i32 %24, i32* %8
%25 = load i32, i32* %7
%26 = getelementptr inbounds [49152 x i8], [49152 x i8]* %6, i64 0, i64 0
%27 = call i32 @read(i32 %25, i8* %26, i32 49152)
store i32 %27, i32* %9
%28 = load i32, i32* %9
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %17
%31 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %32
32: ; preds = %30, %17
store i32 0, i32* %10
br label %33
33: ; preds = %124, %32
%34 = load i32, i32* %10
%35 = load i32, i32* %9
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %133
37: ; preds = %33
%38 = load i32, i32* %10
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [49152 x i8], [49152 x i8]* %6, i64 0, i64 %39
%41 = bitcast i8* %40 to %struct.inotify_event*
store %struct.inotify_event* %41, %struct.inotify_event** %11
%42 = load %struct.inotify_event*, %struct.inotify_event** %11
%43 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %42, i32 0, i32 2
%44 = load i64, i64* %43
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %124
46: ; preds = %37
%47 = load %struct.inotify_event*, %struct.inotify_event** %11
%48 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %47, i32 0, i32 0
%49 = load i32, i32* %48
%50 = load i32, i32* @IN_CREATE
%51 = and i32 %49, %50
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %71
53: ; preds = %46
%54 = load %struct.inotify_event*, %struct.inotify_event** %11
%55 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %54, i32 0, i32 0
%56 = load i32, i32* %55
%57 = load i32, i32* @IN_ISDIR
%58 = and i32 %56, %57
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %65
60: ; preds = %53
%61 = load %struct.inotify_event*, %struct.inotify_event** %11
%62 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %61, i32 0, i32 1
%63 = load i8*, i8** %62
%64 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i8* %63)
br label %70
65: ; preds = %53
%66 = load %struct.inotify_event*, %struct.inotify_event** %11
%67 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %66, i32 0, i32 1
%68 = load i8*, i8** %67
%69 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* %68)
br label %70
70: ; preds = %65, %60
br label %123
71: ; preds = %46
%72 = load %struct.inotify_event*, %struct.inotify_event** %11
%73 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %72, i32 0, i32 0
%74 = load i32, i32* %73
%75 = load i32, i32* @IN_DELETE
%76 = and i32 %74, %75
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %96
78: ; preds = %71
%79 = load %struct.inotify_event*, %struct.inotify_event** %11
%80 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %79, i32 0, i32 0
%81 = load i32, i32* %80
%82 = load i32, i32* @IN_ISDIR
%83 = and i32 %81, %82
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %90
85: ; preds = %78
%86 = load %struct.inotify_event*, %struct.inotify_event** %11
%87 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %86, i32 0, i32 1
%88 = load i8*, i8** %87
%89 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8* %88)
br label %95
90: ; preds = %78
%91 = load %struct.inotify_event*, %struct.inotify_event** %11
%92 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %91, i32 0, i32 1
%93 = load i8*, i8** %92
%94 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* %93)
br label %95
95: ; preds = %90, %85
br label %122
96: ; preds = %71
%97 = load %struct.inotify_event*, %struct.inotify_event** %11
%98 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %97, i32 0, i32 0
%99 = load i32, i32* %98
%100 = load i32, i32* @IN_MODIFY
%101 = and i32 %99, %100
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %121
103: ; preds = %96
%104 = load %struct.inotify_event*, %struct.inotify_event** %11
%105 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %104, i32 0, i32 0
%106 = load i32, i32* %105
%107 = load i32, i32* @IN_ISDIR
%108 = and i32 %106, %107
%109 = icmp ne i32 %108, 0
br i1 %109, label %110, label %115
110: ; preds = %103
%111 = load %struct.inotify_event*, %struct.inotify_event** %11
%112 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %111, i32 0, i32 1
%113 = load i8*, i8** %112
%114 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i8* %113)
br label %120
115: ; preds = %103
%116 = load %struct.inotify_event*, %struct.inotify_event** %11
%117 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %116, i32 0, i32 1
%118 = load i8*, i8** %117
%119 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i8* %118)
br label %120
120: ; preds = %115, %110
br label %121
121: ; preds = %120, %96
br label %122
122: ; preds = %121, %95
br label %123
123: ; preds = %122, %70
br label %124
124: ; preds = %123, %37
%125 = load %struct.inotify_event*, %struct.inotify_event** %11
%126 = getelementptr inbounds %struct.inotify_event, %struct.inotify_event* %125, i32 0, i32 2
%127 = load i64, i64* %126
%128 = add i64 24, %127
%129 = load i32, i32* %10
%130 = sext i32 %129 to i64
%131 = add i64 %130, %128
%132 = trunc i64 %131 to i32
store i32 %132, i32* %10
br label %33
133: ; preds = %33
%134 = load i32, i32* %7
%135 = load i32, i32* %8
%136 = call i32 @inotify_rm_watch(i32 %134, i32 %135)
%137 = load i32, i32* %7
%138 = call i32 @close(i32 %137)
%139 = load i32, i32* @EXIT_SUCCESS
ret i32 %139
}

LLVM IR (-O2):
@.str = [13 x i8] c"inotify_init\00"
@.str.1 = [5 x i8] c"/tmp\00"
@IN_MODIFY = global i32 0
@IN_CREATE = global i32 0
@IN_DELETE = global i32 0
@.str.2 = [5 x i8] c"read\00"
@IN_ISDIR = global i32 0
@.str.3 = [31 x i8] c"The directory %s was created.\0A\00"
@.str.4 = [26 x i8] c"The file %s was created.\0A\00"
@.str.5 = [31 x i8] c"The directory %s was deleted.\0A\00"
@.str.6 = [26 x i8] c"The file %s was deleted.\0A\00"
@.str.7 = [32 x i8] c"The directory %s was modified.\0A\00"
@.str.8 = [27 x i8] c"The file %s was modified.\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [49152 x i8]
%4 = getelementptr inbounds [49152 x i8], [49152 x i8]* %3, i64 0, i64 0
%5 = tail call i32 (...) @inotify_init()
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %2
%10 = load i32, i32* @IN_MODIFY
%11 = load i32, i32* @IN_CREATE
%12 = or i32 %11, %10
%13 = load i32, i32* @IN_DELETE
%14 = or i32 %12, %13
%15 = tail call i32 @inotify_add_watch(i32 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = call i32 @read(i32 %5, i8* %4, i32 49152)
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %9
%19 = tail call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %82
20: ; preds = %9
%21 = icmp eq i32 %16, 0
br i1 %21, label %82, label %22
22: ; preds = %20, %77
%23 = phi i32 [ %80, %77 ], [ 0, %20 ]
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [49152 x i8], [49152 x i8]* %3, i64 0, i64 %24
%26 = getelementptr inbounds i8, i8* %25, i64 16
%27 = bitcast i8* %26 to i64*
%28 = load i64, i64* %27
%29 = icmp eq i64 %28, 0
br i1 %29, label %77, label %30
30: ; preds = %22
%31 = bitcast i8* %25 to i32*
%32 = load i32, i32* %31
%33 = load i32, i32* @IN_CREATE
%34 = and i32 %33, %32
%35 = icmp eq i32 %34, 0
br i1 %35, label %47, label %36
36: ; preds = %30
%37 = load i32, i32* @IN_ISDIR
%38 = and i32 %37, %32
%39 = icmp eq i32 %38, 0
%40 = getelementptr inbounds i8, i8* %25, i64 8
%41 = bitcast i8* %40 to i8**
%42 = load i8*, i8** %41
br i1 %39, label %45, label %43
43: ; preds = %36
%44 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i8* %42)
br label %77
45: ; preds = %36
%46 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* %42)
br label %77
47: ; preds = %30
%48 = load i32, i32* @IN_DELETE
%49 = and i32 %48, %32
%50 = icmp eq i32 %49, 0
br i1 %50, label %62, label %51
51: ; preds = %47
%52 = load i32, i32* @IN_ISDIR
%53 = and i32 %52, %32
%54 = icmp eq i32 %53, 0
%55 = getelementptr inbounds i8, i8* %25, i64 8
%56 = bitcast i8* %55 to i8**
%57 = load i8*, i8** %56
br i1 %54, label %60, label %58
58: ; preds = %51
%59 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8* %57)
br label %77
60: ; preds = %51
%61 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* %57)
br label %77
62: ; preds = %47
%63 = load i32, i32* @IN_MODIFY
%64 = and i32 %63, %32
%65 = icmp eq i32 %64, 0
br i1 %65, label %77, label %66
66: ; preds = %62
%67 = load i32, i32* @IN_ISDIR
%68 = and i32 %67, %32
%69 = icmp eq i32 %68, 0
%70 = getelementptr inbounds i8, i8* %25, i64 8
%71 = bitcast i8* %70 to i8**
%72 = load i8*, i8** %71
br i1 %69, label %75, label %73
73: ; preds = %66
%74 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i8* %72)
br label %77
75: ; preds = %66
%76 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i8* %72)
br label %77
77: ; preds = %45, %43, %62, %75, %73, %58, %60, %22
%78 = trunc i64 %28 to i32
%79 = add i32 %23, 24
%80 = add i32 %79, %78
%81 = icmp slt i32 %80, %16
br i1 %81, label %22, label %82
82: ; preds = %77, %18, %20
%83 = tail call i32 @inotify_rm_watch(i32 %5, i32 %15)
%84 = tail call i32 @close(i32 %5)
%85 = load i32, i32* @EXIT_SUCCESS
ret i32 %85
}