; LLVM IR from mitdbg/deneva :: storage/index_btree.ll (ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_nodeS4_)

; 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.glob_param = type { i64 }
%struct.bt_node = type { ptr, i8, ptr, ptr, i32, ptr, i8, %union.pthread_mutex_t, i32, i32 }
%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 }
%class.index_btree = type { %class.index_base, i64, i32, ptr, ptr, ptr }
%class.index_base = type { ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_nodeS4_ = external hidden unnamed_addr constant [84 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [39 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN11index_btree9find_rootEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_nodeS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 %1, i64 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3 align 2 {
  %7 = alloca i32, align 4
  %8 = alloca %struct.glob_param, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = getelementptr inbounds %struct.glob_param, ptr %8, i32 0, i32 0
  store i64 %1, ptr %18, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !11
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %19 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %20 = getelementptr inbounds %struct.glob_param, ptr %8, i32 0, i32 0
  %21 = load i64, ptr %20, align 8, !tbaa !13
  %22 = call noundef ptr @_ZN11index_btree9find_rootEm(ptr noundef nonnull align 8 dereferenceable(56) %19, i64 noundef %21)
  store ptr %22, ptr %15, align 8, !tbaa !5
  %23 = load ptr, ptr %15, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %26

25:                                               ; preds = %6
  br label %28

26:                                               ; preds = %6
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 330, ptr noundef @__PRETTY_FUNCTION__._ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_nodeS4_) #6
  unreachable

27:                                               ; No predecessors!
  br label %28

28:                                               ; preds = %27, %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %29 = load i32, ptr %11, align 4, !tbaa !11
  %30 = icmp eq i32 %29, 2
  br i1 %30, label %31, label %71

31:                                               ; preds = %28
  br label %32

32:                                               ; preds = %60, %31
  %33 = load ptr, ptr %15, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.bt_node, ptr %33, i32 0, i32 1
  %35 = load i8, ptr %34, align 8, !tbaa !15, !range !20, !noundef !21
  %36 = trunc i8 %35 to i1
  %37 = xor i1 %36, true
  br i1 %37, label %38, label %68

38:                                               ; preds = %32
  store i32 0, ptr %14, align 4, !tbaa !22
  br label %39

39:                                               ; preds = %57, %38
  %40 = load i32, ptr %14, align 4, !tbaa !22
  %41 = load ptr, ptr %15, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.bt_node, ptr %41, i32 0, i32 4
  %43 = load i32, ptr %42, align 8, !tbaa !23
  %44 = icmp ult i32 %40, %43
  br i1 %44, label %45, label %60

45:                                               ; preds = %39
  %46 = load i64, ptr %10, align 8, !tbaa !9
  %47 = load ptr, ptr %15, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.bt_node, ptr %47, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !24
  %50 = load i32, ptr %14, align 4, !tbaa !22
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds i64, ptr %49, i64 %51
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = icmp ult i64 %46, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %45
  br label %60

56:                                               ; preds = %45
  br label %57

57:                                               ; preds = %56
  %58 = load i32, ptr %14, align 4, !tbaa !22
  %59 = add i32 %58, 1
  store i32 %59, ptr %14, align 4, !tbaa !22
  br label %39, !llvm.loop !25

60:                                               ; preds = %55, %39
  %61 = load ptr, ptr %15, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.bt_node, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !27
  %64 = load i32, ptr %14, align 4, !tbaa !22
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds ptr, ptr %63, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  store ptr %67, ptr %15, align 8, !tbaa !5
  br label %32, !llvm.loop !28

68:                                               ; preds = %32
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %69, ptr %70, align 8, !tbaa !5
  store i32 0, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %216

71:                                               ; preds = %28
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = call noundef zeroext i1 @_ZN11index_btree10latch_nodeEP7bt_node7latch_t(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %72, i32 noundef 1)
  br i1 %73, label %75, label %74

74:                                               ; preds = %71
  store i32 2, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %216

75:                                               ; preds = %71
  br label %76

76:                                               ; preds = %187, %75
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.bt_node, ptr %77, i32 0, i32 1
  %79 = load i8, ptr %78, align 8, !tbaa !15, !range !20, !noundef !21
  %80 = trunc i8 %79 to i1
  %81 = xor i1 %80, true
  br i1 %81, label %82, label %189

82:                                               ; preds = %76
  %83 = load ptr, ptr %15, align 8, !tbaa !5
  %84 = call noundef i64 @_Z11get_part_idPv(ptr noundef %83)
  %85 = getelementptr inbounds %struct.glob_param, ptr %8, i32 0, i32 0
  %86 = load i64, ptr %85, align 8, !tbaa !13
  %87 = icmp eq i64 %84, %86
  br i1 %87, label %88, label %89

88:                                               ; preds = %82
  br label %91

89:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.1, i32 noundef 347, ptr noundef @__PRETTY_FUNCTION__._ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_nodeS4_) #6
  unreachable

90:                                               ; No predecessors!
  br label %91

91:                                               ; preds = %90, %88
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.bt_node, ptr %92, i32 0, i32 2
  %94 = load ptr, ptr %93, align 8, !tbaa !24
  %95 = call noundef i64 @_Z11get_part_idPv(ptr noundef %94)
  %96 = getelementptr inbounds %struct.glob_param, ptr %8, i32 0, i32 0
  %97 = load i64, ptr %96, align 8, !tbaa !13
  %98 = icmp eq i64 %95, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %91
  br label %102

100:                                              ; preds = %91
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.1, i32 noundef 348, ptr noundef @__PRETTY_FUNCTION__._ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_nodeS4_) #6
  unreachable

101:                                              ; No predecessors!
  br label %102

102:                                              ; preds = %101, %99
  store i32 0, ptr %14, align 4, !tbaa !22
  br label %103

103:                                              ; preds = %121, %102
  %104 = load i32, ptr %14, align 4, !tbaa !22
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.bt_node, ptr %105, i32 0, i32 4
  %107 = load i32, ptr %106, align 8, !tbaa !23
  %108 = icmp ult i32 %104, %107
  br i1 %108, label %109, label %124

109:                                              ; preds = %103
  %110 = load i64, ptr %10, align 8, !tbaa !9
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.bt_node, ptr %111, i32 0, i32 2
  %113 = load ptr, ptr %112, align 8, !tbaa !24
  %114 = load i32, ptr %14, align 4, !tbaa !22
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds i64, ptr %113, i64 %115
  %117 = load i64, ptr %116, align 8, !tbaa !9
  %118 = icmp ult i64 %110, %117
  br i1 %118, label %119, label %120

119:                                              ; preds = %109
  br label %124

120:                                              ; preds = %109
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %14, align 4, !tbaa !22
  %123 = add i32 %122, 1
  store i32 %123, ptr %14, align 4, !tbaa !22
  br label %103, !llvm.loop !29

124:                                              ; preds = %119, %103
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.bt_node, ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !27
  %128 = load i32, ptr %14, align 4, !tbaa !22
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds ptr, ptr %127, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  store ptr %131, ptr %16, align 8, !tbaa !5
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = call noundef zeroext i1 @_ZN11index_btree10latch_nodeEP7bt_node7latch_t(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %132, i32 noundef 1)
  br i1 %133, label %142, label %134

134:                                              ; preds = %124
  %135 = load ptr, ptr %15, align 8, !tbaa !5
  %136 = call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %135)
  %137 = load ptr, ptr %15, align 8, !tbaa !5
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = call noundef i32 @_ZN11index_btree7cleanupEP7bt_nodeS1_(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %137, ptr noundef %139)
  %141 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %141, align 8, !tbaa !5
  store i32 2, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %216

142:                                              ; preds = %124
  %143 = load i32, ptr %11, align 4, !tbaa !11
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %184

145:                                              ; preds = %142
  %146 = load ptr, ptr %16, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.bt_node, ptr %146, i32 0, i32 4
  %148 = load i32, ptr %147, align 8, !tbaa !23
  %149 = getelementptr inbounds %class.index_btree, ptr %19, i32 0, i32 2
  %150 = load i32, ptr %149, align 8, !tbaa !30
  %151 = sub i32 %150, 1
  %152 = icmp eq i32 %148, %151
  br i1 %152, label %153, label %175

153:                                              ; preds = %145
  %154 = load ptr, ptr %15, align 8, !tbaa !5
  %155 = call noundef i32 @_ZN11index_btree13upgrade_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %154)
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %167

157:                                              ; preds = %153
  %158 = load ptr, ptr %15, align 8, !tbaa !5
  %159 = call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %158)
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %160)
  %162 = load ptr, ptr %15, align 8, !tbaa !5
  %163 = load ptr, ptr %13, align 8, !tbaa !5
  %164 = load ptr, ptr %163, align 8, !tbaa !5
  %165 = call noundef i32 @_ZN11index_btree7cleanupEP7bt_nodeS1_(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %162, ptr noundef %164)
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %166, align 8, !tbaa !5
  store i32 2, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %216

167:                                              ; preds = %153
  %168 = load ptr, ptr %13, align 8, !tbaa !5
  %169 = load ptr, ptr %168, align 8, !tbaa !5
  %170 = icmp eq ptr %169, null
  br i1 %170, label %171, label %174

171:                                              ; preds = %167
  %172 = load ptr, ptr %15, align 8, !tbaa !5
  %173 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %172, ptr %173, align 8, !tbaa !5
  br label %174

174:                                              ; preds = %171, %167
  br label %183

175:                                              ; preds = %145
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = call noundef i32 @_ZN11index_btree7cleanupEP7bt_nodeS1_(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %176, ptr noundef %178)
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %180, align 8, !tbaa !5
  %181 = load ptr, ptr %15, align 8, !tbaa !5
  %182 = call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %181)
  br label %183

183:                                              ; preds = %175, %174
  br label %187

184:                                              ; preds = %142
  %185 = load ptr, ptr %15, align 8, !tbaa !5
  %186 = call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %185)
  br label %187

187:                                              ; preds = %184, %183
  %188 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %188, ptr %15, align 8, !tbaa !5
  br label %76, !llvm.loop !33

189:                                              ; preds = %76
  %190 = load i32, ptr %11, align 4, !tbaa !11
  %191 = icmp eq i32 %190, 0
  br i1 %191, label %192, label %204

192:                                              ; preds = %189
  %193 = load ptr, ptr %15, align 8, !tbaa !5
  %194 = call noundef i32 @_ZN11index_btree13upgrade_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %193)
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %203

196:                                              ; preds = %192
  %197 = load ptr, ptr %15, align 8, !tbaa !5
  %198 = call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %197)
  %199 = load ptr, ptr %15, align 8, !tbaa !5
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %202 = call noundef i32 @_ZN11index_btree7cleanupEP7bt_nodeS1_(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef %199, ptr noundef %201)
  store i32 2, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %216

203:                                              ; preds = %192
  br label %204

204:                                              ; preds = %203, %189
  %205 = load ptr, ptr %15, align 8, !tbaa !5
  %206 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %205, ptr %206, align 8, !tbaa !5
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = load ptr, ptr %207, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.bt_node, ptr %208, i32 0, i32 1
  %210 = load i8, ptr %209, align 8, !tbaa !15, !range !20, !noundef !21
  %211 = trunc i8 %210 to i1
  br i1 %211, label %212, label %213

212:                                              ; preds = %204
  br label %215

213:                                              ; preds = %204
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 393, ptr noundef @__PRETTY_FUNCTION__._ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_nodeS4_) #6
  unreachable

214:                                              ; No predecessors!
  br label %215

215:                                              ; preds = %214, %212
  store i32 0, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %216

216:                                              ; preds = %215, %196, %157, %134, %74, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %217 = load i32, ptr %7, align 4
  ret i32 %217
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11index_btree10latch_nodeEP7bt_node7latch_t(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11index_btree13upgrade_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11index_btree7cleanupEP7bt_nodeS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef) #2 align 2

declare noundef i64 @_Z11get_part_idPv(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS9idx_acc_t", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS10glob_param", !10, i64 0}
!15 = !{!16, !17, i64 8}
!16 = !{!"_ZTS7bt_node", !6, i64 0, !17, i64 8, !6, i64 16, !6, i64 24, !18, i64 32, !6, i64 40, !17, i64 48, !7, i64 56, !19, i64 96, !18, i64 100}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTS7latch_t", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!18, !18, i64 0}
!23 = !{!16, !18, i64 32}
!24 = !{!16, !6, i64 16}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!16, !6, i64 0}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}
!30 = !{!31, !18, i64 24}
!31 = !{!"_ZTS11index_btree", !32, i64 0, !10, i64 16, !18, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!32 = !{!"_ZTS10index_base", !6, i64 8}
!33 = distinct !{!33, !26}


; 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"

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_nodeS4_ = external hidden unnamed_addr constant [84 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN11index_btree9find_rootEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 3) i32 @_ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_nodeS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 %1, i64 noundef %2, i32 noundef %3, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %4, ptr nocapture noundef nonnull align 8 dereferenceable(8) %5) local_unnamed_addr #2 align 2 {
  %7 = tail call noundef ptr @_ZN11index_btree9find_rootEm(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 noundef %1)
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %8, label %9

8:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1, i32 noundef 330, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_nodeS4_) #4
  unreachable

9:                                                ; preds = %6
  %10 = icmp eq i32 %3, 2
  br i1 %10, label %.preheader66, label %32

.preheader66:                                     ; preds = %9
  %11 = getelementptr inbounds i8, ptr %7, i64 8
  %12 = load i8, ptr %11, align 8, !tbaa !5, !range !13, !noundef !14
  %13 = trunc nuw i8 %12 to i1
  br i1 %13, label %._crit_edge105, label %.preheader

.preheader:                                       ; preds = %.preheader66, %._crit_edge100
  %.058104 = phi ptr [ %28, %._crit_edge100 ], [ %7, %.preheader66 ]
  %14 = getelementptr inbounds i8, ptr %.058104, i64 32
  %15 = load i32, ptr %14, align 8, !tbaa !15
  %.not109 = icmp eq i32 %15, 0
  br i1 %.not109, label %._crit_edge100, label %.lr.ph99

.lr.ph99:                                         ; preds = %.preheader
  %16 = getelementptr inbounds i8, ptr %.058104, i64 16
  %17 = load ptr, ptr %16, align 8, !tbaa !16
  %18 = zext i32 %15 to i64
  br label %19

19:                                               ; preds = %.lr.ph99, %23
  %indvars.iv131 = phi i64 [ 0, %.lr.ph99 ], [ %indvars.iv.next132, %23 ]
  %20 = getelementptr inbounds i64, ptr %17, i64 %indvars.iv131
  %21 = load i64, ptr %20, align 8, !tbaa !17
  %22 = icmp ugt i64 %21, %2
  br i1 %22, label %._crit_edge100.loopexit.split.loop.exit, label %23

23:                                               ; preds = %19
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %exitcond134.not = icmp eq i64 %indvars.iv.next132, %18
  br i1 %exitcond134.not, label %._crit_edge100, label %19, !llvm.loop !19

._crit_edge100.loopexit.split.loop.exit:          ; preds = %19
  %24 = trunc nuw i64 %indvars.iv131 to i32
  br label %._crit_edge100

._crit_edge100:                                   ; preds = %23, %._crit_edge100.loopexit.split.loop.exit, %.preheader
  %.059.lcssa = phi i32 [ 0, %.preheader ], [ %24, %._crit_edge100.loopexit.split.loop.exit ], [ %15, %23 ]
  %25 = load ptr, ptr %.058104, align 8, !tbaa !21
  %26 = zext i32 %.059.lcssa to i64
  %27 = getelementptr inbounds ptr, ptr %25, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !22
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  %30 = load i8, ptr %29, align 8, !tbaa !5, !range !13, !noundef !14
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %._crit_edge105, label %.preheader, !llvm.loop !23

._crit_edge105:                                   ; preds = %._crit_edge100, %.preheader66
  %.058.lcssa = phi ptr [ %7, %.preheader66 ], [ %28, %._crit_edge100 ]
  store ptr %.058.lcssa, ptr %4, align 8, !tbaa !22
  br label %128

32:                                               ; preds = %9
  %33 = tail call noundef zeroext i1 @_ZN11index_btree10latch_nodeEP7bt_node7latch_t(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %7, i32 noundef 1)
  br i1 %33, label %.preheader68, label %128

.preheader68:                                     ; preds = %32
  %34 = getelementptr inbounds i8, ptr %7, i64 8
  %35 = load i8, ptr %34, align 8, !tbaa !5, !range !13, !noundef !14
  %36 = trunc nuw i8 %35 to i1
  br i1 %36, label %._crit_edge85, label %.lr.ph84

.lr.ph84:                                         ; preds = %.preheader68
  %37 = icmp eq i32 %3, 0
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  br i1 %37, label %.lr.ph84.split.us, label %.lr.ph84.split

.lr.ph84.split.us:                                ; preds = %.lr.ph84, %73
  %.183.us = phi ptr [ %55, %73 ], [ %7, %.lr.ph84 ]
  %39 = tail call noundef i64 @_Z11get_part_idPv(ptr noundef nonnull %.183.us)
  %40 = icmp eq i64 %39, %1
  br i1 %40, label %41, label %.split.us

41:                                               ; preds = %.lr.ph84.split.us
  %42 = getelementptr inbounds i8, ptr %.183.us, i64 16
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  %44 = tail call noundef i64 @_Z11get_part_idPv(ptr noundef %43)
  %45 = icmp eq i64 %44, %1
  br i1 %45, label %.preheader67.us, label %.split89.us

46:                                               ; preds = %.lr.ph.us, %50
  %indvars.iv127 = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next128, %50 ]
  %47 = getelementptr inbounds i64, ptr %79, i64 %indvars.iv127
  %48 = load i64, ptr %47, align 8, !tbaa !17
  %49 = icmp ugt i64 %48, %2
  br i1 %49, label %._crit_edge.us.loopexit.split.loop.exit, label %50

50:                                               ; preds = %46
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %exitcond130.not = icmp eq i64 %indvars.iv.next128, %80
  br i1 %exitcond130.not, label %._crit_edge.us, label %46, !llvm.loop !24

._crit_edge.us.loopexit.split.loop.exit:          ; preds = %46
  %51 = trunc nuw i64 %indvars.iv127 to i32
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %50, %._crit_edge.us.loopexit.split.loop.exit, %.preheader67.us
  %.160.lcssa.us = phi i32 [ 0, %.preheader67.us ], [ %51, %._crit_edge.us.loopexit.split.loop.exit ], [ %78, %50 ]
  %52 = load ptr, ptr %.183.us, align 8, !tbaa !21
  %53 = zext i32 %.160.lcssa.us to i64
  %54 = getelementptr inbounds ptr, ptr %52, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !22
  %56 = tail call noundef zeroext i1 @_ZN11index_btree10latch_nodeEP7bt_node7latch_t(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef %55, i32 noundef 1)
  br i1 %56, label %57, label %.split91.us

57:                                               ; preds = %._crit_edge.us
  %58 = getelementptr inbounds i8, ptr %55, i64 32
  %59 = load i32, ptr %58, align 8, !tbaa !15
  %60 = load i32, ptr %38, align 8, !tbaa !25
  %61 = add i32 %60, -1
  %62 = icmp eq i32 %59, %61
  br i1 %62, label %67, label %63

63:                                               ; preds = %57
  %64 = load ptr, ptr %5, align 8, !tbaa !22
  %65 = tail call noundef i32 @_ZN11index_btree7cleanupEP7bt_nodeS1_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %.183.us, ptr noundef %64)
  store ptr null, ptr %5, align 8, !tbaa !22
  %66 = tail call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %.183.us)
  br label %73

67:                                               ; preds = %57
  %68 = tail call noundef i32 @_ZN11index_btree13upgrade_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %.183.us)
  %.not65.us = icmp eq i32 %68, 0
  br i1 %.not65.us, label %69, label %.split93.us

69:                                               ; preds = %67
  %70 = load ptr, ptr %5, align 8, !tbaa !22
  %71 = icmp eq ptr %70, null
  br i1 %71, label %72, label %73

72:                                               ; preds = %69
  store ptr %.183.us, ptr %5, align 8, !tbaa !22
  br label %73

73:                                               ; preds = %72, %69, %63
  %74 = getelementptr inbounds i8, ptr %55, i64 8
  %75 = load i8, ptr %74, align 8, !tbaa !5, !range !13, !noundef !14
  %76 = trunc nuw i8 %75 to i1
  br i1 %76, label %._crit_edge85, label %.lr.ph84.split.us, !llvm.loop !28

.preheader67.us:                                  ; preds = %41
  %77 = getelementptr inbounds i8, ptr %.183.us, i64 32
  %78 = load i32, ptr %77, align 8, !tbaa !15
  %.not108 = icmp eq i32 %78, 0
  br i1 %.not108, label %._crit_edge.us, label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.preheader67.us
  %79 = load ptr, ptr %42, align 8, !tbaa !16
  %80 = zext i32 %78 to i64
  br label %46

.lr.ph84.split:                                   ; preds = %.lr.ph84, %106
  %.183 = phi ptr [ %101, %106 ], [ %7, %.lr.ph84 ]
  %81 = tail call noundef i64 @_Z11get_part_idPv(ptr noundef nonnull %.183)
  %82 = icmp eq i64 %81, %1
  br i1 %82, label %83, label %.split.us

.split.us:                                        ; preds = %.lr.ph84.split, %.lr.ph84.split.us
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, i32 noundef 347, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_nodeS4_) #4
  unreachable

83:                                               ; preds = %.lr.ph84.split
  %84 = getelementptr inbounds i8, ptr %.183, i64 16
  %85 = load ptr, ptr %84, align 8, !tbaa !16
  %86 = tail call noundef i64 @_Z11get_part_idPv(ptr noundef %85)
  %87 = icmp eq i64 %86, %1
  br i1 %87, label %.preheader67, label %.split89.us

.preheader67:                                     ; preds = %83
  %88 = getelementptr inbounds i8, ptr %.183, i64 32
  %89 = load i32, ptr %88, align 8, !tbaa !15
  %.not107 = icmp eq i32 %89, 0
  br i1 %.not107, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader67
  %90 = load ptr, ptr %84, align 8, !tbaa !16
  %91 = zext i32 %89 to i64
  br label %92

.split89.us:                                      ; preds = %83, %41
  tail call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.1, i32 noundef 348, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_nodeS4_) #4
  unreachable

92:                                               ; preds = %.lr.ph, %96
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %96 ]
  %93 = getelementptr inbounds i64, ptr %90, i64 %indvars.iv
  %94 = load i64, ptr %93, align 8, !tbaa !17
  %95 = icmp ugt i64 %94, %2
  br i1 %95, label %._crit_edge.loopexit.split.loop.exit, label %96

96:                                               ; preds = %92
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %91
  br i1 %exitcond.not, label %._crit_edge, label %92, !llvm.loop !24

._crit_edge.loopexit.split.loop.exit:             ; preds = %92
  %97 = trunc nuw i64 %indvars.iv to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %96, %._crit_edge.loopexit.split.loop.exit, %.preheader67
  %.160.lcssa = phi i32 [ 0, %.preheader67 ], [ %97, %._crit_edge.loopexit.split.loop.exit ], [ %89, %96 ]
  %98 = load ptr, ptr %.183, align 8, !tbaa !21
  %99 = zext i32 %.160.lcssa to i64
  %100 = getelementptr inbounds ptr, ptr %98, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !22
  %102 = tail call noundef zeroext i1 @_ZN11index_btree10latch_nodeEP7bt_node7latch_t(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef %101, i32 noundef 1)
  br i1 %102, label %106, label %.split91.us

.split91.us:                                      ; preds = %._crit_edge, %._crit_edge.us
  %.us-phi = phi ptr [ %.183.us, %._crit_edge.us ], [ %.183, %._crit_edge ]
  %103 = tail call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %.us-phi)
  %104 = load ptr, ptr %5, align 8, !tbaa !22
  %105 = tail call noundef i32 @_ZN11index_btree7cleanupEP7bt_nodeS1_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %.us-phi, ptr noundef %104)
  store ptr null, ptr %5, align 8, !tbaa !22
  br label %128

106:                                              ; preds = %._crit_edge
  %107 = tail call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %.183)
  %108 = getelementptr inbounds i8, ptr %101, i64 8
  %109 = load i8, ptr %108, align 8, !tbaa !5, !range !13, !noundef !14
  %110 = trunc nuw i8 %109 to i1
  br i1 %110, label %._crit_edge85, label %.lr.ph84.split, !llvm.loop !28

.split93.us:                                      ; preds = %67
  %111 = tail call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %.183.us)
  %112 = tail call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %55)
  %113 = load ptr, ptr %5, align 8, !tbaa !22
  %114 = tail call noundef i32 @_ZN11index_btree7cleanupEP7bt_nodeS1_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %.183.us, ptr noundef %113)
  store ptr null, ptr %5, align 8, !tbaa !22
  br label %128

._crit_edge85:                                    ; preds = %106, %73, %.preheader68
  %115 = phi i8 [ %35, %.preheader68 ], [ %75, %73 ], [ %109, %106 ]
  %.1.lcssa82 = phi ptr [ %7, %.preheader68 ], [ %55, %73 ], [ %101, %106 ]
  %116 = getelementptr inbounds i8, ptr %.1.lcssa82, i64 8
  %117 = icmp eq i32 %3, 0
  br i1 %117, label %118, label %124

118:                                              ; preds = %._crit_edge85
  %119 = tail call noundef i32 @_ZN11index_btree13upgrade_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %.1.lcssa82)
  %.not64 = icmp eq i32 %119, 0
  br i1 %.not64, label %._crit_edge135, label %120

._crit_edge135:                                   ; preds = %118
  %.pre = load i8, ptr %116, align 8, !tbaa !5, !range !13
  br label %124

120:                                              ; preds = %118
  %121 = tail call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %.1.lcssa82)
  %122 = load ptr, ptr %5, align 8, !tbaa !22
  %123 = tail call noundef i32 @_ZN11index_btree7cleanupEP7bt_nodeS1_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %.1.lcssa82, ptr noundef %122)
  br label %128

124:                                              ; preds = %._crit_edge135, %._crit_edge85
  %125 = phi i8 [ %.pre, %._crit_edge135 ], [ %115, %._crit_edge85 ]
  store ptr %.1.lcssa82, ptr %4, align 8, !tbaa !22
  %126 = trunc nuw i8 %125 to i1
  br i1 %126, label %128, label %127

127:                                              ; preds = %124
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 393, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_nodeS4_) #4
  unreachable

128:                                              ; preds = %124, %32, %120, %.split93.us, %.split91.us, %._crit_edge105
  %.0 = phi i32 [ 0, %._crit_edge105 ], [ 2, %.split93.us ], [ 2, %.split91.us ], [ 2, %120 ], [ 2, %32 ], [ 0, %124 ]
  ret i32 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11index_btree10latch_nodeEP7bt_node7latch_t(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11index_btree13upgrade_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11index_btree7cleanupEP7bt_nodeS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

declare noundef i64 @_Z11get_part_idPv(ptr noundef) local_unnamed_addr #3

attributes #0 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #2 = { mustprogress 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind }

!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, !10, i64 8}
!6 = !{!"_ZTS7bt_node", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !7, i64 40, !10, i64 48, !8, i64 56, !12, i64 96, !11, i64 100}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_ZTS7latch_t", !8, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!6, !11, i64 32}
!16 = !{!6, !7, i64 16}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !7, i64 0}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = !{!26, !11, i64 24}
!26 = !{!"_ZTS11index_btree", !27, i64 0, !18, i64 16, !11, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!27 = !{!"_ZTS10index_base", !7, i64 8}
!28 = distinct !{!28, !20}


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