; LLVM IR from intellistream/Sesame :: src/Algorithm/DataStructure/GridCluster.ll (ZN6SESAME11GridCluster11isConnectedEv)

; 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.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<SESAME::DensityGrid, std::allocator<SESAME::DensityGrid>>::_Vector_impl" }
%"struct.std::_Vector_base<SESAME::DensityGrid, std::allocator<SESAME::DensityGrid>>::_Vector_impl" = type { %"struct.std::_Vector_base<SESAME::DensityGrid, std::allocator<SESAME::DensityGrid>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SESAME::DensityGrid, std::allocator<SESAME::DensityGrid>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.SESAME::DensityGrid" = type <{ %"class.std::vector", i32, i8, [3 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.SESAME::GridCluster" = type <{ %"class.std::unordered_map", %"class.std::unordered_map", i32, [4 x i8] }>
%"struct.std::pair" = type { %"class.SESAME::DensityGrid", i8, [7 x i8] }

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare void @_ZN6SESAME11DensityGridC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(29), ptr noundef nonnull align 8 dereferenceable(29)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6SESAME11GridCluster11putHashGridESt13unordered_mapINS_11DensityGridEbNS_11GridKeyHashENS_9EqualGridESaISt4pairIKS2_bEEERS6_b(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef, ptr noundef nonnull align 8 dereferenceable(29), i1 noundef zeroext) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6SESAME11DensityGridD2Ev(ptr noundef nonnull align 8 dereferenceable(29)) unnamed_addr #5 align 2

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

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

declare void @_ZNK6SESAME11DensityGrid13getNeighboursEv(ptr dead_on_unwind writable sret(%"class.std::vector.11") align 8, ptr noundef nonnull align 8 dereferenceable(29)) #4

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6SESAME11GridCluster11isConnectedEv(ptr noundef nonnull align 8 dereferenceable(116) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"class.SESAME::DensityGrid", align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %6 = alloca %"class.std::unordered_map", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %10 = alloca i8, align 1
  %11 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %12 = alloca %"class.std::unordered_map", align 8
  %13 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %14 = alloca %"class.SESAME::DensityGrid", align 8
  %15 = alloca %"class.std::vector.11", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.SESAME::DensityGrid", align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %21 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %22 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %23 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %24 = alloca %"class.std::unordered_map", align 8
  %25 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %26 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %27 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %28 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %29 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %30 = alloca %"class.std::unordered_map", align 8
  %31 = alloca %"struct.std::__detail::_Node_iterator", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %32 = load ptr, ptr %3, align 8
  %33 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 0
  %34 = call noundef zeroext i1 @_ZNKSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %33) #6
  br i1 %34, label %211, label %35

35:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %36 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 0
  %37 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %36) #6
  %38 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %5, i32 0, i32 0
  %39 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %38, i32 0, i32 0
  store ptr %37, ptr %39, align 8
  %40 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %41 = getelementptr inbounds %"struct.std::pair", ptr %40, i32 0, i32 0
  call void @_ZN6SESAME11DensityGridC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(29) %4, ptr noundef nonnull align 8 dereferenceable(29) %41)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  %42 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 1
  invoke void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 8 dereferenceable(56) %42)
          to label %43 unwind label %82

43:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %44 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 0
  %45 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %44) #6
  %46 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %9, i32 0, i32 0
  %47 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %46, i32 0, i32 0
  store ptr %45, ptr %47, align 8
  %48 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %49 = getelementptr inbounds %"struct.std::pair", ptr %48, i32 0, i32 1
  %50 = load i8, ptr %49, align 8, !tbaa !9, !range !18, !noundef !19
  %51 = trunc i8 %50 to i1
  invoke void @_ZN6SESAME11GridCluster11putHashGridESt13unordered_mapINS_11DensityGridEbNS_11GridKeyHashENS_9EqualGridESaISt4pairIKS2_bEEERS6_b(ptr noundef nonnull align 8 dereferenceable(116) %32, ptr noundef %6, ptr noundef nonnull align 8 dereferenceable(29) %4, i1 noundef zeroext %51)
          to label %52 unwind label %86

52:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  br label %53

53:                                               ; preds = %205, %52
  store i8 0, ptr %10, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %54 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 1
  %55 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %54) #6
  %56 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %11, i32 0, i32 0
  %57 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %56, i32 0, i32 0
  store ptr %55, ptr %57, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr %12) #6
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #6
  br label %58

58:                                               ; preds = %162, %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %59 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 1
  %60 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %59) #6
  %61 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %13, i32 0, i32 0
  %62 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %61, i32 0, i32 0
  store ptr %60, ptr %62, align 8
  %63 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN6SESAME11DensityGridEbELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %63, label %64, label %66

64:                                               ; preds = %58
  %65 = call noundef zeroext i1 @_ZNKSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %12) #6
  br label %66

66:                                               ; preds = %64, %58
  %67 = phi i1 [ false, %58 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br i1 %67, label %68, label %168

68:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  %69 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %70 = getelementptr inbounds %"struct.std::pair", ptr %69, i32 0, i32 0
  invoke void @_ZN6SESAME11DensityGridC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(29) %14, ptr noundef nonnull align 8 dereferenceable(29) %70)
          to label %71 unwind label %90

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  invoke void @_ZNK6SESAME11DensityGrid13getNeighboursEv(ptr dead_on_unwind writable sret(%"class.std::vector.11") align 8 %15, ptr noundef nonnull align 8 dereferenceable(29) %14)
          to label %72 unwind label %94

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store ptr %15, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = call ptr @_ZNSt6vectorIN6SESAME11DensityGridESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #6
  %75 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %74, ptr %75, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %76 = load ptr, ptr %16, align 8, !tbaa !5
  %77 = call ptr @_ZNSt6vectorIN6SESAME11DensityGridESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #6
  %78 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %77, ptr %78, align 8
  br label %79

79:                                               ; preds = %158, %72
  %80 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6SESAME11DensityGridESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %80, label %98, label %81

81:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %162

82:                                               ; preds = %35
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %7, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %8, align 4
  br label %210

86:                                               ; preds = %43
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %7, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #6
  br label %210

90:                                               ; preds = %68
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %7, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %8, align 4
  br label %167

94:                                               ; preds = %71
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %7, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %8, align 4
  br label %166

98:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  %99 = call noundef nonnull align 8 dereferenceable(29) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6SESAME11DensityGridESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  invoke void @_ZN6SESAME11DensityGridC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(29) %19, ptr noundef nonnull align 8 dereferenceable(29) %99)
          to label %100 unwind label %136

100:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %101 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %102 = invoke ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %101, ptr noundef nonnull align 8 dereferenceable(29) %19)
          to label %103 unwind label %140

103:                                              ; preds = %100
  %104 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %20, i32 0, i32 0
  %105 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %104, i32 0, i32 0
  store ptr %102, ptr %105, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %106 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 0
  %107 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %106) #6
  %108 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %21, i32 0, i32 0
  %109 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %108, i32 0, i32 0
  store ptr %107, ptr %109, align 8
  %110 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN6SESAME11DensityGridEbELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br i1 %110, label %111, label %122

111:                                              ; preds = %103
  %112 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 1
  %113 = invoke ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %112, ptr noundef nonnull align 8 dereferenceable(29) %19)
          to label %114 unwind label %144

114:                                              ; preds = %111
  %115 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %22, i32 0, i32 0
  %116 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %115, i32 0, i32 0
  store ptr %113, ptr %116, align 8
  %117 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 1
  %118 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %117) #6
  %119 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %23, i32 0, i32 0
  %120 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %119, i32 0, i32 0
  store ptr %118, ptr %120, align 8
  %121 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKN6SESAME11DensityGridEbELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  br label %122

122:                                              ; preds = %114, %103
  %123 = phi i1 [ false, %103 ], [ %121, %114 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br i1 %123, label %124, label %157

124:                                              ; preds = %122
  invoke void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %125 unwind label %149

125:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %126 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 0
  %127 = invoke ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %126, ptr noundef nonnull align 8 dereferenceable(29) %19)
          to label %128 unwind label %153

128:                                              ; preds = %125
  %129 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %25, i32 0, i32 0
  %130 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %129, i32 0, i32 0
  store ptr %127, ptr %130, align 8
  %131 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %132 = getelementptr inbounds %"struct.std::pair", ptr %131, i32 0, i32 1
  %133 = load i8, ptr %132, align 8, !tbaa !9, !range !18, !noundef !19
  %134 = trunc i8 %133 to i1
  invoke void @_ZN6SESAME11GridCluster11putHashGridESt13unordered_mapINS_11DensityGridEbNS_11GridKeyHashENS_9EqualGridESaISt4pairIKS2_bEEERS6_b(ptr noundef nonnull align 8 dereferenceable(116) %32, ptr noundef %24, ptr noundef nonnull align 8 dereferenceable(29) %19, i1 noundef zeroext %134)
          to label %135 unwind label %153

135:                                              ; preds = %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %24) #6
  br label %157

136:                                              ; preds = %98
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %7, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %8, align 4
  br label %161

140:                                              ; preds = %100
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %7, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %8, align 4
  br label %148

144:                                              ; preds = %111
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %7, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %148

148:                                              ; preds = %144, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %160

149:                                              ; preds = %124
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %7, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %8, align 4
  br label %160

153:                                              ; preds = %128, %125
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %7, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %24) #6
  br label %160

157:                                              ; preds = %135, %122
  call void @_ZN6SESAME11DensityGridD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  br label %158

158:                                              ; preds = %157
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6SESAME11DensityGridESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %79

160:                                              ; preds = %153, %149, %148
  call void @_ZN6SESAME11DensityGridD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %19) #6
  br label %161

161:                                              ; preds = %160, %136
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @_ZNSt6vectorIN6SESAME11DensityGridESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %166

162:                                              ; preds = %81
  %163 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #6
  %164 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %26, i32 0, i32 0
  %165 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %164, i32 0, i32 0
  store ptr %163, ptr %165, align 8
  call void @_ZNSt6vectorIN6SESAME11DensityGridESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZN6SESAME11DensityGridD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %58, !llvm.loop !21

166:                                              ; preds = %161, %94
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZN6SESAME11DensityGridD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %14) #6
  br label %167

167:                                              ; preds = %166, %90
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %209

168:                                              ; preds = %66
  %169 = call noundef zeroext i1 @_ZNKSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %12) #6
  br i1 %169, label %204, label %170

170:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  invoke void @_ZNSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %171 unwind label %194

171:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %172 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %12) #6
  %173 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %28, i32 0, i32 0
  %174 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %173, i32 0, i32 0
  store ptr %172, ptr %174, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %28, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %175

175:                                              ; preds = %190, %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %176 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %12) #6
  %177 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %29, i32 0, i32 0
  %178 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %177, i32 0, i32 0
  store ptr %176, ptr %178, align 8
  %179 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN6SESAME11DensityGridEbELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br i1 %179, label %180, label %202

180:                                              ; preds = %175
  %181 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 1
  invoke void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(56) %30, ptr noundef nonnull align 8 dereferenceable(56) %181)
          to label %182 unwind label %194

182:                                              ; preds = %180
  %183 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  %184 = getelementptr inbounds %"struct.std::pair", ptr %183, i32 0, i32 0
  %185 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  %186 = getelementptr inbounds %"struct.std::pair", ptr %185, i32 0, i32 1
  %187 = load i8, ptr %186, align 8, !tbaa !9, !range !18, !noundef !19
  %188 = trunc i8 %187 to i1
  invoke void @_ZN6SESAME11GridCluster11putHashGridESt13unordered_mapINS_11DensityGridEbNS_11GridKeyHashENS_9EqualGridESaISt4pairIKS2_bEEERS6_b(ptr noundef nonnull align 8 dereferenceable(116) %32, ptr noundef %30, ptr noundef nonnull align 8 dereferenceable(29) %184, i1 noundef zeroext %188)
          to label %189 unwind label %198

189:                                              ; preds = %182
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #6
  br label %190

190:                                              ; preds = %189
  %191 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %27, i32 noundef 0) #6
  %192 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %31, i32 0, i32 0
  %193 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %192, i32 0, i32 0
  store ptr %191, ptr %193, align 8
  br label %175, !llvm.loop !23

194:                                              ; preds = %180, %170
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %7, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %8, align 4
  br label %203

198:                                              ; preds = %182
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %7, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %8, align 4
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #6
  br label %203

202:                                              ; preds = %175
  store i8 1, ptr %10, align 1, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %204

203:                                              ; preds = %198, %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %209

204:                                              ; preds = %202, %168
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %205

205:                                              ; preds = %204
  %206 = load i8, ptr %10, align 1, !tbaa !20, !range !18, !noundef !19
  %207 = trunc i8 %206 to i1
  br i1 %207, label %53, label %208, !llvm.loop !24

208:                                              ; preds = %205
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @_ZN6SESAME11DensityGridD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  br label %211

209:                                              ; preds = %203, %167
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %210

210:                                              ; preds = %209, %86, %82
  call void @_ZN6SESAME11DensityGridD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  br label %221

211:                                              ; preds = %208, %1
  %212 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 1
  %213 = call noundef i64 @_ZNKSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %212) #6
  %214 = getelementptr inbounds %"class.SESAME::GridCluster", ptr %32, i32 0, i32 0
  %215 = call noundef i64 @_ZNKSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %214) #6
  %216 = icmp eq i64 %213, %215
  br i1 %216, label %217, label %218

217:                                              ; preds = %211
  store i1 true, ptr %2, align 1
  br label %219

218:                                              ; preds = %211
  store i1 false, ptr %2, align 1
  br label %219

219:                                              ; preds = %218, %217
  %220 = load i1, ptr %2, align 1
  ret i1 %220

221:                                              ; preds = %210
  %222 = load ptr, ptr %7, align 8
  %223 = load i32, ptr %8, align 4
  %224 = insertvalue { ptr, i32 } poison, ptr %222, 0
  %225 = insertvalue { ptr, i32 } %224, i32 %223, 1
  resume { ptr, i32 } %225
}

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 = { 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 #6 = { 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, !17, i64 32}
!10 = !{!"_ZTSSt4pairIKN6SESAME11DensityGridEbE", !11, i64 0, !17, i64 32}
!11 = !{!"_ZTSN6SESAME11DensityGridE", !12, i64 0, !16, i64 24, !17, i64 28}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"int", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!17, !17, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}


; 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.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<SESAME::DensityGrid, std::allocator<SESAME::DensityGrid>>::_Vector_impl" }
%"struct.std::_Vector_base<SESAME::DensityGrid, std::allocator<SESAME::DensityGrid>>::_Vector_impl" = type { %"struct.std::_Vector_base<SESAME::DensityGrid, std::allocator<SESAME::DensityGrid>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SESAME::DensityGrid, std::allocator<SESAME::DensityGrid>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.SESAME::DensityGrid" = type <{ %"class.std::vector", i32, i8, [3 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

declare void @_ZN6SESAME11DensityGridC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(29), ptr noundef nonnull align 8 dereferenceable(29)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6SESAME11GridCluster11putHashGridESt13unordered_mapINS_11DensityGridEbNS_11GridKeyHashENS_9EqualGridESaISt4pairIKS2_bEEERS6_b(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef, ptr noundef nonnull align 8 dereferenceable(29), i1 noundef zeroext) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(29)) local_unnamed_addr #2 align 2

declare void @_ZNK6SESAME11DensityGrid13getNeighboursEv(ptr dead_on_unwind writable sret(%"class.std::vector.11") align 8, ptr noundef nonnull align 8 dereferenceable(29)) local_unnamed_addr #3

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6SESAME11GridCluster11isConnectedEv(ptr noundef nonnull align 8 dereferenceable(116) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.SESAME::DensityGrid", align 8
  %3 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %4 = alloca %"class.std::unordered_map", align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %6 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %7 = alloca %"class.std::unordered_map", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %9 = alloca %"class.SESAME::DensityGrid", align 8
  %10 = alloca %"class.std::vector.11", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.SESAME::DensityGrid", align 8
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %17 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %18 = alloca %"class.std::unordered_map", align 8
  %19 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %21 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %22 = alloca %"class.std::unordered_map", align 8
  %23 = tail call noundef zeroext i1 @_ZNKSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br i1 %23, label %117, label %24

24:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %25 = tail call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  store ptr %25, ptr %3, align 8
  %26 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @_ZN6SESAME11DensityGridC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(29) %2, ptr noundef nonnull align 8 dereferenceable(29) %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %27 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(56) %27)
          to label %28 unwind label %50

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %29 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  store ptr %29, ptr %5, align 8
  %30 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %31 = getelementptr inbounds i8, ptr %30, i64 32
  %32 = load i8, ptr %31, align 8, !tbaa !5, !range !17, !noundef !18
  %33 = trunc nuw i8 %32 to i1
  invoke void @_ZN6SESAME11GridCluster11putHashGridESt13unordered_mapINS_11DensityGridEbNS_11GridKeyHashENS_9EqualGridESaISt4pairIKS2_bEEERS6_b(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef nonnull %4, ptr noundef nonnull align 8 dereferenceable(29) %2, i1 noundef zeroext %33)
          to label %34 unwind label %52

34:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #5
  br label %35

35:                                               ; preds = %._crit_edge38, %34
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %36 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %27) #5
  store ptr %36, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #5
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %37 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %27) #5
  store ptr %37, ptr %8, align 8
  %38 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN6SESAME11DensityGridEbELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %38, label %.lr.ph35, label %.critedge

.lr.ph35:                                         ; preds = %35, %._crit_edge
  %39 = call noundef zeroext i1 @_ZNKSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br i1 %39, label %40, label %.loopexit32

40:                                               ; preds = %.lr.ph35
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  %41 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  invoke void @_ZN6SESAME11DensityGridC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(29) %9, ptr noundef nonnull align 8 dereferenceable(29) %41)
          to label %42 unwind label %54

42:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  invoke void @_ZNK6SESAME11DensityGrid13getNeighboursEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.11") align 8 %10, ptr noundef nonnull align 8 dereferenceable(29) %9)
          to label %43 unwind label %56

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %44 = call ptr @_ZNSt6vectorIN6SESAME11DensityGridESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  store ptr %44, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %45 = call ptr @_ZNSt6vectorIN6SESAME11DensityGridESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  store ptr %45, ptr %12, align 8
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6SESAME11DensityGridESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br i1 %46, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %89, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  %47 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #5
  call void @_ZNSt6vectorIN6SESAME11DensityGridESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @_ZN6SESAME11DensityGridD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %48 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %27) #5
  store ptr %48, ptr %8, align 8
  %49 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN6SESAME11DensityGridEbELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %49, label %.lr.ph35, label %.critedge, !llvm.loop !19

50:                                               ; preds = %24
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %116

52:                                               ; preds = %28
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #5
  br label %116

54:                                               ; preds = %40
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %95

56:                                               ; preds = %42
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %94

.lr.ph:                                           ; preds = %43, %89
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #5
  %58 = call noundef nonnull align 8 dereferenceable(29) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6SESAME11DensityGridESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  invoke void @_ZN6SESAME11DensityGridC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(29) %13, ptr noundef nonnull align 8 dereferenceable(29) %58)
          to label %59 unwind label %78

59:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  %60 = invoke ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(29) %13)
          to label %61 unwind label %80

61:                                               ; preds = %59
  store ptr %60, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %62 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  store ptr %62, ptr %15, align 8
  %63 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN6SESAME11DensityGridEbELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br i1 %63, label %64, label %.critedge2

64:                                               ; preds = %61
  %65 = invoke ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %27, ptr noundef nonnull align 8 dereferenceable(29) %13)
          to label %66 unwind label %82

66:                                               ; preds = %64
  store ptr %65, ptr %16, align 8
  %67 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %27) #5
  store ptr %67, ptr %17, align 8
  %68 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKN6SESAME11DensityGridEbELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br i1 %68, label %69, label %89

69:                                               ; preds = %66
  invoke void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %70 unwind label %85

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #5
  %71 = invoke ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(29) %13)
          to label %72 unwind label %87

72:                                               ; preds = %70
  store ptr %71, ptr %19, align 8
  %73 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  %74 = getelementptr inbounds i8, ptr %73, i64 32
  %75 = load i8, ptr %74, align 8, !tbaa !5, !range !17, !noundef !18
  %76 = trunc nuw i8 %75 to i1
  invoke void @_ZN6SESAME11GridCluster11putHashGridESt13unordered_mapINS_11DensityGridEbNS_11GridKeyHashENS_9EqualGridESaISt4pairIKS2_bEEERS6_b(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef nonnull %18, ptr noundef nonnull align 8 dereferenceable(29) %13, i1 noundef zeroext %76)
          to label %77 unwind label %87

77:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #5
  br label %89

78:                                               ; preds = %.lr.ph
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %93

80:                                               ; preds = %59
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %84

82:                                               ; preds = %64
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  br label %84

84:                                               ; preds = %82, %80
  %.pn21 = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br label %92

85:                                               ; preds = %69
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %92

87:                                               ; preds = %72, %70
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #5
  br label %92

.critedge2:                                       ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br label %89

89:                                               ; preds = %.critedge2, %77, %66
  call void @_ZN6SESAME11DensityGridD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6SESAME11DensityGridESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %91 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6SESAME11DensityGridESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br i1 %91, label %.lr.ph, label %._crit_edge

92:                                               ; preds = %87, %85, %84
  %.pn23 = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ], [ %.pn21, %84 ]
  call void @_ZN6SESAME11DensityGridD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %13) #5
  br label %93

93:                                               ; preds = %92, %78
  %.pn23.pn = phi { ptr, i32 } [ %.pn23, %92 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @_ZNSt6vectorIN6SESAME11DensityGridESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  br label %94

94:                                               ; preds = %93, %56
  %.pn23.pn.pn = phi { ptr, i32 } [ %.pn23.pn, %93 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @_ZN6SESAME11DensityGridD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %9) #5
  br label %95

95:                                               ; preds = %94, %54
  %.pn23.pn.pn.pn = phi { ptr, i32 } [ %.pn23.pn.pn, %94 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %115

.critedge:                                        ; preds = %._crit_edge, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %.loopexit32

.loopexit32:                                      ; preds = %.lr.ph35, %.critedge
  %96 = call noundef zeroext i1 @_ZNKSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  br i1 %96, label %.loopexit33, label %97

97:                                               ; preds = %.loopexit32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  invoke void @_ZNSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %98 unwind label %.loopexit.split-lp

98:                                               ; preds = %97
  %99 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  store ptr %99, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  %100 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  store ptr %100, ptr %21, align 8
  %101 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN6SESAME11DensityGridEbELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  br i1 %101, label %.lr.ph37, label %._crit_edge38

.lr.ph37:                                         ; preds = %98, %108
  invoke void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(56) %22, ptr noundef nonnull align 8 dereferenceable(56) %27)
          to label %102 unwind label %.loopexit

102:                                              ; preds = %.lr.ph37
  %103 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  %104 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  %105 = getelementptr inbounds i8, ptr %104, i64 32
  %106 = load i8, ptr %105, align 8, !tbaa !5, !range !17, !noundef !18
  %107 = trunc nuw i8 %106 to i1
  invoke void @_ZN6SESAME11GridCluster11putHashGridESt13unordered_mapINS_11DensityGridEbNS_11GridKeyHashENS_9EqualGridESaISt4pairIKS2_bEEERS6_b(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef nonnull %22, ptr noundef nonnull align 8 dereferenceable(29) %103, i1 noundef zeroext %107)
          to label %108 unwind label %112

108:                                              ; preds = %102
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %22) #5
  %109 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKN6SESAME11DensityGridEbELb0ELb1EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %20, i32 noundef 0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  %110 = call ptr @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  store ptr %110, ptr %21, align 8
  %111 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN6SESAME11DensityGridEbELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  br i1 %111, label %.lr.ph37, label %._crit_edge38, !llvm.loop !21

.loopexit:                                        ; preds = %.lr.ph37
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %114

.loopexit.split-lp:                               ; preds = %97
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %114

112:                                              ; preds = %102
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %22) #5
  br label %114

._crit_edge38:                                    ; preds = %108, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %35

114:                                              ; preds = %.loopexit, %.loopexit.split-lp, %112
  %.pn = phi { ptr, i32 } [ %113, %112 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  br label %115

.loopexit33:                                      ; preds = %.loopexit32
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @_ZN6SESAME11DensityGridD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  br label %117

115:                                              ; preds = %114, %95
  %.pn23.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn23.pn.pn.pn, %95 ], [ %.pn, %114 ]
  call void @_ZNSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %116

116:                                              ; preds = %115, %52, %50
  %.pn23.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn23.pn.pn.pn.pn, %115 ], [ %53, %52 ], [ %51, %50 ]
  call void @_ZN6SESAME11DensityGridD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn23.pn.pn.pn.pn.pn

117:                                              ; preds = %.loopexit33, %1
  %118 = getelementptr inbounds i8, ptr %0, i64 56
  %119 = call noundef i64 @_ZNKSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %118) #5
  %120 = call noundef i64 @_ZNKSt13unordered_mapIN6SESAME11DensityGridEbNS0_11GridKeyHashENS0_9EqualGridESaISt4pairIKS1_bEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  %121 = icmp eq i64 %119, %120
  ret i1 %121
}

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !16, i64 32}
!6 = !{!"_ZTSSt4pairIKN6SESAME11DensityGridEbE", !7, i64 0, !16, i64 32}
!7 = !{!"_ZTSN6SESAME11DensityGridE", !8, i64 0, !15, i64 24, !16, i64 28}
!8 = !{!"_ZTSSt6vectorIiSaIiEE", !9, i64 0}
!9 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !11, i64 0}
!11 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"int", !13, i64 0}
!16 = !{!"bool", !13, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


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