; LLVM IR from hoytech/vmtouch :: vmtouch (main)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.timeval = type { i64, i64 }

@total_pages = external dso_local global i64, align 8
@total_pages_in_core = external dso_local global i64, align 8
@total_files = external dso_local global i64, align 8
@total_dirs = external dso_local global i64, align 8
@o_touch = external dso_local global i32, align 4
@o_evict = external dso_local global i32, align 4
@o_quiet = external dso_local global i32, align 4
@o_verbose = external dso_local global i32, align 4
@o_lock = external dso_local global i32, align 4
@o_lockall = external dso_local global i32, align 4
@o_daemon = external dso_local global i32, align 4
@o_followsymlinks = external dso_local global i32, align 4
@o_singlefilesystem = external dso_local global i32, align 4
@o_ignorehardlinkeduplictes = external dso_local global i32, align 4
@o_max_file_size = external dso_local global i64, align 8
@o_wait = external dso_local global i32, align 4
@o_0_delim = external dso_local global i32, align 4
@exit_pipe = external dso_local global [2 x i32], align 4
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@pagesize = external dso_local global i64, align 8
@.str.76 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [27 x i8], align 1
@optarg = external global ptr, align 8
@.str.78 = external hidden unnamed_addr constant [40 x i8], align 1
@o_batch = external hidden global ptr, align 8
@o_pidfile = external hidden global ptr, align 8
@o_output = external hidden global ptr, align 8
@optind = external global i32, align 4
@.str.79 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [107 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @send_exit_signal(i8 noundef signext) #0

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #1

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #2

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #0

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @go_daemon() #0

; Function Attrs: nounwind uwtable
declare hidden void @fatal(ptr noundef, ...) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @pretty_print_size(i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @parse_size(ptr noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #5

; Function Attrs: nounwind uwtable
declare dso_local void @parse_range(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @parse_ignore_item(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @parse_filename_filter_item(ptr noundef) #0

; Function Attrs: nounwind
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @vmtouch_crawl(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %struct.timeval, align 8
  %10 = alloca %struct.timeval, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %17 = load ptr, ptr %5, align 8, !tbaa !9
  %18 = getelementptr inbounds ptr, ptr %17, i64 0
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  store ptr %19, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  %20 = call i32 @pipe(ptr noundef @exit_pipe) #7
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %26

22:                                               ; preds = %2
  %23 = call ptr @__errno_location() #8
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = call ptr @strerror(i32 noundef %24) #7
  call void (ptr, ...) @fatal(ptr noundef @.str.76, ptr noundef %25)
  br label %26

26:                                               ; preds = %22, %2
  %27 = call i64 @sysconf(i32 noundef 30) #7
  store i64 %27, ptr @pagesize, align 8, !tbaa !11
  br label %28

28:                                               ; preds = %71, %26
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !9
  %31 = call i32 @getopt(i32 noundef %29, ptr noundef %30, ptr noundef @.str.77) #7
  store i32 %31, ptr %6, align 4, !tbaa !5
  %32 = icmp ne i32 %31, -1
  br i1 %32, label %33, label %72

33:                                               ; preds = %28
  %34 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %34, label %71 [
    i32 63, label %35
    i32 116, label %36
    i32 101, label %37
    i32 113, label %38
    i32 118, label %39
    i32 108, label %42
    i32 76, label %43
    i32 100, label %44
    i32 102, label %45
    i32 70, label %46
    i32 104, label %47
    i32 112, label %48
    i32 105, label %50
    i32 73, label %52
    i32 109, label %54
    i32 119, label %63
    i32 98, label %64
    i32 48, label %66
    i32 80, label %67
    i32 111, label %69
  ]

35:                                               ; preds = %33
  call void @usage()
  br label %71

36:                                               ; preds = %33
  store i32 1, ptr @o_touch, align 4, !tbaa !5
  br label %71

37:                                               ; preds = %33
  store i32 1, ptr @o_evict, align 4, !tbaa !5
  br label %71

38:                                               ; preds = %33
  store i32 1, ptr @o_quiet, align 4, !tbaa !5
  br label %71

39:                                               ; preds = %33
  %40 = load i32, ptr @o_verbose, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr @o_verbose, align 4, !tbaa !5
  br label %71

42:                                               ; preds = %33
  store i32 1, ptr @o_lock, align 4, !tbaa !5
  store i32 1, ptr @o_touch, align 4, !tbaa !5
  br label %71

43:                                               ; preds = %33
  store i32 1, ptr @o_lockall, align 4, !tbaa !5
  store i32 1, ptr @o_touch, align 4, !tbaa !5
  br label %71

44:                                               ; preds = %33
  store i32 1, ptr @o_daemon, align 4, !tbaa !5
  br label %71

45:                                               ; preds = %33
  store i32 1, ptr @o_followsymlinks, align 4, !tbaa !5
  br label %71

46:                                               ; preds = %33
  store i32 1, ptr @o_singlefilesystem, align 4, !tbaa !5
  br label %71

47:                                               ; preds = %33
  store i32 1, ptr @o_ignorehardlinkeduplictes, align 4, !tbaa !5
  br label %71

48:                                               ; preds = %33
  %49 = load ptr, ptr @optarg, align 8, !tbaa !9
  call void @parse_range(ptr noundef %49)
  br label %71

50:                                               ; preds = %33
  %51 = load ptr, ptr @optarg, align 8, !tbaa !9
  call void @parse_ignore_item(ptr noundef %51)
  br label %71

52:                                               ; preds = %33
  %53 = load ptr, ptr @optarg, align 8, !tbaa !9
  call void @parse_filename_filter_item(ptr noundef %53)
  br label %71

54:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %55 = load ptr, ptr @optarg, align 8, !tbaa !9
  %56 = call i64 @parse_size(ptr noundef %55)
  store i64 %56, ptr %11, align 8, !tbaa !11
  %57 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %57, ptr @o_max_file_size, align 8, !tbaa !11
  %58 = load i64, ptr %11, align 8, !tbaa !11
  %59 = load i64, ptr @o_max_file_size, align 8, !tbaa !11
  %60 = icmp ne i64 %58, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %54
  call void (ptr, ...) @fatal(ptr noundef @.str.78)
  br label %62

62:                                               ; preds = %61, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %71

63:                                               ; preds = %33
  store i32 1, ptr @o_wait, align 4, !tbaa !5
  br label %71

64:                                               ; preds = %33
  %65 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %65, ptr @o_batch, align 8, !tbaa !9
  br label %71

66:                                               ; preds = %33
  store i32 1, ptr @o_0_delim, align 4, !tbaa !5
  br label %71

67:                                               ; preds = %33
  %68 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %68, ptr @o_pidfile, align 8, !tbaa !9
  br label %71

69:                                               ; preds = %33
  %70 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %70, ptr @o_output, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %69, %67, %66, %64, %63, %62, %52, %50, %48, %47, %46, %45, %44, %43, %42, %39, %38, %37, %36, %35, %33
  br label %28, !llvm.loop !13

72:                                               ; preds = %28
  %73 = load i32, ptr @optind, align 4, !tbaa !5
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = sub nsw i32 %74, %73
  store i32 %75, ptr %4, align 4, !tbaa !5
  %76 = load i32, ptr @optind, align 4, !tbaa !5
  %77 = load ptr, ptr %5, align 8, !tbaa !9
  %78 = sext i32 %76 to i64
  %79 = getelementptr inbounds ptr, ptr %77, i64 %78
  store ptr %79, ptr %5, align 8, !tbaa !9
  %80 = load i32, ptr @o_touch, align 4, !tbaa !5
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %87

82:                                               ; preds = %72
  %83 = load i32, ptr @o_evict, align 4, !tbaa !5
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %82
  call void (ptr, ...) @fatal(ptr noundef @.str.79)
  br label %86

86:                                               ; preds = %85, %82
  br label %87

87:                                               ; preds = %86, %72
  %88 = load i32, ptr @o_evict, align 4, !tbaa !5
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %95

90:                                               ; preds = %87
  %91 = load i32, ptr @o_lock, align 4, !tbaa !5
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  call void (ptr, ...) @fatal(ptr noundef @.str.80)
  br label %94

94:                                               ; preds = %93, %90
  br label %95

95:                                               ; preds = %94, %87
  %96 = load i32, ptr @o_lock, align 4, !tbaa !5
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %102

98:                                               ; preds = %95
  %99 = load i32, ptr @o_lockall, align 4, !tbaa !5
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %98
  call void (ptr, ...) @fatal(ptr noundef @.str.81)
  br label %102

102:                                              ; preds = %101, %98, %95
  %103 = load i32, ptr @o_daemon, align 4, !tbaa !5
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %117

105:                                              ; preds = %102
  %106 = load i32, ptr @o_lock, align 4, !tbaa !5
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %112, label %108

108:                                              ; preds = %105
  %109 = load i32, ptr @o_lockall, align 4, !tbaa !5
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %112, label %111

111:                                              ; preds = %108
  call void (ptr, ...) @fatal(ptr noundef @.str.82)
  br label %112

112:                                              ; preds = %111, %108, %105
  %113 = load i32, ptr @o_wait, align 4, !tbaa !5
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %116, label %115

115:                                              ; preds = %112
  store i32 1, ptr @o_quiet, align 4, !tbaa !5
  store i32 0, ptr @o_verbose, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %115, %112
  br label %117

117:                                              ; preds = %116, %102
  %118 = load i32, ptr @o_wait, align 4, !tbaa !5
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %124

120:                                              ; preds = %117
  %121 = load i32, ptr @o_daemon, align 4, !tbaa !5
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %124, label %123

123:                                              ; preds = %120
  call void (ptr, ...) @fatal(ptr noundef @.str.83)
  br label %124

124:                                              ; preds = %123, %120, %117
  %125 = load i32, ptr @o_quiet, align 4, !tbaa !5
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %131

127:                                              ; preds = %124
  %128 = load i32, ptr @o_verbose, align 4, !tbaa !5
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %131

130:                                              ; preds = %127
  call void (ptr, ...) @fatal(ptr noundef @.str.84)
  br label %131

131:                                              ; preds = %130, %127, %124
  %132 = load ptr, ptr @o_pidfile, align 8, !tbaa !9
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %141

134:                                              ; preds = %131
  %135 = load i32, ptr @o_lock, align 4, !tbaa !5
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %141, label %137

137:                                              ; preds = %134
  %138 = load i32, ptr @o_lockall, align 4, !tbaa !5
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %141, label %140

140:                                              ; preds = %137
  call void (ptr, ...) @fatal(ptr noundef @.str.85)
  br label %141

141:                                              ; preds = %140, %137, %134, %131
  %142 = load i32, ptr %4, align 4, !tbaa !5
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %150, label %144

144:                                              ; preds = %141
  %145 = load ptr, ptr @o_batch, align 8, !tbaa !9
  %146 = icmp ne ptr %145, null
  br i1 %146, label %150, label %147

147:                                              ; preds = %144
  %148 = load ptr, ptr %8, align 8, !tbaa !9
  %149 = call i32 (ptr, ...) @printf(ptr noundef @.str.86, ptr noundef %148)
  call void @usage()
  br label %150

150:                                              ; preds = %147, %144, %141
  %151 = load i32, ptr @o_daemon, align 4, !tbaa !5
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %154

153:                                              ; preds = %150
  call void @go_daemon()
  br label %154

154:                                              ; preds = %153, %150
  %155 = call i32 @gettimeofday(ptr noundef %9, ptr noundef null) #7
  %156 = load ptr, ptr @o_batch, align 8, !tbaa !9
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %160

158:                                              ; preds = %154
  %159 = load ptr, ptr @o_batch, align 8, !tbaa !9
  call void @vmtouch_batch_crawl(ptr noundef %159)
  br label %160

160:                                              ; preds = %158, %154
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %171, %160
  %162 = load i32, ptr %7, align 4, !tbaa !5
  %163 = load i32, ptr %4, align 4, !tbaa !5
  %164 = icmp slt i32 %162, %163
  br i1 %164, label %165, label %174

165:                                              ; preds = %161
  %166 = load ptr, ptr %5, align 8, !tbaa !9
  %167 = load i32, ptr %7, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds ptr, ptr %166, i64 %168
  %170 = load ptr, ptr %169, align 8, !tbaa !9
  call void @vmtouch_crawl(ptr noundef %170)
  br label %171

171:                                              ; preds = %165
  %172 = load i32, ptr %7, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %7, align 4, !tbaa !5
  br label %161, !llvm.loop !15

174:                                              ; preds = %161
  %175 = call i32 @gettimeofday(ptr noundef %10, ptr noundef null) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %176 = load i64, ptr @total_pages_in_core, align 8, !tbaa !11
  %177 = load i64, ptr @pagesize, align 8, !tbaa !11
  %178 = mul nsw i64 %176, %177
  store i64 %178, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %179 = load i64, ptr @total_pages, align 8, !tbaa !11
  %180 = load i64, ptr @pagesize, align 8, !tbaa !11
  %181 = mul nsw i64 %179, %180
  store i64 %181, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %182 = load i64, ptr @total_pages_in_core, align 8, !tbaa !11
  %183 = sitofp i64 %182 to double
  %184 = fmul double 1.000000e+02, %183
  %185 = load i64, ptr @total_pages, align 8, !tbaa !11
  %186 = sitofp i64 %185 to double
  %187 = fdiv double %184, %186
  store double %187, ptr %14, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %188 = getelementptr inbounds %struct.timeval, ptr %10, i32 0, i32 0
  %189 = load i64, ptr %188, align 8, !tbaa !18
  %190 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 0
  %191 = load i64, ptr %190, align 8, !tbaa !18
  %192 = sub nsw i64 %189, %191
  %193 = sitofp i64 %192 to double
  %194 = getelementptr inbounds %struct.timeval, ptr %10, i32 0, i32 1
  %195 = load i64, ptr %194, align 8, !tbaa !20
  %196 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 1
  %197 = load i64, ptr %196, align 8, !tbaa !20
  %198 = sub nsw i64 %195, %197
  %199 = sitofp i64 %198 to double
  %200 = fdiv double %199, 1.000000e+06
  %201 = fadd double %193, %200
  store double %201, ptr %15, align 8, !tbaa !16
  %202 = load i32, ptr @o_lock, align 4, !tbaa !5
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %207, label %204

204:                                              ; preds = %174
  %205 = load i32, ptr @o_lockall, align 4, !tbaa !5
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %207, label %236

207:                                              ; preds = %204, %174
  %208 = load i32, ptr @o_lockall, align 4, !tbaa !5
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %218

210:                                              ; preds = %207
  %211 = call i32 @mlockall(i32 noundef 1) #7
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %213, label %217

213:                                              ; preds = %210
  %214 = call ptr @__errno_location() #8
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = call ptr @strerror(i32 noundef %215) #7
  call void (ptr, ...) @fatal(ptr noundef @.str.87, ptr noundef %216)
  br label %217

217:                                              ; preds = %213, %210
  br label %218

218:                                              ; preds = %217, %207
  %219 = load ptr, ptr @o_pidfile, align 8, !tbaa !9
  %220 = icmp ne ptr %219, null
  br i1 %220, label %221, label %222

221:                                              ; preds = %218
  call void @register_signals_for_pidfile()
  call void @write_pidfile()
  br label %222

222:                                              ; preds = %221, %218
  %223 = load i32, ptr @o_quiet, align 4, !tbaa !5
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %230, label %225

225:                                              ; preds = %222
  %226 = load i64, ptr @total_pages, align 8, !tbaa !11
  %227 = load i64, ptr %13, align 8, !tbaa !11
  %228 = call ptr @pretty_print_size(i64 noundef %227)
  %229 = call i32 (ptr, ...) @printf(ptr noundef @.str.88, i64 noundef %226, ptr noundef %228)
  br label %230

230:                                              ; preds = %225, %222
  %231 = load i32, ptr @o_wait, align 4, !tbaa !5
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %234

233:                                              ; preds = %230
  call void @reopen_all()
  br label %234

234:                                              ; preds = %233, %230
  call void @send_exit_signal(i8 noundef signext 0)
  %235 = call i32 @select(i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null)
  call void @exit(i32 noundef 0) #9
  unreachable

236:                                              ; preds = %204
  %237 = load i32, ptr @o_quiet, align 4, !tbaa !5
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %317, label %239

239:                                              ; preds = %236
  %240 = load ptr, ptr @o_output, align 8, !tbaa !9
  %241 = icmp eq ptr %240, null
  br i1 %241, label %242, label %288

242:                                              ; preds = %239
  %243 = load i32, ptr @o_verbose, align 4, !tbaa !5
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %247

245:                                              ; preds = %242
  %246 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %247

247:                                              ; preds = %245, %242
  %248 = load i64, ptr @total_files, align 8, !tbaa !11
  %249 = call i32 (ptr, ...) @printf(ptr noundef @.str.89, i64 noundef %248)
  %250 = load i64, ptr @total_dirs, align 8, !tbaa !11
  %251 = call i32 (ptr, ...) @printf(ptr noundef @.str.90, i64 noundef %250)
  %252 = load i32, ptr @o_touch, align 4, !tbaa !5
  %253 = icmp ne i32 %252, 0
  br i1 %253, label %254, label %259

254:                                              ; preds = %247
  %255 = load i64, ptr @total_pages, align 8, !tbaa !11
  %256 = load i64, ptr %13, align 8, !tbaa !11
  %257 = call ptr @pretty_print_size(i64 noundef %256)
  %258 = call i32 (ptr, ...) @printf(ptr noundef @.str.91, i64 noundef %255, ptr noundef %257)
  br label %285

259:                                              ; preds = %247
  %260 = load i32, ptr @o_evict, align 4, !tbaa !5
  %261 = icmp ne i32 %260, 0
  br i1 %261, label %262, label %267

262:                                              ; preds = %259
  %263 = load i64, ptr @total_pages, align 8, !tbaa !11
  %264 = load i64, ptr %13, align 8, !tbaa !11
  %265 = call ptr @pretty_print_size(i64 noundef %264)
  %266 = call i32 (ptr, ...) @printf(ptr noundef @.str.92, i64 noundef %263, ptr noundef %265)
  br label %284

267:                                              ; preds = %259
  %268 = load i64, ptr @total_pages_in_core, align 8, !tbaa !11
  %269 = load i64, ptr @total_pages, align 8, !tbaa !11
  %270 = call i32 (ptr, ...) @printf(ptr noundef @.str.93, i64 noundef %268, i64 noundef %269)
  %271 = load i64, ptr %12, align 8, !tbaa !11
  %272 = call ptr @pretty_print_size(i64 noundef %271)
  %273 = call i32 (ptr, ...) @printf(ptr noundef @.str.94, ptr noundef %272)
  %274 = load i64, ptr %13, align 8, !tbaa !11
  %275 = call ptr @pretty_print_size(i64 noundef %274)
  %276 = call i32 (ptr, ...) @printf(ptr noundef @.str.95, ptr noundef %275)
  %277 = load i64, ptr @total_pages, align 8, !tbaa !11
  %278 = icmp ne i64 %277, 0
  br i1 %278, label %279, label %282

279:                                              ; preds = %267
  %280 = load double, ptr %14, align 8, !tbaa !16
  %281 = call i32 (ptr, ...) @printf(ptr noundef @.str.96, double noundef %280)
  br label %282

282:                                              ; preds = %279, %267
  %283 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %284

284:                                              ; preds = %282, %262
  br label %285

285:                                              ; preds = %284, %254
  %286 = load double, ptr %15, align 8, !tbaa !16
  %287 = call i32 (ptr, ...) @printf(ptr noundef @.str.97, double noundef %286)
  br label %316

288:                                              ; preds = %239
  %289 = load ptr, ptr @o_output, align 8, !tbaa !9
  %290 = call i32 @strncmp(ptr noundef %289, ptr noundef @.str.98, i64 noundef 2) #10
  %291 = icmp eq i32 %290, 0
  br i1 %291, label %292, label %315

292:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %293 = load i32, ptr @o_touch, align 4, !tbaa !5
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %295, label %296

295:                                              ; preds = %292
  br label %301

296:                                              ; preds = %292
  %297 = load i32, ptr @o_evict, align 4, !tbaa !5
  %298 = icmp ne i32 %297, 0
  %299 = zext i1 %298 to i64
  %300 = select i1 %298, ptr @.str.100, ptr @.str.101
  br label %301

301:                                              ; preds = %296, %295
  %302 = phi ptr [ @.str.99, %295 ], [ %300, %296 ]
  store ptr %302, ptr %16, align 8, !tbaa !9
  %303 = load i64, ptr @total_files, align 8, !tbaa !11
  %304 = load i64, ptr @total_dirs, align 8, !tbaa !11
  %305 = load ptr, ptr %16, align 8, !tbaa !9
  %306 = load i64, ptr @total_pages_in_core, align 8, !tbaa !11
  %307 = load i64, ptr @total_pages, align 8, !tbaa !11
  %308 = load ptr, ptr %16, align 8, !tbaa !9
  %309 = load i64, ptr %12, align 8, !tbaa !11
  %310 = load i64, ptr %13, align 8, !tbaa !11
  %311 = load ptr, ptr %16, align 8, !tbaa !9
  %312 = load double, ptr %14, align 8, !tbaa !16
  %313 = load double, ptr %15, align 8, !tbaa !16
  %314 = call i32 (ptr, ...) @printf(ptr noundef @.str.102, i64 noundef %303, i64 noundef %304, ptr noundef %305, i64 noundef %306, i64 noundef %307, ptr noundef %308, i64 noundef %309, i64 noundef %310, ptr noundef %311, double noundef %312, double noundef %313)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %315

315:                                              ; preds = %301, %288
  br label %316

316:                                              ; preds = %315, %285
  br label %317

317:                                              ; preds = %316, %236
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @pipe(ptr noundef) #1

; Function Attrs: nounwind
declare i64 @sysconf(i32 noundef) #1

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @vmtouch_batch_crawl(ptr noundef) #0

; Function Attrs: nounwind
declare i32 @mlockall(i32 noundef) #1

declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #6

; Function Attrs: nounwind uwtable
declare hidden void @reopen_all() #0

; Function Attrs: nounwind uwtable
declare hidden void @register_signals_for_pidfile() #0

; Function Attrs: nounwind uwtable
declare hidden void @write_pidfile() #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!19, !12, i64 0}
!19 = !{!"timeval", !12, i64 0, !12, i64 8}
!20 = !{!19, !12, i64 8}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.timeval = type { i64, i64 }

@total_pages = external dso_local local_unnamed_addr global i64, align 8
@total_pages_in_core = external dso_local local_unnamed_addr global i64, align 8
@total_files = external dso_local local_unnamed_addr global i64, align 8
@total_dirs = external dso_local local_unnamed_addr global i64, align 8
@o_touch = external dso_local local_unnamed_addr global i32, align 4
@o_evict = external dso_local local_unnamed_addr global i32, align 4
@o_quiet = external dso_local local_unnamed_addr global i32, align 4
@o_verbose = external dso_local local_unnamed_addr global i32, align 4
@o_lock = external dso_local local_unnamed_addr global i32, align 4
@o_lockall = external dso_local local_unnamed_addr global i32, align 4
@o_daemon = external dso_local local_unnamed_addr global i32, align 4
@o_followsymlinks = external dso_local local_unnamed_addr global i32, align 4
@o_singlefilesystem = external dso_local local_unnamed_addr global i32, align 4
@o_ignorehardlinkeduplictes = external dso_local local_unnamed_addr global i32, align 4
@o_max_file_size = external dso_local local_unnamed_addr global i64, align 8
@o_wait = external dso_local local_unnamed_addr global i32, align 4
@o_0_delim = external dso_local local_unnamed_addr global i32, align 4
@exit_pipe = external dso_local global [2 x i32], align 4
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@pagesize = external dso_local local_unnamed_addr global i64, align 8
@.str.76 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [27 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@o_batch = external hidden local_unnamed_addr global ptr, align 8
@o_pidfile = external hidden local_unnamed_addr global ptr, align 8
@o_output = external hidden local_unnamed_addr global ptr, align 8
@optind = external local_unnamed_addr global i32, align 4
@.str.79 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [107 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @send_exit_signal(i8 noundef signext) local_unnamed_addr #0

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @go_daemon() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @fatal(ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @pretty_print_size(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @parse_size(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #5

; Function Attrs: nounwind uwtable
declare dso_local void @parse_range(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @parse_ignore_item(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @parse_filename_filter_item(ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @gettimeofday(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @vmtouch_crawl(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.timeval, align 8
  %4 = alloca %struct.timeval, align 8
  %5 = load ptr, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  %6 = tail call i32 @pipe(ptr noundef nonnull @exit_pipe) #8
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %11, label %7

7:                                                ; preds = %2
  %8 = tail call ptr @__errno_location() #9
  %9 = load i32, ptr %8, align 4, !tbaa !9
  %10 = tail call ptr @strerror(i32 noundef %9) #8
  tail call void (ptr, ...) @fatal(ptr noundef nonnull @.str.76, ptr noundef %10)
  br label %11

11:                                               ; preds = %7, %2
  %12 = tail call i64 @sysconf(i32 noundef 30) #8
  store i64 %12, ptr @pagesize, align 8, !tbaa !11
  br label %13

13:                                               ; preds = %.backedge, %11
  %14 = tail call i32 @getopt(i32 noundef %0, ptr noundef nonnull %1, ptr noundef nonnull @.str.77) #8
  switch i32 %14, label %.backedge [
    i32 -1, label %45
    i32 63, label %15
    i32 116, label %16
    i32 101, label %17
    i32 113, label %18
    i32 118, label %19
    i32 108, label %22
    i32 76, label %23
    i32 100, label %24
    i32 102, label %25
    i32 70, label %26
    i32 104, label %27
    i32 112, label %28
    i32 105, label %30
    i32 73, label %32
    i32 109, label %34
    i32 119, label %37
    i32 98, label %38
    i32 48, label %40
    i32 80, label %41
    i32 111, label %43
  ]

.backedge:                                        ; preds = %13, %43, %41, %40, %38, %37, %34, %32, %30, %28, %27, %26, %25, %24, %23, %22, %19, %18, %17, %16, %15
  br label %13, !llvm.loop !13

15:                                               ; preds = %13
  tail call void @usage()
  br label %.backedge

16:                                               ; preds = %13
  store i32 1, ptr @o_touch, align 4, !tbaa !9
  br label %.backedge

17:                                               ; preds = %13
  store i32 1, ptr @o_evict, align 4, !tbaa !9
  br label %.backedge

18:                                               ; preds = %13
  store i32 1, ptr @o_quiet, align 4, !tbaa !9
  br label %.backedge

19:                                               ; preds = %13
  %20 = load i32, ptr @o_verbose, align 4, !tbaa !9
  %21 = add nsw i32 %20, 1
  store i32 %21, ptr @o_verbose, align 4, !tbaa !9
  br label %.backedge

22:                                               ; preds = %13
  store i32 1, ptr @o_lock, align 4, !tbaa !9
  store i32 1, ptr @o_touch, align 4, !tbaa !9
  br label %.backedge

23:                                               ; preds = %13
  store i32 1, ptr @o_lockall, align 4, !tbaa !9
  store i32 1, ptr @o_touch, align 4, !tbaa !9
  br label %.backedge

24:                                               ; preds = %13
  store i32 1, ptr @o_daemon, align 4, !tbaa !9
  br label %.backedge

25:                                               ; preds = %13
  store i32 1, ptr @o_followsymlinks, align 4, !tbaa !9
  br label %.backedge

26:                                               ; preds = %13
  store i32 1, ptr @o_singlefilesystem, align 4, !tbaa !9
  br label %.backedge

27:                                               ; preds = %13
  store i32 1, ptr @o_ignorehardlinkeduplictes, align 4, !tbaa !9
  br label %.backedge

28:                                               ; preds = %13
  %29 = load ptr, ptr @optarg, align 8, !tbaa !5
  tail call void @parse_range(ptr noundef %29)
  br label %.backedge

30:                                               ; preds = %13
  %31 = load ptr, ptr @optarg, align 8, !tbaa !5
  tail call void @parse_ignore_item(ptr noundef %31)
  br label %.backedge

32:                                               ; preds = %13
  %33 = load ptr, ptr @optarg, align 8, !tbaa !5
  tail call void @parse_filename_filter_item(ptr noundef %33)
  br label %.backedge

34:                                               ; preds = %13
  %35 = load ptr, ptr @optarg, align 8, !tbaa !5
  %36 = tail call i64 @parse_size(ptr noundef %35)
  store i64 %36, ptr @o_max_file_size, align 8, !tbaa !11
  br label %.backedge

37:                                               ; preds = %13
  store i32 1, ptr @o_wait, align 4, !tbaa !9
  br label %.backedge

38:                                               ; preds = %13
  %39 = load ptr, ptr @optarg, align 8, !tbaa !5
  store ptr %39, ptr @o_batch, align 8, !tbaa !5
  br label %.backedge

40:                                               ; preds = %13
  store i32 1, ptr @o_0_delim, align 4, !tbaa !9
  br label %.backedge

41:                                               ; preds = %13
  %42 = load ptr, ptr @optarg, align 8, !tbaa !5
  store ptr %42, ptr @o_pidfile, align 8, !tbaa !5
  br label %.backedge

43:                                               ; preds = %13
  %44 = load ptr, ptr @optarg, align 8, !tbaa !5
  store ptr %44, ptr @o_output, align 8, !tbaa !5
  br label %.backedge

45:                                               ; preds = %13
  %46 = load i32, ptr @optind, align 4, !tbaa !9
  %47 = sub i32 %0, %46
  %48 = sext i32 %46 to i64
  %49 = getelementptr inbounds ptr, ptr %1, i64 %48
  %50 = load i32, ptr @o_touch, align 4, !tbaa !9
  %51 = icmp ne i32 %50, 0
  %52 = load i32, ptr @o_evict, align 4
  %53 = icmp ne i32 %52, 0
  %or.cond17 = select i1 %51, i1 %53, i1 false
  br i1 %or.cond17, label %54, label %55

54:                                               ; preds = %45
  tail call void (ptr, ...) @fatal(ptr noundef nonnull @.str.79)
  %.pre = load i32, ptr @o_evict, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %54, %45
  %56 = phi i32 [ %.pre, %54 ], [ %52, %45 ]
  %57 = icmp ne i32 %56, 0
  %58 = load i32, ptr @o_lock, align 4
  %59 = icmp ne i32 %58, 0
  %or.cond19 = select i1 %57, i1 %59, i1 false
  br i1 %or.cond19, label %60, label %61

60:                                               ; preds = %55
  tail call void (ptr, ...) @fatal(ptr noundef nonnull @.str.80)
  %.pre68 = load i32, ptr @o_lock, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %60, %55
  %62 = phi i32 [ %.pre68, %60 ], [ %58, %55 ]
  %63 = icmp ne i32 %62, 0
  %64 = load i32, ptr @o_lockall, align 4
  %65 = icmp ne i32 %64, 0
  %or.cond = select i1 %63, i1 %65, i1 false
  br i1 %or.cond, label %66, label %67

66:                                               ; preds = %61
  tail call void (ptr, ...) @fatal(ptr noundef nonnull @.str.81)
  br label %67

67:                                               ; preds = %66, %61
  %68 = load i32, ptr @o_daemon, align 4, !tbaa !9
  %.not51 = icmp eq i32 %68, 0
  br i1 %.not51, label %._crit_edge69, label %69

._crit_edge69:                                    ; preds = %67
  %.pre70 = load i32, ptr @o_wait, align 4, !tbaa !9
  br label %77

69:                                               ; preds = %67
  %70 = load i32, ptr @o_lock, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  %72 = load i32, ptr @o_lockall, align 4
  %73 = icmp ne i32 %72, 0
  %or.cond3 = select i1 %71, i1 true, i1 %73
  br i1 %or.cond3, label %75, label %74

74:                                               ; preds = %69
  tail call void (ptr, ...) @fatal(ptr noundef nonnull @.str.82)
  br label %75

75:                                               ; preds = %74, %69
  %76 = load i32, ptr @o_wait, align 4, !tbaa !9
  %.not52 = icmp eq i32 %76, 0
  br i1 %.not52, label %.thread, label %77

.thread:                                          ; preds = %75
  store i32 1, ptr @o_quiet, align 4, !tbaa !9
  store i32 0, ptr @o_verbose, align 4, !tbaa !9
  br label %83

77:                                               ; preds = %._crit_edge69, %75
  %78 = phi i32 [ %.pre70, %._crit_edge69 ], [ %76, %75 ]
  %79 = icmp eq i32 %78, 0
  %80 = load i32, ptr @o_daemon, align 4
  %81 = icmp ne i32 %80, 0
  %or.cond5 = select i1 %79, i1 true, i1 %81
  br i1 %or.cond5, label %83, label %82

82:                                               ; preds = %77
  tail call void (ptr, ...) @fatal(ptr noundef nonnull @.str.83)
  br label %83

83:                                               ; preds = %.thread, %82, %77
  %84 = load i32, ptr @o_quiet, align 4, !tbaa !9
  %85 = icmp ne i32 %84, 0
  %86 = load i32, ptr @o_verbose, align 4
  %87 = icmp ne i32 %86, 0
  %or.cond7 = select i1 %85, i1 %87, i1 false
  br i1 %or.cond7, label %88, label %89

88:                                               ; preds = %83
  tail call void (ptr, ...) @fatal(ptr noundef nonnull @.str.84)
  br label %89

89:                                               ; preds = %88, %83
  %90 = load ptr, ptr @o_pidfile, align 8, !tbaa !5
  %91 = icmp eq ptr %90, null
  %92 = load i32, ptr @o_lock, align 4
  %93 = icmp ne i32 %92, 0
  %or.cond9 = select i1 %91, i1 true, i1 %93
  %94 = load i32, ptr @o_lockall, align 4
  %95 = icmp ne i32 %94, 0
  %or.cond11 = select i1 %or.cond9, i1 true, i1 %95
  br i1 %or.cond11, label %97, label %96

96:                                               ; preds = %89
  tail call void (ptr, ...) @fatal(ptr noundef nonnull @.str.85)
  br label %97

97:                                               ; preds = %96, %89
  %98 = icmp ne i32 %46, %0
  %99 = load ptr, ptr @o_batch, align 8
  %100 = icmp ne ptr %99, null
  %or.cond13 = select i1 %98, i1 true, i1 %100
  br i1 %or.cond13, label %103, label %101

101:                                              ; preds = %97
  %102 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.86, ptr noundef %5)
  tail call void @usage()
  br label %103

103:                                              ; preds = %101, %97
  %104 = load i32, ptr @o_daemon, align 4, !tbaa !9
  %.not53 = icmp eq i32 %104, 0
  br i1 %.not53, label %106, label %105

105:                                              ; preds = %103
  tail call void @go_daemon()
  br label %106

106:                                              ; preds = %105, %103
  %107 = call i32 @gettimeofday(ptr noundef nonnull %3, ptr noundef null) #8
  %108 = load ptr, ptr @o_batch, align 8, !tbaa !5
  %.not54 = icmp eq ptr %108, null
  br i1 %.not54, label %110, label %109

109:                                              ; preds = %106
  tail call void @vmtouch_batch_crawl(ptr noundef nonnull %108)
  br label %110

110:                                              ; preds = %109, %106
  %111 = icmp sgt i32 %47, 0
  br i1 %111, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %110
  %wide.trip.count = zext nneg i32 %47 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %112 = getelementptr inbounds ptr, ptr %49, i64 %indvars.iv
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  tail call void @vmtouch_crawl(ptr noundef %113)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph, %110
  %114 = call i32 @gettimeofday(ptr noundef nonnull %4, ptr noundef null) #8
  %115 = load i64, ptr @total_pages_in_core, align 8, !tbaa !11
  %116 = load i64, ptr @pagesize, align 8, !tbaa !11
  %117 = mul nsw i64 %116, %115
  %118 = load i64, ptr @total_pages, align 8, !tbaa !11
  %119 = mul nsw i64 %118, %116
  %120 = sitofp i64 %115 to double
  %121 = fmul double %120, 1.000000e+02
  %122 = sitofp i64 %118 to double
  %123 = fdiv double %121, %122
  %124 = load i64, ptr %4, align 8, !tbaa !16
  %125 = load i64, ptr %3, align 8, !tbaa !16
  %126 = sub nsw i64 %124, %125
  %127 = sitofp i64 %126 to double
  %128 = getelementptr inbounds i8, ptr %4, i64 8
  %129 = load i64, ptr %128, align 8, !tbaa !18
  %130 = getelementptr inbounds i8, ptr %3, i64 8
  %131 = load i64, ptr %130, align 8, !tbaa !18
  %132 = sub nsw i64 %129, %131
  %133 = sitofp i64 %132 to double
  %134 = fdiv double %133, 1.000000e+06
  %135 = fadd double %134, %127
  %136 = load i32, ptr @o_lock, align 4, !tbaa !9
  %137 = icmp ne i32 %136, 0
  %138 = load i32, ptr @o_lockall, align 4
  %139 = icmp ne i32 %138, 0
  %or.cond15 = select i1 %137, i1 true, i1 %139
  br i1 %or.cond15, label %140, label %161

140:                                              ; preds = %._crit_edge
  br i1 %139, label %141, label %147

141:                                              ; preds = %140
  %142 = tail call i32 @mlockall(i32 noundef 1) #8
  %.not62 = icmp eq i32 %142, 0
  br i1 %.not62, label %147, label %143

143:                                              ; preds = %141
  %144 = tail call ptr @__errno_location() #9
  %145 = load i32, ptr %144, align 4, !tbaa !9
  %146 = tail call ptr @strerror(i32 noundef %145) #8
  tail call void (ptr, ...) @fatal(ptr noundef nonnull @.str.87, ptr noundef %146)
  br label %147

147:                                              ; preds = %141, %143, %140
  %148 = load ptr, ptr @o_pidfile, align 8, !tbaa !5
  %.not63 = icmp eq ptr %148, null
  br i1 %.not63, label %150, label %149

149:                                              ; preds = %147
  tail call void @register_signals_for_pidfile()
  tail call void @write_pidfile()
  br label %150

150:                                              ; preds = %149, %147
  %151 = load i32, ptr @o_quiet, align 4, !tbaa !9
  %.not64 = icmp eq i32 %151, 0
  br i1 %.not64, label %152, label %156

152:                                              ; preds = %150
  %153 = load i64, ptr @total_pages, align 8, !tbaa !11
  %154 = tail call ptr @pretty_print_size(i64 noundef %119)
  %155 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.88, i64 noundef %153, ptr noundef %154)
  br label %156

156:                                              ; preds = %152, %150
  %157 = load i32, ptr @o_wait, align 4, !tbaa !9
  %.not65 = icmp eq i32 %157, 0
  br i1 %.not65, label %159, label %158

158:                                              ; preds = %156
  tail call void @reopen_all()
  br label %159

159:                                              ; preds = %158, %156
  tail call void @send_exit_signal(i8 noundef signext 0)
  %160 = tail call i32 @select(i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null) #8
  tail call void @exit(i32 noundef 0) #10
  unreachable

161:                                              ; preds = %._crit_edge
  %162 = load i32, ptr @o_quiet, align 4, !tbaa !9
  %.not55 = icmp eq i32 %162, 0
  br i1 %.not55, label %163, label %212

163:                                              ; preds = %161
  %164 = load ptr, ptr @o_output, align 8, !tbaa !5
  %165 = icmp eq ptr %164, null
  br i1 %165, label %166, label %201

166:                                              ; preds = %163
  %167 = load i32, ptr @o_verbose, align 4, !tbaa !9
  %.not58 = icmp eq i32 %167, 0
  br i1 %.not58, label %170, label %168

168:                                              ; preds = %166
  %169 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %170

170:                                              ; preds = %168, %166
  %171 = load i64, ptr @total_files, align 8, !tbaa !11
  %172 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.89, i64 noundef %171)
  %173 = load i64, ptr @total_dirs, align 8, !tbaa !11
  %174 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.90, i64 noundef %173)
  %175 = load i32, ptr @o_touch, align 4, !tbaa !9
  %.not59 = icmp eq i32 %175, 0
  br i1 %.not59, label %180, label %176

176:                                              ; preds = %170
  %177 = load i64, ptr @total_pages, align 8, !tbaa !11
  %178 = tail call ptr @pretty_print_size(i64 noundef %119)
  %179 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.91, i64 noundef %177, ptr noundef %178)
  br label %199

180:                                              ; preds = %170
  %181 = load i32, ptr @o_evict, align 4, !tbaa !9
  %.not60 = icmp eq i32 %181, 0
  br i1 %.not60, label %186, label %182

182:                                              ; preds = %180
  %183 = load i64, ptr @total_pages, align 8, !tbaa !11
  %184 = tail call ptr @pretty_print_size(i64 noundef %119)
  %185 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.92, i64 noundef %183, ptr noundef %184)
  br label %199

186:                                              ; preds = %180
  %187 = load i64, ptr @total_pages_in_core, align 8, !tbaa !11
  %188 = load i64, ptr @total_pages, align 8, !tbaa !11
  %189 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.93, i64 noundef %187, i64 noundef %188)
  %190 = tail call ptr @pretty_print_size(i64 noundef %117)
  %191 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.94, ptr noundef %190)
  %192 = tail call ptr @pretty_print_size(i64 noundef %119)
  %193 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.95, ptr noundef %192)
  %194 = load i64, ptr @total_pages, align 8, !tbaa !11
  %.not61 = icmp eq i64 %194, 0
  br i1 %.not61, label %197, label %195

195:                                              ; preds = %186
  %196 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.96, double noundef %123)
  br label %197

197:                                              ; preds = %195, %186
  %198 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %199

199:                                              ; preds = %182, %197, %176
  %200 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.97, double noundef %135)
  br label %212

201:                                              ; preds = %163
  %202 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %164, ptr noundef nonnull dereferenceable(1) @.str.98, i64 noundef 2) #11
  %203 = icmp eq i32 %202, 0
  br i1 %203, label %204, label %212

204:                                              ; preds = %201
  %205 = load i32, ptr @o_touch, align 4, !tbaa !9
  %.not56 = icmp eq i32 %205, 0
  %206 = load i32, ptr @o_evict, align 4
  %.not57 = icmp eq i32 %206, 0
  %207 = select i1 %.not57, ptr @.str.101, ptr @.str.100
  %208 = select i1 %.not56, ptr %207, ptr @.str.99
  %209 = load i64, ptr @total_files, align 8, !tbaa !11
  %210 = load i64, ptr @total_dirs, align 8, !tbaa !11
  %211 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.102, i64 noundef %209, i64 noundef %210, ptr noundef nonnull %208, i64 noundef %115, i64 noundef %118, ptr noundef nonnull %208, i64 noundef %117, i64 noundef %119, ptr noundef nonnull %208, double noundef %123, double noundef %135)
  br label %212

212:                                              ; preds = %199, %204, %201, %161
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @pipe(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i64 @sysconf(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @vmtouch_batch_crawl(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind
declare i32 @mlockall(i32 noundef) local_unnamed_addr #1

declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #7

; Function Attrs: nounwind uwtable
declare hidden void @reopen_all() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @register_signals_for_pidfile() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @write_pidfile() local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nosync nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { noreturn nounwind }
attributes #11 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !12, i64 0}
!17 = !{!"timeval", !12, i64 0, !12, i64 8}
!18 = !{!17, !12, i64 8}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass