; LLVM IR from pingcap/tidb-bench :: abm/src/main.ll (ZN3abm5Table8PopulateEv)

; 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.std::pair" = type { i64, i64 }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::initializer_list" = type { ptr, i64 }
%"struct.std::hash" = type { i8 }
%"struct.std::equal_to" = type { i8 }
%"class.std::allocator.3" = type { i8 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.abm::Table" = type { i64, i64, i64, ptr, ptr, ptr }
%"class.abm::Column" = type { ptr, i64 }

@constinit = external hidden constant [8 x %"struct.std::pair"], align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3abm6ColumnIlE8PopulateEmmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef, i64 noundef) #0 align 2

; 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: mustprogress uwtable
define dso_local void @_ZN3abm5Table8PopulateEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::unordered_map", align 8
  %4 = alloca %"class.std::initializer_list", align 8
  %5 = alloca [8 x %"struct.std::pair"], align 8
  %6 = alloca %"struct.std::hash", align 1
  %7 = alloca %"struct.std::equal_to", align 1
  %8 = alloca %"class.std::allocator.3", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %19 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %23 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 @constinit, i64 128, i1 false), !tbaa.struct !9
  %24 = getelementptr inbounds %"class.std::initializer_list", ptr %4, i32 0, i32 0
  store ptr %5, ptr %24, align 8, !tbaa !11
  %25 = getelementptr inbounds %"class.std::initializer_list", ptr %4, i32 0, i32 1
  store i64 8, ptr %25, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  call void @_ZNSaISt4pairIKmmEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  %26 = getelementptr inbounds { ptr, i64 }, ptr %4, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8
  %28 = getelementptr inbounds { ptr, i64 }, ptr %4, i32 0, i32 1
  %29 = load i64, ptr %28, align 8
  invoke void @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEEC2ESt16initializer_listIS6_EmRKS1_RKS3_RKS7_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr %27, i64 %29, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %30 unwind label %47

30:                                               ; preds = %1
  call void @_ZNSt15__new_allocatorISt4pairIKmmEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %31 = getelementptr inbounds %"class.abm::Table", ptr %23, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !15
  %33 = getelementptr inbounds %"class.abm::Table", ptr %23, i32 0, i32 2
  %34 = load i64, ptr %33, align 8, !tbaa !17
  %35 = udiv i64 %32, %34
  store i64 %35, ptr %11, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %36 = getelementptr inbounds %"class.abm::Table", ptr %23, i32 0, i32 1
  %37 = load i64, ptr %36, align 8, !tbaa !15
  %38 = getelementptr inbounds %"class.abm::Table", ptr %23, i32 0, i32 2
  %39 = load i64, ptr %38, align 8, !tbaa !17
  %40 = urem i64 %37, %39
  store i64 %40, ptr %12, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !18
  br label %41

41:                                               ; preds = %127, %30
  %42 = load i64, ptr %13, align 8, !tbaa !18
  %43 = getelementptr inbounds %"class.abm::Table", ptr %23, i32 0, i32 2
  %44 = load i64, ptr %43, align 8, !tbaa !17
  %45 = icmp ult i64 %42, %44
  br i1 %45, label %51, label %46

46:                                               ; preds = %41
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %131

47:                                               ; preds = %1
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %9, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %10, align 4
  call void @_ZNSt15__new_allocatorISt4pairIKmmEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %5) #5
  br label %132

51:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %52 = load i64, ptr %14, align 8, !tbaa !18
  %53 = load i64, ptr %11, align 8, !tbaa !18
  %54 = add i64 %52, %53
  %55 = load i64, ptr %13, align 8, !tbaa !18
  %56 = load i64, ptr %12, align 8, !tbaa !18
  %57 = icmp ult i64 %55, %56
  %58 = zext i1 %57 to i64
  %59 = add i64 %54, %58
  store i64 %59, ptr %16, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %60 = load i64, ptr %14, align 8, !tbaa !18
  store i64 %60, ptr %17, align 8, !tbaa !18
  br label %61

61:                                               ; preds = %74, %51
  %62 = load i64, ptr %17, align 8, !tbaa !18
  %63 = load i64, ptr %16, align 8, !tbaa !18
  %64 = icmp ult i64 %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %81

66:                                               ; preds = %61
  %67 = load i64, ptr %13, align 8, !tbaa !18
  %68 = add i64 %67, 1
  %69 = getelementptr inbounds %"class.abm::Table", ptr %23, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !19
  %71 = load i64, ptr %17, align 8, !tbaa !18
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3abm6ColumnIlEixEm(ptr noundef nonnull align 8 dereferenceable(16) %70, i64 noundef %71)
          to label %73 unwind label %77

73:                                               ; preds = %66
  store i64 %68, ptr %72, align 8, !tbaa !18
  br label %74

74:                                               ; preds = %73
  %75 = load i64, ptr %17, align 8, !tbaa !18
  %76 = add i64 %75, 1
  store i64 %76, ptr %17, align 8, !tbaa !18
  br label %61, !llvm.loop !20

77:                                               ; preds = %66
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %9, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %130

81:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %82 = call ptr @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %3) #5
  %83 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %18, i32 0, i32 0
  %84 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %83, i32 0, i32 0
  store ptr %82, ptr %84, align 8
  br label %85

85:                                               ; preds = %111, %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %86 = call ptr @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %3) #5
  %87 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %19, i32 0, i32 0
  %88 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %87, i32 0, i32 0
  store ptr %86, ptr %88, align 8
  %89 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKmmELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br i1 %89, label %91, label %90

90:                                               ; preds = %85
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %117

91:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %92 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKmmELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  %93 = getelementptr inbounds %"struct.std::pair", ptr %92, i32 0, i32 0
  %94 = load i64, ptr %93, align 8, !tbaa !22
  store i64 %94, ptr %20, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %95 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKmmELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  %96 = getelementptr inbounds %"struct.std::pair", ptr %95, i32 0, i32 1
  %97 = load i64, ptr %96, align 8, !tbaa !24
  store i64 %97, ptr %21, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %98 = load i64, ptr %16, align 8, !tbaa !18
  %99 = load i64, ptr %14, align 8, !tbaa !18
  %100 = sub i64 %98, %99
  store i64 %100, ptr %22, align 8, !tbaa !18
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %102 unwind label %113

102:                                              ; preds = %91
  %103 = load i64, ptr %101, align 8, !tbaa !18
  store i64 %103, ptr %21, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %104 = getelementptr inbounds %"class.abm::Table", ptr %23, i32 0, i32 5
  %105 = load ptr, ptr %104, align 8, !tbaa !25
  %106 = load i64, ptr %20, align 8, !tbaa !18
  %107 = getelementptr inbounds %"class.abm::Column", ptr %105, i64 %106
  %108 = load i64, ptr %14, align 8, !tbaa !18
  %109 = load i64, ptr %16, align 8, !tbaa !18
  %110 = load i64, ptr %21, align 8, !tbaa !18
  call void @_ZN3abm6ColumnIlE8PopulateEmmm(ptr noundef nonnull align 8 dereferenceable(16) %107, i64 noundef %108, i64 noundef %109, i64 noundef %110)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %111

111:                                              ; preds = %102
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKmmELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br label %85, !llvm.loop !26

113:                                              ; preds = %91
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %9, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %130

117:                                              ; preds = %90
  %118 = getelementptr inbounds %"class.abm::Table", ptr %23, i32 0, i32 5
  %119 = load ptr, ptr %118, align 8, !tbaa !25
  %120 = getelementptr inbounds %"class.abm::Column", ptr %119, i64 8
  %121 = load i64, ptr %14, align 8, !tbaa !18
  %122 = load i64, ptr %16, align 8, !tbaa !18
  %123 = load i64, ptr %16, align 8, !tbaa !18
  %124 = load i64, ptr %14, align 8, !tbaa !18
  %125 = sub i64 %123, %124
  call void @_ZN3abm6ColumnIlE8PopulateEmmm(ptr noundef nonnull align 8 dereferenceable(16) %120, i64 noundef %121, i64 noundef %122, i64 noundef %125)
  %126 = load i64, ptr %16, align 8, !tbaa !18
  store i64 %126, ptr %14, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %127

127:                                              ; preds = %117
  %128 = load i64, ptr %13, align 8, !tbaa !18
  %129 = add i64 %128, 1
  store i64 %129, ptr %13, align 8, !tbaa !18
  br label %41, !llvm.loop !27

130:                                              ; preds = %113, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #5
  br label %132

131:                                              ; preds = %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %3) #5
  ret void

132:                                              ; preds = %130, %47
  call void @llvm.lifetime.end.p0(i64 56, ptr %3) #5
  br label %133

133:                                              ; preds = %132
  %134 = load ptr, ptr %9, align 8
  %135 = load i32, ptr %10, align 4
  %136 = insertvalue { ptr, i32 } poison, ptr %134, 0
  %137 = insertvalue { ptr, i32 } %136, i32 %135, 1
  resume { ptr, i32 } %137
}

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt4pairIKmmEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEEC2ESt16initializer_listIS6_EmRKS1_RKS3_RKS7_(ptr noundef nonnull align 8 dereferenceable(56), ptr, i64, i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt4pairIKmmEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKmmELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKmmELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKmmELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint 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 #5 = { 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 = !{i64 0, i64 128, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt16initializer_listISt4pairIKmmEE", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!16, !13, i64 8}
!16 = !{!"_ZTSN3abm5TableE", !13, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!17 = !{!16, !13, i64 16}
!18 = !{!13, !13, i64 0}
!19 = !{!16, !6, i64 32}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !13, i64 0}
!23 = !{!"_ZTSSt4pairIKmmE", !13, i64 0, !13, i64 8}
!24 = !{!23, !13, i64 8}
!25 = !{!16, !6, i64 40}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}


; 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.std::pair" = type { i64, i64 }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::hash" = type { i8 }
%"struct.std::equal_to" = type { i8 }
%"class.std::allocator.3" = type { i8 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.abm::Column" = type { ptr, i64 }

@constinit = external hidden local_unnamed_addr constant [8 x %"struct.std::pair"], align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3abm6ColumnIlE8PopulateEmmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3abm5Table8PopulateEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(48) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::unordered_map", align 8
  %3 = alloca [8 x %"struct.std::pair"], align 8
  %4 = alloca %"struct.std::hash", align 1
  %5 = alloca %"struct.std::equal_to", align 1
  %6 = alloca %"class.std::allocator.3", align 1
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %3, ptr noundef nonnull align 8 dereferenceable(128) @constinit, i64 128, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSaISt4pairIKmmEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  invoke void @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEEC2ESt16initializer_listIS6_EmRKS1_RKS3_RKS7_(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr nonnull %3, i64 8, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %.lr.ph34 unwind label %19

.lr.ph34:                                         ; preds = %1
  call void @_ZNSt15__new_allocatorISt4pairIKmmEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #5
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load i64, ptr %13, align 8, !tbaa !13
  %15 = udiv i64 %12, %14
  %16 = urem i64 %12, %14
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  br label %21

._crit_edge35:                                    ; preds = %._crit_edge30
  call void @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #5
  ret void

19:                                               ; preds = %1
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIKmmEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #5
  resume { ptr, i32 } %20

21:                                               ; preds = %.lr.ph34, %._crit_edge30
  %.032 = phi i64 [ 0, %.lr.ph34 ], [ %39, %._crit_edge30 ]
  %.02531 = phi i64 [ 0, %.lr.ph34 ], [ %25, %._crit_edge30 ]
  %22 = add i64 %.02531, %15
  %23 = icmp ult i64 %.032, %16
  %24 = zext i1 %23 to i64
  %25 = add i64 %22, %24
  %26 = icmp ult i64 %.02531, %25
  br i1 %26, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %21
  %27 = add nuw i64 %.032, 1
  br label %32

._crit_edge:                                      ; preds = %32, %21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %28 = call ptr @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %2) #5
  store ptr %28, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %29 = call ptr @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %2) #5
  store ptr %29, ptr %8, align 8
  %30 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKmmELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %31 = sub i64 %25, %.02531
  br i1 %30, label %.lr.ph29, label %._crit_edge30

32:                                               ; preds = %.lr.ph, %32
  %.02427 = phi i64 [ %.02531, %.lr.ph ], [ %35, %32 ]
  %33 = load ptr, ptr %17, align 8, !tbaa !14
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3abm6ColumnIlEixEm(ptr noundef nonnull align 8 dereferenceable(16) %33, i64 noundef %.02427)
  store i64 %27, ptr %34, align 8, !tbaa !15
  %35 = add nuw i64 %.02427, 1
  %36 = icmp ult i64 %35, %25
  br i1 %36, label %32, label %._crit_edge, !llvm.loop !16

._crit_edge30:                                    ; preds = %.lr.ph29, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %37 = load ptr, ptr %18, align 8, !tbaa !18
  %38 = getelementptr inbounds i8, ptr %37, i64 128
  call void @_ZN3abm6ColumnIlE8PopulateEmmm(ptr noundef nonnull align 8 dereferenceable(16) %38, i64 noundef %.02531, i64 noundef %25, i64 noundef %31)
  %39 = add nuw i64 %.032, 1
  %40 = load i64, ptr %13, align 8, !tbaa !13
  %41 = icmp ult i64 %39, %40
  br i1 %41, label %21, label %._crit_edge35, !llvm.loop !19

.lr.ph29:                                         ; preds = %._crit_edge, %.lr.ph29
  %42 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKmmELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %43 = load i64, ptr %42, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %44 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKmmELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load i64, ptr %45, align 8, !tbaa !22
  store i64 %46, ptr %9, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  store i64 %31, ptr %10, align 8, !tbaa !15
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %48 = load i64, ptr %47, align 8, !tbaa !15
  store i64 %48, ptr %9, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %49 = load ptr, ptr %18, align 8, !tbaa !18
  %50 = getelementptr inbounds %"class.abm::Column", ptr %49, i64 %43
  call void @_ZN3abm6ColumnIlE8PopulateEmmm(ptr noundef nonnull align 8 dereferenceable(16) %50, i64 noundef %.02531, i64 noundef %25, i64 noundef %48)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKmmELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %52 = call ptr @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %2) #5
  store ptr %52, ptr %8, align 8
  %53 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKmmELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br i1 %53, label %.lr.ph29, label %._crit_edge30, !llvm.loop !23
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt4pairIKmmEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEEC2ESt16initializer_listIS6_EmRKS1_RKS3_RKS7_(ptr noundef nonnull align 8 dereferenceable(56), ptr, i64, i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt4pairIKmmEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3abm6ColumnIlEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKmmELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKmmELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKmmELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapImmSt4hashImESt8equal_toImESaISt4pairIKmmEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint 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 #5 = { 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 = !{i64 0, i64 128, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSN3abm5TableE", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !12, i64 32, !12, i64 40}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !11, i64 16}
!14 = !{!10, !12, i64 32}
!15 = !{!11, !11, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!10, !12, i64 40}
!19 = distinct !{!19, !17}
!20 = !{!21, !11, i64 0}
!21 = !{!"_ZTSSt4pairIKmmE", !11, i64 0, !11, i64 8}
!22 = !{!21, !11, i64 8}
!23 = distinct !{!23, !17}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass