; LLVM IR from Water-Melon/Melon :: t (fheap)

; 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.user_defined_s = type { i32, %struct.mln_fheap_node_s }
%struct.mln_fheap_node_s = type { ptr, ptr, ptr, ptr, ptr, i64, i32 }
%struct.mln_fheap_t = type { ptr, ptr, ptr, ptr, ptr, i64, ptr, ptr, ptr, ptr }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @fheap_container_test() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca %struct.user_defined_s, align 8
  %4 = alloca %struct.user_defined_s, align 8
  %5 = alloca %struct.user_defined_s, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #6
  call void @llvm.memset.p0.i64(ptr align 8 %3, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #6
  call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 64, i1 false)
  %23 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 0
  store i32 1, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #6
  call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 64, i1 false)
  %24 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 0
  store i32 2, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %25 = call ptr @mln_fheap_new(ptr noundef %3, ptr noundef null)
  store ptr %25, ptr %2, align 8, !tbaa !5
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %31

28:                                               ; preds = %0
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str) #6
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %304

31:                                               ; preds = %0
  %32 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %33 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %32, i32 0, i32 0
  store ptr %4, ptr %33, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %35 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %34, i32 0, i32 1
  store ptr null, ptr %35, align 8, !tbaa !14
  %36 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %37 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %36, i32 0, i32 2
  store ptr null, ptr %37, align 8, !tbaa !15
  %38 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %39 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %40 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %39, i32 0, i32 3
  store ptr %38, ptr %40, align 8, !tbaa !16
  %41 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %42 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %43 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %42, i32 0, i32 4
  store ptr %41, ptr %43, align 8, !tbaa !17
  %44 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %45 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %44, i32 0, i32 5
  store i64 0, ptr %45, align 8, !tbaa !18
  %46 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %47 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %46, i32 0, i32 6
  %48 = load i32, ptr %47, align 8
  %49 = and i32 %48, -2
  %50 = or i32 %49, 1
  store i32 %50, ptr %47, align 8
  %51 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %52 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %51, i32 0, i32 6
  %53 = load i32, ptr %52, align 8
  %54 = and i32 %53, 1
  %55 = or i32 %54, 0
  store i32 %55, ptr %52, align 8
  %56 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  store ptr %56, ptr %8, align 8, !tbaa !5
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %59 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %58, i32 0, i32 0
  store ptr %5, ptr %59, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %61 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %60, i32 0, i32 1
  store ptr null, ptr %61, align 8, !tbaa !14
  %62 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %63 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %62, i32 0, i32 2
  store ptr null, ptr %63, align 8, !tbaa !15
  %64 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %65 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %66 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %65, i32 0, i32 3
  store ptr %64, ptr %66, align 8, !tbaa !16
  %67 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %68 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %69 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %68, i32 0, i32 4
  store ptr %67, ptr %69, align 8, !tbaa !17
  %70 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %71 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %70, i32 0, i32 5
  store i64 0, ptr %71, align 8, !tbaa !18
  %72 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %73 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %72, i32 0, i32 6
  %74 = load i32, ptr %73, align 8
  %75 = and i32 %74, -2
  %76 = or i32 %75, 1
  store i32 %76, ptr %73, align 8
  %77 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %78 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %77, i32 0, i32 6
  %79 = load i32, ptr %78, align 8
  %80 = and i32 %79, 1
  %81 = or i32 %80, 0
  store i32 %81, ptr %78, align 8
  %82 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  store ptr %82, ptr %9, align 8, !tbaa !5
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr @container_cmp_handler, ptr %10, align 8, !tbaa !5
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = icmp eq ptr %84, null
  br i1 %85, label %86, label %90

86:                                               ; preds = %31
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.mln_fheap_t, ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !19
  store ptr %89, ptr %10, align 8, !tbaa !5
  br label %90

90:                                               ; preds = %86, %31
  %91 = load ptr, ptr %2, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.mln_fheap_t, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  call void @mln_fheap_add_child(ptr noundef %92, ptr noundef %93)
  %94 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %95 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %94, i32 0, i32 1
  store ptr null, ptr %95, align 8, !tbaa !14
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.mln_fheap_t, ptr %96, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8, !tbaa !21
  %99 = icmp eq ptr %98, null
  br i1 %99, label %100, label %104

100:                                              ; preds = %90
  %101 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.mln_fheap_t, ptr %102, i32 0, i32 1
  store ptr %101, ptr %103, align 8, !tbaa !21
  br label %121

104:                                              ; preds = %90
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %107 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !9
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.mln_fheap_t, ptr %109, i32 0, i32 1
  %111 = load ptr, ptr %110, align 8, !tbaa !21
  %112 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !22
  %114 = call i32 %105(ptr noundef %108, ptr noundef %113)
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %120, label %116

116:                                              ; preds = %104
  %117 = getelementptr inbounds %struct.user_defined_s, ptr %4, i32 0, i32 1
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.mln_fheap_t, ptr %118, i32 0, i32 1
  store ptr %117, ptr %119, align 8, !tbaa !21
  br label %120

120:                                              ; preds = %116, %104
  br label %121

121:                                              ; preds = %120, %100
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.mln_fheap_t, ptr %122, i32 0, i32 5
  %124 = load i64, ptr %123, align 8, !tbaa !23
  %125 = add i64 %124, 1
  store i64 %125, ptr %123, align 8, !tbaa !23
  store i64 %125, ptr %11, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %126 = load i64, ptr %11, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store ptr @container_cmp_handler, ptr %12, align 8, !tbaa !5
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = icmp eq ptr %127, null
  br i1 %128, label %129, label %133

129:                                              ; preds = %121
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.mln_fheap_t, ptr %130, i32 0, i32 2
  %132 = load ptr, ptr %131, align 8, !tbaa !19
  store ptr %132, ptr %12, align 8, !tbaa !5
  br label %133

133:                                              ; preds = %129, %121
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.mln_fheap_t, ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  call void @mln_fheap_add_child(ptr noundef %135, ptr noundef %136)
  %137 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %138 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %137, i32 0, i32 1
  store ptr null, ptr %138, align 8, !tbaa !14
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.mln_fheap_t, ptr %139, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8, !tbaa !21
  %142 = icmp eq ptr %141, null
  br i1 %142, label %143, label %147

143:                                              ; preds = %133
  %144 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %145 = load ptr, ptr %2, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.mln_fheap_t, ptr %145, i32 0, i32 1
  store ptr %144, ptr %146, align 8, !tbaa !21
  br label %164

147:                                              ; preds = %133
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %150 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !9
  %152 = load ptr, ptr %2, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.mln_fheap_t, ptr %152, i32 0, i32 1
  %154 = load ptr, ptr %153, align 8, !tbaa !21
  %155 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !22
  %157 = call i32 %148(ptr noundef %151, ptr noundef %156)
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %163, label %159

159:                                              ; preds = %147
  %160 = getelementptr inbounds %struct.user_defined_s, ptr %5, i32 0, i32 1
  %161 = load ptr, ptr %2, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.mln_fheap_t, ptr %161, i32 0, i32 1
  store ptr %160, ptr %162, align 8, !tbaa !21
  br label %163

163:                                              ; preds = %159, %147
  br label %164

164:                                              ; preds = %163, %143
  %165 = load ptr, ptr %2, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.mln_fheap_t, ptr %165, i32 0, i32 5
  %167 = load i64, ptr %166, align 8, !tbaa !23
  %168 = add i64 %167, 1
  store i64 %168, ptr %166, align 8, !tbaa !23
  store i64 %168, ptr %13, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %169 = load i64, ptr %13, align 8, !tbaa !24
  %170 = load ptr, ptr %2, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.mln_fheap_t, ptr %170, i32 0, i32 1
  %172 = load ptr, ptr %171, align 8, !tbaa !21
  store ptr %172, ptr %6, align 8, !tbaa !5
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %173, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8, !tbaa !22
  %176 = getelementptr inbounds %struct.user_defined_s, ptr %175, i32 0, i32 0
  %177 = load i32, ptr %176, align 8, !tbaa !25
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %177)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store ptr null, ptr %14, align 8, !tbaa !5
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = icmp ne ptr %179, null
  br i1 %180, label %181, label %184

181:                                              ; preds = %164
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = getelementptr inbounds i8, ptr %182, i64 sub (i64 0, i64 ptrtoint (ptr getelementptr inbounds (%struct.user_defined_s, ptr null, i32 0, i32 1) to i64))
  store ptr %183, ptr %14, align 8, !tbaa !5
  br label %184

184:                                              ; preds = %181, %164
  %185 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %185, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %186 = load ptr, ptr %15, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.user_defined_s, ptr %186, i32 0, i32 0
  %188 = load i32, ptr %187, align 8, !tbaa !25
  %189 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %188)
  %190 = load ptr, ptr %2, align 8, !tbaa !5
  %191 = icmp ne ptr %190, null
  br i1 %191, label %192, label %303

192:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  br label %193

193:                                              ; preds = %289, %192
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store ptr @container_cmp_handler, ptr %17, align 8, !tbaa !5
  %194 = load ptr, ptr %17, align 8, !tbaa !5
  %195 = icmp eq ptr %194, null
  br i1 %195, label %196, label %200

196:                                              ; preds = %193
  %197 = load ptr, ptr %2, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.mln_fheap_t, ptr %197, i32 0, i32 2
  %199 = load ptr, ptr %198, align 8, !tbaa !19
  store ptr %199, ptr %17, align 8, !tbaa !5
  br label %200

200:                                              ; preds = %196, %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %201 = load ptr, ptr %2, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.mln_fheap_t, ptr %201, i32 0, i32 1
  %203 = load ptr, ptr %202, align 8, !tbaa !21
  store ptr %203, ptr %18, align 8, !tbaa !5
  %204 = load ptr, ptr %18, align 8, !tbaa !5
  %205 = icmp ne ptr %204, null
  br i1 %205, label %206, label %242

206:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  br label %207

207:                                              ; preds = %212, %206
  %208 = load ptr, ptr %18, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %208, i32 0, i32 2
  %210 = call ptr @mln_fheap_remove_child(ptr noundef %209)
  store ptr %210, ptr %19, align 8, !tbaa !5
  %211 = icmp ne ptr %210, null
  br i1 %211, label %212, label %218

212:                                              ; preds = %207
  %213 = load ptr, ptr %2, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.mln_fheap_t, ptr %213, i32 0, i32 0
  %215 = load ptr, ptr %19, align 8, !tbaa !5
  call void @mln_fheap_add_child(ptr noundef %214, ptr noundef %215)
  %216 = load ptr, ptr %19, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %216, i32 0, i32 1
  store ptr null, ptr %217, align 8, !tbaa !26
  br label %207, !llvm.loop !27

218:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %219 = load ptr, ptr %18, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %219, i32 0, i32 4
  %221 = load ptr, ptr %220, align 8, !tbaa !29
  store ptr %221, ptr %20, align 8, !tbaa !5
  %222 = load ptr, ptr %2, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.mln_fheap_t, ptr %222, i32 0, i32 0
  %224 = load ptr, ptr %18, align 8, !tbaa !5
  call void @mln_fheap_del_child(ptr noundef %223, ptr noundef %224)
  %225 = load ptr, ptr %18, align 8, !tbaa !5
  %226 = load ptr, ptr %20, align 8, !tbaa !5
  %227 = icmp eq ptr %225, %226
  br i1 %227, label %228, label %231

228:                                              ; preds = %218
  %229 = load ptr, ptr %2, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.mln_fheap_t, ptr %229, i32 0, i32 1
  store ptr null, ptr %230, align 8, !tbaa !21
  br label %237

231:                                              ; preds = %218
  %232 = load ptr, ptr %20, align 8, !tbaa !5
  %233 = load ptr, ptr %2, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.mln_fheap_t, ptr %233, i32 0, i32 1
  store ptr %232, ptr %234, align 8, !tbaa !21
  %235 = load ptr, ptr %2, align 8, !tbaa !5
  %236 = load ptr, ptr %17, align 8, !tbaa !5
  call void @mln_fheap_consolidate(ptr noundef %235, ptr noundef %236)
  br label %237

237:                                              ; preds = %231, %228
  %238 = load ptr, ptr %2, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.mln_fheap_t, ptr %238, i32 0, i32 5
  %240 = load i64, ptr %239, align 8, !tbaa !23
  %241 = add i64 %240, -1
  store i64 %241, ptr %239, align 8, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %242

242:                                              ; preds = %237, %200
  %243 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %243, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %244 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %244, ptr %16, align 8, !tbaa !5
  %245 = icmp ne ptr %244, null
  br i1 %245, label %246, label %290

246:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store ptr null, ptr %22, align 8, !tbaa !5
  %247 = load ptr, ptr %22, align 8, !tbaa !5
  %248 = icmp eq ptr %247, null
  br i1 %248, label %249, label %253

249:                                              ; preds = %246
  %250 = load ptr, ptr %2, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.mln_fheap_t, ptr %250, i32 0, i32 4
  %252 = load ptr, ptr %251, align 8, !tbaa !30
  store ptr %252, ptr %22, align 8, !tbaa !5
  br label %253

253:                                              ; preds = %249, %246
  %254 = load ptr, ptr %16, align 8, !tbaa !5
  %255 = icmp ne ptr %254, null
  br i1 %255, label %256, label %289

256:                                              ; preds = %253
  %257 = load ptr, ptr %22, align 8, !tbaa !5
  %258 = icmp ne ptr %257, null
  br i1 %258, label %259, label %269

259:                                              ; preds = %256
  %260 = load ptr, ptr %16, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %260, i32 0, i32 0
  %262 = load ptr, ptr %261, align 8, !tbaa !22
  %263 = icmp ne ptr %262, null
  br i1 %263, label %264, label %269

264:                                              ; preds = %259
  %265 = load ptr, ptr %22, align 8, !tbaa !5
  %266 = load ptr, ptr %16, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %266, i32 0, i32 0
  %268 = load ptr, ptr %267, align 8, !tbaa !22
  call void %265(ptr noundef %268)
  br label %269

269:                                              ; preds = %264, %259, %256
  %270 = load ptr, ptr %16, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.mln_fheap_node_s, ptr %270, i32 0, i32 6
  %272 = load i32, ptr %271, align 8
  %273 = and i32 %272, 1
  %274 = icmp ne i32 %273, 0
  br i1 %274, label %288, label %275

275:                                              ; preds = %269
  %276 = load ptr, ptr %2, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.mln_fheap_t, ptr %276, i32 0, i32 7
  %278 = load ptr, ptr %277, align 8, !tbaa !31
  %279 = icmp ne ptr %278, null
  br i1 %279, label %280, label %285

280:                                              ; preds = %275
  %281 = load ptr, ptr %2, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.mln_fheap_t, ptr %281, i32 0, i32 9
  %283 = load ptr, ptr %282, align 8, !tbaa !32
  %284 = load ptr, ptr %16, align 8, !tbaa !5
  call void %283(ptr noundef %284)
  br label %287

285:                                              ; preds = %275
  %286 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %286) #6
  br label %287

287:                                              ; preds = %285, %280
  br label %288

288:                                              ; preds = %287, %269
  br label %289

289:                                              ; preds = %288, %253
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %193, !llvm.loop !33

290:                                              ; preds = %242
  %291 = load ptr, ptr %2, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.mln_fheap_t, ptr %291, i32 0, i32 7
  %293 = load ptr, ptr %292, align 8, !tbaa !31
  %294 = icmp ne ptr %293, null
  br i1 %294, label %295, label %300

295:                                              ; preds = %290
  %296 = load ptr, ptr %2, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.mln_fheap_t, ptr %296, i32 0, i32 9
  %298 = load ptr, ptr %297, align 8, !tbaa !32
  %299 = load ptr, ptr %2, align 8, !tbaa !5
  call void %298(ptr noundef %299)
  br label %302

300:                                              ; preds = %290
  %301 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %301) #6
  br label %302

302:                                              ; preds = %300, %295
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %303

303:                                              ; preds = %302, %184
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %304

304:                                              ; preds = %303, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %305 = load i32, ptr %1, align 4
  ret i32 %305
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare ptr @mln_fheap_new(ptr noundef, ptr noundef) #3

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

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

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

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

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

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

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

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 = { 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 }

!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 8}
!10 = !{!"user_defined_s", !11, i64 0, !12, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!"mln_fheap_node_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !11, i64 48, !11, i64 48}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !6, i64 16}
!15 = !{!10, !6, i64 24}
!16 = !{!10, !6, i64 32}
!17 = !{!10, !6, i64 40}
!18 = !{!10, !13, i64 48}
!19 = !{!20, !6, i64 16}
!20 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!21 = !{!20, !6, i64 8}
!22 = !{!12, !6, i64 0}
!23 = !{!20, !13, i64 40}
!24 = !{!13, !13, i64 0}
!25 = !{!10, !11, i64 0}
!26 = !{!12, !6, i64 8}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!12, !6, i64 32}
!30 = !{!20, !6, i64 32}
!31 = !{!20, !6, i64 56}
!32 = !{!20, !6, i64 72}
!33 = distinct !{!33, !28}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @fheap_container_test() local_unnamed_addr #0 {
  %1 = alloca %struct.user_defined_s, align 8
  %2 = alloca %struct.user_defined_s, align 8
  %3 = alloca %struct.user_defined_s, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %1, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %2, i8 0, i64 64, i1 false)
  store i32 1, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %3, i8 0, i64 64, i1 false)
  store i32 2, ptr %3, align 8
  %4 = call ptr @mln_fheap_new(ptr noundef nonnull %1, ptr noundef null) #7
  %5 = icmp eq ptr %4, null
  br i1 %5, label %6, label %9

6:                                                ; preds = %0
  %7 = load ptr, ptr @stderr, align 8, !tbaa !5
  %8 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str) #8
  br label %90

9:                                                ; preds = %0
  %10 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr %2, ptr %10, align 8, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %2, i64 16
  %12 = getelementptr inbounds i8, ptr %2, i64 32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %11, i8 0, i64 16, i1 false)
  store ptr %10, ptr %12, align 8, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr %10, ptr %13, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %2, i64 48
  store i64 0, ptr %14, align 8, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %2, i64 56
  store i32 1, ptr %15, align 8
  %16 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr %3, ptr %16, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %3, i64 16
  %18 = getelementptr inbounds i8, ptr %3, i64 32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %17, i8 0, i64 16, i1 false)
  store ptr %16, ptr %18, align 8, !tbaa !14
  %19 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %16, ptr %19, align 8, !tbaa !15
  %20 = getelementptr inbounds i8, ptr %3, i64 48
  store i64 0, ptr %20, align 8, !tbaa !16
  %21 = getelementptr inbounds i8, ptr %3, i64 56
  store i32 1, ptr %21, align 8
  call void @mln_fheap_add_child(ptr noundef nonnull %4, ptr noundef nonnull %10)
  store ptr null, ptr %11, align 8, !tbaa !17
  %22 = getelementptr inbounds i8, ptr %4, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !18
  %24 = icmp eq ptr %23, null
  br i1 %24, label %.sink.split, label %25

25:                                               ; preds = %9
  %26 = load ptr, ptr %10, align 8, !tbaa !9
  %27 = load ptr, ptr %23, align 8, !tbaa !20
  %28 = call i32 @container_cmp_handler(ptr noundef %26, ptr noundef %27)
  %.not = icmp eq i32 %28, 0
  br i1 %.not, label %.sink.split, label %29

.sink.split:                                      ; preds = %25, %9
  store ptr %10, ptr %22, align 8, !tbaa !18
  br label %29

29:                                               ; preds = %.sink.split, %25
  %30 = getelementptr inbounds i8, ptr %4, i64 40
  %31 = load i64, ptr %30, align 8, !tbaa !21
  %32 = add i64 %31, 1
  store i64 %32, ptr %30, align 8, !tbaa !21
  call void @mln_fheap_add_child(ptr noundef nonnull %4, ptr noundef nonnull %16)
  store ptr null, ptr %17, align 8, !tbaa !17
  %33 = load ptr, ptr %22, align 8, !tbaa !18
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %36

35:                                               ; preds = %29
  store ptr %16, ptr %22, align 8, !tbaa !18
  br label %41

36:                                               ; preds = %29
  %37 = load ptr, ptr %16, align 8, !tbaa !9
  %38 = load ptr, ptr %33, align 8, !tbaa !20
  %39 = call i32 @container_cmp_handler(ptr noundef %37, ptr noundef %38)
  %.not79 = icmp eq i32 %39, 0
  br i1 %.not79, label %40, label %._crit_edge89

._crit_edge89:                                    ; preds = %36
  %.pre = load ptr, ptr %22, align 8, !tbaa !18
  br label %41

40:                                               ; preds = %36
  store ptr %16, ptr %22, align 8, !tbaa !18
  br label %41

41:                                               ; preds = %._crit_edge89, %40, %35
  %42 = phi ptr [ %.pre, %._crit_edge89 ], [ %16, %40 ], [ %16, %35 ]
  %43 = load i64, ptr %30, align 8, !tbaa !21
  %44 = add i64 %43, 1
  store i64 %44, ptr %30, align 8, !tbaa !21
  %45 = load ptr, ptr %42, align 8, !tbaa !20
  %46 = load i32, ptr %45, align 8, !tbaa !22
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %46)
  %48 = getelementptr inbounds i8, ptr %42, i64 -8
  %49 = load i32, ptr %48, align 8, !tbaa !22
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %49)
  %51 = load ptr, ptr %22, align 8, !tbaa !18
  %.not8088 = icmp eq ptr %51, null
  br i1 %.not8088, label %.critedge, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %41
  %52 = getelementptr inbounds i8, ptr %4, i64 32
  %53 = getelementptr inbounds i8, ptr %4, i64 56
  %54 = getelementptr inbounds i8, ptr %4, i64 72
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %82
  %55 = phi ptr [ %51, %.preheader.lr.ph ], [ %83, %82 ]
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %57 = call ptr @mln_fheap_remove_child(ptr noundef nonnull %56)
  %.not8187 = icmp eq ptr %57, null
  br i1 %.not8187, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %58 = phi ptr [ %60, %.lr.ph ], [ %57, %.preheader ]
  call void @mln_fheap_add_child(ptr noundef nonnull %4, ptr noundef nonnull %58)
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  store ptr null, ptr %59, align 8, !tbaa !23
  %60 = call ptr @mln_fheap_remove_child(ptr noundef nonnull %56)
  %.not81 = icmp eq ptr %60, null
  br i1 %.not81, label %._crit_edge, label %.lr.ph, !llvm.loop !24

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %61 = getelementptr inbounds i8, ptr %55, i64 32
  %62 = load ptr, ptr %61, align 8, !tbaa !26
  call void @mln_fheap_del_child(ptr noundef nonnull %4, ptr noundef nonnull %55)
  %63 = icmp eq ptr %55, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %._crit_edge
  store ptr null, ptr %22, align 8, !tbaa !18
  br label %66

65:                                               ; preds = %._crit_edge
  store ptr %62, ptr %22, align 8, !tbaa !18
  call void @mln_fheap_consolidate(ptr noundef nonnull %4, ptr noundef nonnull @container_cmp_handler)
  br label %66

66:                                               ; preds = %64, %65
  %67 = load i64, ptr %30, align 8, !tbaa !21
  %68 = add i64 %67, -1
  store i64 %68, ptr %30, align 8, !tbaa !21
  %69 = load ptr, ptr %52, align 8, !tbaa !27
  %.not83 = icmp eq ptr %69, null
  br i1 %.not83, label %73, label %70

70:                                               ; preds = %66
  %71 = load ptr, ptr %55, align 8, !tbaa !20
  %.not84 = icmp eq ptr %71, null
  br i1 %.not84, label %73, label %72

72:                                               ; preds = %70
  call void %69(ptr noundef nonnull %71) #7
  br label %73

73:                                               ; preds = %72, %70, %66
  %74 = getelementptr inbounds i8, ptr %55, i64 48
  %75 = load i32, ptr %74, align 8
  %76 = and i32 %75, 1
  %.not85 = icmp eq i32 %76, 0
  br i1 %.not85, label %77, label %82

77:                                               ; preds = %73
  %78 = load ptr, ptr %53, align 8, !tbaa !28
  %.not86 = icmp eq ptr %78, null
  br i1 %.not86, label %81, label %79

79:                                               ; preds = %77
  %80 = load ptr, ptr %54, align 8, !tbaa !29
  call void %80(ptr noundef nonnull %55) #7
  br label %82

81:                                               ; preds = %77
  call void @free(ptr noundef nonnull %55) #7
  br label %82

82:                                               ; preds = %73, %81, %79
  %83 = load ptr, ptr %22, align 8, !tbaa !18
  %.not80 = icmp eq ptr %83, null
  br i1 %.not80, label %.critedge, label %.preheader, !llvm.loop !30

.critedge:                                        ; preds = %82, %41
  %84 = getelementptr inbounds i8, ptr %4, i64 56
  %85 = load ptr, ptr %84, align 8, !tbaa !28
  %.not82 = icmp eq ptr %85, null
  br i1 %.not82, label %89, label %86

86:                                               ; preds = %.critedge
  %87 = getelementptr inbounds i8, ptr %4, i64 72
  %88 = load ptr, ptr %87, align 8, !tbaa !29
  call void %88(ptr noundef nonnull %4) #7
  br label %90

89:                                               ; preds = %.critedge
  call void @free(ptr noundef nonnull %4) #7
  br label %90

90:                                               ; preds = %89, %86, %6
  %.067 = phi i32 [ -1, %6 ], [ 0, %86 ], [ 0, %89 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #7
  ret i32 %.067
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare ptr @mln_fheap_new(ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #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 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 #7 = { nounwind }
attributes #8 = { cold 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, !6, i64 8}
!10 = !{!"user_defined_s", !11, i64 0, !12, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!"mln_fheap_node_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !11, i64 48, !11, i64 48}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !6, i64 32}
!15 = !{!10, !6, i64 40}
!16 = !{!10, !13, i64 48}
!17 = !{!10, !6, i64 16}
!18 = !{!19, !6, i64 8}
!19 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!20 = !{!12, !6, i64 0}
!21 = !{!19, !13, i64 40}
!22 = !{!10, !11, i64 0}
!23 = !{!12, !6, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!12, !6, i64 32}
!27 = !{!19, !6, i64 32}
!28 = !{!19, !6, i64 56}
!29 = !{!19, !6, i64 72}
!30 = distinct !{!30, !25}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass