; LLVM IR from Water-Melon/Melon :: src (mln_file)

; 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.mln_file_s = type { ptr, ptr, i32, i8, ptr, ptr, ptr, i64, i64, i64, i64, i64 }
%struct.mln_string_t = type { ptr, i64, 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.mln_fileset_s = type { ptr, ptr, ptr, ptr, i64 }
%struct.rbtree_s = type { ptr, ptr, ptr, ptr, ptr, %struct.mln_rbtree_node_s, ptr, ptr, ptr, ptr, ptr, i64, i8 }
%struct.mln_rbtree_node_s = type { ptr, ptr, ptr, ptr, ptr, ptr, i32 }

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @mln_file_open(ptr noundef nonnull %0, ptr noundef nonnull %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.mln_file_s, align 8
  %9 = alloca %struct.mln_string_t, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %struct.stat, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.mln_string_t, ptr %9, i32 0, i32 0
  store ptr %16, ptr %17, align 8, !tbaa !9
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call i64 @strlen(ptr noundef %18) #7
  %20 = getelementptr inbounds %struct.mln_string_t, ptr %9, i32 0, i32 1
  store i64 %19, ptr %20, align 8, !tbaa !12
  %21 = getelementptr inbounds %struct.mln_string_t, ptr %9, i32 0, i32 2
  %22 = load i32, ptr %21, align 8
  %23 = and i32 %22, -2
  %24 = or i32 %23, 1
  store i32 %24, ptr %21, align 8
  %25 = getelementptr inbounds %struct.mln_string_t, ptr %9, i32 0, i32 2
  %26 = load i32, ptr %25, align 8
  %27 = and i32 %26, -3
  %28 = or i32 %27, 0
  store i32 %28, ptr %25, align 8
  %29 = getelementptr inbounds %struct.mln_string_t, ptr %9, i32 0, i32 2
  %30 = load i32, ptr %29, align 8
  %31 = and i32 %30, 3
  %32 = or i32 %31, 4
  store i32 %32, ptr %29, align 8
  store ptr %9, ptr %10, align 8, !tbaa !5
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.mln_file_s, ptr %8, i32 0, i32 4
  store ptr %9, ptr %34, align 8, !tbaa !13
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.mln_fileset_s, ptr %35, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  %38 = call ptr @mln_rbtree_search(ptr noundef %37, ptr noundef %8)
  store ptr %38, ptr %6, align 8, !tbaa !5
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.mln_fileset_s, ptr %40, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !16
  %43 = getelementptr inbounds %struct.rbtree_s, ptr %42, i32 0, i32 5
  %44 = icmp eq ptr %39, %43
  br i1 %44, label %45, label %333

45:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 144, ptr %11) #6
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.mln_fileset_s, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  %49 = call ptr @mln_alloc_m(ptr noundef %48, i64 noundef 88)
  store ptr %49, ptr %7, align 8, !tbaa !5
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %52

51:                                               ; preds = %45
  store ptr null, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %330

52:                                               ; preds = %45
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.mln_fileset_s, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !18
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = call ptr @mln_string_pool_new(ptr noundef %55, ptr noundef %56)
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.mln_file_s, ptr %58, i32 0, i32 4
  store ptr %57, ptr %59, align 8, !tbaa !13
  %60 = icmp eq ptr %57, null
  br i1 %60, label %61, label %63

61:                                               ; preds = %52
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mln_alloc_free(ptr noundef %62)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %330

63:                                               ; preds = %52
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = call i32 (ptr, i32, ...) @open(ptr noundef %64, i32 noundef 0)
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.mln_file_s, ptr %66, i32 0, i32 2
  store i32 %65, ptr %67, align 8, !tbaa !19
  %68 = icmp slt i32 %65, 0
  br i1 %68, label %69, label %135

69:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.mln_file_s, ptr %70, i32 0, i32 4
  %72 = load ptr, ptr %71, align 8, !tbaa !13
  store ptr %72, ptr %13, align 8, !tbaa !5
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %133

75:                                               ; preds = %69
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.mln_string_t, ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 8
  %79 = lshr i32 %78, 2
  %80 = zext i32 %79 to i64
  %81 = add i64 %80, -1
  %82 = trunc i64 %81 to i32
  %83 = load i32, ptr %77, align 8
  %84 = and i32 %82, 1073741823
  %85 = shl i32 %84, 2
  %86 = and i32 %83, 3
  %87 = or i32 %86, %85
  store i32 %87, ptr %77, align 8
  %88 = zext i32 %84 to i64
  %89 = icmp ule i64 %80, 1
  br i1 %89, label %90, label %132

90:                                               ; preds = %75
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.mln_string_t, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %92, align 8
  %94 = and i32 %93, 1
  %95 = zext i32 %94 to i64
  %96 = icmp ne i64 %95, 0
  br i1 %96, label %119, label %97

97:                                               ; preds = %90
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.mln_string_t, ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %119

102:                                              ; preds = %97
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.mln_string_t, ptr %103, i32 0, i32 2
  %105 = load i32, ptr %104, align 8
  %106 = lshr i32 %105, 1
  %107 = and i32 %106, 1
  %108 = zext i32 %107 to i64
  %109 = icmp ne i64 %108, 0
  br i1 %109, label %110, label %114

110:                                              ; preds = %102
  %111 = load ptr, ptr %13, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.mln_string_t, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  call void @mln_alloc_free(ptr noundef %113)
  br label %118

114:                                              ; preds = %102
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.mln_string_t, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !9
  call void @free(ptr noundef %117) #6
  br label %118

118:                                              ; preds = %114, %110
  br label %119

119:                                              ; preds = %118, %97, %90
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.mln_string_t, ptr %120, i32 0, i32 2
  %122 = load i32, ptr %121, align 8
  %123 = lshr i32 %122, 1
  %124 = and i32 %123, 1
  %125 = zext i32 %124 to i64
  %126 = icmp ne i64 %125, 0
  br i1 %126, label %127, label %129

127:                                              ; preds = %119
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  call void @mln_alloc_free(ptr noundef %128)
  br label %131

129:                                              ; preds = %119
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %130) #6
  br label %131

131:                                              ; preds = %129, %127
  br label %132

132:                                              ; preds = %131, %75
  br label %133

133:                                              ; preds = %132, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mln_alloc_free(ptr noundef %134)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %330

135:                                              ; preds = %63
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.mln_file_s, ptr %136, i32 0, i32 3
  %138 = load i8, ptr %137, align 4
  %139 = and i8 %138, -2
  %140 = or i8 %139, 0
  store i8 %140, ptr %137, align 4
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.mln_file_s, ptr %141, i32 0, i32 2
  %143 = load i32, ptr %142, align 8, !tbaa !19
  %144 = call i32 @fstat(i32 noundef %143, ptr noundef %11) #6
  %145 = icmp slt i32 %144, 0
  br i1 %145, label %146, label %216

146:                                              ; preds = %135
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.mln_file_s, ptr %147, i32 0, i32 2
  %149 = load i32, ptr %148, align 8, !tbaa !19
  %150 = call i32 @close(i32 noundef %149)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.mln_file_s, ptr %151, i32 0, i32 4
  %153 = load ptr, ptr %152, align 8, !tbaa !13
  store ptr %153, ptr %14, align 8, !tbaa !5
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = icmp ne ptr %154, null
  br i1 %155, label %156, label %214

156:                                              ; preds = %146
  %157 = load ptr, ptr %14, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.mln_string_t, ptr %157, i32 0, i32 2
  %159 = load i32, ptr %158, align 8
  %160 = lshr i32 %159, 2
  %161 = zext i32 %160 to i64
  %162 = add i64 %161, -1
  %163 = trunc i64 %162 to i32
  %164 = load i32, ptr %158, align 8
  %165 = and i32 %163, 1073741823
  %166 = shl i32 %165, 2
  %167 = and i32 %164, 3
  %168 = or i32 %167, %166
  store i32 %168, ptr %158, align 8
  %169 = zext i32 %165 to i64
  %170 = icmp ule i64 %161, 1
  br i1 %170, label %171, label %213

171:                                              ; preds = %156
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.mln_string_t, ptr %172, i32 0, i32 2
  %174 = load i32, ptr %173, align 8
  %175 = and i32 %174, 1
  %176 = zext i32 %175 to i64
  %177 = icmp ne i64 %176, 0
  br i1 %177, label %200, label %178

178:                                              ; preds = %171
  %179 = load ptr, ptr %14, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.mln_string_t, ptr %179, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8, !tbaa !9
  %182 = icmp ne ptr %181, null
  br i1 %182, label %183, label %200

183:                                              ; preds = %178
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.mln_string_t, ptr %184, i32 0, i32 2
  %186 = load i32, ptr %185, align 8
  %187 = lshr i32 %186, 1
  %188 = and i32 %187, 1
  %189 = zext i32 %188 to i64
  %190 = icmp ne i64 %189, 0
  br i1 %190, label %191, label %195

191:                                              ; preds = %183
  %192 = load ptr, ptr %14, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.mln_string_t, ptr %192, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8, !tbaa !9
  call void @mln_alloc_free(ptr noundef %194)
  br label %199

195:                                              ; preds = %183
  %196 = load ptr, ptr %14, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.mln_string_t, ptr %196, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8, !tbaa !9
  call void @free(ptr noundef %198) #6
  br label %199

199:                                              ; preds = %195, %191
  br label %200

200:                                              ; preds = %199, %178, %171
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.mln_string_t, ptr %201, i32 0, i32 2
  %203 = load i32, ptr %202, align 8
  %204 = lshr i32 %203, 1
  %205 = and i32 %204, 1
  %206 = zext i32 %205 to i64
  %207 = icmp ne i64 %206, 0
  br i1 %207, label %208, label %210

208:                                              ; preds = %200
  %209 = load ptr, ptr %14, align 8, !tbaa !5
  call void @mln_alloc_free(ptr noundef %209)
  br label %212

210:                                              ; preds = %200
  %211 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %211) #6
  br label %212

212:                                              ; preds = %210, %208
  br label %213

213:                                              ; preds = %212, %156
  br label %214

214:                                              ; preds = %213, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %215 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mln_alloc_free(ptr noundef %215)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %330

216:                                              ; preds = %135
  %217 = getelementptr inbounds %struct.stat, ptr %11, i32 0, i32 12
  %218 = getelementptr inbounds %struct.timespec, ptr %217, i32 0, i32 0
  %219 = load i64, ptr %218, align 8, !tbaa !20
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.mln_file_s, ptr %220, i32 0, i32 9
  store i64 %219, ptr %221, align 8, !tbaa !23
  %222 = getelementptr inbounds %struct.stat, ptr %11, i32 0, i32 13
  %223 = getelementptr inbounds %struct.timespec, ptr %222, i32 0, i32 0
  %224 = load i64, ptr %223, align 8, !tbaa !24
  %225 = load ptr, ptr %7, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.mln_file_s, ptr %225, i32 0, i32 10
  store i64 %224, ptr %226, align 8, !tbaa !25
  %227 = getelementptr inbounds %struct.stat, ptr %11, i32 0, i32 11
  %228 = getelementptr inbounds %struct.timespec, ptr %227, i32 0, i32 0
  %229 = load i64, ptr %228, align 8, !tbaa !26
  %230 = load ptr, ptr %7, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.mln_file_s, ptr %230, i32 0, i32 11
  store i64 %229, ptr %231, align 8, !tbaa !27
  %232 = getelementptr inbounds %struct.stat, ptr %11, i32 0, i32 8
  %233 = load i64, ptr %232, align 8, !tbaa !28
  %234 = load ptr, ptr %7, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.mln_file_s, ptr %234, i32 0, i32 8
  store i64 %233, ptr %235, align 8, !tbaa !29
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.mln_file_s, ptr %236, i32 0, i32 7
  store i64 0, ptr %237, align 8, !tbaa !30
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.mln_fileset_s, ptr %238, i32 0, i32 2
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.mln_fileset_s, ptr %240, i32 0, i32 3
  %242 = load ptr, ptr %7, align 8, !tbaa !5
  call void @reg_file_chain_add(ptr noundef %239, ptr noundef %241, ptr noundef %242)
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = load ptr, ptr %7, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.mln_file_s, ptr %244, i32 0, i32 5
  store ptr %243, ptr %245, align 8, !tbaa !31
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.mln_fileset_s, ptr %246, i32 0, i32 1
  %248 = load ptr, ptr %247, align 8, !tbaa !16
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = call ptr @mln_rbtree_node_new(ptr noundef %248, ptr noundef %249)
  store ptr %250, ptr %6, align 8, !tbaa !5
  %251 = icmp eq ptr %250, null
  br i1 %251, label %252, label %322

252:                                              ; preds = %216
  %253 = load ptr, ptr %7, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.mln_file_s, ptr %253, i32 0, i32 2
  %255 = load i32, ptr %254, align 8, !tbaa !19
  %256 = call i32 @close(i32 noundef %255)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %257 = load ptr, ptr %7, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.mln_file_s, ptr %257, i32 0, i32 4
  %259 = load ptr, ptr %258, align 8, !tbaa !13
  store ptr %259, ptr %15, align 8, !tbaa !5
  %260 = load ptr, ptr %15, align 8, !tbaa !5
  %261 = icmp ne ptr %260, null
  br i1 %261, label %262, label %320

262:                                              ; preds = %252
  %263 = load ptr, ptr %15, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.mln_string_t, ptr %263, i32 0, i32 2
  %265 = load i32, ptr %264, align 8
  %266 = lshr i32 %265, 2
  %267 = zext i32 %266 to i64
  %268 = add i64 %267, -1
  %269 = trunc i64 %268 to i32
  %270 = load i32, ptr %264, align 8
  %271 = and i32 %269, 1073741823
  %272 = shl i32 %271, 2
  %273 = and i32 %270, 3
  %274 = or i32 %273, %272
  store i32 %274, ptr %264, align 8
  %275 = zext i32 %271 to i64
  %276 = icmp ule i64 %267, 1
  br i1 %276, label %277, label %319

277:                                              ; preds = %262
  %278 = load ptr, ptr %15, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.mln_string_t, ptr %278, i32 0, i32 2
  %280 = load i32, ptr %279, align 8
  %281 = and i32 %280, 1
  %282 = zext i32 %281 to i64
  %283 = icmp ne i64 %282, 0
  br i1 %283, label %306, label %284

284:                                              ; preds = %277
  %285 = load ptr, ptr %15, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.mln_string_t, ptr %285, i32 0, i32 0
  %287 = load ptr, ptr %286, align 8, !tbaa !9
  %288 = icmp ne ptr %287, null
  br i1 %288, label %289, label %306

289:                                              ; preds = %284
  %290 = load ptr, ptr %15, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.mln_string_t, ptr %290, i32 0, i32 2
  %292 = load i32, ptr %291, align 8
  %293 = lshr i32 %292, 1
  %294 = and i32 %293, 1
  %295 = zext i32 %294 to i64
  %296 = icmp ne i64 %295, 0
  br i1 %296, label %297, label %301

297:                                              ; preds = %289
  %298 = load ptr, ptr %15, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.mln_string_t, ptr %298, i32 0, i32 0
  %300 = load ptr, ptr %299, align 8, !tbaa !9
  call void @mln_alloc_free(ptr noundef %300)
  br label %305

301:                                              ; preds = %289
  %302 = load ptr, ptr %15, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.mln_string_t, ptr %302, i32 0, i32 0
  %304 = load ptr, ptr %303, align 8, !tbaa !9
  call void @free(ptr noundef %304) #6
  br label %305

305:                                              ; preds = %301, %297
  br label %306

306:                                              ; preds = %305, %284, %277
  %307 = load ptr, ptr %15, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.mln_string_t, ptr %307, i32 0, i32 2
  %309 = load i32, ptr %308, align 8
  %310 = lshr i32 %309, 1
  %311 = and i32 %310, 1
  %312 = zext i32 %311 to i64
  %313 = icmp ne i64 %312, 0
  br i1 %313, label %314, label %316

314:                                              ; preds = %306
  %315 = load ptr, ptr %15, align 8, !tbaa !5
  call void @mln_alloc_free(ptr noundef %315)
  br label %318

316:                                              ; preds = %306
  %317 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %317) #6
  br label %318

318:                                              ; preds = %316, %314
  br label %319

319:                                              ; preds = %318, %262
  br label %320

320:                                              ; preds = %319, %252
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  %321 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mln_alloc_free(ptr noundef %321)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %330

322:                                              ; preds = %216
  %323 = load ptr, ptr %4, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.mln_fileset_s, ptr %323, i32 0, i32 1
  %325 = load ptr, ptr %324, align 8, !tbaa !16
  %326 = load ptr, ptr %6, align 8, !tbaa !5
  call void @mln_rbtree_insert(ptr noundef %325, ptr noundef %326)
  %327 = load ptr, ptr %6, align 8, !tbaa !5
  %328 = load ptr, ptr %7, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.mln_file_s, ptr %328, i32 0, i32 6
  store ptr %327, ptr %329, align 8, !tbaa !32
  store i32 0, ptr %12, align 4
  br label %330

330:                                              ; preds = %322, %320, %214, %133, %61, %51
  call void @llvm.lifetime.end.p0(i64 144, ptr %11) #6
  %331 = load i32, ptr %12, align 4
  switch i32 %331, label %351 [
    i32 0, label %332
  ]

332:                                              ; preds = %330
  br label %337

333:                                              ; preds = %2
  %334 = load ptr, ptr %6, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.mln_rbtree_node_s, ptr %334, i32 0, i32 0
  %336 = load ptr, ptr %335, align 8, !tbaa !33
  store ptr %336, ptr %7, align 8, !tbaa !5
  br label %337

337:                                              ; preds = %333, %332
  %338 = load ptr, ptr %7, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.mln_file_s, ptr %338, i32 0, i32 7
  %340 = load i64, ptr %339, align 8, !tbaa !30
  %341 = add i64 %340, 1
  store i64 %341, ptr %339, align 8, !tbaa !30
  %342 = icmp eq i64 %340, 0
  br i1 %342, label %343, label %349

343:                                              ; preds = %337
  %344 = load ptr, ptr %4, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.mln_fileset_s, ptr %344, i32 0, i32 2
  %346 = load ptr, ptr %4, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.mln_fileset_s, ptr %346, i32 0, i32 3
  %348 = load ptr, ptr %7, align 8, !tbaa !5
  call void @reg_file_chain_del(ptr noundef %345, ptr noundef %347, ptr noundef %348)
  br label %349

349:                                              ; preds = %343, %337
  %350 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %350, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %351

351:                                              ; preds = %349, %330
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %352 = load ptr, ptr %3, align 8
  ret ptr %352
}

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

declare ptr @mln_rbtree_search(ptr noundef, ptr noundef) #4

declare ptr @mln_alloc_m(ptr noundef, i64 noundef) #4

declare ptr @mln_string_pool_new(ptr noundef, ptr noundef) #4

declare void @mln_alloc_free(ptr noundef) #4

declare i32 @open(ptr noundef, i32 noundef, ...) #4

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

declare i32 @close(i32 noundef) #4

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

declare ptr @mln_rbtree_node_new(ptr noundef, ptr noundef) #4

declare void @mln_rbtree_insert(ptr noundef, ptr noundef) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 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 #4 = { "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 = { 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 }
attributes #7 = { 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, !6, i64 0}
!10 = !{!"", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 16, !11, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !6, i64 24}
!14 = !{!"mln_file_s", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !6, i64 8}
!17 = !{!"mln_fileset_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32}
!18 = !{!17, !6, i64 0}
!19 = !{!14, !15, i64 16}
!20 = !{!21, !11, i64 88}
!21 = !{!"stat", !11, i64 0, !11, i64 8, !11, i64 16, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !22, i64 72, !22, i64 88, !22, i64 104, !7, i64 120}
!22 = !{!"timespec", !11, i64 0, !11, i64 8}
!23 = !{!14, !11, i64 64}
!24 = !{!21, !11, i64 104}
!25 = !{!14, !11, i64 72}
!26 = !{!21, !11, i64 72}
!27 = !{!14, !11, i64 80}
!28 = !{!21, !11, i64 48}
!29 = !{!14, !11, i64 56}
!30 = !{!14, !11, i64 48}
!31 = !{!14, !6, i64 32}
!32 = !{!14, !6, i64 40}
!33 = !{!34, !6, i64 0}
!34 = !{!"mln_rbtree_node_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !15, i64 48, !15, i64 48}


; 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.mln_file_s = type { ptr, ptr, i32, i8, ptr, ptr, ptr, i64, i64, i64, i64, i64 }
%struct.mln_string_t = type { ptr, i64, 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 }

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture 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: nounwind uwtable
define dso_local ptr @mln_file_open(ptr noundef nonnull %0, ptr noundef nonnull %1) local_unnamed_addr #2 {
  %3 = alloca %struct.mln_file_s, align 8
  %4 = alloca %struct.mln_string_t, align 8
  %5 = alloca %struct.stat, align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %6 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #9
  %7 = getelementptr inbounds i8, ptr %4, i64 8
  store i64 %6, ptr %7, align 8, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %4, i64 16
  store i32 5, ptr %8, align 8
  %9 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %4, ptr %9, align 8, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !15
  %12 = call ptr @mln_rbtree_search(ptr noundef %11, ptr noundef nonnull %3) #8
  %13 = load ptr, ptr %10, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %13, i64 40
  %15 = icmp eq ptr %12, %14
  br i1 %15, label %16, label %131

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %5) #8
  %17 = load ptr, ptr %0, align 8, !tbaa !17
  %18 = call ptr @mln_alloc_m(ptr noundef %17, i64 noundef 88) #8
  %19 = icmp eq ptr %18, null
  br i1 %19, label %.critedge, label %20

20:                                               ; preds = %16
  %21 = load ptr, ptr %0, align 8, !tbaa !17
  %22 = call ptr @mln_string_pool_new(ptr noundef %21, ptr noundef nonnull %1) #8
  %23 = getelementptr inbounds i8, ptr %18, i64 24
  store ptr %22, ptr %23, align 8, !tbaa !12
  %24 = icmp eq ptr %22, null
  br i1 %24, label %.critedge.sink.split, label %25

25:                                               ; preds = %20
  %26 = call i32 (ptr, i32, ...) @open(ptr noundef nonnull %1, i32 noundef 0) #8
  %27 = getelementptr inbounds i8, ptr %18, i64 16
  store i32 %26, ptr %27, align 8, !tbaa !18
  %28 = icmp slt i32 %26, 0
  br i1 %28, label %29, label %52

29:                                               ; preds = %25
  %30 = load ptr, ptr %23, align 8, !tbaa !12
  %.not95 = icmp eq ptr %30, null
  br i1 %.not95, label %.critedge.sink.split, label %31

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %30, i64 16
  %33 = load i32, ptr %32, align 8
  %34 = and i32 %33, -4
  %35 = add i32 %34, -4
  %36 = and i32 %33, 3
  %37 = or disjoint i32 %35, %36
  store i32 %37, ptr %32, align 8
  %38 = icmp ult i32 %33, 8
  br i1 %38, label %39, label %.critedge.sink.split

39:                                               ; preds = %31
  %40 = and i32 %33, 1
  %.not96 = icmp eq i32 %40, 0
  br i1 %.not96, label %41, label %47

41:                                               ; preds = %39
  %42 = load ptr, ptr %30, align 8, !tbaa !5
  %.not97 = icmp eq ptr %42, null
  br i1 %.not97, label %47, label %43

43:                                               ; preds = %41
  %44 = and i32 %33, 2
  %.not98 = icmp eq i32 %44, 0
  br i1 %.not98, label %46, label %45

45:                                               ; preds = %43
  call void @mln_alloc_free(ptr noundef nonnull %42) #8
  br label %47

46:                                               ; preds = %43
  call void @free(ptr noundef nonnull %42) #8
  br label %47

47:                                               ; preds = %45, %46, %41, %39
  %48 = load i32, ptr %32, align 8
  %49 = and i32 %48, 2
  %.not99 = icmp eq i32 %49, 0
  br i1 %.not99, label %51, label %50

50:                                               ; preds = %47
  call void @mln_alloc_free(ptr noundef nonnull %30) #8
  br label %.critedge.sink.split

51:                                               ; preds = %47
  call void @free(ptr noundef nonnull %30) #8
  br label %.critedge.sink.split

52:                                               ; preds = %25
  %53 = getelementptr inbounds i8, ptr %18, i64 20
  %54 = load i8, ptr %53, align 4
  %55 = and i8 %54, -2
  store i8 %55, ptr %53, align 4
  %56 = call i32 @fstat(i32 noundef %26, ptr noundef nonnull %5) #8
  %57 = icmp slt i32 %56, 0
  br i1 %57, label %58, label %83

58:                                               ; preds = %52
  %59 = load i32, ptr %27, align 8, !tbaa !18
  %60 = call i32 @close(i32 noundef %59) #8
  %61 = load ptr, ptr %23, align 8, !tbaa !12
  %.not90 = icmp eq ptr %61, null
  br i1 %.not90, label %.critedge.sink.split, label %62

62:                                               ; preds = %58
  %63 = getelementptr inbounds i8, ptr %61, i64 16
  %64 = load i32, ptr %63, align 8
  %65 = and i32 %64, -4
  %66 = add i32 %65, -4
  %67 = and i32 %64, 3
  %68 = or disjoint i32 %66, %67
  store i32 %68, ptr %63, align 8
  %69 = icmp ult i32 %64, 8
  br i1 %69, label %70, label %.critedge.sink.split

70:                                               ; preds = %62
  %71 = and i32 %64, 1
  %.not91 = icmp eq i32 %71, 0
  br i1 %.not91, label %72, label %78

72:                                               ; preds = %70
  %73 = load ptr, ptr %61, align 8, !tbaa !5
  %.not92 = icmp eq ptr %73, null
  br i1 %.not92, label %78, label %74

74:                                               ; preds = %72
  %75 = and i32 %64, 2
  %.not93 = icmp eq i32 %75, 0
  br i1 %.not93, label %77, label %76

76:                                               ; preds = %74
  call void @mln_alloc_free(ptr noundef nonnull %73) #8
  br label %78

77:                                               ; preds = %74
  call void @free(ptr noundef nonnull %73) #8
  br label %78

78:                                               ; preds = %76, %77, %72, %70
  %79 = load i32, ptr %63, align 8
  %80 = and i32 %79, 2
  %.not94 = icmp eq i32 %80, 0
  br i1 %.not94, label %82, label %81

81:                                               ; preds = %78
  call void @mln_alloc_free(ptr noundef nonnull %61) #8
  br label %.critedge.sink.split

82:                                               ; preds = %78
  call void @free(ptr noundef nonnull %61) #8
  br label %.critedge.sink.split

83:                                               ; preds = %52
  %84 = getelementptr inbounds i8, ptr %5, i64 88
  %85 = load i64, ptr %84, align 8, !tbaa !19
  %86 = getelementptr inbounds i8, ptr %18, i64 64
  store i64 %85, ptr %86, align 8, !tbaa !22
  %87 = getelementptr inbounds i8, ptr %5, i64 104
  %88 = load i64, ptr %87, align 8, !tbaa !23
  %89 = getelementptr inbounds i8, ptr %18, i64 72
  store i64 %88, ptr %89, align 8, !tbaa !24
  %90 = getelementptr inbounds i8, ptr %5, i64 72
  %91 = load i64, ptr %90, align 8, !tbaa !25
  %92 = getelementptr inbounds i8, ptr %18, i64 80
  store i64 %91, ptr %92, align 8, !tbaa !26
  %93 = getelementptr inbounds i8, ptr %5, i64 48
  %94 = load i64, ptr %93, align 8, !tbaa !27
  %95 = getelementptr inbounds i8, ptr %18, i64 56
  store i64 %94, ptr %95, align 8, !tbaa !28
  %96 = getelementptr inbounds i8, ptr %18, i64 48
  store i64 0, ptr %96, align 8, !tbaa !29
  %97 = getelementptr inbounds i8, ptr %0, i64 16
  %98 = getelementptr inbounds i8, ptr %0, i64 24
  call void @reg_file_chain_add(ptr noundef nonnull %97, ptr noundef nonnull %98, ptr noundef nonnull %18)
  %99 = getelementptr inbounds i8, ptr %18, i64 32
  store ptr %0, ptr %99, align 8, !tbaa !30
  %100 = load ptr, ptr %10, align 8, !tbaa !15
  %101 = call ptr @mln_rbtree_node_new(ptr noundef %100, ptr noundef nonnull %18) #8
  %102 = icmp eq ptr %101, null
  br i1 %102, label %103, label %128

103:                                              ; preds = %83
  %104 = load i32, ptr %27, align 8, !tbaa !18
  %105 = call i32 @close(i32 noundef %104) #8
  %106 = load ptr, ptr %23, align 8, !tbaa !12
  %.not = icmp eq ptr %106, null
  br i1 %.not, label %.critedge.sink.split, label %107

107:                                              ; preds = %103
  %108 = getelementptr inbounds i8, ptr %106, i64 16
  %109 = load i32, ptr %108, align 8
  %110 = and i32 %109, -4
  %111 = add i32 %110, -4
  %112 = and i32 %109, 3
  %113 = or disjoint i32 %111, %112
  store i32 %113, ptr %108, align 8
  %114 = icmp ult i32 %109, 8
  br i1 %114, label %115, label %.critedge.sink.split

115:                                              ; preds = %107
  %116 = and i32 %109, 1
  %.not86 = icmp eq i32 %116, 0
  br i1 %.not86, label %117, label %123

117:                                              ; preds = %115
  %118 = load ptr, ptr %106, align 8, !tbaa !5
  %.not87 = icmp eq ptr %118, null
  br i1 %.not87, label %123, label %119

119:                                              ; preds = %117
  %120 = and i32 %109, 2
  %.not88 = icmp eq i32 %120, 0
  br i1 %.not88, label %122, label %121

121:                                              ; preds = %119
  call void @mln_alloc_free(ptr noundef nonnull %118) #8
  br label %123

122:                                              ; preds = %119
  call void @free(ptr noundef nonnull %118) #8
  br label %123

123:                                              ; preds = %121, %122, %117, %115
  %124 = load i32, ptr %108, align 8
  %125 = and i32 %124, 2
  %.not89 = icmp eq i32 %125, 0
  br i1 %.not89, label %127, label %126

126:                                              ; preds = %123
  call void @mln_alloc_free(ptr noundef nonnull %106) #8
  br label %.critedge.sink.split

127:                                              ; preds = %123
  call void @free(ptr noundef nonnull %106) #8
  br label %.critedge.sink.split

128:                                              ; preds = %83
  %129 = load ptr, ptr %10, align 8, !tbaa !15
  call void @mln_rbtree_insert(ptr noundef %129, ptr noundef nonnull %101) #8
  %130 = getelementptr inbounds i8, ptr %18, i64 40
  store ptr %101, ptr %130, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #8
  br label %133

131:                                              ; preds = %2
  %132 = load ptr, ptr %12, align 8, !tbaa !32
  br label %133

133:                                              ; preds = %128, %131
  %.076 = phi ptr [ %18, %128 ], [ %132, %131 ]
  %134 = getelementptr inbounds i8, ptr %.076, i64 48
  %135 = load i64, ptr %134, align 8, !tbaa !29
  %136 = add i64 %135, 1
  store i64 %136, ptr %134, align 8, !tbaa !29
  %137 = icmp eq i64 %135, 0
  br i1 %137, label %138, label %141

138:                                              ; preds = %133
  %139 = getelementptr inbounds i8, ptr %0, i64 16
  %140 = getelementptr inbounds i8, ptr %0, i64 24
  call void @reg_file_chain_del(ptr noundef nonnull %139, ptr noundef nonnull %140, ptr noundef nonnull %.076)
  br label %141

.critedge.sink.split:                             ; preds = %103, %126, %127, %107, %58, %81, %82, %62, %29, %50, %51, %31, %20
  call void @mln_alloc_free(ptr noundef nonnull %18) #8
  br label %.critedge

.critedge:                                        ; preds = %.critedge.sink.split, %16
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #8
  br label %141

141:                                              ; preds = %133, %138, %.critedge
  %.1 = phi ptr [ null, %.critedge ], [ %.076, %138 ], [ %.076, %133 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %3) #8
  ret ptr %.1
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

declare ptr @mln_rbtree_search(ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @mln_alloc_m(ptr noundef, i64 noundef) local_unnamed_addr #4

declare ptr @mln_string_pool_new(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @mln_alloc_free(ptr noundef) local_unnamed_addr #4

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #5

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

declare i32 @close(i32 noundef) local_unnamed_addr #4

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

declare ptr @mln_rbtree_node_new(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @mln_rbtree_insert(ptr noundef, ptr noundef) local_unnamed_addr #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #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 = { 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 #4 = { "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 = { nofree "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 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 16, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !7, i64 24}
!13 = !{!"mln_file_s", !7, i64 0, !7, i64 8, !14, i64 16, !14, i64 20, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80}
!14 = !{!"int", !8, i64 0}
!15 = !{!16, !7, i64 8}
!16 = !{!"mln_fileset_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32}
!17 = !{!16, !7, i64 0}
!18 = !{!13, !14, i64 16}
!19 = !{!20, !10, i64 88}
!20 = !{!"stat", !10, i64 0, !10, i64 8, !10, i64 16, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !21, i64 72, !21, i64 88, !21, i64 104, !8, i64 120}
!21 = !{!"timespec", !10, i64 0, !10, i64 8}
!22 = !{!13, !10, i64 64}
!23 = !{!20, !10, i64 104}
!24 = !{!13, !10, i64 72}
!25 = !{!20, !10, i64 72}
!26 = !{!13, !10, i64 80}
!27 = !{!20, !10, i64 48}
!28 = !{!13, !10, i64 56}
!29 = !{!13, !10, i64 48}
!30 = !{!13, !7, i64 32}
!31 = !{!13, !7, i64 40}
!32 = !{!33, !7, i64 0}
!33 = !{!"mln_rbtree_node_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !14, i64 48, !14, i64 48}


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