; LLVM IR from opset/openset :: src/attributes.ll (ZN7openset2db10Attributes9serializeEP9HeapStack)

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

%"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, openset::db::Attr_s *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter" = type { ptr, ptr }
%"class.openset::db::Attributes" = type <{ %"class.robin_hood::detail::unordered_map", %"class.robin_hood::detail::unordered_map.292", ptr, ptr, ptr, i32, [4 x i8] }>
%"class.robin_hood::detail::unordered_map" = type { ptr, ptr, i64, i64, i64, i32, i32 }
%"class.robin_hood::detail::unordered_map.292" = type { ptr, ptr, i64, i64, i64, i32, i32 }
%"struct.robin_hood::pair" = type { %"struct.openset::db::attr_key_s", ptr }
%"struct.openset::db::attr_key_s" = type <{ i32, i64 }>
%"struct.openset::db::Attributes::serializedAttr_s" = type <{ i32, i64, i32, i32, i32, i32, i32, i32 }>
%"struct.openset::db::Attr_s" = type <{ ptr, i32, i32, i32, i32, i32, [1 x i8] }>

; 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: 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) #1

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEneILb0EEEbRKNSC_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7openset2db10Attributes9serializeEP9HeapStack(ptr noundef nonnull align 8 dereferenceable(124) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, openset::db::Attr_s *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter", align 8
  %8 = alloca %"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, openset::db::Attr_s *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter", align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call noundef ptr @_ZN9HeapStack6newPtrEl(ptr noundef nonnull align 8 dereferenceable(56) %15, i64 noundef 8)
  store i64 1, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = call noundef ptr @_ZN9HeapStack6newPtrEl(ptr noundef nonnull align 8 dereferenceable(56) %17, i64 noundef 8)
  store ptr %18, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  store i64 0, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %20 = getelementptr inbounds %"class.openset::db::Attributes", ptr %14, i32 0, i32 0
  store ptr %20, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = call { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %21)
  %23 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 0
  %24 = extractvalue { ptr, ptr } %22, 0
  store ptr %24, ptr %23, align 8
  %25 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 1
  %26 = extractvalue { ptr, ptr } %22, 1
  store ptr %26, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %27)
  %29 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 0
  %30 = extractvalue { ptr, ptr } %28, 0
  store ptr %30, ptr %29, align 8
  %31 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 1
  %32 = extractvalue { ptr, ptr } %28, 1
  store ptr %32, ptr %31, align 8
  br label %33

33:                                               ; preds = %162, %2
  %34 = call noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEneILb0EEEbRKNSC_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  br i1 %34, label %36, label %35

35:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %164

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %37 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  store ptr %37, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = call noundef ptr @_ZN9HeapStack6newPtrEl(ptr noundef nonnull align 8 dereferenceable(56) %38, i64 noundef 36)
  store ptr %39, ptr %10, align 8, !tbaa !5
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.robin_hood::pair", ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds %"struct.openset::db::attr_key_s", ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 8, !tbaa !13
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %44, i32 0, i32 0
  store i32 %43, ptr %45, align 1, !tbaa !17
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.robin_hood::pair", ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds %"struct.openset::db::attr_key_s", ptr %47, i32 0, i32 1
  %49 = load i64, ptr %48, align 4, !tbaa !19
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %50, i32 0, i32 1
  store i64 %49, ptr %51, align 1, !tbaa !20
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.robin_hood::pair", ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !21
  %55 = getelementptr inbounds %"struct.openset::db::Attr_s", ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 1, !tbaa !22
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %57, i32 0, i32 2
  store i32 %56, ptr %58, align 1, !tbaa !24
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.robin_hood::pair", ptr %59, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !21
  %62 = getelementptr inbounds %"struct.openset::db::Attr_s", ptr %61, i32 0, i32 2
  %63 = load i32, ptr %62, align 1, !tbaa !25
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %64, i32 0, i32 3
  store i32 %63, ptr %65, align 1, !tbaa !26
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.robin_hood::pair", ptr %66, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !21
  %69 = getelementptr inbounds %"struct.openset::db::Attr_s", ptr %68, i32 0, i32 3
  %70 = load i32, ptr %69, align 1, !tbaa !27
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %71, i32 0, i32 4
  store i32 %70, ptr %72, align 1, !tbaa !28
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.robin_hood::pair", ptr %73, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8, !tbaa !21
  %76 = getelementptr inbounds %"struct.openset::db::Attr_s", ptr %75, i32 0, i32 5
  %77 = load i32, ptr %76, align 1, !tbaa !29
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %78, i32 0, i32 7
  store i32 %77, ptr %79, align 1, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %80 = getelementptr inbounds %"class.openset::db::Attributes", ptr %14, i32 0, i32 3
  %81 = load ptr, ptr %80, align 8, !tbaa !31
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.robin_hood::pair", ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds %"struct.openset::db::attr_key_s", ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 8, !tbaa !13
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.robin_hood::pair", ptr %86, i32 0, i32 0
  %88 = getelementptr inbounds %"struct.openset::db::attr_key_s", ptr %87, i32 0, i32 1
  %89 = load i64, ptr %88, align 4, !tbaa !19
  %90 = call noundef ptr @_ZN7openset2db13AttributeBlob8getValueEil(ptr noundef nonnull align 8 dereferenceable(105) %81, i32 noundef %85, i64 noundef %89)
  store ptr %90, ptr %11, align 8, !tbaa !5
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %96

93:                                               ; preds = %36
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = call i64 @strlen(ptr noundef %94) #8
  br label %97

96:                                               ; preds = %36
  br label %97

97:                                               ; preds = %96, %93
  %98 = phi i64 [ %95, %93 ], [ 0, %96 ]
  %99 = trunc i64 %98 to i32
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %100, i32 0, i32 5
  store i32 %99, ptr %101, align 1, !tbaa !35
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.robin_hood::pair", ptr %102, i32 0, i32 1
  %104 = load ptr, ptr %103, align 8, !tbaa !21
  %105 = getelementptr inbounds %"struct.openset::db::Attr_s", ptr %104, i32 0, i32 4
  %106 = load i32, ptr %105, align 1, !tbaa !36
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %107, i32 0, i32 6
  store i32 %106, ptr %108, align 1, !tbaa !37
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %109, i32 0, i32 5
  %111 = load i32, ptr %110, align 1, !tbaa !35
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %126

113:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %115, i32 0, i32 5
  %117 = load i32, ptr %116, align 1, !tbaa !35
  %118 = sext i32 %117 to i64
  %119 = call noundef ptr @_ZN9HeapStack6newPtrEl(ptr noundef nonnull align 8 dereferenceable(56) %114, i64 noundef %118)
  store ptr %119, ptr %12, align 8, !tbaa !5
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %122, i32 0, i32 5
  %124 = load i32, ptr %123, align 1, !tbaa !35
  %125 = sext i32 %124 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %120, ptr align 1 %121, i64 %125, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %126

126:                                              ; preds = %113, %97
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %127, i32 0, i32 6
  %129 = load i32, ptr %128, align 1, !tbaa !37
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %148

131:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %133, i32 0, i32 6
  %135 = load i32, ptr %134, align 1, !tbaa !37
  %136 = sext i32 %135 to i64
  %137 = call noundef ptr @_ZN9HeapStack6newPtrEl(ptr noundef nonnull align 8 dereferenceable(56) %132, i64 noundef %136)
  store ptr %137, ptr %13, align 8, !tbaa !5
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.robin_hood::pair", ptr %139, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8, !tbaa !21
  %142 = getelementptr inbounds %"struct.openset::db::Attr_s", ptr %141, i32 0, i32 6
  %143 = getelementptr inbounds [1 x i8], ptr %142, i64 0, i64 0
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %144, i32 0, i32 6
  %146 = load i32, ptr %145, align 1, !tbaa !37
  %147 = sext i32 %146 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %138, ptr align 1 %143, i64 %147, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %148

148:                                              ; preds = %131, %126
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %149, i32 0, i32 5
  %151 = load i32, ptr %150, align 1, !tbaa !35
  %152 = sext i32 %151 to i64
  %153 = add i64 36, %152
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.openset::db::Attributes::serializedAttr_s", ptr %154, i32 0, i32 6
  %156 = load i32, ptr %155, align 1, !tbaa !37
  %157 = sext i32 %156 to i64
  %158 = add i64 %153, %157
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = load i64, ptr %159, align 8, !tbaa !11
  %161 = add i64 %160, %158
  store i64 %161, ptr %159, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %162

162:                                              ; preds = %148
  %163 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  br label %33

164:                                              ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret void
}

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

declare noundef ptr @_ZN7openset2db13AttributeBlob8getValueEil(ptr noundef nonnull align 8 dereferenceable(105), i32 noundef, i64 noundef) #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS21serializedBlockType_e", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !16, i64 0}
!14 = !{!"_ZTSN10robin_hood4pairIN7openset2db10attr_key_sEPNS2_6Attr_sEEE", !15, i64 0, !6, i64 16}
!15 = !{!"_ZTSN7openset2db10attr_key_sE", !16, i64 0, !12, i64 4}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !16, i64 0}
!18 = !{!"_ZTSN7openset2db10Attributes16serializedAttr_sE", !16, i64 0, !12, i64 4, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !16, i64 32}
!19 = !{!14, !12, i64 4}
!20 = !{!18, !12, i64 4}
!21 = !{!14, !6, i64 16}
!22 = !{!23, !16, i64 8}
!23 = !{!"_ZTSN7openset2db6Attr_sE", !6, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !7, i64 28}
!24 = !{!18, !16, i64 12}
!25 = !{!23, !16, i64 12}
!26 = !{!18, !16, i64 16}
!27 = !{!23, !16, i64 16}
!28 = !{!18, !16, i64 20}
!29 = !{!23, !16, i64 24}
!30 = !{!18, !16, i64 32}
!31 = !{!32, !6, i64 104}
!32 = !{!"_ZTSN7openset2db10AttributesE", !33, i64 0, !34, i64 48, !6, i64 96, !6, i64 104, !6, i64 112, !16, i64 120}
!33 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EEE", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !16, i64 40, !16, i64 44}
!34 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sESt6vectorINS3_14Attr_changes_sESaIS6_EENS_4hashIS4_EESt8equal_toIS4_EEE", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !16, i64 40, !16, i64 44}
!35 = !{!18, !16, i64 24}
!36 = !{!23, !16, i64 20}
!37 = !{!18, !16, i64 28}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, openset::db::Attr_s *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter" = type { ptr, ptr }

; 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: 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) #1

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEneILb0EEEbRKNSC_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7openset2db10Attributes9serializeEP9HeapStack(ptr noundef nonnull align 8 dereferenceable(124) %0, ptr noundef nonnull %1) local_unnamed_addr #2 align 2 {
  %3 = alloca %"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, openset::db::Attr_s *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter", align 8
  %4 = alloca %"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, openset::db::Attr_s *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter", align 8
  %5 = tail call noundef ptr @_ZN9HeapStack6newPtrEl(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 8)
  store i64 1, ptr %5, align 8, !tbaa !5
  %6 = tail call noundef ptr @_ZN9HeapStack6newPtrEl(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 8)
  store i64 0, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  %7 = tail call { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %8 = extractvalue { ptr, ptr } %7, 0
  store ptr %8, ptr %3, align 8
  %9 = getelementptr inbounds i8, ptr %3, i64 8
  %10 = extractvalue { ptr, ptr } %7, 1
  store ptr %10, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %11 = tail call { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %12 = extractvalue { ptr, ptr } %11, 0
  store ptr %12, ptr %4, align 8
  %13 = getelementptr inbounds i8, ptr %4, i64 8
  %14 = extractvalue { ptr, ptr } %11, 1
  store ptr %14, ptr %13, align 8
  %15 = call noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEneILb0EEEbRKNSC_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %16 = getelementptr inbounds i8, ptr %0, i64 104
  br label %17

._crit_edge:                                      ; preds = %66, %2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  ret void

17:                                               ; preds = %.lr.ph, %66
  %18 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %19 = call noundef ptr @_ZN9HeapStack6newPtrEl(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 36)
  %20 = load i32, ptr %18, align 8, !tbaa !11
  store i32 %20, ptr %19, align 1, !tbaa !16
  %21 = getelementptr inbounds i8, ptr %18, i64 4
  %22 = load i64, ptr %21, align 4, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %19, i64 4
  store i64 %22, ptr %23, align 1, !tbaa !19
  %24 = getelementptr inbounds i8, ptr %18, i64 16
  %25 = load ptr, ptr %24, align 8, !tbaa !20
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = getelementptr inbounds i8, ptr %19, i64 12
  %28 = load <2 x i32>, ptr %26, align 1, !tbaa !21
  store <2 x i32> %28, ptr %27, align 1, !tbaa !21
  %29 = getelementptr inbounds i8, ptr %25, i64 16
  %30 = load i32, ptr %29, align 1, !tbaa !22
  %31 = getelementptr inbounds i8, ptr %19, i64 20
  store i32 %30, ptr %31, align 1, !tbaa !24
  %32 = getelementptr inbounds i8, ptr %25, i64 24
  %33 = load i32, ptr %32, align 1, !tbaa !25
  %34 = getelementptr inbounds i8, ptr %19, i64 32
  store i32 %33, ptr %34, align 1, !tbaa !26
  %35 = load ptr, ptr %16, align 8, !tbaa !27
  %36 = call noundef ptr @_ZN7openset2db13AttributeBlob8getValueEil(ptr noundef nonnull align 8 dereferenceable(105) %35, i32 noundef %20, i64 noundef %22)
  %.not = icmp eq ptr %36, null
  br i1 %.not, label %.thread, label %42

.thread:                                          ; preds = %17
  %37 = getelementptr inbounds i8, ptr %19, i64 24
  store i32 0, ptr %37, align 1, !tbaa !31
  %38 = load ptr, ptr %24, align 8, !tbaa !20
  %39 = getelementptr inbounds i8, ptr %38, i64 20
  %40 = load i32, ptr %39, align 1, !tbaa !32
  %41 = getelementptr inbounds i8, ptr %19, i64 28
  store i32 %40, ptr %41, align 1, !tbaa !33
  br label %55

42:                                               ; preds = %17
  %43 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %36) #8
  %44 = trunc i64 %43 to i32
  %45 = getelementptr inbounds i8, ptr %19, i64 24
  store i32 %44, ptr %45, align 1, !tbaa !31
  %46 = load ptr, ptr %24, align 8, !tbaa !20
  %47 = getelementptr inbounds i8, ptr %46, i64 20
  %48 = load i32, ptr %47, align 1, !tbaa !32
  %49 = getelementptr inbounds i8, ptr %19, i64 28
  store i32 %48, ptr %49, align 1, !tbaa !33
  %.not43 = icmp eq i32 %44, 0
  br i1 %.not43, label %55, label %50

50:                                               ; preds = %42
  %sext = shl i64 %43, 32
  %51 = ashr exact i64 %sext, 32
  %52 = call noundef ptr @_ZN9HeapStack6newPtrEl(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef %51)
  %53 = load i32, ptr %45, align 1, !tbaa !31
  %54 = sext i32 %53 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %52, ptr nonnull align 1 %36, i64 %54, i1 false)
  %.pr = load i32, ptr %49, align 1, !tbaa !33
  br label %55

55:                                               ; preds = %.thread, %50, %42
  %56 = phi i32 [ %40, %.thread ], [ %.pr, %50 ], [ %48, %42 ]
  %57 = phi ptr [ %41, %.thread ], [ %49, %50 ], [ %49, %42 ]
  %58 = phi ptr [ %37, %.thread ], [ %45, %50 ], [ %45, %42 ]
  %.not44 = icmp eq i32 %56, 0
  br i1 %.not44, label %66, label %59

59:                                               ; preds = %55
  %60 = sext i32 %56 to i64
  %61 = call noundef ptr @_ZN9HeapStack6newPtrEl(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef %60)
  %62 = load ptr, ptr %24, align 8, !tbaa !20
  %63 = getelementptr inbounds i8, ptr %62, i64 28
  %64 = load i32, ptr %57, align 1, !tbaa !33
  %65 = sext i32 %64 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %61, ptr nonnull align 1 %63, i64 %65, i1 false)
  %.pre = load i32, ptr %57, align 1, !tbaa !33
  br label %66

66:                                               ; preds = %59, %55
  %67 = phi i32 [ %.pre, %59 ], [ 0, %55 ]
  %68 = load i32, ptr %58, align 1, !tbaa !31
  %69 = sext i32 %68 to i64
  %70 = add nsw i64 %69, 36
  %71 = sext i32 %67 to i64
  %72 = add nsw i64 %70, %71
  %73 = load i64, ptr %6, align 8, !tbaa !9
  %74 = add i64 %72, %73
  store i64 %74, ptr %6, align 8, !tbaa !9
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  %76 = call noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEneILb0EEEbRKNSC_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  br i1 %76, label %17, label %._crit_edge
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN9HeapStack6newPtrEl(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) local_unnamed_addr #4 align 2

declare noundef ptr @_ZN7openset2db13AttributeBlob8getValueEil(ptr noundef nonnull align 8 dereferenceable(105), i32 noundef, i64 noundef) local_unnamed_addr #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_ZTS21serializedBlockType_e", !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, !14, i64 0}
!12 = !{!"_ZTSN10robin_hood4pairIN7openset2db10attr_key_sEPNS2_6Attr_sEEE", !13, i64 0, !15, i64 16}
!13 = !{!"_ZTSN7openset2db10attr_key_sE", !14, i64 0, !10, i64 4}
!14 = !{!"int", !7, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!17, !14, i64 0}
!17 = !{!"_ZTSN7openset2db10Attributes16serializedAttr_sE", !14, i64 0, !10, i64 4, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32}
!18 = !{!12, !10, i64 4}
!19 = !{!17, !10, i64 4}
!20 = !{!12, !15, i64 16}
!21 = !{!14, !14, i64 0}
!22 = !{!23, !14, i64 16}
!23 = !{!"_ZTSN7openset2db6Attr_sE", !15, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !7, i64 28}
!24 = !{!17, !14, i64 20}
!25 = !{!23, !14, i64 24}
!26 = !{!17, !14, i64 32}
!27 = !{!28, !15, i64 104}
!28 = !{!"_ZTSN7openset2db10AttributesE", !29, i64 0, !30, i64 48, !15, i64 96, !15, i64 104, !15, i64 112, !14, i64 120}
!29 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EEE", !15, i64 0, !15, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !14, i64 40, !14, i64 44}
!30 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sESt6vectorINS3_14Attr_changes_sESaIS6_EENS_4hashIS4_EESt8equal_toIS4_EEE", !15, i64 0, !15, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !14, i64 40, !14, i64 44}
!31 = !{!17, !14, i64 24}
!32 = !{!23, !14, i64 20}
!33 = !{!17, !14, i64 28}


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