#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;
  int wd;
  char *name;
  scalar_t__ len;
};
typedef int ssize_t;

/* Variables and functions */
scalar_t__ EAGAIN;
int /*<<< orphan*/ EXIT_FAILURE;
int IN_CLOSE_NOWRITE;
int IN_CLOSE_WRITE;
int IN_ISDIR;
int IN_MOVED_FROM;
int IN_MOVED_TO;
int IN_OPEN;
scalar_t__ errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int read(int, char *, int);
void handle_events(int fd, int *wd, int argc, char *argv[]) {
  char buf[4096];
  const struct inotify_event *event;
  int i;
  ssize_t len;
  char *ptr;
  for (;;) {
    len = read(fd, buf, sizeof buf);
    if (len == -1 && errno != EAGAIN) {
      perror("read");
      exit(EXIT_FAILURE);
    }
    if (len <= 0)
      break;
    for (ptr = buf; ptr < buf + len;
         ptr += sizeof(struct inotify_event) + event->len) {
      event = (const struct inotify_event *)ptr;
      if (event->mask & IN_OPEN)
        printf("IN_OPEN: ");
      if (event->mask & IN_CLOSE_NOWRITE)
        printf("IN_CLOSE_NOWRITE: ");
      if (event->mask & IN_CLOSE_WRITE)
        printf("IN_CLOSE_WRITE: ");
      if (event->mask & IN_MOVED_FROM)
        printf("IN_MOVED_FROM: ");
      if (event->mask & IN_MOVED_TO)
        printf("IN_MOVED_TO: ");
      for (i = 1; i < argc; ++i) {
        if (wd[i] == event->wd) {
          printf("%s/", argv[i]);
          break;
        }
      }
      if (event->len)
        printf("%s", event->name);
      if (event->mask & IN_ISDIR)
        printf(" [directory]\n");
      else
        printf(" [file]\n");
    }
  }
}


x86 assembly (clang, -O0):
<handle_events>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1040,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x1020(%rbp),%rsi
mov    $0x1000,%edx
call   1040 <read@plt>
mov    %eax,-0x1030(%rbp)
cmpl   $0xffffffff,-0x1030(%rbp)
jne    11b4 <handle_events+0x74>
mov    0x2e31(%rip),%rax
mov    (%rax),%rax
mov    0x2e07(%rip),%rcx
cmp    (%rcx),%rax
je     11b4 <handle_events+0x74>
lea    0xe5f(%rip),%rdi
call   1050 <perror@plt>
mov    0x2e03(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>
cmpl   $0x0,-0x1030(%rbp)
jg     11c6 <handle_events+0x86>
jmp    13d5 <handle_events+0x295>
lea    -0x1020(%rbp),%rax
mov    %rax,-0x1038(%rbp)
mov    -0x1038(%rbp),%rax
lea    -0x1020(%rbp),%rcx
movslq -0x1030(%rbp),%rdx
add    %rdx,%rcx
cmp    %rcx,%rax
jae    13d0 <handle_events+0x290>
mov    -0x1038(%rbp),%rax
mov    %rax,-0x1028(%rbp)
mov    -0x1028(%rbp),%rax
mov    (%rax),%eax
mov    0x2d8d(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     122c <handle_events+0xec>
lea    0xde0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1028(%rbp),%rax
mov    (%rax),%eax
mov    0x2dac(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1255 <handle_events+0x115>
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1028(%rbp),%rax
mov    (%rax),%eax
mov    0x2d7b(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     127e <handle_events+0x13e>
lea    0xdab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1028(%rbp),%rax
mov    (%rax),%eax
mov    0x2d32(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12a7 <handle_events+0x167>
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1028(%rbp),%rax
mov    (%rax),%eax
mov    0x2d11(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12d0 <handle_events+0x190>
lea    0xd7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x102c(%rbp)
mov    -0x102c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1342 <handle_events+0x202>
mov    -0x10(%rbp),%rax
movslq -0x102c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x1028(%rbp),%rcx
cmp    0x4(%rcx),%eax
jne    1329 <handle_events+0x1e9>
mov    -0x20(%rbp),%rax
movslq -0x102c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xd34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1342 <handle_events+0x202>
jmp    132e <handle_events+0x1ee>
mov    -0x102c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x102c(%rbp)
jmp    12da <handle_events+0x19a>
mov    -0x1028(%rbp),%rax
cmpq   $0x0,0x10(%rax)
je     136d <handle_events+0x22d>
mov    -0x1028(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xcef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1028(%rbp),%rax
mov    (%rax),%eax
mov    0x2c5b(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     139b <handle_events+0x25b>
lea    0xcc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13a9 <handle_events+0x269>
lea    0xcc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13ae <handle_events+0x26e>
mov    -0x1028(%rbp),%rax
mov    0x10(%rax),%rax
add    $0x18,%rax
add    -0x1038(%rbp),%rax
mov    %rax,-0x1038(%rbp)
jmp    11d4 <handle_events+0x94>
jmp    1159 <handle_events+0x19>
add    $0x1040,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<handle_events>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1018,%rsp
mov    %rcx,0x8(%rsp)
mov    %edx,%ebp
mov    %rsi,%rbx
lea    0x10(%rsp),%r14
mov    %edi,0x4(%rsp)
mov    %r14,%rsi
mov    $0x1000,%edx
call   1050 <read@plt>
cmp    $0xffffffff,%eax
je     1309 <handle_events+0x1b9>
mov    %ebp,%r13d
lea    0xecc(%rip),%r12
jmp    11bf <handle_events+0x6f>
cs nopw 0x0(%rax,%rax,1)
mov    0x4(%rsp),%edi
lea    0x10(%rsp),%r14
mov    %r14,%rsi
mov    $0x1000,%edx
call   1050 <read@plt>
cmp    $0xffffffff,%eax
je     1309 <handle_events+0x1b9>
test   %eax,%eax
jle    131f <handle_events+0x1cf>
mov    %eax,%eax
lea    (%rsp,%rax,1),%r15
add    $0x10,%r15
jmp    120f <handle_events+0xbf>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x2df1(%rip),%rax
mov    (%rax),%eax
and    (%r14),%eax
mov    %r12,%rdi
lea    0xe62(%rip),%rax
cmove  %rax,%rdi
call   1030 <puts@plt>
mov    0x10(%r14),%rax
add    %rax,%r14
add    $0x18,%r14
cmp    %r15,%r14
jae    11a0 <handle_events+0x50>
mov    (%r14),%eax
mov    0x2d87(%rip),%rcx
test   %eax,(%rcx)
je     122e <handle_events+0xde>
lea    0xde1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r14),%eax
mov    0x2db3(%rip),%rcx
test   %eax,(%rcx)
je     124a <handle_events+0xfa>
lea    0xdcf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r14),%eax
mov    0x2d8f(%rip),%rcx
test   %eax,(%rcx)
je     1266 <handle_events+0x116>
lea    0xdc6(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r14),%eax
mov    0x2d53(%rip),%rcx
test   %eax,(%rcx)
je     1282 <handle_events+0x132>
lea    0xdbb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r14),%eax
mov    0x2d3f(%rip),%rcx
test   %eax,(%rcx)
je     129b <handle_events+0x14b>
lea    0xdaf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%ebp
jl     12be <handle_events+0x16e>
mov    0x4(%r14),%ecx
mov    $0x1,%eax
nopl   0x0(%rax)
cmp    %ecx,(%rbx,%rax,4)
je     12d0 <handle_events+0x180>
add    $0x1,%rax
cmp    %rax,%r13
jne    12b0 <handle_events+0x160>
cmpq   $0x0,0x10(%r14)
jne    12f2 <handle_events+0x1a2>
jmp    11e0 <handle_events+0x90>
nopw   0x0(%rax,%rax,1)
mov    0x8(%rsp),%rcx
mov    (%rcx,%rax,8),%rsi
lea    0xd71(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmpq   $0x0,0x10(%r14)
je     11e0 <handle_events+0x90>
mov    0x8(%r14),%rsi
lea    0xd58(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11e0 <handle_events+0x90>
mov    0x2ca8(%rip),%rax
mov    (%rax),%rax
mov    0x2c7e(%rip),%rcx
cmp    (%rcx),%rax
jne    1331 <handle_events+0x1e1>
add    $0x1018,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcc8(%rip),%rdi
call   1060 <perror@plt>
mov    0x2c6c(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>

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

LLVM IR (-O2):
@errno = global i64 0
@EAGAIN = global i64 0
@.str = [5 x i8] c"read\00"
@EXIT_FAILURE = global i32 0
@IN_OPEN = global i32 0
@.str.1 = [10 x i8] c"IN_OPEN: \00"
@IN_CLOSE_NOWRITE = global i32 0
@.str.2 = [19 x i8] c"IN_CLOSE_NOWRITE: \00"
@IN_CLOSE_WRITE = global i32 0
@.str.3 = [17 x i8] c"IN_CLOSE_WRITE: \00"
@IN_MOVED_FROM = global i32 0
@.str.4 = [16 x i8] c"IN_MOVED_FROM: \00"
@IN_MOVED_TO = global i32 0
@.str.5 = [14 x i8] c"IN_MOVED_TO: \00"
@.str.6 = [4 x i8] c"%s/\00"
@.str.7 = [3 x i8] c"%s\00"
@IN_ISDIR = global i32 0
@str = [8 x i8] c" [file]\00"
@str.10 = [13 x i8] c" [directory]\00"
define void @handle_events(i32 %0, i32* nocapture %1, i32 %2, i8** nocapture %3) {
%5 = alloca [4096 x i8]
%6 = getelementptr inbounds [4096 x i8], [4096 x i8]* %5, i64 0, i64 0
%7 = call i32 @read(i32 %0, i8* %6, i32 4096)
%8 = icmp eq i32 %7, -1
br i1 %8, label %15, label %9
9: ; preds = %4
%10 = icmp sgt i32 %2, 1
%11 = zext i32 %2 to i64
br label %23
12: ; preds = %98
%13 = call i32 @read(i32 %0, i8* %6, i32 4096)
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %23
15: ; preds = %12, %4
%16 = load i64, i64* @errno
%17 = load i64, i64* @EAGAIN
%18 = icmp eq i64 %16, %17
br i1 %18, label %109, label %19
19: ; preds = %15
%20 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%21 = load i32, i32* @EXIT_FAILURE
%22 = call i32 @exit(i32 %21)
unreachable
23: ; preds = %9, %12
%24 = phi i32 [ %7, %9 ], [ %13, %12 ]
%25 = icmp slt i32 %24, 1
br i1 %25, label %109, label %26
26: ; preds = %23
%27 = zext i32 %24 to i64
%28 = getelementptr inbounds [4096 x i8], [4096 x i8]* %5, i64 0, i64 %27
br label %29
29: ; preds = %26, %98
%30 = phi i8* [ %107, %98 ], [ %6, %26 ]
%31 = bitcast i8* %30 to i32*
%32 = load i32, i32* %31
%33 = load i32, i32* @IN_OPEN
%34 = and i32 %33, %32
%35 = icmp eq i32 %34, 0
br i1 %35, label %39, label %36
36: ; preds = %29
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%38 = load i32, i32* %31
br label %39
39: ; preds = %36, %29
%40 = phi i32 [ %38, %36 ], [ %32, %29 ]
%41 = load i32, i32* @IN_CLOSE_NOWRITE
%42 = and i32 %41, %40
%43 = icmp eq i32 %42, 0
br i1 %43, label %47, label %44
44: ; preds = %39
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%46 = load i32, i32* %31
br label %47
47: ; preds = %44, %39
%48 = phi i32 [ %46, %44 ], [ %40, %39 ]
%49 = load i32, i32* @IN_CLOSE_WRITE
%50 = and i32 %49, %48
%51 = icmp eq i32 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %47
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%54 = load i32, i32* %31
br label %55
55: ; preds = %52, %47
%56 = phi i32 [ %54, %52 ], [ %48, %47 ]
%57 = load i32, i32* @IN_MOVED_FROM
%58 = and i32 %57, %56
%59 = icmp eq i32 %58, 0
br i1 %59, label %63, label %60
60: ; preds = %55
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%62 = load i32, i32* %31
br label %63
63: ; preds = %60, %55
%64 = phi i32 [ %62, %60 ], [ %56, %55 ]
%65 = load i32, i32* @IN_MOVED_TO
%66 = and i32 %65, %64
%67 = icmp eq i32 %66, 0
br i1 %67, label %70, label %68
68: ; preds = %63
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %70
70: ; preds = %68, %63
br i1 %10, label %71, label %88
71: ; preds = %70
%72 = getelementptr inbounds i8, i8* %30, i64 4
%73 = bitcast i8* %72 to i32*
%74 = load i32, i32* %73
br label %75
75: ; preds = %71, %85
%76 = phi i64 [ 1, %71 ], [ %86, %85 ]
%77 = getelementptr inbounds i32, i32* %1, i64 %76
%78 = load i32, i32* %77
%79 = icmp eq i32 %78, %74
br i1 %79, label %80, label %85
80: ; preds = %75
%81 = and i64 %76, 4294967295
%82 = getelementptr inbounds i8*, i8** %3, i64 %81
%83 = load i8*, i8** %82
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %83)
br label %88
85: ; preds = %75
%86 = add nuw nsw i64 %76, 1
%87 = icmp eq i64 %86, %11
br i1 %87, label %88, label %75
88: ; preds = %85, %70, %80
%89 = getelementptr inbounds i8, i8* %30, i64 16
%90 = bitcast i8* %89 to i64*
%91 = load i64, i64* %90
%92 = icmp eq i64 %91, 0
br i1 %92, label %98, label %93
93: ; preds = %88
%94 = getelementptr inbounds i8, i8* %30, i64 8
%95 = bitcast i8* %94 to i8**
%96 = load i8*, i8** %95
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %96)
br label %98
98: ; preds = %93, %88
%99 = load i32, i32* %31
%100 = load i32, i32* @IN_ISDIR
%101 = and i32 %100, %99
%102 = icmp eq i32 %101, 0
%103 = select i1 %102, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @str.10, i64 0, i64 0)
%104 = call i32 @puts(i8* dereferenceable(1) %103)
%105 = load i64, i64* %90
%106 = add i64 %105, 24
%107 = getelementptr inbounds i8, i8* %30, i64 %106
%108 = icmp ult i8* %107, %28
br i1 %108, label %29, label %12
109: ; preds = %23, %15
ret void
}