#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__ wd;
  scalar_t__ cookie;
  int mask;
  scalar_t__ len;
  scalar_t__ name;
};

/* 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_ISDIR;
int IN_MODIFY;
int IN_MOVED_FROM;
int IN_MOVED_TO;
int IN_MOVE_SELF;
int IN_OPEN;
int /*<<< orphan*/ printf(char *, ...);
void display_events(struct inotify_event *j) {
  printf(" wd:%2d; ", j->wd);
  if (j->cookie > 0)
    printf(" cookie:%4d; ", j->cookie);
  printf("mask: ");
  if (j->mask & IN_OPEN)
    printf("IN_OPEN ");
  if (j->mask & IN_ACCESS)
    printf("IN_ACCESS ");
  if (j->mask & IN_ATTRIB)
    printf("IN_ATTRIB ");
  if (j->mask & IN_CLOSE_NOWRITE)
    printf("IN_CLOSE_NOWRITE ");
  if (j->mask & IN_CLOSE_WRITE)
    printf("IN_CLOSE_WRITE ");
  if (j->mask & IN_CREATE)
    printf("IN_CREATE ");
  if (j->mask & IN_DELETE)
    printf("IN_DELETE ");
  if (j->mask & IN_DELETE_SELF)
    printf("IN_DELETE_SELF ");
  if (j->mask & IN_ISDIR)
    printf("IN_ISDIR ");
  if (j->mask & IN_MODIFY)
    printf("IN_ISDIR ");
  if (j->mask & IN_MOVED_TO)
    printf("IN_MOVED_TO ");
  if (j->mask & IN_MOVED_FROM)
    printf("IN_MOVED_FROM ");
  if (j->mask & IN_MOVE_SELF)
    printf("IN_MOVE_SELF ");
  printf("\n");
  if (j->len > 0)
    printf(" name:%s\n", j->name);
}


x86 assembly (clang, -O0):
<display_events>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
cmpq   $0x0,0x8(%rax)
jle    1156 <display_events+0x46>
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2e0e(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     118b <display_events+0x7b>
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2e17(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11b2 <display_events+0xa2>
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2e20(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11d9 <display_events+0xc9>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2df1(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1200 <display_events+0xf0>
lea    0xe45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2dc2(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1227 <display_events+0x117>
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2d5b(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     124e <display_events+0x13e>
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2d6c(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1275 <display_events+0x165>
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2cf5(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     129c <display_events+0x18c>
lea    0xde1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2d16(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12c3 <display_events+0x1b3>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2d1f(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12ea <display_events+0x1da>
lea    0xda3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2cb0(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1311 <display_events+0x201>
lea    0xd86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2c81(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1338 <display_events+0x228>
lea    0xd6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
mov    0x2c52(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     135f <display_events+0x24f>
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
cmpq   $0x0,0x18(%rax)
jle    1392 <display_events+0x282>
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%rsi
lea    0xd2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display_events>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rsi
lea    0xed2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%rsi
test   %rsi,%rsi
jle    114c <display_events+0x2c>
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2e1c(%rip),%rcx
test   %eax,(%rcx)
je     1179 <display_events+0x59>
lea    0xeb0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2e30(%rip),%rcx
test   %eax,(%rcx)
je     1195 <display_events+0x75>
lea    0xe9d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2e44(%rip),%rcx
test   %eax,(%rcx)
je     11b1 <display_events+0x91>
lea    0xe8c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2e20(%rip),%rcx
test   %eax,(%rcx)
je     11cd <display_events+0xad>
lea    0xe7b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2dfc(%rip),%rcx
test   %eax,(%rcx)
je     11e9 <display_events+0xc9>
lea    0xe71(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2da0(%rip),%rcx
test   %eax,(%rcx)
je     1205 <display_events+0xe5>
lea    0xe65(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2dbc(%rip),%rcx
test   %eax,(%rcx)
je     1221 <display_events+0x101>
lea    0xe54(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2d50(%rip),%rcx
test   %eax,(%rcx)
je     123d <display_events+0x11d>
lea    0xe43(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2d7c(%rip),%rcx
test   %eax,(%rcx)
je     1259 <display_events+0x139>
lea    0xe37(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2d90(%rip),%rcx
test   %eax,(%rcx)
je     1275 <display_events+0x155>
lea    0xe1b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2d2c(%rip),%rcx
test   %eax,(%rcx)
je     1291 <display_events+0x171>
lea    0xe09(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2d08(%rip),%rcx
test   %eax,(%rcx)
je     12ad <display_events+0x18d>
lea    0xdfa(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x2ce4(%rip),%rcx
test   %eax,(%rcx)
je     12c6 <display_events+0x1a6>
lea    0xded(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmpq   $0x0,0x18(%rbx)
jle    12ea <display_events+0x1ca>
mov    0x20(%rbx),%rsi
lea    0xdd8(%rip),%rdi
xor    %eax,%eax
pop    %rbx
jmp    1040 <printf@plt>
pop    %rbx
ret

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

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