; LLVM IR from laurimi/ase_exploration :: src/ExplorationPlanner/grid/PlanarGridBinaryMap.ll (ZN19PlanarGridBinaryMap6dilateEv)

; 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.boost::unordered::unordered_set" = type { %"struct.boost::unordered::detail::table" }
%"struct.boost::unordered::detail::table" = type { %"class.boost::unordered::detail::functions", i64, i64, float, i64, ptr }
%"class.boost::unordered::detail::functions" = type { i8, [2 x %"struct.boost::detail::aligned_storage::aligned_storage_imp"] }
%"struct.boost::detail::aligned_storage::aligned_storage_imp" = type { %"union.boost::detail::aligned_storage::aligned_storage_imp<1, 1>::data_t" }
%"union.boost::detail::aligned_storage::aligned_storage_imp<1, 1>::data_t" = type { [1 x i8] }
%"struct.boost::unordered::iterator_detail::c_iterator" = type { ptr }
%class.PlanarGridIndex = type { i32, i32 }
%"struct.std::pair.1" = type <{ %"struct.boost::unordered::iterator_detail::c_iterator.3", i8, [7 x i8] }>
%"struct.boost::unordered::iterator_detail::c_iterator.3" = type { ptr }
%"struct.std::pair" = type <{ %class.PlanarGridIndex, i8, [3 x i8] }>

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19PlanarGridBinaryMap6dilateEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.boost::unordered::unordered_set", align 8
  %4 = alloca %"struct.boost::unordered::iterator_detail::c_iterator", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"struct.boost::unordered::iterator_detail::c_iterator", align 8
  %8 = alloca i32, align 4
  %9 = alloca %class.PlanarGridIndex, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %class.PlanarGridIndex, align 4
  %13 = alloca %"struct.std::pair.1", align 8
  %14 = alloca %"struct.boost::unordered::iterator_detail::c_iterator.3", align 8
  %15 = alloca %"struct.boost::unordered::iterator_detail::c_iterator.3", align 8
  %16 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr %3) #4
  call void @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr i8, ptr %18, i64 -32
  %20 = load i64, ptr %19, align 8
  %21 = getelementptr inbounds i8, ptr %17, i64 %20
  %22 = invoke ptr @_ZNK19PlanarGridContainerIbE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %23 unwind label %35

23:                                               ; preds = %1
  %24 = getelementptr inbounds %"struct.boost::unordered::iterator_detail::c_iterator", ptr %4, i32 0, i32 0
  store ptr %22, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %25 = load ptr, ptr %17, align 8, !tbaa !9
  %26 = getelementptr i8, ptr %25, i64 -32
  %27 = load i64, ptr %26, align 8
  %28 = getelementptr inbounds i8, ptr %17, i64 %27
  %29 = invoke ptr @_ZNK19PlanarGridContainerIbE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %28)
          to label %30 unwind label %39

30:                                               ; preds = %23
  %31 = getelementptr inbounds %"struct.boost::unordered::iterator_detail::c_iterator", ptr %7, i32 0, i32 0
  store ptr %29, ptr %31, align 8
  br label %32

32:                                               ; preds = %113, %30
  %33 = call noundef zeroext i1 @_ZN5boost9unordered15iterator_detailneERKNS1_10c_iteratorINS0_6detail8ptr_nodeISt4pairIK15PlanarGridIndexbEEEEESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  br i1 %33, label %43, label %34

34:                                               ; preds = %32
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %116

35:                                               ; preds = %1
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %5, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %6, align 4
  br label %115

39:                                               ; preds = %111, %43, %23
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %5, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %6, align 4
  br label %114

43:                                               ; preds = %32
  %44 = invoke noundef ptr @_ZNK5boost9unordered15iterator_detail10c_iteratorINS0_6detail8ptr_nodeISt4pairIK15PlanarGridIndexbEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %45 unwind label %39

45:                                               ; preds = %43
  %46 = getelementptr inbounds %"struct.std::pair", ptr %44, i32 0, i32 1
  %47 = load i8, ptr %46, align 4, !tbaa !11, !range !16, !noundef !17
  %48 = trunc i8 %47 to i1
  br i1 %48, label %49, label %110

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %50 = invoke noundef ptr @_ZNK5boost9unordered15iterator_detail10c_iteratorINS0_6detail8ptr_nodeISt4pairIK15PlanarGridIndexbEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %51 unwind label %57

51:                                               ; preds = %49
  %52 = getelementptr inbounds %"struct.std::pair", ptr %50, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %52, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 -1, ptr %10, align 4, !tbaa !19
  br label %53

53:                                               ; preds = %105, %51
  %54 = load i32, ptr %10, align 4, !tbaa !19
  %55 = icmp sle i32 %54, 1
  br i1 %55, label %61, label %56

56:                                               ; preds = %53
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %108

57:                                               ; preds = %49
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %5, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %6, align 4
  br label %109

61:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 -1, ptr %11, align 4, !tbaa !19
  br label %62

62:                                               ; preds = %101, %61
  %63 = load i32, ptr %11, align 4, !tbaa !19
  %64 = icmp sle i32 %63, 1
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %104

66:                                               ; preds = %62
  %67 = load i32, ptr %10, align 4, !tbaa !19
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %73

69:                                               ; preds = %66
  %70 = load i32, ptr %11, align 4, !tbaa !19
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %69
  br label %101

73:                                               ; preds = %69, %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %74 = invoke noundef i32 @_ZNK15PlanarGridIndex4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %75 unwind label %96

75:                                               ; preds = %73
  %76 = load i32, ptr %10, align 4, !tbaa !19
  %77 = add nsw i32 %74, %76
  %78 = invoke noundef i32 @_ZNK15PlanarGridIndex4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %79 unwind label %96

79:                                               ; preds = %75
  %80 = load i32, ptr %11, align 4, !tbaa !19
  %81 = add nsw i32 %78, %80
  invoke void @_ZN15PlanarGridIndexC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %77, i32 noundef %81)
          to label %82 unwind label %96

82:                                               ; preds = %79
  %83 = load ptr, ptr %17, align 8, !tbaa !9
  %84 = getelementptr i8, ptr %83, i64 -32
  %85 = load i64, ptr %84, align 8
  %86 = getelementptr inbounds i8, ptr %17, i64 %85
  %87 = invoke noundef zeroext i1 @_ZNK19PlanarGridContainerIbE13isInContainerERK15PlanarGridIndex(ptr noundef nonnull align 8 dereferenceable(48) %86, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %88 unwind label %96

88:                                               ; preds = %82
  br i1 %87, label %89, label %100

89:                                               ; preds = %88
  %90 = invoke { ptr, i8 } @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %91 unwind label %96

91:                                               ; preds = %89
  %92 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 0
  %93 = extractvalue { ptr, i8 } %90, 0
  store ptr %93, ptr %92, align 8
  %94 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 1
  %95 = extractvalue { ptr, i8 } %90, 1
  store i8 %95, ptr %94, align 8
  br label %100

96:                                               ; preds = %89, %82, %79, %75, %73
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %5, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %109

100:                                              ; preds = %91, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %101

101:                                              ; preds = %100, %72
  %102 = load i32, ptr %11, align 4, !tbaa !19
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %11, align 4, !tbaa !19
  br label %62, !llvm.loop !20

104:                                              ; preds = %65
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %10, align 4, !tbaa !19
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %10, align 4, !tbaa !19
  br label %53, !llvm.loop !22

108:                                              ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %110

109:                                              ; preds = %96, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %114

110:                                              ; preds = %108, %45
  br label %111

111:                                              ; preds = %110
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost9unordered15iterator_detail10c_iteratorINS0_6detail8ptr_nodeISt4pairIK15PlanarGridIndexbEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %113 unwind label %39

113:                                              ; preds = %111
  br label %32, !llvm.loop !23

114:                                              ; preds = %109, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %115

115:                                              ; preds = %114, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %145

116:                                              ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %117 = call ptr @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  %118 = getelementptr inbounds %"struct.boost::unordered::iterator_detail::c_iterator.3", ptr %14, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %119 = call ptr @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  %120 = getelementptr inbounds %"struct.boost::unordered::iterator_detail::c_iterator.3", ptr %15, i32 0, i32 0
  store ptr %119, ptr %120, align 8
  br label %121

121:                                              ; preds = %134, %116
  %122 = call noundef zeroext i1 @_ZN5boost9unordered15iterator_detailneERKNS1_10c_iteratorINS0_6detail8ptr_nodeI15PlanarGridIndexEEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  br i1 %122, label %124, label %123

123:                                              ; preds = %121
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %144

124:                                              ; preds = %121
  %125 = load ptr, ptr %17, align 8, !tbaa !9
  %126 = getelementptr i8, ptr %125, i64 -32
  %127 = load i64, ptr %126, align 8
  %128 = getelementptr inbounds i8, ptr %17, i64 %127
  %129 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNK5boost9unordered15iterator_detail10c_iteratorINS0_6detail8ptr_nodeI15PlanarGridIndexEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %130 unwind label %135

130:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  store i8 1, ptr %16, align 1, !tbaa !24
  invoke void @_ZN19PlanarGridContainerIbE12setGridValueERK15PlanarGridIndexRKb(ptr noundef nonnull align 8 dereferenceable(48) %128, ptr noundef nonnull align 4 dereferenceable(8) %129, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %131 unwind label %139

131:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  br label %132

132:                                              ; preds = %131
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost9unordered15iterator_detail10c_iteratorINS0_6detail8ptr_nodeI15PlanarGridIndexEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %134 unwind label %135

134:                                              ; preds = %132
  br label %121, !llvm.loop !25

135:                                              ; preds = %132, %124
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %5, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %6, align 4
  br label %143

139:                                              ; preds = %130
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %5, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  br label %143

143:                                              ; preds = %139, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %145

144:                                              ; preds = %123
  call void @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #4
  ret void

145:                                              ; preds = %143, %115
  call void @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #4
  br label %146

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

; 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 @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK5boost9unordered15iterator_detail10c_iteratorINS0_6detail8ptr_nodeISt4pairIK15PlanarGridIndexbEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK15PlanarGridIndex4getXEv(ptr noundef nonnull align 4 dereferenceable(8)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15PlanarGridIndexC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK19PlanarGridContainerIbE13isInContainerERK15PlanarGridIndex(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

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

; 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 nonnull align 8 dereferenceable(8) ptr @_ZN5boost9unordered15iterator_detail10c_iteratorINS0_6detail8ptr_nodeISt4pairIK15PlanarGridIndexbEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN19PlanarGridContainerIbE12setGridValueERK15PlanarGridIndexRKb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

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

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

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

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


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

%"class.boost::unordered::unordered_set" = type { %"struct.boost::unordered::detail::table" }
%"struct.boost::unordered::detail::table" = type { %"class.boost::unordered::detail::functions", i64, i64, float, i64, ptr }
%"class.boost::unordered::detail::functions" = type { i8, [2 x %"struct.boost::detail::aligned_storage::aligned_storage_imp"] }
%"struct.boost::detail::aligned_storage::aligned_storage_imp" = type { %"union.boost::detail::aligned_storage::aligned_storage_imp<1, 1>::data_t" }
%"union.boost::detail::aligned_storage::aligned_storage_imp<1, 1>::data_t" = type { [1 x i8] }
%"struct.boost::unordered::iterator_detail::c_iterator" = type { ptr }
%class.PlanarGridIndex = type { i32, i32 }
%"struct.boost::unordered::iterator_detail::c_iterator.3" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19PlanarGridBinaryMap6dilateEv(ptr noundef nonnull align 8 dereferenceable(8) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.boost::unordered::unordered_set", align 8
  %3 = alloca %"struct.boost::unordered::iterator_detail::c_iterator", align 8
  %4 = alloca %"struct.boost::unordered::iterator_detail::c_iterator", align 8
  %5 = alloca %class.PlanarGridIndex, align 8
  %6 = alloca %class.PlanarGridIndex, align 4
  %7 = alloca %"struct.boost::unordered::iterator_detail::c_iterator.3", align 8
  %8 = alloca %"struct.boost::unordered::iterator_detail::c_iterator.3", align 8
  %9 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #3
  call void @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = getelementptr i8, ptr %10, i64 -32
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 %12
  %14 = call ptr @_ZNK19PlanarGridContainerIbE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %13)
  store ptr %14, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %15 = load ptr, ptr %0, align 8, !tbaa !5
  %16 = getelementptr i8, ptr %15, i64 -32
  %17 = load i64, ptr %16, align 8
  %18 = getelementptr inbounds i8, ptr %0, i64 %17
  %19 = call ptr @_ZNK19PlanarGridContainerIbE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %18)
  store ptr %19, ptr %4, align 8
  %20 = call noundef zeroext i1 @_ZN5boost9unordered15iterator_detailneERKNS1_10c_iteratorINS0_6detail8ptr_nodeISt4pairIK15PlanarGridIndexbEEEEESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  br i1 %20, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %140, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %21 = call ptr @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #3
  store ptr %21, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  %22 = call ptr @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #3
  store ptr %22, ptr %8, align 8
  %23 = call noundef zeroext i1 @_ZN5boost9unordered15iterator_detailneERKNS1_10c_iteratorINS0_6detail8ptr_nodeI15PlanarGridIndexEEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  br i1 %23, label %.lr.ph25, label %._crit_edge26

24:                                               ; preds = %.lr.ph
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %143

.lr.ph:                                           ; preds = %1, %140
  %26 = invoke noundef ptr @_ZNK5boost9unordered15iterator_detail10c_iteratorINS0_6detail8ptr_nodeISt4pairIK15PlanarGridIndexbEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %27 unwind label %24

27:                                               ; preds = %.lr.ph
  %28 = getelementptr inbounds i8, ptr %26, i64 8
  %29 = load i8, ptr %28, align 4, !tbaa !8, !range !14, !noundef !15
  %30 = trunc nuw i8 %29 to i1
  br i1 %30, label %31, label %140

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %32 = invoke noundef ptr @_ZNK5boost9unordered15iterator_detail10c_iteratorINS0_6detail8ptr_nodeISt4pairIK15PlanarGridIndexbEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %35 unwind label %33

33:                                               ; preds = %31
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %139

35:                                               ; preds = %31
  %36 = load i64, ptr %32, align 4
  store i64 %36, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %37 = call noundef i32 @_ZNK15PlanarGridIndex4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %38 = add nsw i32 %37, -1
  %39 = call noundef i32 @_ZNK15PlanarGridIndex4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %40 = add nsw i32 %39, -1
  call void @_ZN15PlanarGridIndexC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %38, i32 noundef %40)
  %41 = load ptr, ptr %0, align 8, !tbaa !5
  %42 = getelementptr i8, ptr %41, i64 -32
  %43 = load i64, ptr %42, align 8
  %44 = getelementptr inbounds i8, ptr %0, i64 %43
  %45 = invoke noundef zeroext i1 @_ZNK19PlanarGridContainerIbE13isInContainerERK15PlanarGridIndex(ptr noundef nonnull align 8 dereferenceable(48) %44, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %46 unwind label %49

46:                                               ; preds = %35
  br i1 %45, label %47, label %51

47:                                               ; preds = %46
  %48 = invoke { ptr, i8 } @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %51 unwind label %49

49:                                               ; preds = %136, %125, %123, %113, %111, %100, %98, %88, %86, %76, %74, %63, %61, %51, %47, %35
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  br label %139

51:                                               ; preds = %47, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %52 = call noundef i32 @_ZNK15PlanarGridIndex4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %53 = add nsw i32 %52, -1
  %54 = call noundef i32 @_ZNK15PlanarGridIndex4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @_ZN15PlanarGridIndexC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %53, i32 noundef %54)
  %55 = load ptr, ptr %0, align 8, !tbaa !5
  %56 = getelementptr i8, ptr %55, i64 -32
  %57 = load i64, ptr %56, align 8
  %58 = getelementptr inbounds i8, ptr %0, i64 %57
  %59 = invoke noundef zeroext i1 @_ZNK19PlanarGridContainerIbE13isInContainerERK15PlanarGridIndex(ptr noundef nonnull align 8 dereferenceable(48) %58, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %60 unwind label %49

60:                                               ; preds = %51
  br i1 %59, label %61, label %63

61:                                               ; preds = %60
  %62 = invoke { ptr, i8 } @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %63 unwind label %49

63:                                               ; preds = %61, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %64 = call noundef i32 @_ZNK15PlanarGridIndex4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %65 = add nsw i32 %64, -1
  %66 = call noundef i32 @_ZNK15PlanarGridIndex4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %67 = add nsw i32 %66, 1
  call void @_ZN15PlanarGridIndexC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %65, i32 noundef %67)
  %68 = load ptr, ptr %0, align 8, !tbaa !5
  %69 = getelementptr i8, ptr %68, i64 -32
  %70 = load i64, ptr %69, align 8
  %71 = getelementptr inbounds i8, ptr %0, i64 %70
  %72 = invoke noundef zeroext i1 @_ZNK19PlanarGridContainerIbE13isInContainerERK15PlanarGridIndex(ptr noundef nonnull align 8 dereferenceable(48) %71, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %73 unwind label %49

73:                                               ; preds = %63
  br i1 %72, label %74, label %76

74:                                               ; preds = %73
  %75 = invoke { ptr, i8 } @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %76 unwind label %49

76:                                               ; preds = %74, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %77 = call noundef i32 @_ZNK15PlanarGridIndex4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %78 = call noundef i32 @_ZNK15PlanarGridIndex4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %79 = add nsw i32 %78, -1
  call void @_ZN15PlanarGridIndexC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %77, i32 noundef %79)
  %80 = load ptr, ptr %0, align 8, !tbaa !5
  %81 = getelementptr i8, ptr %80, i64 -32
  %82 = load i64, ptr %81, align 8
  %83 = getelementptr inbounds i8, ptr %0, i64 %82
  %84 = invoke noundef zeroext i1 @_ZNK19PlanarGridContainerIbE13isInContainerERK15PlanarGridIndex(ptr noundef nonnull align 8 dereferenceable(48) %83, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %85 unwind label %49

85:                                               ; preds = %76
  br i1 %84, label %86, label %88

86:                                               ; preds = %85
  %87 = invoke { ptr, i8 } @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %88 unwind label %49

88:                                               ; preds = %85, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %89 = call noundef i32 @_ZNK15PlanarGridIndex4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %90 = call noundef i32 @_ZNK15PlanarGridIndex4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %91 = add nsw i32 %90, 1
  call void @_ZN15PlanarGridIndexC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %89, i32 noundef %91)
  %92 = load ptr, ptr %0, align 8, !tbaa !5
  %93 = getelementptr i8, ptr %92, i64 -32
  %94 = load i64, ptr %93, align 8
  %95 = getelementptr inbounds i8, ptr %0, i64 %94
  %96 = invoke noundef zeroext i1 @_ZNK19PlanarGridContainerIbE13isInContainerERK15PlanarGridIndex(ptr noundef nonnull align 8 dereferenceable(48) %95, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %97 unwind label %49

97:                                               ; preds = %88
  br i1 %96, label %98, label %100

98:                                               ; preds = %97
  %99 = invoke { ptr, i8 } @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %100 unwind label %49

100:                                              ; preds = %98, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %101 = call noundef i32 @_ZNK15PlanarGridIndex4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %102 = add nsw i32 %101, 1
  %103 = call noundef i32 @_ZNK15PlanarGridIndex4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %104 = add nsw i32 %103, -1
  call void @_ZN15PlanarGridIndexC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %102, i32 noundef %104)
  %105 = load ptr, ptr %0, align 8, !tbaa !5
  %106 = getelementptr i8, ptr %105, i64 -32
  %107 = load i64, ptr %106, align 8
  %108 = getelementptr inbounds i8, ptr %0, i64 %107
  %109 = invoke noundef zeroext i1 @_ZNK19PlanarGridContainerIbE13isInContainerERK15PlanarGridIndex(ptr noundef nonnull align 8 dereferenceable(48) %108, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %110 unwind label %49

110:                                              ; preds = %100
  br i1 %109, label %111, label %113

111:                                              ; preds = %110
  %112 = invoke { ptr, i8 } @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %113 unwind label %49

113:                                              ; preds = %111, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %114 = call noundef i32 @_ZNK15PlanarGridIndex4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %115 = add nsw i32 %114, 1
  %116 = call noundef i32 @_ZNK15PlanarGridIndex4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @_ZN15PlanarGridIndexC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %115, i32 noundef %116)
  %117 = load ptr, ptr %0, align 8, !tbaa !5
  %118 = getelementptr i8, ptr %117, i64 -32
  %119 = load i64, ptr %118, align 8
  %120 = getelementptr inbounds i8, ptr %0, i64 %119
  %121 = invoke noundef zeroext i1 @_ZNK19PlanarGridContainerIbE13isInContainerERK15PlanarGridIndex(ptr noundef nonnull align 8 dereferenceable(48) %120, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %122 unwind label %49

122:                                              ; preds = %113
  br i1 %121, label %123, label %125

123:                                              ; preds = %122
  %124 = invoke { ptr, i8 } @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %125 unwind label %49

125:                                              ; preds = %123, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %126 = call noundef i32 @_ZNK15PlanarGridIndex4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %127 = add nsw i32 %126, 1
  %128 = call noundef i32 @_ZNK15PlanarGridIndex4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %129 = add nsw i32 %128, 1
  call void @_ZN15PlanarGridIndexC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %127, i32 noundef %129)
  %130 = load ptr, ptr %0, align 8, !tbaa !5
  %131 = getelementptr i8, ptr %130, i64 -32
  %132 = load i64, ptr %131, align 8
  %133 = getelementptr inbounds i8, ptr %0, i64 %132
  %134 = invoke noundef zeroext i1 @_ZNK19PlanarGridContainerIbE13isInContainerERK15PlanarGridIndex(ptr noundef nonnull align 8 dereferenceable(48) %133, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %135 unwind label %49

135:                                              ; preds = %125
  br i1 %134, label %136, label %138

136:                                              ; preds = %135
  %137 = invoke { ptr, i8 } @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %138 unwind label %49

138:                                              ; preds = %135, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  br label %140

139:                                              ; preds = %49, %33
  %.pn18 = phi { ptr, i32 } [ %50, %49 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  br label %143

140:                                              ; preds = %27, %138
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost9unordered15iterator_detail10c_iteratorINS0_6detail8ptr_nodeISt4pairIK15PlanarGridIndexbEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %142 = call noundef zeroext i1 @_ZN5boost9unordered15iterator_detailneERKNS1_10c_iteratorINS0_6detail8ptr_nodeISt4pairIK15PlanarGridIndexbEEEEESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  br i1 %142, label %.lr.ph, label %._crit_edge, !llvm.loop !16

143:                                              ; preds = %139, %24
  %.pn18.pn = phi { ptr, i32 } [ %.pn18, %139 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  br label %158

._crit_edge26:                                    ; preds = %150, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #3
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #3
  ret void

.lr.ph25:                                         ; preds = %._crit_edge, %150
  %144 = load ptr, ptr %0, align 8, !tbaa !5
  %145 = getelementptr i8, ptr %144, i64 -32
  %146 = load i64, ptr %145, align 8
  %147 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNK5boost9unordered15iterator_detail10c_iteratorINS0_6detail8ptr_nodeI15PlanarGridIndexEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %148 unwind label %153

148:                                              ; preds = %.lr.ph25
  %149 = getelementptr inbounds i8, ptr %0, i64 %146
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #3
  store i8 1, ptr %9, align 1, !tbaa !18
  invoke void @_ZN19PlanarGridContainerIbE12setGridValueERK15PlanarGridIndexRKb(ptr noundef nonnull align 8 dereferenceable(48) %149, ptr noundef nonnull align 4 dereferenceable(8) %147, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %150 unwind label %155

150:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #3
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost9unordered15iterator_detail10c_iteratorINS0_6detail8ptr_nodeI15PlanarGridIndexEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %152 = call noundef zeroext i1 @_ZN5boost9unordered15iterator_detailneERKNS1_10c_iteratorINS0_6detail8ptr_nodeI15PlanarGridIndexEEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  br i1 %152, label %.lr.ph25, label %._crit_edge26, !llvm.loop !19

153:                                              ; preds = %.lr.ph25
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %157

155:                                              ; preds = %148
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #3
  br label %157

157:                                              ; preds = %155, %153
  %.pn = phi { ptr, i32 } [ %156, %155 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  br label %158

158:                                              ; preds = %157, %143
  %.pn18.pn.pn = phi { ptr, i32 } [ %.pn18.pn, %143 ], [ %.pn, %157 ]
  call void @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #3
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #3
  resume { ptr, i32 } %.pn18.pn.pn
}

; 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 @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15PlanarGridIndexC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK19PlanarGridContainerIbE13isInContainerERK15PlanarGridIndex(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN5boost9unordered13unordered_setI15PlanarGridIndexNS_4hashIS2_EESt8equal_toIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) 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 nonnull align 8 dereferenceable(8) ptr @_ZN5boost9unordered15iterator_detail10c_iteratorINS0_6detail8ptr_nodeISt4pairIK15PlanarGridIndexbEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN19PlanarGridContainerIbE12setGridValueERK15PlanarGridIndexRKb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

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

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

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

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

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

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


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