; LLVM IR from jspd-group/pegit :: src (stage)

; 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.stage_stats = type { i64, i64, i64, i64, i64 }
%struct.stage_options = type { i32, i32, i32, i32, i64, i8, i8, i32, ptr, ptr, ptr, %struct.pack_file_cache }
%struct.pack_file_cache = type { ptr, %struct.strbuf }
%struct.strbuf = type { i64, i64, ptr }
%struct.filespec = type { %struct.strbuf, ptr, i64, %struct.stat, %struct.filecache, [20 x i8], i64, %struct.strbuf, i32 }
%struct.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }
%struct.filecache = type { ptr }
%struct.file_list = type { %struct.strbuf, %struct.strbuf, [20 x i16], i8, i32, %struct.stat, ptr }

@stats = external dso_local global %struct.stage_stats, align 8
@opts = external dso_local global %struct.stage_options, align 8
@__const.is_modified.a = external hidden unnamed_addr constant %struct.strbuf, align 8
@__const.is_modified.b = external hidden unnamed_addr constant %struct.strbuf, align 8
@stderr = external global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1

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

declare void @strbuf_release(ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @read_file_from_database(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @file_list_init(ptr noundef) #2

declare void @strbuf_init(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @file_list_add(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @is_marked_as_ignored(ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @strbuf_addstr(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local i32 @is_modified(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca %struct.filespec, align 8
  %5 = alloca %struct.strbuf, align 8
  %6 = alloca %struct.strbuf, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.stat, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 @__const.is_modified.a, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 @__const.is_modified.b, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 144, ptr %8) #8
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = call zeroext i1 @is_marked_as_ignored(ptr noundef %10)
  br i1 %11, label %12, label %13

12:                                               ; preds = %1
  store i32 1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %224

13:                                               ; preds = %1
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = call i32 @read_file_from_database(ptr noundef %14, ptr noundef %6)
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %122, label %17

17:                                               ; preds = %13
  %18 = load i8, ptr getelementptr inbounds (%struct.stage_options, ptr @opts, i32 0, i32 6), align 1, !tbaa !9, !range !16, !noundef !17
  %19 = trunc i8 %18 to i1
  br i1 %19, label %20, label %21

20:                                               ; preds = %17
  call void @filespec_free(ptr noundef %4)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %224

21:                                               ; preds = %17
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = call i32 @stat(ptr noundef %22, ptr noundef %8) #8
  %24 = icmp slt i32 %23, 0
  br i1 %24, label %25, label %59

25:                                               ; preds = %21
  %26 = load i64, ptr getelementptr inbounds (%struct.stage_stats, ptr @stats, i32 0, i32 2), align 8, !tbaa !18
  %27 = add i64 %26, 1
  store i64 %27, ptr getelementptr inbounds (%struct.stage_stats, ptr @stats, i32 0, i32 2), align 8, !tbaa !18
  %28 = call noalias ptr @malloc(i64 noundef 248) #9
  store ptr %28, ptr %7, align 8, !tbaa !5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %45, label %31

31:                                               ; preds = %25
  br label %32

32:                                               ; preds = %31
  %33 = load ptr, ptr @stderr, align 8, !tbaa !5
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.20) #8
  %35 = load ptr, ptr @stderr, align 8, !tbaa !5
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.21) #8
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef @.str.22) #8
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.23) #8
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.24) #8
  call void @exit(i32 noundef 1) #10
  unreachable

43:                                               ; No predecessors!
  br label %44

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44, %25
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  call void @file_list_init(ptr noundef %46)
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.file_list, ptr %47, i32 0, i32 4
  store i32 8, ptr %48, align 4, !tbaa !20
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.file_list, ptr %49, i32 0, i32 0
  call void @strbuf_init(ptr noundef %50, i64 noundef 0)
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.file_list, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  call void @strbuf_addstr(ptr noundef %52, ptr noundef %53)
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.file_list, ptr %54, i32 0, i32 1
  call void @strbuf_init(ptr noundef %55, i64 noundef 0)
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.file_list, ptr %56, i32 0, i32 6
  store ptr null, ptr %57, align 8, !tbaa !24
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  call void @file_list_add(ptr noundef %58)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %224

59:                                               ; preds = %21
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = call i32 @filespec_init(ptr noundef %4, ptr noundef %60, ptr noundef @.str.25)
  %62 = call i32 @filespec_read_safe(ptr noundef %4, ptr noundef %5)
  %63 = load i64, ptr getelementptr inbounds (%struct.stage_stats, ptr @stats, i32 0, i32 1), align 8, !tbaa !25
  %64 = add i64 %63, 1
  store i64 %64, ptr getelementptr inbounds (%struct.stage_stats, ptr @stats, i32 0, i32 1), align 8, !tbaa !25
  %65 = call noalias ptr @malloc(i64 noundef 248) #9
  store ptr %65, ptr %7, align 8, !tbaa !5
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %82, label %68

68:                                               ; preds = %59
  br label %69

69:                                               ; preds = %68
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.20) #8
  %72 = load ptr, ptr @stderr, align 8, !tbaa !5
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str.21) #8
  %74 = load ptr, ptr @stderr, align 8, !tbaa !5
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.22) #8
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.23) #8
  %78 = load ptr, ptr @stderr, align 8, !tbaa !5
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str.24) #8
  call void @exit(i32 noundef 1) #10
  unreachable

80:                                               ; No predecessors!
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81, %59
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  call void @file_list_init(ptr noundef %83)
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.file_list, ptr %84, i32 0, i32 4
  store i32 2, ptr %85, align 4, !tbaa !20
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.file_list, ptr %86, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %87, ptr align 8 %8, i64 144, i1 false), !tbaa.struct !26
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.file_list, ptr %88, i32 0, i32 0
  call void @strbuf_init(ptr noundef %89, i64 noundef 0)
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.file_list, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  call void @strbuf_addstr(ptr noundef %91, ptr noundef %92)
  %93 = getelementptr inbounds %struct.strbuf, ptr %5, i32 0, i32 2
  %94 = load ptr, ptr %93, align 8, !tbaa !30
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.file_list, ptr %95, i32 0, i32 1
  %97 = getelementptr inbounds %struct.strbuf, ptr %96, i32 0, i32 2
  store ptr %94, ptr %97, align 8, !tbaa !31
  %98 = getelementptr inbounds %struct.strbuf, ptr %5, i32 0, i32 1
  %99 = load i64, ptr %98, align 8, !tbaa !32
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.file_list, ptr %100, i32 0, i32 1
  %102 = getelementptr inbounds %struct.strbuf, ptr %101, i32 0, i32 1
  store i64 %99, ptr %102, align 8, !tbaa !33
  %103 = getelementptr inbounds %struct.strbuf, ptr %5, i32 0, i32 0
  %104 = load i64, ptr %103, align 8, !tbaa !34
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.file_list, ptr %105, i32 0, i32 1
  %107 = getelementptr inbounds %struct.strbuf, ptr %106, i32 0, i32 0
  store i64 %104, ptr %107, align 8, !tbaa !35
  %108 = getelementptr inbounds %struct.strbuf, ptr %5, i32 0, i32 1
  %109 = load i64, ptr %108, align 8, !tbaa !32
  %110 = load i64, ptr getelementptr inbounds (%struct.stage_options, ptr @opts, i32 0, i32 4), align 8, !tbaa !36
  %111 = add i64 %110, %109
  store i64 %111, ptr getelementptr inbounds (%struct.stage_options, ptr @opts, i32 0, i32 4), align 8, !tbaa !36
  %112 = load i32, ptr getelementptr inbounds (%struct.stage_options, ptr @opts, i32 0, i32 7), align 4, !tbaa !37
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %118

114:                                              ; preds = %82
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  %117 = load i64, ptr getelementptr inbounds (%struct.stage_options, ptr @opts, i32 0, i32 4), align 8, !tbaa !36
  call void @print_humanised_bytes(i64 noundef %117)
  br label %118

118:                                              ; preds = %114, %82
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.file_list, ptr %119, i32 0, i32 6
  store ptr null, ptr %120, align 8, !tbaa !24
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  call void @file_list_add(ptr noundef %121)
  call void @filespec_free(ptr noundef %4)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %224

122:                                              ; preds = %13
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = call i32 @stat(ptr noundef %123, ptr noundef %8) #8
  %125 = icmp slt i32 %124, 0
  br i1 %125, label %126, label %160

126:                                              ; preds = %122
  %127 = load i64, ptr getelementptr inbounds (%struct.stage_stats, ptr @stats, i32 0, i32 2), align 8, !tbaa !18
  %128 = add i64 %127, 1
  store i64 %128, ptr getelementptr inbounds (%struct.stage_stats, ptr @stats, i32 0, i32 2), align 8, !tbaa !18
  %129 = call noalias ptr @malloc(i64 noundef 248) #9
  store ptr %129, ptr %7, align 8, !tbaa !5
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = icmp ne ptr %130, null
  br i1 %131, label %146, label %132

132:                                              ; preds = %126
  br label %133

133:                                              ; preds = %132
  %134 = load ptr, ptr @stderr, align 8, !tbaa !5
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.20) #8
  %136 = load ptr, ptr @stderr, align 8, !tbaa !5
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.21) #8
  %138 = load ptr, ptr @stderr, align 8, !tbaa !5
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.22) #8
  %140 = load ptr, ptr @stderr, align 8, !tbaa !5
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef @.str.23) #8
  %142 = load ptr, ptr @stderr, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.24) #8
  call void @exit(i32 noundef 1) #10
  unreachable

144:                                              ; No predecessors!
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145, %126
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  call void @file_list_init(ptr noundef %147)
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.file_list, ptr %148, i32 0, i32 4
  store i32 8, ptr %149, align 4, !tbaa !20
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.file_list, ptr %150, i32 0, i32 0
  call void @strbuf_init(ptr noundef %151, i64 noundef 0)
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.file_list, ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  call void @strbuf_addstr(ptr noundef %153, ptr noundef %154)
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.file_list, ptr %155, i32 0, i32 1
  call void @strbuf_init(ptr noundef %156, i64 noundef 0)
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.file_list, ptr %157, i32 0, i32 6
  store ptr null, ptr %158, align 8, !tbaa !24
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  call void @file_list_add(ptr noundef %159)
  call void @strbuf_release(ptr noundef %6)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %224

160:                                              ; preds = %122
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = call i32 @filespec_init(ptr noundef %4, ptr noundef %161, ptr noundef @.str.25)
  %163 = call i32 @filespec_read_safe(ptr noundef %4, ptr noundef %5)
  %164 = call i32 @strbuf_cmp(ptr noundef %5, ptr noundef %6)
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %167, label %166

166:                                              ; preds = %160
  br label %223

167:                                              ; preds = %160
  %168 = load i64, ptr @stats, align 8, !tbaa !38
  %169 = add i64 %168, 1
  store i64 %169, ptr @stats, align 8, !tbaa !38
  %170 = call noalias ptr @malloc(i64 noundef 248) #9
  store ptr %170, ptr %7, align 8, !tbaa !5
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  %172 = icmp ne ptr %171, null
  br i1 %172, label %187, label %173

173:                                              ; preds = %167
  br label %174

174:                                              ; preds = %173
  %175 = load ptr, ptr @stderr, align 8, !tbaa !5
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef @.str.20) #8
  %177 = load ptr, ptr @stderr, align 8, !tbaa !5
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef @.str.21) #8
  %179 = load ptr, ptr @stderr, align 8, !tbaa !5
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %179, ptr noundef @.str.22) #8
  %181 = load ptr, ptr @stderr, align 8, !tbaa !5
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str.23) #8
  %183 = load ptr, ptr @stderr, align 8, !tbaa !5
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %183, ptr noundef @.str.24) #8
  call void @exit(i32 noundef 1) #10
  unreachable

185:                                              ; No predecessors!
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186, %167
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.file_list, ptr %188, i32 0, i32 4
  store i32 1, ptr %189, align 4, !tbaa !20
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.file_list, ptr %190, i32 0, i32 0
  call void @strbuf_init(ptr noundef %191, i64 noundef 0)
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.file_list, ptr %192, i32 0, i32 0
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  call void @strbuf_addstr(ptr noundef %193, ptr noundef %194)
  call void @strbuf_release(ptr noundef %6)
  %195 = getelementptr inbounds %struct.strbuf, ptr %5, i32 0, i32 2
  %196 = load ptr, ptr %195, align 8, !tbaa !30
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.file_list, ptr %197, i32 0, i32 1
  %199 = getelementptr inbounds %struct.strbuf, ptr %198, i32 0, i32 2
  store ptr %196, ptr %199, align 8, !tbaa !31
  %200 = getelementptr inbounds %struct.strbuf, ptr %5, i32 0, i32 1
  %201 = load i64, ptr %200, align 8, !tbaa !32
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.file_list, ptr %202, i32 0, i32 1
  %204 = getelementptr inbounds %struct.strbuf, ptr %203, i32 0, i32 1
  store i64 %201, ptr %204, align 8, !tbaa !33
  %205 = getelementptr inbounds %struct.strbuf, ptr %5, i32 0, i32 0
  %206 = load i64, ptr %205, align 8, !tbaa !34
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.file_list, ptr %207, i32 0, i32 1
  %209 = getelementptr inbounds %struct.strbuf, ptr %208, i32 0, i32 0
  store i64 %206, ptr %209, align 8, !tbaa !35
  %210 = getelementptr inbounds %struct.strbuf, ptr %5, i32 0, i32 1
  %211 = load i64, ptr %210, align 8, !tbaa !32
  %212 = load i64, ptr getelementptr inbounds (%struct.stage_options, ptr @opts, i32 0, i32 4), align 8, !tbaa !36
  %213 = add i64 %212, %211
  store i64 %213, ptr getelementptr inbounds (%struct.stage_options, ptr @opts, i32 0, i32 4), align 8, !tbaa !36
  %214 = load i32, ptr getelementptr inbounds (%struct.stage_options, ptr @opts, i32 0, i32 7), align 4, !tbaa !37
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %219

216:                                              ; preds = %187
  %217 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
  %218 = load i64, ptr getelementptr inbounds (%struct.stage_options, ptr @opts, i32 0, i32 4), align 8, !tbaa !36
  call void @print_humanised_bytes(i64 noundef %218)
  br label %219

219:                                              ; preds = %216, %187
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.file_list, ptr %220, i32 0, i32 6
  store ptr null, ptr %221, align 8, !tbaa !24
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  call void @file_list_add(ptr noundef %222)
  call void @filespec_free(ptr noundef %4)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %224

223:                                              ; preds = %166
  call void @filespec_free(ptr noundef %4)
  call void @strbuf_release(ptr noundef %5)
  call void @strbuf_release(ptr noundef %6)
  store i32 1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %224

224:                                              ; preds = %223, %219, %146, %118, %45, %20, %12
  call void @llvm.lifetime.end.p0(i64 144, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr %4) #8
  %225 = load i32, ptr %2, align 4
  ret i32 %225
}

declare void @filespec_free(ptr noundef) #1

; Function Attrs: nounwind
declare i32 @stat(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #6

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

declare i32 @filespec_init(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @filespec_read_safe(ptr noundef, ptr noundef) #1

declare void @print_humanised_bytes(i64 noundef) #1

declare i32 @strbuf_cmp(ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 #3 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint 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 #6 = { nounwind allocsize(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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { noreturn nounwind }

!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, !13, i64 25}
!10 = !{!"stage_options", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !13, i64 24, !13, i64 25, !11, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !14, i64 56}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!"pack_file_cache", !6, i64 0, !15, i64 8}
!15 = !{!"strbuf", !12, i64 0, !12, i64 8, !6, i64 16}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !12, i64 16}
!19 = !{!"stage_stats", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!20 = !{!21, !11, i64 92}
!21 = !{!"file_list", !15, i64 0, !15, i64 24, !7, i64 48, !13, i64 88, !11, i64 92, !22, i64 96, !6, i64 240}
!22 = !{!"stat", !12, i64 0, !12, i64 8, !12, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !23, i64 72, !23, i64 88, !23, i64 104, !7, i64 120}
!23 = !{!"timespec", !12, i64 0, !12, i64 8}
!24 = !{!21, !6, i64 240}
!25 = !{!19, !12, i64 8}
!26 = !{i64 0, i64 8, !27, i64 8, i64 8, !27, i64 16, i64 8, !27, i64 24, i64 4, !28, i64 28, i64 4, !28, i64 32, i64 4, !28, i64 36, i64 4, !28, i64 40, i64 8, !27, i64 48, i64 8, !27, i64 56, i64 8, !27, i64 64, i64 8, !27, i64 72, i64 8, !27, i64 80, i64 8, !27, i64 88, i64 8, !27, i64 96, i64 8, !27, i64 104, i64 8, !27, i64 112, i64 8, !27, i64 120, i64 24, !29}
!27 = !{!12, !12, i64 0}
!28 = !{!11, !11, i64 0}
!29 = !{!7, !7, i64 0}
!30 = !{!15, !6, i64 16}
!31 = !{!21, !6, i64 40}
!32 = !{!15, !12, i64 8}
!33 = !{!21, !12, i64 32}
!34 = !{!15, !12, i64 0}
!35 = !{!21, !12, i64 24}
!36 = !{!10, !12, i64 16}
!37 = !{!10, !11, i64 28}
!38 = !{!19, !12, i64 0}


; 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.stage_stats = type { i64, i64, i64, i64, i64 }
%struct.stage_options = type { i32, i32, i32, i32, i64, i8, i8, i32, ptr, ptr, ptr, %struct.pack_file_cache }
%struct.pack_file_cache = type { ptr, %struct.strbuf }
%struct.strbuf = type { i64, i64, ptr }
%struct.filespec = type { %struct.strbuf, ptr, i64, %struct.stat, %struct.filecache, [20 x i8], i64, %struct.strbuf, i32 }
%struct.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }
%struct.filecache = type { ptr }

@stats = external dso_local local_unnamed_addr global %struct.stage_stats, align 8
@opts = external dso_local local_unnamed_addr global %struct.stage_options, align 8
@__const.is_modified.a = external hidden unnamed_addr constant %struct.strbuf, align 8
@__const.is_modified.b = external hidden unnamed_addr constant %struct.strbuf, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1

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

declare void @strbuf_release(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @read_file_from_database(ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare void @strbuf_init(ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @is_marked_as_ignored(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @strbuf_addstr(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @is_modified(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca %struct.filespec, align 8
  %3 = alloca %struct.strbuf, align 8
  %4 = alloca %struct.strbuf, align 8
  %5 = alloca %struct.stat, align 8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) @__const.is_modified.a, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) @__const.is_modified.b, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %5) #8
  %6 = tail call zeroext i1 @is_marked_as_ignored(ptr noundef %0)
  br i1 %6, label %132, label %7

7:                                                ; preds = %1
  %8 = call i32 @read_file_from_database(ptr noundef %0, ptr noundef nonnull %4)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %9, label %72

9:                                                ; preds = %7
  %10 = load i8, ptr getelementptr inbounds (i8, ptr @opts, i64 25), align 1, !tbaa !5, !range !15, !noundef !16
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %12, label %13

12:                                               ; preds = %9
  call void @filespec_free(ptr noundef nonnull %2) #8
  br label %132

13:                                               ; preds = %9
  %14 = call i32 @stat(ptr noundef %0, ptr noundef nonnull %5) #8
  %15 = icmp slt i32 %14, 0
  br i1 %15, label %16, label %35

16:                                               ; preds = %13
  %17 = load i64, ptr getelementptr inbounds (i8, ptr @stats, i64 16), align 8, !tbaa !17
  %18 = add i64 %17, 1
  store i64 %18, ptr getelementptr inbounds (i8, ptr @stats, i64 16), align 8, !tbaa !17
  %19 = call noalias dereferenceable_or_null(248) ptr @malloc(i64 noundef 248) #9
  %.not52 = icmp eq ptr %19, null
  br i1 %.not52, label %20, label %31

20:                                               ; preds = %16
  %21 = load ptr, ptr @stderr, align 8, !tbaa !19
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.20) #10
  %23 = load ptr, ptr @stderr, align 8, !tbaa !19
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.21) #10
  %25 = load ptr, ptr @stderr, align 8, !tbaa !19
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.22) #10
  %27 = load ptr, ptr @stderr, align 8, !tbaa !19
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.23) #10
  %29 = load ptr, ptr @stderr, align 8, !tbaa !19
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.24) #10
  call void @exit(i32 noundef 1) #11
  unreachable

31:                                               ; preds = %16
  call void @file_list_init(ptr noundef nonnull %19)
  %32 = getelementptr inbounds i8, ptr %19, i64 92
  store i32 8, ptr %32, align 4, !tbaa !20
  call void @strbuf_init(ptr noundef nonnull %19, i64 noundef 0) #8
  call void @strbuf_addstr(ptr noundef nonnull %19, ptr noundef %0)
  %33 = getelementptr inbounds i8, ptr %19, i64 24
  call void @strbuf_init(ptr noundef nonnull %33, i64 noundef 0) #8
  %34 = getelementptr inbounds i8, ptr %19, i64 240
  store ptr null, ptr %34, align 8, !tbaa !24
  call void @file_list_add(ptr noundef nonnull %19)
  br label %132

35:                                               ; preds = %13
  %36 = call i32 @filespec_init(ptr noundef nonnull %2, ptr noundef %0, ptr noundef nonnull @.str.25) #8
  %37 = call i32 @filespec_read_safe(ptr noundef nonnull %2, ptr noundef nonnull %3) #8
  %38 = load i64, ptr getelementptr inbounds (i8, ptr @stats, i64 8), align 8, !tbaa !25
  %39 = add i64 %38, 1
  store i64 %39, ptr getelementptr inbounds (i8, ptr @stats, i64 8), align 8, !tbaa !25
  %40 = call noalias dereferenceable_or_null(248) ptr @malloc(i64 noundef 248) #9
  %.not50 = icmp eq ptr %40, null
  br i1 %.not50, label %41, label %52

41:                                               ; preds = %35
  %42 = load ptr, ptr @stderr, align 8, !tbaa !19
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.20) #10
  %44 = load ptr, ptr @stderr, align 8, !tbaa !19
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.21) #10
  %46 = load ptr, ptr @stderr, align 8, !tbaa !19
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.22) #10
  %48 = load ptr, ptr @stderr, align 8, !tbaa !19
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.23) #10
  %50 = load ptr, ptr @stderr, align 8, !tbaa !19
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.24) #10
  call void @exit(i32 noundef 1) #11
  unreachable

52:                                               ; preds = %35
  call void @file_list_init(ptr noundef nonnull %40)
  %53 = getelementptr inbounds i8, ptr %40, i64 92
  store i32 2, ptr %53, align 4, !tbaa !20
  %54 = getelementptr inbounds i8, ptr %40, i64 96
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(144) %54, ptr noundef nonnull align 8 dereferenceable(144) %5, i64 144, i1 false), !tbaa.struct !26
  call void @strbuf_init(ptr noundef nonnull %40, i64 noundef 0) #8
  call void @strbuf_addstr(ptr noundef nonnull %40, ptr noundef %0)
  %55 = getelementptr inbounds i8, ptr %3, i64 16
  %56 = load ptr, ptr %55, align 8, !tbaa !30
  %57 = getelementptr inbounds i8, ptr %40, i64 24
  %58 = getelementptr inbounds i8, ptr %40, i64 40
  store ptr %56, ptr %58, align 8, !tbaa !31
  %59 = getelementptr inbounds i8, ptr %3, i64 8
  %60 = load i64, ptr %59, align 8, !tbaa !32
  %61 = getelementptr inbounds i8, ptr %40, i64 32
  store i64 %60, ptr %61, align 8, !tbaa !33
  %62 = load i64, ptr %3, align 8, !tbaa !34
  store i64 %62, ptr %57, align 8, !tbaa !35
  %63 = load i64, ptr getelementptr inbounds (i8, ptr @opts, i64 16), align 8, !tbaa !36
  %64 = add i64 %63, %60
  store i64 %64, ptr getelementptr inbounds (i8, ptr @opts, i64 16), align 8, !tbaa !36
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @opts, i64 28), align 4, !tbaa !37
  %.not51 = icmp eq i32 %65, 0
  br i1 %.not51, label %70, label %66

66:                                               ; preds = %52
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26)
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27)
  %69 = load i64, ptr getelementptr inbounds (i8, ptr @opts, i64 16), align 8, !tbaa !36
  call void @print_humanised_bytes(i64 noundef %69) #8
  br label %70

70:                                               ; preds = %66, %52
  %71 = getelementptr inbounds i8, ptr %40, i64 240
  store ptr null, ptr %71, align 8, !tbaa !24
  call void @file_list_add(ptr noundef nonnull %40)
  call void @filespec_free(ptr noundef nonnull %2) #8
  br label %132

72:                                               ; preds = %7
  %73 = call i32 @stat(ptr noundef %0, ptr noundef nonnull %5) #8
  %74 = icmp slt i32 %73, 0
  br i1 %74, label %75, label %94

75:                                               ; preds = %72
  %76 = load i64, ptr getelementptr inbounds (i8, ptr @stats, i64 16), align 8, !tbaa !17
  %77 = add i64 %76, 1
  store i64 %77, ptr getelementptr inbounds (i8, ptr @stats, i64 16), align 8, !tbaa !17
  %78 = call noalias dereferenceable_or_null(248) ptr @malloc(i64 noundef 248) #9
  %.not56 = icmp eq ptr %78, null
  br i1 %.not56, label %79, label %90

79:                                               ; preds = %75
  %80 = load ptr, ptr @stderr, align 8, !tbaa !19
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef nonnull @.str.20) #10
  %82 = load ptr, ptr @stderr, align 8, !tbaa !19
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull @.str.21) #10
  %84 = load ptr, ptr @stderr, align 8, !tbaa !19
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.22) #10
  %86 = load ptr, ptr @stderr, align 8, !tbaa !19
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.23) #10
  %88 = load ptr, ptr @stderr, align 8, !tbaa !19
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef nonnull @.str.24) #10
  call void @exit(i32 noundef 1) #11
  unreachable

90:                                               ; preds = %75
  call void @file_list_init(ptr noundef nonnull %78)
  %91 = getelementptr inbounds i8, ptr %78, i64 92
  store i32 8, ptr %91, align 4, !tbaa !20
  call void @strbuf_init(ptr noundef nonnull %78, i64 noundef 0) #8
  call void @strbuf_addstr(ptr noundef nonnull %78, ptr noundef %0)
  %92 = getelementptr inbounds i8, ptr %78, i64 24
  call void @strbuf_init(ptr noundef nonnull %92, i64 noundef 0) #8
  %93 = getelementptr inbounds i8, ptr %78, i64 240
  store ptr null, ptr %93, align 8, !tbaa !24
  call void @file_list_add(ptr noundef nonnull %78)
  call void @strbuf_release(ptr noundef nonnull %4) #8
  br label %132

94:                                               ; preds = %72
  %95 = call i32 @filespec_init(ptr noundef nonnull %2, ptr noundef %0, ptr noundef nonnull @.str.25) #8
  %96 = call i32 @filespec_read_safe(ptr noundef nonnull %2, ptr noundef nonnull %3) #8
  %97 = call i32 @strbuf_cmp(ptr noundef nonnull %3, ptr noundef nonnull %4) #8
  %.not53 = icmp eq i32 %97, 0
  br i1 %.not53, label %131, label %98

98:                                               ; preds = %94
  %99 = load i64, ptr @stats, align 8, !tbaa !38
  %100 = add i64 %99, 1
  store i64 %100, ptr @stats, align 8, !tbaa !38
  %101 = call noalias dereferenceable_or_null(248) ptr @malloc(i64 noundef 248) #9
  %.not54 = icmp eq ptr %101, null
  br i1 %.not54, label %102, label %113

102:                                              ; preds = %98
  %103 = load ptr, ptr @stderr, align 8, !tbaa !19
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef nonnull @.str.20) #10
  %105 = load ptr, ptr @stderr, align 8, !tbaa !19
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef nonnull @.str.21) #10
  %107 = load ptr, ptr @stderr, align 8, !tbaa !19
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.22) #10
  %109 = load ptr, ptr @stderr, align 8, !tbaa !19
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull @.str.23) #10
  %111 = load ptr, ptr @stderr, align 8, !tbaa !19
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.24) #10
  call void @exit(i32 noundef 1) #11
  unreachable

113:                                              ; preds = %98
  %114 = getelementptr inbounds i8, ptr %101, i64 92
  store i32 1, ptr %114, align 4, !tbaa !20
  call void @strbuf_init(ptr noundef nonnull %101, i64 noundef 0) #8
  call void @strbuf_addstr(ptr noundef nonnull %101, ptr noundef %0)
  call void @strbuf_release(ptr noundef nonnull %4) #8
  %115 = getelementptr inbounds i8, ptr %3, i64 16
  %116 = load ptr, ptr %115, align 8, !tbaa !30
  %117 = getelementptr inbounds i8, ptr %101, i64 24
  %118 = getelementptr inbounds i8, ptr %101, i64 40
  store ptr %116, ptr %118, align 8, !tbaa !31
  %119 = getelementptr inbounds i8, ptr %3, i64 8
  %120 = load i64, ptr %119, align 8, !tbaa !32
  %121 = getelementptr inbounds i8, ptr %101, i64 32
  store i64 %120, ptr %121, align 8, !tbaa !33
  %122 = load i64, ptr %3, align 8, !tbaa !34
  store i64 %122, ptr %117, align 8, !tbaa !35
  %123 = load i64, ptr getelementptr inbounds (i8, ptr @opts, i64 16), align 8, !tbaa !36
  %124 = add i64 %123, %120
  store i64 %124, ptr getelementptr inbounds (i8, ptr @opts, i64 16), align 8, !tbaa !36
  %125 = load i32, ptr getelementptr inbounds (i8, ptr @opts, i64 28), align 4, !tbaa !37
  %.not55 = icmp eq i32 %125, 0
  br i1 %.not55, label %129, label %126

126:                                              ; preds = %113
  %127 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26)
  %128 = load i64, ptr getelementptr inbounds (i8, ptr @opts, i64 16), align 8, !tbaa !36
  call void @print_humanised_bytes(i64 noundef %128) #8
  br label %129

129:                                              ; preds = %126, %113
  %130 = getelementptr inbounds i8, ptr %101, i64 240
  store ptr null, ptr %130, align 8, !tbaa !24
  call void @file_list_add(ptr noundef nonnull %101)
  call void @filespec_free(ptr noundef nonnull %2) #8
  br label %132

131:                                              ; preds = %94
  call void @filespec_free(ptr noundef nonnull %2) #8
  call void @strbuf_release(ptr noundef nonnull %3) #8
  call void @strbuf_release(ptr noundef nonnull %4) #8
  br label %132

132:                                              ; preds = %1, %131, %129, %90, %70, %31, %12
  %.0 = phi i32 [ 0, %90 ], [ 0, %129 ], [ 1, %131 ], [ 0, %12 ], [ 0, %31 ], [ 0, %70 ], [ 1, %1 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #8
  ret i32 %.0
}

declare void @filespec_free(ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @stat(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #6

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

declare i32 @filespec_init(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @filespec_read_safe(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @print_humanised_bytes(i64 noundef) local_unnamed_addr #1

declare i32 @strbuf_cmp(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint 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 #6 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { cold nounwind }
attributes #11 = { noreturn nounwind }

!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, !11, i64 25}
!6 = !{!"stage_options", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !11, i64 24, !11, i64 25, !7, i64 28, !12, i64 32, !12, i64 40, !12, i64 48, !13, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"pack_file_cache", !12, i64 0, !14, i64 8}
!14 = !{!"strbuf", !10, i64 0, !10, i64 8, !12, i64 16}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !10, i64 16}
!18 = !{!"stage_stats", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!19 = !{!12, !12, i64 0}
!20 = !{!21, !7, i64 92}
!21 = !{!"file_list", !14, i64 0, !14, i64 24, !8, i64 48, !11, i64 88, !7, i64 92, !22, i64 96, !12, i64 240}
!22 = !{!"stat", !10, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !23, i64 72, !23, i64 88, !23, i64 104, !8, i64 120}
!23 = !{!"timespec", !10, i64 0, !10, i64 8}
!24 = !{!21, !12, i64 240}
!25 = !{!18, !10, i64 8}
!26 = !{i64 0, i64 8, !27, i64 8, i64 8, !27, i64 16, i64 8, !27, i64 24, i64 4, !28, i64 28, i64 4, !28, i64 32, i64 4, !28, i64 36, i64 4, !28, i64 40, i64 8, !27, i64 48, i64 8, !27, i64 56, i64 8, !27, i64 64, i64 8, !27, i64 72, i64 8, !27, i64 80, i64 8, !27, i64 88, i64 8, !27, i64 96, i64 8, !27, i64 104, i64 8, !27, i64 112, i64 8, !27, i64 120, i64 24, !29}
!27 = !{!10, !10, i64 0}
!28 = !{!7, !7, i64 0}
!29 = !{!8, !8, i64 0}
!30 = !{!14, !12, i64 16}
!31 = !{!21, !12, i64 40}
!32 = !{!14, !10, i64 8}
!33 = !{!21, !10, i64 32}
!34 = !{!14, !10, i64 0}
!35 = !{!21, !10, i64 24}
!36 = !{!6, !10, i64 16}
!37 = !{!6, !7, i64 28}
!38 = !{!18, !10, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass