; LLVM IR from erthink/libmdbx :: src (logging_and_debug)

; 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.libmdbx_globals = type { %union.bin128, i32, i32, i8, i8, i8, i8, i32, %union.logger_union, %union.pthread_mutex_t, i64, ptr }
%union.bin128 = type { %struct.anon }
%struct.anon = type { i64, i64 }
%union.logger_union = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.iovec = type { ptr, i64 }
%struct.page = type <{ i64, i16, i16, %union.anon, i32, [0 x i16] }>
%union.anon = type { i32 }
%struct.meta = type { [2 x i32], %union.anon.2, i16, i8, i8, %struct.geo, %union.anon.5, %struct.MDBX_canary, %union.anon.8, [2 x %union.mdbx_atomic_uint32_t], [2 x i32], %union.bin128, %union.bin128 }
%union.anon.2 = type { i64 }
%struct.geo = type { i16, i16, i32, i32, %union.anon.3, %union.anon.4 }
%union.anon.3 = type { i32 }
%union.anon.4 = type { i32 }
%union.anon.5 = type { %struct.anon.6 }
%struct.anon.6 = type { %struct.tree, %struct.tree }
%struct.tree = type { i16, i16, i32, i32, i32, i32, i32, i64, i64, i64 }
%struct.MDBX_canary = type { i64, i64, i64, i64 }
%union.anon.8 = type { i64 }
%union.mdbx_atomic_uint32_t = type { i32 }
%struct.node = type { %union.anon.9, i8, i8, i16, [0 x i8] }
%union.anon.9 = type { i32 }
%struct.anon.1 = type { i16, i16 }

@globals = external global %struct.libmdbx_globals, align 8
@.str.22 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__.page_list = external hidden unnamed_addr constant [10 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #0

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: cold nounwind optsize uwtable
declare dso_local void @debug_log(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #2

; Function Attrs: cold nounwind optsize uwtable
declare dso_local ptr @mdbx_dump_val(ptr noundef, ptr noundef, i64 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) #3

; Function Attrs: cold nounwind optsize uwtable
define dso_local void @page_list(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %struct.iovec, align 8
  %11 = alloca [510 x i8], align 16
  %12 = alloca i32, align 4
  %13 = alloca %struct.iovec, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.page, ptr %14, i32 0, i32 4
  %16 = load i32, ptr %15, align 1, !tbaa !9
  store i32 %16, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 510, ptr %11) #5
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = call zeroext i8 @page_type(ptr noundef %17) #6
  %19 = zext i8 %18 to i32
  switch i32 %19, label %65 [
    i32 1, label %20
    i32 2, label %21
    i32 66, label %22
    i32 34, label %23
    i32 98, label %24
    i32 4, label %25
    i32 8, label %44
  ]

20:                                               ; preds = %1
  store ptr @.str.22, ptr %4, align 8, !tbaa !5
  br label %85

21:                                               ; preds = %1
  store ptr @.str.23, ptr %4, align 8, !tbaa !5
  br label %85

22:                                               ; preds = %1
  store ptr @.str.24, ptr %4, align 8, !tbaa !5
  br label %85

23:                                               ; preds = %1
  store ptr @.str.25, ptr %4, align 8, !tbaa !5
  br label %85

24:                                               ; preds = %1
  store ptr @.str.26, ptr %4, align 8, !tbaa !5
  br label %85

25:                                               ; preds = %1
  br label %26

26:                                               ; preds = %25
  %27 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 5), align 2, !tbaa !13
  %28 = zext i8 %27 to i32
  %29 = icmp sle i32 4, %28
  %30 = xor i1 %29, true
  %31 = xor i1 %30, true
  %32 = zext i1 %31 to i32
  %33 = sext i32 %32 to i64
  %34 = call i64 @llvm.expect.i64(i64 %33, i64 0)
  %35 = icmp ne i64 %34, 0
  br i1 %35, label %36, label %41

36:                                               ; preds = %26
  %37 = load i32, ptr %3, align 4, !tbaa !9
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.page, ptr %38, i32 0, i32 3
  %40 = load i32, ptr %39, align 1, !tbaa !16
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef @__func__.page_list, i32 noundef 169, ptr noundef @.str.27, i32 noundef %37, i32 noundef %40) #7
  br label %41

41:                                               ; preds = %36, %26
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  store i32 1, ptr %12, align 4
  br label %261

44:                                               ; preds = %1
  br label %45

45:                                               ; preds = %44
  %46 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 5), align 2, !tbaa !13
  %47 = zext i8 %46 to i32
  %48 = icmp sle i32 4, %47
  %49 = xor i1 %48, true
  %50 = xor i1 %49, true
  %51 = zext i1 %50 to i32
  %52 = sext i32 %51 to i64
  %53 = call i64 @llvm.expect.i64(i64 %52, i64 0)
  %54 = icmp ne i64 %53, 0
  br i1 %54, label %55, label %62

55:                                               ; preds = %45
  %56 = load i32, ptr %3, align 4, !tbaa !9
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = call ptr @page_meta(ptr noundef %57) #6
  %59 = getelementptr inbounds %struct.meta, ptr %58, i32 0, i32 1
  %60 = getelementptr inbounds [2 x %union.mdbx_atomic_uint32_t], ptr %59, i64 0, i64 0
  %61 = call i64 @unaligned_peek_u64(i64 noundef 4, ptr noundef %60) #6
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef @__func__.page_list, i32 noundef 172, ptr noundef @.str.28, i32 noundef %56, i64 noundef %61) #7
  br label %62

62:                                               ; preds = %55, %45
  br label %63

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63
  store i32 1, ptr %12, align 4
  br label %261

65:                                               ; preds = %1
  br label %66

66:                                               ; preds = %65
  %67 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 5), align 2, !tbaa !13
  %68 = zext i8 %67 to i32
  %69 = icmp sle i32 4, %68
  %70 = xor i1 %69, true
  %71 = xor i1 %70, true
  %72 = zext i1 %71 to i32
  %73 = sext i32 %72 to i64
  %74 = call i64 @llvm.expect.i64(i64 %73, i64 0)
  %75 = icmp ne i64 %74, 0
  br i1 %75, label %76, label %82

76:                                               ; preds = %66
  %77 = load i32, ptr %3, align 4, !tbaa !9
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.page, ptr %78, i32 0, i32 2
  %80 = load i16, ptr %79, align 1, !tbaa !17
  %81 = zext i16 %80 to i32
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef @__func__.page_list, i32 noundef 175, ptr noundef @.str.29, i32 noundef %77, i32 noundef %81) #7
  br label %82

82:                                               ; preds = %76, %66
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  store i32 1, ptr %12, align 4
  br label %261

85:                                               ; preds = %24, %23, %22, %21, %20
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = call i64 @page_numkeys(ptr noundef %86) #6
  store i64 %87, ptr %7, align 8, !tbaa !11
  br label %88

88:                                               ; preds = %85
  %89 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 5), align 2, !tbaa !13
  %90 = zext i8 %89 to i32
  %91 = icmp sle i32 4, %90
  %92 = xor i1 %91, true
  %93 = xor i1 %92, true
  %94 = zext i1 %93 to i32
  %95 = sext i32 %94 to i64
  %96 = call i64 @llvm.expect.i64(i64 %95, i64 0)
  %97 = icmp ne i64 %96, 0
  br i1 %97, label %98, label %102

98:                                               ; preds = %88
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = load i32, ptr %3, align 4, !tbaa !9
  %101 = load i64, ptr %7, align 8, !tbaa !11
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef @__func__.page_list, i32 noundef 180, ptr noundef @.str.30, ptr noundef %99, i32 noundef %100, i64 noundef %101) #7
  br label %102

102:                                              ; preds = %98, %88
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  store i64 0, ptr %6, align 8, !tbaa !11
  br label %105

105:                                              ; preds = %228, %104
  %106 = load i64, ptr %6, align 8, !tbaa !11
  %107 = load i64, ptr %7, align 8, !tbaa !11
  %108 = icmp ult i64 %106, %107
  br i1 %108, label %109, label %231

109:                                              ; preds = %105
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  %111 = call zeroext i1 @is_dupfix_leaf(ptr noundef %110) #6
  br i1 %111, label %112, label %145

112:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %113 = load ptr, ptr %2, align 8, !tbaa !5
  %114 = load i64, ptr %6, align 8, !tbaa !11
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.page, ptr %115, i32 0, i32 1
  %117 = load i16, ptr %116, align 1, !tbaa !17
  %118 = zext i16 %117 to i64
  store i64 %118, ptr %8, align 8, !tbaa !11
  %119 = call { ptr, i64 } @page_dupfix_key(ptr noundef %113, i64 noundef %114, i64 noundef %118) #6
  %120 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %121 = extractvalue { ptr, i64 } %119, 0
  store ptr %121, ptr %120, align 8
  %122 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %123 = extractvalue { ptr, i64 } %119, 1
  store i64 %123, ptr %122, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  %124 = load i64, ptr %8, align 8, !tbaa !11
  %125 = load i64, ptr %9, align 8, !tbaa !11
  %126 = add i64 %125, %124
  store i64 %126, ptr %9, align 8, !tbaa !11
  br label %127

127:                                              ; preds = %112
  %128 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 5), align 2, !tbaa !13
  %129 = zext i8 %128 to i32
  %130 = icmp sle i32 4, %129
  %131 = xor i1 %130, true
  %132 = xor i1 %131, true
  %133 = zext i1 %132 to i32
  %134 = sext i32 %133 to i64
  %135 = call i64 @llvm.expect.i64(i64 %134, i64 0)
  %136 = icmp ne i64 %135, 0
  br i1 %136, label %137, label %142

137:                                              ; preds = %127
  %138 = load i64, ptr %6, align 8, !tbaa !11
  %139 = load i64, ptr %8, align 8, !tbaa !11
  %140 = getelementptr inbounds [510 x i8], ptr %11, i64 0, i64 0
  %141 = call ptr @mdbx_dump_val(ptr noundef %10, ptr noundef %140, i64 noundef 255) #7
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef @__func__.page_list, i32 noundef 186, ptr noundef @.str.31, i64 noundef %138, i64 noundef %139, ptr noundef %141) #7
  br label %142

142:                                              ; preds = %137, %127
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143
  br label %228

145:                                              ; preds = %109
  %146 = load ptr, ptr %2, align 8, !tbaa !5
  %147 = load i64, ptr %6, align 8, !tbaa !11
  %148 = call ptr @page_node(ptr noundef %146, i64 noundef %147) #6
  store ptr %148, ptr %5, align 8, !tbaa !5
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = call i64 @node_ks(ptr noundef %149) #6
  %151 = getelementptr inbounds %struct.iovec, ptr %10, i32 0, i32 1
  store i64 %150, ptr %151, align 8, !tbaa !20
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.node, ptr %152, i32 0, i32 4
  %154 = getelementptr inbounds [0 x i8], ptr %153, i64 0, i64 0
  %155 = getelementptr inbounds %struct.iovec, ptr %10, i32 0, i32 0
  store ptr %154, ptr %155, align 8, !tbaa !22
  %156 = getelementptr inbounds %struct.iovec, ptr %10, i32 0, i32 1
  %157 = load i64, ptr %156, align 8, !tbaa !20
  %158 = add i64 8, %157
  store i64 %158, ptr %8, align 8, !tbaa !11
  %159 = load ptr, ptr %2, align 8, !tbaa !5
  %160 = call zeroext i1 @is_branch(ptr noundef %159) #6
  br i1 %160, label %161, label %184

161:                                              ; preds = %145
  br label %162

162:                                              ; preds = %161
  %163 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 5), align 2, !tbaa !13
  %164 = zext i8 %163 to i32
  %165 = icmp sle i32 4, %164
  %166 = xor i1 %165, true
  %167 = xor i1 %166, true
  %168 = zext i1 %167 to i32
  %169 = sext i32 %168 to i64
  %170 = call i64 @llvm.expect.i64(i64 %169, i64 0)
  %171 = icmp ne i64 %170, 0
  br i1 %171, label %172, label %178

172:                                              ; preds = %162
  %173 = load i64, ptr %6, align 8, !tbaa !11
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = call i32 @node_pgno(ptr noundef %174) #6
  %176 = getelementptr inbounds [510 x i8], ptr %11, i64 0, i64 0
  %177 = call ptr @mdbx_dump_val(ptr noundef %10, ptr noundef %176, i64 noundef 255) #7
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef @__func__.page_list, i32 noundef 194, ptr noundef @.str.32, i64 noundef %173, i32 noundef %175, ptr noundef %177) #7
  br label %178

178:                                              ; preds = %172, %162
  br label %179

179:                                              ; preds = %178
  br label %180

180:                                              ; preds = %179
  %181 = load i64, ptr %8, align 8, !tbaa !11
  %182 = load i64, ptr %9, align 8, !tbaa !11
  %183 = add i64 %182, %181
  store i64 %183, ptr %9, align 8, !tbaa !11
  br label %224

184:                                              ; preds = %145
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = call zeroext i8 @node_flags(ptr noundef %185) #6
  %187 = zext i8 %186 to i32
  %188 = and i32 %187, 1
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %193

190:                                              ; preds = %184
  %191 = load i64, ptr %8, align 8, !tbaa !11
  %192 = add i64 %191, 4
  store i64 %192, ptr %8, align 8, !tbaa !11
  br label %198

193:                                              ; preds = %184
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = call i64 @node_ds(ptr noundef %194) #6
  %196 = load i64, ptr %8, align 8, !tbaa !11
  %197 = add i64 %196, %195
  store i64 %197, ptr %8, align 8, !tbaa !11
  br label %198

198:                                              ; preds = %193, %190
  %199 = load i64, ptr %8, align 8, !tbaa !11
  %200 = load i64, ptr %9, align 8, !tbaa !11
  %201 = add i64 %200, %199
  store i64 %201, ptr %9, align 8, !tbaa !11
  %202 = load i64, ptr %8, align 8, !tbaa !11
  %203 = add i64 %202, 2
  store i64 %203, ptr %8, align 8, !tbaa !11
  br label %204

204:                                              ; preds = %198
  %205 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 5), align 2, !tbaa !13
  %206 = zext i8 %205 to i32
  %207 = icmp sle i32 4, %206
  %208 = xor i1 %207, true
  %209 = xor i1 %208, true
  %210 = zext i1 %209 to i32
  %211 = sext i32 %210 to i64
  %212 = call i64 @llvm.expect.i64(i64 %211, i64 0)
  %213 = icmp ne i64 %212, 0
  br i1 %213, label %214, label %221

214:                                              ; preds = %204
  %215 = load i64, ptr %6, align 8, !tbaa !11
  %216 = load i64, ptr %8, align 8, !tbaa !11
  %217 = getelementptr inbounds [510 x i8], ptr %11, i64 0, i64 0
  %218 = call ptr @mdbx_dump_val(ptr noundef %10, ptr noundef %217, i64 noundef 255) #7
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = call ptr @leafnode_type(ptr noundef %219) #7
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef @__func__.page_list, i32 noundef 203, ptr noundef @.str.33, i64 noundef %215, i64 noundef %216, ptr noundef %218, ptr noundef %220) #7
  br label %221

221:                                              ; preds = %214, %204
  br label %222

222:                                              ; preds = %221
  br label %223

223:                                              ; preds = %222
  br label %224

224:                                              ; preds = %223, %180
  %225 = load i64, ptr %9, align 8, !tbaa !11
  %226 = add i64 %225, 1
  %227 = and i64 %226, -2
  store i64 %227, ptr %9, align 8, !tbaa !11
  br label %228

228:                                              ; preds = %224, %144
  %229 = load i64, ptr %6, align 8, !tbaa !11
  %230 = add i64 %229, 1
  store i64 %230, ptr %6, align 8, !tbaa !11
  br label %105, !llvm.loop !23

231:                                              ; preds = %105
  br label %232

232:                                              ; preds = %231
  %233 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 5), align 2, !tbaa !13
  %234 = zext i8 %233 to i32
  %235 = icmp sle i32 4, %234
  %236 = xor i1 %235, true
  %237 = xor i1 %236, true
  %238 = zext i1 %237 to i32
  %239 = sext i32 %238 to i64
  %240 = call i64 @llvm.expect.i64(i64 %239, i64 0)
  %241 = icmp ne i64 %240, 0
  br i1 %241, label %242, label %258

242:                                              ; preds = %232
  %243 = load ptr, ptr %2, align 8, !tbaa !5
  %244 = call zeroext i1 @is_dupfix_leaf(ptr noundef %243) #6
  br i1 %244, label %245, label %246

245:                                              ; preds = %242
  br label %253

246:                                              ; preds = %242
  %247 = load ptr, ptr %2, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.page, ptr %247, i32 0, i32 3
  %249 = getelementptr inbounds %struct.anon.1, ptr %248, i32 0, i32 0
  %250 = load i16, ptr %249, align 1, !tbaa !16
  %251 = zext i16 %250 to i32
  %252 = add i32 20, %251
  br label %253

253:                                              ; preds = %246, %245
  %254 = phi i32 [ 20, %245 ], [ %252, %246 ]
  %255 = load i64, ptr %9, align 8, !tbaa !11
  %256 = load ptr, ptr %2, align 8, !tbaa !5
  %257 = call i64 @page_room(ptr noundef %256) #6
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef @__func__.page_list, i32 noundef 208, ptr noundef @.str.34, i32 noundef %254, i64 noundef %255, i64 noundef %257) #7
  br label %258

258:                                              ; preds = %253, %232
  br label %259

259:                                              ; preds = %258
  br label %260

260:                                              ; preds = %259
  store i32 0, ptr %12, align 4
  br label %261

261:                                              ; preds = %260, %84, %64, %43
  call void @llvm.lifetime.end.p0(i64 510, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  %262 = load i32, ptr %12, align 4
  switch i32 %262, label %264 [
    i32 0, label %263
    i32 1, label %263
  ]

263:                                              ; preds = %261, %261
  ret void

264:                                              ; preds = %261
  unreachable
}

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden zeroext i8 @page_type(ptr noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden i64 @unaligned_peek_u64(i64 noundef, ptr noalias noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden ptr @page_meta(ptr noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden i64 @page_numkeys(ptr noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden zeroext i1 @is_dupfix_leaf(ptr noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden { ptr, i64 } @page_dupfix_key(ptr noundef, i64 noundef, i64 noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden ptr @page_node(ptr noundef, i64 noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden i64 @node_ks(ptr noalias noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden zeroext i1 @is_branch(ptr noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden i32 @node_pgno(ptr noalias noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden zeroext i8 @node_flags(ptr noalias noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden i64 @node_ds(ptr noalias noundef) #4

; Function Attrs: cold nounwind optsize uwtable
declare hidden ptr @leafnode_type(ptr noundef) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden i64 @page_room(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { cold nounwind optsize 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint nounwind willreturn memory(read) 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { cold }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !7, i64 26}
!14 = !{!"libmdbx_globals", !7, i64 0, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !15, i64 27, !10, i64 28, !7, i64 32, !7, i64 40, !12, i64 80, !6, i64 88}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = !{i64 0, i64 8, !5, i64 8, i64 8, !11}
!20 = !{!21, !12, i64 8}
!21 = !{!"iovec", !6, i64 0, !12, i64 8}
!22 = !{!21, !6, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; 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.libmdbx_globals = type { %union.bin128, i32, i32, i8, i8, i8, i8, i32, %union.logger_union, %union.pthread_mutex_t, i64, ptr }
%union.bin128 = type { %struct.anon }
%struct.anon = type { i64, i64 }
%union.logger_union = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.iovec = type { ptr, i64 }

@globals = external local_unnamed_addr global %struct.libmdbx_globals, align 8
@.str.22 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__.page_list = external hidden unnamed_addr constant [10 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [47 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

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

; Function Attrs: cold nounwind optsize uwtable
declare dso_local void @debug_log(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: cold nounwind optsize uwtable
declare dso_local ptr @mdbx_dump_val(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: cold nounwind optsize uwtable
define dso_local void @page_list(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca %struct.iovec, align 8
  %3 = alloca [510 x i8], align 16
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load i32, ptr %4, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 510, ptr nonnull %3) #3
  %6 = tail call zeroext i8 @page_type(ptr noundef %0) #4
  switch i8 %6, label %24 [
    i8 1, label %31
    i8 2, label %7
    i8 66, label %8
    i8 34, label %9
    i8 98, label %10
    i8 4, label %11
    i8 8, label %17
  ]

7:                                                ; preds = %1
  br label %31

8:                                                ; preds = %1
  br label %31

9:                                                ; preds = %1
  br label %31

10:                                               ; preds = %1
  br label %31

11:                                               ; preds = %1
  %12 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !9
  %13 = icmp ugt i8 %12, 3
  br i1 %13, label %14, label %96, !prof !14

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %0, i64 12
  %16 = load i32, ptr %15, align 1, !tbaa !15
  tail call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef nonnull @__func__.page_list, i32 noundef 169, ptr noundef nonnull @.str.27, i32 noundef %5, i32 noundef %16) #5
  br label %96

17:                                               ; preds = %1
  %18 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !9
  %19 = icmp ugt i8 %18, 3
  br i1 %19, label %20, label %96, !prof !14

20:                                               ; preds = %17
  %21 = tail call ptr @page_meta(ptr noundef nonnull %0) #4
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %23 = tail call i64 @unaligned_peek_u64(i64 noundef 4, ptr noundef nonnull %22) #4
  tail call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef nonnull @__func__.page_list, i32 noundef 172, ptr noundef nonnull @.str.28, i32 noundef %5, i64 noundef %23) #5
  br label %96

24:                                               ; preds = %1
  %25 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !9
  %26 = icmp ugt i8 %25, 3
  br i1 %26, label %27, label %96, !prof !14

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %0, i64 10
  %29 = load i16, ptr %28, align 1, !tbaa !16
  %30 = zext i16 %29 to i32
  tail call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef nonnull @__func__.page_list, i32 noundef 175, ptr noundef nonnull @.str.29, i32 noundef %5, i32 noundef %30) #5
  br label %96

31:                                               ; preds = %1, %10, %9, %8, %7
  %.0 = phi ptr [ @.str.26, %10 ], [ @.str.25, %9 ], [ @.str.24, %8 ], [ @.str.23, %7 ], [ @.str.22, %1 ]
  %32 = tail call i64 @page_numkeys(ptr noundef nonnull %0) #4
  %33 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !9
  %34 = icmp ugt i8 %33, 3
  br i1 %34, label %35, label %36, !prof !14

35:                                               ; preds = %31
  tail call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef nonnull @__func__.page_list, i32 noundef 180, ptr noundef nonnull @.str.30, ptr noundef nonnull %.0, i32 noundef %5, i64 noundef %32) #5
  br label %36

36:                                               ; preds = %35, %31
  %.not51 = icmp eq i64 %32, 0
  br i1 %.not51, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %36
  %37 = getelementptr inbounds i8, ptr %2, i64 8
  %38 = getelementptr inbounds i8, ptr %0, i64 8
  br label %39

39:                                               ; preds = %.lr.ph, %82
  %.04650 = phi i64 [ 0, %.lr.ph ], [ %83, %82 ]
  %.04749 = phi i64 [ 0, %.lr.ph ], [ %.2, %82 ]
  %40 = call zeroext i1 @is_dupfix_leaf(ptr noundef %0) #4
  br i1 %40, label %41, label %52

41:                                               ; preds = %39
  %42 = load i16, ptr %38, align 1, !tbaa !16
  %43 = zext i16 %42 to i64
  %44 = call { ptr, i64 } @page_dupfix_key(ptr noundef %0, i64 noundef %.04650, i64 noundef %43) #4
  %45 = extractvalue { ptr, i64 } %44, 0
  %46 = extractvalue { ptr, i64 } %44, 1
  store ptr %45, ptr %2, align 8, !tbaa !18
  store i64 %46, ptr %37, align 8, !tbaa !19
  %47 = add i64 %.04749, %43
  %48 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !9
  %49 = icmp ugt i8 %48, 3
  br i1 %49, label %50, label %82, !prof !14

50:                                               ; preds = %41
  %51 = call ptr @mdbx_dump_val(ptr noundef nonnull %2, ptr noundef nonnull %3, i64 noundef 255) #5
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef nonnull @__func__.page_list, i32 noundef 186, ptr noundef nonnull @.str.31, i64 noundef %.04650, i64 noundef %43, ptr noundef %51) #5
  br label %82

52:                                               ; preds = %39
  %53 = call ptr @page_node(ptr noundef %0, i64 noundef %.04650) #4
  %54 = call i64 @node_ks(ptr noundef %53) #4
  store i64 %54, ptr %37, align 8, !tbaa !20
  %55 = getelementptr inbounds i8, ptr %53, i64 8
  store ptr %55, ptr %2, align 8, !tbaa !22
  %56 = add i64 %54, 8
  %57 = call zeroext i1 @is_branch(ptr noundef %0) #4
  br i1 %57, label %58, label %64

58:                                               ; preds = %52
  %59 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !9
  %60 = icmp ugt i8 %59, 3
  br i1 %60, label %61, label %79, !prof !14

61:                                               ; preds = %58
  %62 = call i32 @node_pgno(ptr noundef %53) #4
  %63 = call ptr @mdbx_dump_val(ptr noundef nonnull %2, ptr noundef nonnull %3, i64 noundef 255) #5
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef nonnull @__func__.page_list, i32 noundef 194, ptr noundef nonnull @.str.32, i64 noundef %.04650, i32 noundef %62, ptr noundef %63) #5
  br label %79

64:                                               ; preds = %52
  %65 = call zeroext i8 @node_flags(ptr noundef %53) #4
  %66 = and i8 %65, 1
  %.not = icmp eq i8 %66, 0
  br i1 %.not, label %69, label %67

67:                                               ; preds = %64
  %68 = add i64 %54, 12
  br label %72

69:                                               ; preds = %64
  %70 = call i64 @node_ds(ptr noundef %53) #4
  %71 = add i64 %70, %56
  br label %72

72:                                               ; preds = %69, %67
  %.048 = phi i64 [ %68, %67 ], [ %71, %69 ]
  %73 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !9
  %74 = icmp ugt i8 %73, 3
  br i1 %74, label %75, label %79, !prof !14

75:                                               ; preds = %72
  %76 = add i64 %.048, 2
  %77 = call ptr @mdbx_dump_val(ptr noundef nonnull %2, ptr noundef nonnull %3, i64 noundef 255) #5
  %78 = call ptr @leafnode_type(ptr noundef %53) #5
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef nonnull @__func__.page_list, i32 noundef 203, ptr noundef nonnull @.str.33, i64 noundef %.04650, i64 noundef %76, ptr noundef %77, ptr noundef %78) #5
  br label %79

79:                                               ; preds = %58, %61, %72, %75
  %.pn = phi i64 [ %.048, %75 ], [ %.048, %72 ], [ %56, %61 ], [ %56, %58 ]
  %.1 = add i64 %.04749, 1
  %80 = add i64 %.1, %.pn
  %81 = and i64 %80, -2
  br label %82

82:                                               ; preds = %41, %50, %79
  %.2 = phi i64 [ %47, %50 ], [ %47, %41 ], [ %81, %79 ]
  %83 = add nuw i64 %.04650, 1
  %exitcond.not = icmp eq i64 %83, %32
  br i1 %exitcond.not, label %._crit_edge, label %39, !llvm.loop !23

._crit_edge:                                      ; preds = %82, %36
  %.047.lcssa = phi i64 [ 0, %36 ], [ %.2, %82 ]
  %84 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !9
  %85 = icmp ugt i8 %84, 3
  br i1 %85, label %86, label %96, !prof !14

86:                                               ; preds = %._crit_edge
  %87 = call zeroext i1 @is_dupfix_leaf(ptr noundef %0) #4
  br i1 %87, label %93, label %88

88:                                               ; preds = %86
  %89 = getelementptr inbounds i8, ptr %0, i64 12
  %90 = load i16, ptr %89, align 1, !tbaa !15
  %91 = zext i16 %90 to i32
  %92 = add nuw nsw i32 %91, 20
  br label %93

93:                                               ; preds = %86, %88
  %94 = phi i32 [ %92, %88 ], [ 20, %86 ]
  %95 = call i64 @page_room(ptr noundef %0) #4
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 4, ptr noundef nonnull @__func__.page_list, i32 noundef 208, ptr noundef nonnull @.str.34, i32 noundef %94, i64 noundef %.047.lcssa, i64 noundef %95) #5
  br label %96

96:                                               ; preds = %._crit_edge, %93, %24, %27, %17, %20, %11, %14
  call void @llvm.lifetime.end.p0(i64 510, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #3
  ret void
}

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden zeroext i8 @page_type(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden i64 @unaligned_peek_u64(i64 noundef, ptr noalias noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden ptr @page_meta(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden i64 @page_numkeys(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden zeroext i1 @is_dupfix_leaf(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden { ptr, i64 } @page_dupfix_key(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden ptr @page_node(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden i64 @node_ks(ptr noalias noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden zeroext i1 @is_branch(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden i32 @node_pgno(ptr noalias noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden zeroext i8 @node_flags(ptr noalias noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden i64 @node_ds(ptr noalias noundef) local_unnamed_addr #2

; Function Attrs: cold nounwind optsize uwtable
declare hidden ptr @leafnode_type(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden i64 @page_room(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { cold nounwind optsize 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 #2 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 }
attributes #4 = { nounwind willreturn memory(read) }
attributes #5 = { cold }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !7, i64 26}
!10 = !{!"libmdbx_globals", !7, i64 0, !6, i64 16, !6, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !11, i64 27, !6, i64 28, !7, i64 32, !7, i64 40, !12, i64 80, !13, i64 88}
!11 = !{!"_Bool", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!13, !13, i64 0}
!19 = !{!12, !12, i64 0}
!20 = !{!21, !12, i64 8}
!21 = !{!"iovec", !13, i64 0, !12, i64 8}
!22 = !{!21, !13, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass