; LLVM IR from opset/openset :: src/result.ll (Z15mergeResultTextRSt6vectorIPN7openset6result9ResultSetESaIS3_EE)

; 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.377" = type { ptr, ptr, i64, i64, i64, i32, i32 }
%"struct.robin_hood::hash.297" = type { i8 }
%"struct.std::equal_to.299" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.376" = type { ptr }
%"class.robin_hood::detail::unordered_map<true, 80, long, char *, robin_hood::hash<long>, std::equal_to<long>>::Iter" = type { ptr, ptr }
%"class.openset::result::ResultSet" = type { %"class.robin_hood::detail::unordered_map", %"class.std::vector", %class.HeapStack, i64, %class.CriticalSection, i8, %"class.robin_hood::detail::unordered_map.295", %"class.std::vector.302", %"class.std::vector.307" }
%"class.robin_hood::detail::unordered_map" = type { %"struct.robin_hood::detail::NodeAllocator", ptr, ptr, i64, i64, i64, i32, i32 }
%"struct.robin_hood::detail::NodeAllocator" = type { %"class.robin_hood::detail::BulkPoolAllocator" }
%"class.robin_hood::detail::BulkPoolAllocator" = type { ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<openset::result::RowKey, openset::result::Accumulator *>, std::allocator<std::pair<openset::result::RowKey, openset::result::Accumulator *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<openset::result::RowKey, openset::result::Accumulator *>, std::allocator<std::pair<openset::result::RowKey, openset::result::Accumulator *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<openset::result::RowKey, openset::result::Accumulator *>, std::allocator<std::pair<openset::result::RowKey, openset::result::Accumulator *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<openset::result::RowKey, openset::result::Accumulator *>, std::allocator<std::pair<openset::result::RowKey, openset::result::Accumulator *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.HeapStack = type { i64, i64, i64, i64, i64, ptr, ptr }
%class.CriticalSection = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"class.robin_hood::detail::unordered_map.295" = type { ptr, ptr, i64, i64, i64, i32, i32 }
%"class.std::vector.302" = type { %"struct.std::_Vector_base.303" }
%"struct.std::_Vector_base.303" = type { %"struct.std::_Vector_base<openset::result::ResultTypes_e, std::allocator<openset::result::ResultTypes_e>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::result::ResultTypes_e, std::allocator<openset::result::ResultTypes_e>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::result::ResultTypes_e, std::allocator<openset::result::ResultTypes_e>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::result::ResultTypes_e, std::allocator<openset::result::ResultTypes_e>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.307" = type { %"struct.std::_Vector_base.308" }
%"struct.std::_Vector_base.308" = type { %"struct.std::_Vector_base<openset::query::Modifiers_e, std::allocator<openset::query::Modifiers_e>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::query::Modifiers_e, std::allocator<openset::query::Modifiers_e>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::query::Modifiers_e, std::allocator<openset::query::Modifiers_e>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::query::Modifiers_e, std::allocator<openset::query::Modifiers_e>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.robin_hood::pair.379" = type { i64, ptr }

; 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIPN7openset6result9ResultSetESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15mergeResultTextRSt6vectorIPN7openset6result9ResultSetESaIS3_EE(ptr dead_on_unwind noalias writable sret(%"class.robin_hood::detail::unordered_map.377") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca %"struct.robin_hood::hash.297", align 1
  %7 = alloca %"struct.std::equal_to.299", align 1
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.376", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.376", align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.robin_hood::detail::unordered_map<true, 80, long, char *, robin_hood::hash<long>, std::equal_to<long>>::Iter", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.robin_hood::detail::unordered_map<true, 80, long, char *, robin_hood::hash<long>, std::equal_to<long>>::Iter", align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  call void @_ZN10robin_hood6detail13unordered_mapILb1ELm80ElPKcNS_4hashIlEESt8equal_toIlEEC2EmRKS5_RKS7_(ptr noundef nonnull align 8 dereferenceable(48) %0, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %19, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = call ptr @_ZNSt6vectorIPN7openset6result9ResultSetESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  %22 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.376", ptr %9, i32 0, i32 0
  store ptr %21, ptr %22, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = call ptr @_ZNSt6vectorIPN7openset6result9ResultSetESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #4
  %25 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.376", ptr %10, i32 0, i32 0
  store ptr %24, ptr %25, align 8
  br label %26

26:                                               ; preds = %85, %2
  %27 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7openset6result9ResultSetESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br i1 %27, label %29, label %28

28:                                               ; preds = %26
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %87

29:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7openset6result9ResultSetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  store ptr %30, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.openset::result::ResultSet", ptr %32, i32 0, i32 6
  store ptr %33, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = invoke { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80ElPcNS_4hashIlEESt8equal_toIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %34)
          to label %36 unwind label %51

36:                                               ; preds = %29
  %37 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 0
  %38 = extractvalue { ptr, ptr } %35, 0
  store ptr %38, ptr %37, align 8
  %39 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 1
  %40 = extractvalue { ptr, ptr } %35, 1
  store ptr %40, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = invoke { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80ElPcNS_4hashIlEESt8equal_toIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %41)
          to label %43 unwind label %55

43:                                               ; preds = %36
  %44 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 0
  %45 = extractvalue { ptr, ptr } %42, 0
  store ptr %45, ptr %44, align 8
  %46 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 1
  %47 = extractvalue { ptr, ptr } %42, 1
  store ptr %47, ptr %46, align 8
  br label %48

48:                                               ; preds = %80, %43
  %49 = call noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80ElPcNS_4hashIlEESt8equal_toIlEE4IterILb0EEneILb0EEEbRKNS8_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %17) #4
  br i1 %49, label %59, label %50

50:                                               ; preds = %48
  store i32 4, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %84

51:                                               ; preds = %29
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %15, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %16, align 4
  br label %83

55:                                               ; preds = %36
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %15, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %16, align 4
  br label %82

59:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %60 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10robin_hood6detail13unordered_mapILb1ELm80ElPcNS_4hashIlEESt8equal_toIlEE4IterILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %61 unwind label %75

61:                                               ; preds = %59
  store ptr %60, ptr %18, align 8, !tbaa !5
  %62 = load ptr, ptr %18, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.robin_hood::pair.379", ptr %62, i32 0, i32 0
  %64 = invoke noundef i64 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80ElPKcNS_4hashIlEESt8equal_toIlEE5countERKl(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %65 unwind label %75

65:                                               ; preds = %61
  %66 = icmp ne i64 %64, 0
  br i1 %66, label %79, label %67

67:                                               ; preds = %65
  %68 = load ptr, ptr %18, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.robin_hood::pair.379", ptr %68, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = load ptr, ptr %18, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.robin_hood::pair.379", ptr %71, i32 0, i32 0
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10robin_hood6detail13unordered_mapILb1ELm80ElPKcNS_4hashIlEESt8equal_toIlEEixERKl(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %74 unwind label %75

74:                                               ; preds = %67
  store ptr %70, ptr %73, align 8, !tbaa !5
  br label %79

75:                                               ; preds = %67, %61, %59
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %15, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %82

79:                                               ; preds = %74, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %80

80:                                               ; preds = %79
  %81 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN10robin_hood6detail13unordered_mapILb1ELm80ElPcNS_4hashIlEESt8equal_toIlEE4IterILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  br label %48

82:                                               ; preds = %75, %55
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  br label %83

83:                                               ; preds = %82, %51
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @_ZN10robin_hood6detail13unordered_mapILb1ELm80ElPKcNS_4hashIlEESt8equal_toIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  br label %91

84:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %85

85:                                               ; preds = %84
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7openset6result9ResultSetESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br label %26

87:                                               ; preds = %28
  store i1 true, ptr %5, align 1
  store i32 1, ptr %11, align 4
  %88 = load i1, ptr %5, align 1
  br i1 %88, label %90, label %89

89:                                               ; preds = %87
  call void @_ZN10robin_hood6detail13unordered_mapILb1ELm80ElPKcNS_4hashIlEESt8equal_toIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  br label %90

90:                                               ; preds = %89, %87
  ret void

91:                                               ; preds = %83
  %92 = load ptr, ptr %15, align 8
  %93 = load i32, ptr %16, align 4
  %94 = insertvalue { ptr, i32 } poison, ptr %92, 0
  %95 = insertvalue { ptr, i32 } %94, i32 %93, 1
  resume { ptr, i32 } %95
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80ElPKcNS_4hashIlEESt8equal_toIlEE5countERKl(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

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

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


; 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.377" = type { ptr, ptr, i64, i64, i64, i32, i32 }
%"struct.robin_hood::hash.297" = type { i8 }
%"struct.std::equal_to.299" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.376" = type { ptr }
%"class.robin_hood::detail::unordered_map<true, 80, long, char *, robin_hood::hash<long>, std::equal_to<long>>::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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIPN7openset6result9ResultSetESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15mergeResultTextRSt6vectorIPN7openset6result9ResultSetESaIS3_EE(ptr dead_on_unwind noalias nonnull writable sret(%"class.robin_hood::detail::unordered_map.377") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.robin_hood::hash.297", align 1
  %4 = alloca %"struct.std::equal_to.299", align 1
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.376", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.376", align 8
  %7 = alloca %"class.robin_hood::detail::unordered_map<true, 80, long, char *, robin_hood::hash<long>, std::equal_to<long>>::Iter", align 8
  %8 = alloca %"class.robin_hood::detail::unordered_map<true, 80, long, char *, robin_hood::hash<long>, std::equal_to<long>>::Iter", align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  call void @_ZN10robin_hood6detail13unordered_mapILb1ELm80ElPKcNS_4hashIlEESt8equal_toIlEEC2EmRKS5_RKS7_(ptr noundef nonnull align 8 dereferenceable(48) %0, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %9 = call ptr @_ZNSt6vectorIPN7openset6result9ResultSetESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  store ptr %9, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %10 = call ptr @_ZNSt6vectorIPN7openset6result9ResultSetESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  store ptr %10, ptr %6, align 8
  %11 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7openset6result9ResultSetESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  br i1 %11, label %.lr.ph14, label %._crit_edge15

.lr.ph14:                                         ; preds = %2
  %12 = getelementptr inbounds i8, ptr %7, i64 8
  %13 = getelementptr inbounds i8, ptr %8, i64 8
  br label %14

._crit_edge15:                                    ; preds = %._crit_edge, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  ret void

14:                                               ; preds = %.lr.ph14, %._crit_edge
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7openset6result9ResultSetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 160
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %18 = invoke { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80ElPcNS_4hashIlEESt8equal_toIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %17)
          to label %19 unwind label %28

19:                                               ; preds = %14
  %20 = extractvalue { ptr, ptr } %18, 0
  store ptr %20, ptr %7, align 8
  %21 = extractvalue { ptr, ptr } %18, 1
  store ptr %21, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  %22 = call { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80ElPcNS_4hashIlEESt8equal_toIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %17)
  %23 = extractvalue { ptr, ptr } %22, 0
  store ptr %23, ptr %8, align 8
  %24 = extractvalue { ptr, ptr } %22, 1
  store ptr %24, ptr %13, align 8
  %25 = call noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80ElPcNS_4hashIlEESt8equal_toIlEE4IterILb0EEneILb0EEEbRKNS8_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  br i1 %25, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %40, %19
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7openset6result9ResultSetESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %27 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7openset6result9ResultSetESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  br i1 %27, label %14, label %._crit_edge15

28:                                               ; preds = %14
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %43

.lr.ph:                                           ; preds = %19, %40
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10robin_hood6detail13unordered_mapILb1ELm80ElPcNS_4hashIlEESt8equal_toIlEE4IterILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %31 = invoke noundef i64 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80ElPKcNS_4hashIlEESt8equal_toIlEE5countERKl(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %32 unwind label %38

32:                                               ; preds = %.lr.ph
  %.not = icmp eq i64 %31, 0
  br i1 %.not, label %33, label %40

33:                                               ; preds = %32
  %34 = getelementptr inbounds i8, ptr %30, i64 8
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10robin_hood6detail13unordered_mapILb1ELm80ElPKcNS_4hashIlEESt8equal_toIlEEixERKl(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %37 unwind label %38

37:                                               ; preds = %33
  store ptr %35, ptr %36, align 8, !tbaa !5
  br label %40

38:                                               ; preds = %33, %.lr.ph
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %43

40:                                               ; preds = %37, %32
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN10robin_hood6detail13unordered_mapILb1ELm80ElPcNS_4hashIlEESt8equal_toIlEE4IterILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  %42 = call noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80ElPcNS_4hashIlEESt8equal_toIlEE4IterILb0EEneILb0EEEbRKNS8_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  br i1 %42, label %.lr.ph, label %._crit_edge

43:                                               ; preds = %38, %28
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @_ZN10robin_hood6detail13unordered_mapILb1ELm80ElPKcNS_4hashIlEESt8equal_toIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80ElPKcNS_4hashIlEESt8equal_toIlEE5countERKl(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

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

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


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