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

; 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.std::vector.453" = type { %"struct.std::_Vector_base.454" }
%"struct.std::_Vector_base.454" = type { %"struct.std::_Vector_base<openset::db::Attr_s *, std::allocator<openset::db::Attr_s *>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::db::Attr_s *, std::allocator<openset::db::Attr_s *>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::db::Attr_s *, std::allocator<openset::db::Attr_s *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::db::Attr_s *, std::allocator<openset::db::Attr_s *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }>

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7openset2db10Attributes3getEil(ptr noundef nonnull align 8 dereferenceable(124), i32 noundef, i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7openset2db10Attributes17getPropertyValuesEiNS1_10listMode_eEl(ptr dead_on_unwind noalias writable sret(%"class.std::vector.453") align 8 %0, ptr noundef nonnull align 8 dereferenceable(124) %1, i32 noundef %2, i32 noundef %3, i64 noundef %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i1, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = 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
  %18 = 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
  %19 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !11
  store i64 %4, ptr %10, align 8, !tbaa !13
  %20 = load ptr, ptr %7, align 8
  store i1 false, ptr %11, align 1
  call void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %21 = load i32, ptr %9, align 4, !tbaa !11
  switch i32 %21, label %36 [
    i32 1, label %22
    i32 0, label %22
  ]

22:                                               ; preds = %5, %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = load i64, ptr %10, align 8, !tbaa !13
  %25 = invoke noundef ptr @_ZNK7openset2db10Attributes3getEil(ptr noundef nonnull align 8 dereferenceable(124) %20, i32 noundef %23, i64 noundef %24)
          to label %26 unwind label %31

26:                                               ; preds = %22
  store ptr %25, ptr %12, align 8, !tbaa !5
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %35

29:                                               ; preds = %26
  invoke void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %30 unwind label %31

30:                                               ; preds = %29
  br label %35

31:                                               ; preds = %29, %22
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %13, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %146

35:                                               ; preds = %30, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  store i1 true, ptr %11, align 1
  store i32 1, ptr %15, align 4
  br label %142

36:                                               ; preds = %5
  br label %37

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %38 = getelementptr inbounds %"class.openset::db::Attributes", ptr %20, i32 0, i32 0
  store ptr %38, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #3
  %39 = load ptr, ptr %16, align 8, !tbaa !5
  %40 = invoke { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %39)
          to label %41 unwind label %56

41:                                               ; preds = %37
  %42 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 0
  %43 = extractvalue { ptr, ptr } %40, 0
  store ptr %43, ptr %42, align 8
  %44 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 1
  %45 = extractvalue { ptr, ptr } %40, 1
  store ptr %45, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #3
  %46 = load ptr, ptr %16, align 8, !tbaa !5
  %47 = invoke { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %46)
          to label %48 unwind label %60

48:                                               ; preds = %41
  %49 = getelementptr inbounds { ptr, ptr }, ptr %18, i32 0, i32 0
  %50 = extractvalue { ptr, ptr } %47, 0
  store ptr %50, ptr %49, align 8
  %51 = getelementptr inbounds { ptr, ptr }, ptr %18, i32 0, i32 1
  %52 = extractvalue { ptr, ptr } %47, 1
  store ptr %52, ptr %51, align 8
  br label %53

53:                                               ; preds = %137, %48
  %54 = call noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEneILb0EEEbRKNSC_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %18) #3
  br i1 %54, label %64, label %55

55:                                               ; preds = %53
  store i32 3, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %141

56:                                               ; preds = %37
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %13, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %14, align 4
  br label %140

60:                                               ; preds = %41
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %13, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %14, align 4
  br label %139

64:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %65 = invoke 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) %17)
          to label %66 unwind label %74

66:                                               ; preds = %64
  store ptr %65, ptr %19, align 8, !tbaa !5
  %67 = load ptr, ptr %19, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.robin_hood::pair", ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds %"struct.openset::db::attr_key_s", ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !15
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = icmp ne i32 %70, %71
  br i1 %72, label %73, label %78

73:                                               ; preds = %66
  store i32 4, ptr %15, align 4
  br label %134

74:                                               ; preds = %127, %115, %103, %91, %80, %64
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %13, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  br label %139

78:                                               ; preds = %66
  %79 = load i32, ptr %9, align 4, !tbaa !11
  switch i32 %79, label %132 [
    i32 6, label %80
    i32 2, label %84
    i32 3, label %96
    i32 4, label %108
    i32 5, label %120
  ]

80:                                               ; preds = %78
  %81 = load ptr, ptr %19, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.robin_hood::pair", ptr %81, i32 0, i32 1
  invoke void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %82)
          to label %83 unwind label %74

83:                                               ; preds = %80
  br label %133

84:                                               ; preds = %78
  %85 = load ptr, ptr %19, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.robin_hood::pair", ptr %85, i32 0, i32 0
  %87 = getelementptr inbounds %"struct.openset::db::attr_key_s", ptr %86, i32 0, i32 1
  %88 = load i64, ptr %87, align 4, !tbaa !18
  %89 = load i64, ptr %10, align 8, !tbaa !13
  %90 = icmp sgt i64 %88, %89
  br i1 %90, label %91, label %95

91:                                               ; preds = %84
  %92 = load ptr, ptr %19, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.robin_hood::pair", ptr %92, i32 0, i32 1
  invoke void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %93)
          to label %94 unwind label %74

94:                                               ; preds = %91
  br label %95

95:                                               ; preds = %94, %84
  br label %133

96:                                               ; preds = %78
  %97 = load ptr, ptr %19, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.robin_hood::pair", ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds %"struct.openset::db::attr_key_s", ptr %98, i32 0, i32 1
  %100 = load i64, ptr %99, align 4, !tbaa !18
  %101 = load i64, ptr %10, align 8, !tbaa !13
  %102 = icmp sge i64 %100, %101
  br i1 %102, label %103, label %107

103:                                              ; preds = %96
  %104 = load ptr, ptr %19, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.robin_hood::pair", ptr %104, i32 0, i32 1
  invoke void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %105)
          to label %106 unwind label %74

106:                                              ; preds = %103
  br label %107

107:                                              ; preds = %106, %96
  br label %133

108:                                              ; preds = %78
  %109 = load ptr, ptr %19, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.robin_hood::pair", ptr %109, i32 0, i32 0
  %111 = getelementptr inbounds %"struct.openset::db::attr_key_s", ptr %110, i32 0, i32 1
  %112 = load i64, ptr %111, align 4, !tbaa !18
  %113 = load i64, ptr %10, align 8, !tbaa !13
  %114 = icmp slt i64 %112, %113
  br i1 %114, label %115, label %119

115:                                              ; preds = %108
  %116 = load ptr, ptr %19, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.robin_hood::pair", ptr %116, i32 0, i32 1
  invoke void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %117)
          to label %118 unwind label %74

118:                                              ; preds = %115
  br label %119

119:                                              ; preds = %118, %108
  br label %133

120:                                              ; preds = %78
  %121 = load ptr, ptr %19, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.robin_hood::pair", ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds %"struct.openset::db::attr_key_s", ptr %122, i32 0, i32 1
  %124 = load i64, ptr %123, align 4, !tbaa !18
  %125 = load i64, ptr %10, align 8, !tbaa !13
  %126 = icmp sle i64 %124, %125
  br i1 %126, label %127, label %131

127:                                              ; preds = %120
  %128 = load ptr, ptr %19, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.robin_hood::pair", ptr %128, i32 0, i32 1
  invoke void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %129)
          to label %130 unwind label %74

130:                                              ; preds = %127
  br label %131

131:                                              ; preds = %130, %120
  br label %133

132:                                              ; preds = %78
  br label %133

133:                                              ; preds = %132, %131, %119, %107, %95, %83
  store i32 0, ptr %15, align 4
  br label %134

134:                                              ; preds = %133, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  %135 = load i32, ptr %15, align 4
  switch i32 %135, label %152 [
    i32 0, label %136
    i32 4, label %137
  ]

136:                                              ; preds = %134
  br label %137

137:                                              ; preds = %136, %134
  %138 = 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) %17) #3
  br label %53

139:                                              ; preds = %74, %60
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #3
  br label %140

140:                                              ; preds = %139, %56
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %146

141:                                              ; preds = %55
  store i1 true, ptr %11, align 1
  store i32 1, ptr %15, align 4
  br label %142

142:                                              ; preds = %141, %35
  %143 = load i1, ptr %11, align 1
  br i1 %143, label %145, label %144

144:                                              ; preds = %142
  call void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  br label %145

145:                                              ; preds = %144, %142
  ret void

146:                                              ; preds = %140, %31
  call void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  br label %147

147:                                              ; preds = %146
  %148 = load ptr, ptr %13, align 8
  %149 = load i32, ptr %14, align 4
  %150 = insertvalue { ptr, i32 } poison, ptr %148, 0
  %151 = insertvalue { ptr, i32 } %150, i32 %149, 1
  resume { ptr, i32 } %151

152:                                              ; preds = %134
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN7openset2db10Attributes10listMode_eE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTSN10robin_hood4pairIN7openset2db10attr_key_sEPNS2_6Attr_sEEE", !17, i64 0, !6, i64 16}
!17 = !{!"_ZTSN7openset2db10attr_key_sE", !10, i64 0, !14, i64 4}
!18 = !{!16, !14, i64 4}


; 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.std::vector.453" = type { %"struct.std::_Vector_base.454" }
%"struct.std::_Vector_base.454" = type { %"struct.std::_Vector_base<openset::db::Attr_s *, std::allocator<openset::db::Attr_s *>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::db::Attr_s *, std::allocator<openset::db::Attr_s *>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::db::Attr_s *, std::allocator<openset::db::Attr_s *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::db::Attr_s *, std::allocator<openset::db::Attr_s *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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

declare i32 @__gxx_personality_v0(...)

; 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 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 #1 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 #2 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 #2 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 #2 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 #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7openset2db10Attributes3getEil(ptr noundef nonnull align 8 dereferenceable(124), i32 noundef, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7openset2db10Attributes17getPropertyValuesEiNS1_10listMode_eEl(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector.453") align 8 %0, ptr noundef nonnull align 8 dereferenceable(124) %1, i32 noundef %2, i32 noundef %3, i64 noundef %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %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
  tail call void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %switch = icmp ult i32 %3, 2
  br i1 %switch, label %9, label %16

9:                                                ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %10 = invoke noundef ptr @_ZNK7openset2db10Attributes3getEil(ptr noundef nonnull align 8 dereferenceable(124) %1, i32 noundef %2, i64 noundef %4)
          to label %11 unwind label %13

11:                                               ; preds = %9
  store ptr %10, ptr %6, align 8, !tbaa !5
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %15, label %12

12:                                               ; preds = %11
  invoke void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %15 unwind label %13

13:                                               ; preds = %12, %9
  %14 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  br label %54

15:                                               ; preds = %12, %11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  br label %53

16:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
  %17 = invoke { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %18 unwind label %27

18:                                               ; preds = %16
  %19 = extractvalue { ptr, ptr } %17, 0
  store ptr %19, ptr %7, align 8
  %20 = getelementptr inbounds i8, ptr %7, i64 8
  %21 = extractvalue { ptr, ptr } %17, 1
  store ptr %21, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #3
  %22 = tail call { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPNS3_6Attr_sENS_4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  %23 = extractvalue { ptr, ptr } %22, 0
  store ptr %23, ptr %8, align 8
  %24 = getelementptr inbounds i8, ptr %8, i64 8
  %25 = extractvalue { ptr, ptr } %22, 1
  store ptr %25, ptr %24, align 8
  %26 = 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) #3
  br i1 %26, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %49, %18
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
  br label %53

27:                                               ; preds = %16
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %52

.lr.ph:                                           ; preds = %18, %49
  %29 = 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)
  %30 = load i32, ptr %29, align 8, !tbaa !9
  %.not27 = icmp eq i32 %30, %2
  br i1 %.not27, label %33, label %49

31:                                               ; preds = %.invoke
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #3
  br label %52

33:                                               ; preds = %.lr.ph
  switch i32 %3, label %49 [
    i32 6, label %.invoke
    i32 2, label %34
    i32 3, label %38
    i32 4, label %41
    i32 5, label %45
  ]

34:                                               ; preds = %33
  %35 = getelementptr inbounds i8, ptr %29, i64 4
  %36 = load i64, ptr %35, align 4, !tbaa !14
  %37 = icmp sgt i64 %36, %4
  br i1 %37, label %.invoke, label %49

38:                                               ; preds = %33
  %39 = getelementptr inbounds i8, ptr %29, i64 4
  %40 = load i64, ptr %39, align 4, !tbaa !14
  %.not29 = icmp slt i64 %40, %4
  br i1 %.not29, label %49, label %.invoke

41:                                               ; preds = %33
  %42 = getelementptr inbounds i8, ptr %29, i64 4
  %43 = load i64, ptr %42, align 4, !tbaa !14
  %44 = icmp slt i64 %43, %4
  br i1 %44, label %.invoke, label %49

45:                                               ; preds = %33
  %46 = getelementptr inbounds i8, ptr %29, i64 4
  %47 = load i64, ptr %46, align 4, !tbaa !14
  %.not28 = icmp sgt i64 %47, %4
  br i1 %.not28, label %49, label %.invoke

.invoke:                                          ; preds = %45, %41, %38, %34, %33
  %48 = getelementptr inbounds i8, ptr %29, i64 16
  invoke void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %49 unwind label %31

49:                                               ; preds = %.invoke, %34, %38, %41, %45, %33, %.lr.ph
  %50 = 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) #3
  %51 = 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) #3
  br i1 %51, label %.lr.ph, label %._crit_edge

52:                                               ; preds = %31, %27
  %.pn = phi { ptr, i32 } [ %32, %31 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
  br label %54

53:                                               ; preds = %15, %._crit_edge
  ret void

54:                                               ; preds = %52, %13
  %.pn.pn = phi { ptr, i32 } [ %.pn, %52 ], [ %14, %13 ]
  call void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPN7openset2db6Attr_sESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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, !12, i64 0}
!10 = !{!"_ZTSN10robin_hood4pairIN7openset2db10attr_key_sEPNS2_6Attr_sEEE", !11, i64 0, !6, i64 16}
!11 = !{!"_ZTSN7openset2db10attr_key_sE", !12, i64 0, !13, i64 4}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !13, i64 4}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass