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

/* Variables and functions */
int IN_ACCESS;
int IN_ATTRIB;
int IN_CLOSE_NOWRITE;
int IN_CLOSE_WRITE;
int IN_CREATE;
int IN_DELETE;
int IN_DELETE_SELF;
int IN_MODIFY;
int IN_MOVED_FROM;
int IN_MOVED_TO;
int IN_MOVE_SELF;
int IN_OPEN;
int /*<<< orphan*/ printf(char *, ...);
void print_event(struct inotify_event *evt) {
  if (evt->len > 0)
    printf("file: %s - \n", evt->name);
  do {
    if (evt->mask & IN_ACCESS)
      printf("%s, ", "IN_ACCESS");
  } while (0);
  do {
    if (evt->mask & IN_ATTRIB)
      printf("%s, ", "IN_ATTRIB");
  } while (0);
  do {
    if (evt->mask & IN_CLOSE_WRITE)
      printf("%s, ", "IN_CLOSE_WRITE");
  } while (0);
  do {
    if (evt->mask & IN_CLOSE_NOWRITE)
      printf("%s, ", "IN_CLOSE_NOWRITE");
  } while (0);
  do {
    if (evt->mask & IN_CREATE)
      printf("%s, ", "IN_CREATE");
  } while (0);
  do {
    if (evt->mask & IN_DELETE)
      printf("%s, ", "IN_DELETE");
  } while (0);
  do {
    if (evt->mask & IN_DELETE_SELF)
      printf("%s, ", "IN_DELETE_SELF");
  } while (0);
  do {
    if (evt->mask & IN_MODIFY)
      printf("%s, ", "IN_MODIFY");
  } while (0);
  do {
    if (evt->mask & IN_MOVE_SELF)
      printf("%s, ", "IN_MOVE_SELF");
  } while (0);
  do {
    if (evt->mask & IN_MOVED_FROM)
      printf("%s, ", "IN_MOVED_FROM");
  } while (0);
  do {
    if (evt->mask & IN_MOVED_TO)
      printf("%s, ", "IN_MOVED_TO");
  } while (0);
  do {
    if (evt->mask & IN_OPEN)
      printf("%s, ", "IN_OPEN");
  } while (0);
  printf("\n---\n");
}


x86 assembly (clang, -O0):
<print_event>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
jle    1140 <print_event+0x30>
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1145 <print_event+0x35>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2e65(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1173 <print_event+0x63>
lea    0xea8(%rip),%rdi
lea    0xea6(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1178 <print_event+0x68>
jmp    117d <print_event+0x6d>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2e55(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11ab <print_event+0x9b>
lea    0xe70(%rip),%rdi
lea    0xe78(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11b0 <print_event+0xa0>
jmp    11b5 <print_event+0xa5>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2e0d(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11e3 <print_event+0xd3>
lea    0xe38(%rip),%rdi
lea    0xe4a(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11e8 <print_event+0xd8>
jmp    11ed <print_event+0xdd>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2ddd(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     121b <print_event+0x10b>
lea    0xe00(%rip),%rdi
lea    0xe21(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1220 <print_event+0x110>
jmp    1225 <print_event+0x115>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2d65(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1253 <print_event+0x143>
lea    0xdc8(%rip),%rdi
lea    0xdfa(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1258 <print_event+0x148>
jmp    125d <print_event+0x14d>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2d5d(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     128b <print_event+0x17b>
lea    0xd90(%rip),%rdi
lea    0xdcc(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1290 <print_event+0x180>
jmp    1295 <print_event+0x185>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2cdd(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12c3 <print_event+0x1b3>
lea    0xd58(%rip),%rdi
lea    0xd9e(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12c8 <print_event+0x1b8>
jmp    12cd <print_event+0x1bd>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2d15(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12fb <print_event+0x1eb>
lea    0xd20(%rip),%rdi
lea    0xd75(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1300 <print_event+0x1f0>
jmp    1305 <print_event+0x1f5>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2c8d(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1333 <print_event+0x223>
lea    0xce8(%rip),%rdi
lea    0xd47(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1338 <print_event+0x228>
jmp    133d <print_event+0x22d>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2c5d(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     136b <print_event+0x25b>
lea    0xcb0(%rip),%rdi
lea    0xd1c(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1370 <print_event+0x260>
jmp    1375 <print_event+0x265>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2c2d(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     13a3 <print_event+0x293>
lea    0xc78(%rip),%rdi
lea    0xcf2(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13a8 <print_event+0x298>
jmp    13ad <print_event+0x29d>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2bcd(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     13db <print_event+0x2cb>
lea    0xc40(%rip),%rdi
lea    0xcc6(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13e0 <print_event+0x2d0>
lea    0xcbb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_event>:
push   %rbx
mov    %rdi,%rbx
cmpq   $0x0,(%rdi)
jle    113c <print_event+0x1c>
mov    0x8(%rbx),%rsi
lea    0xecb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2e72(%rip),%rcx
test   %eax,(%rcx)
je     1162 <print_event+0x42>
lea    0xebc(%rip),%rdi
lea    0xeba(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2e77(%rip),%rcx
test   %eax,(%rcx)
je     1185 <print_event+0x65>
lea    0xe99(%rip),%rdi
lea    0xea1(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2e44(%rip),%rcx
test   %eax,(%rcx)
je     11a8 <print_event+0x88>
lea    0xe76(%rip),%rdi
lea    0xe88(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2e29(%rip),%rcx
test   %eax,(%rcx)
je     11cb <print_event+0xab>
lea    0xe53(%rip),%rdi
lea    0xe74(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2dc6(%rip),%rcx
test   %eax,(%rcx)
je     11ee <print_event+0xce>
lea    0xe30(%rip),%rdi
lea    0xe62(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2dd3(%rip),%rcx
test   %eax,(%rcx)
je     1211 <print_event+0xf1>
lea    0xe0d(%rip),%rdi
lea    0xe49(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2d68(%rip),%rcx
test   %eax,(%rcx)
je     1234 <print_event+0x114>
lea    0xdea(%rip),%rdi
lea    0xe30(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2db5(%rip),%rcx
test   %eax,(%rcx)
je     1257 <print_event+0x137>
lea    0xdc7(%rip),%rdi
lea    0xe1c(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2d42(%rip),%rcx
test   %eax,(%rcx)
je     127a <print_event+0x15a>
lea    0xda4(%rip),%rdi
lea    0xe03(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2d27(%rip),%rcx
test   %eax,(%rcx)
je     129d <print_event+0x17d>
lea    0xd81(%rip),%rdi
lea    0xded(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2d0c(%rip),%rcx
test   %eax,(%rcx)
je     12c0 <print_event+0x1a0>
lea    0xd5e(%rip),%rdi
lea    0xdd8(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2cc1(%rip),%rcx
test   %eax,(%rcx)
je     12e0 <print_event+0x1c0>
lea    0xd3b(%rip),%rdi
lea    0xdc1(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdbb(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

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

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