; LLVM IR from Lut1n/ImpGears :: src/ImpGears/Geometry (Triangulator)

; 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.imp::Polygon" = type { %"class.imp::Object", %"class.std::vector.12" }
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl" }
%"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl" = type { %"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl_data" }
%"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<imp::Triplet, std::allocator<imp::Triplet>>::_Vector_impl" }
%"struct.std::_Vector_base<imp::Triplet, std::allocator<imp::Triplet>>::_Vector_impl" = type { %"struct.std::_Vector_base<imp::Triplet, std::allocator<imp::Triplet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<imp::Triplet, std::allocator<imp::Triplet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.22" = type { ptr }
%"class.imp::Edge" = type { %"class.imp::Object", %"class.imp::Vec3", %"class.imp::Vec3" }
%"class.imp::Vec3" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x float] }>
%"struct.imp::Triplet" = type { %"class.imp::Vec3", %"class.imp::Vec3", %"class.imp::Vec3", %"class.imp::Vec3" }
%"class.__gnu_cxx::__normal_iterator.23" = type { ptr }
%"class.imp::Path" = type { %"class.imp::Object", %"class.std::vector.24" }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<imp::Vec3, std::allocator<imp::Vec3>>::_Vector_impl" }
%"struct.std::_Vector_base<imp::Vec3, std::allocator<imp::Vec3>>::_Vector_impl" = type { %"struct.std::_Vector_base<imp::Vec3, std::allocator<imp::Vec3>>::_Vector_impl_data" }
%"struct.std::_Vector_base<imp::Vec3, std::allocator<imp::Vec3>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare void @_ZN3imp4EdgeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #3

declare noundef zeroext i1 @_ZNK3imp4EdgeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(104)) #3

declare noundef zeroext i1 @_ZNK3imp4Edge11connectedToERKS0_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(104)) #3

declare void @_ZN3imp4EdgeC1Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #3

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

declare void @_ZN3imp4EdgeC1ERKNS_4Vec3ES3_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKN3imp4EdgeESt6vectorIS3_SaIS3_EEEES3_ET_SA_SA_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(104)) #4

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPN3imp7TripletESt6vectorIS3_SaIS3_EEEES3_ET_S9_S9_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(160)) #4

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

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

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

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

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

declare void @_ZN3imp7PolygonC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3imp7TripletC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #2 align 2

declare void @_ZN3imp4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3

declare void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #2 align 2

; Function Attrs: nounwind
declare void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6

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

; Function Attrs: nounwind
declare void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp15edges2TrianglesERKSt6vectorINS_4EdgeESaIS1_EE(ptr dead_on_unwind noalias writable sret(%"class.imp::Polygon") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #5 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.imp::Edge", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %16 = alloca %"class.imp::Edge", align 8
  %17 = alloca %"class.imp::Edge", align 8
  %18 = alloca %"class.imp::Edge", align 8
  %19 = alloca %"class.imp::Edge", align 8
  %20 = alloca %"class.imp::Edge", align 8
  %21 = alloca %"class.imp::Edge", align 8
  %22 = alloca i8, align 1
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %27 = alloca %"struct.imp::Triplet", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %32 = alloca %"class.std::vector.12", align 8
  %33 = alloca ptr, align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %36 = alloca %"struct.imp::Triplet", align 8
  %37 = alloca %"class.imp::Path", align 8
  %38 = alloca %"class.imp::Vec3", align 8
  %39 = alloca %"class.imp::Vec3", align 8
  %40 = alloca %"class.imp::Vec3", align 8
  %41 = alloca i1, align 1
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
  call void @_ZNSt6vectorIN3imp7TripletESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %42, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %7, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %8, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  br label %49

49:                                               ; preds = %252, %2
  %50 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br i1 %50, label %52, label %51

51:                                               ; preds = %49
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %255

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 104, ptr %10) #7
  %53 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  invoke void @_ZN3imp4EdgeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %10, ptr noundef nonnull align 8 dereferenceable(104) %53)
          to label %54 unwind label %65

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %55, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #7
  %58 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %14, i32 0, i32 0
  store ptr %57, ptr %58, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  %60 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #7
  %61 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %15, i32 0, i32 0
  store ptr %60, ptr %61, align 8
  br label %62

62:                                               ; preds = %242, %54
  %63 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br i1 %63, label %69, label %64

64:                                               ; preds = %62
  store i32 4, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %251

65:                                               ; preds = %52
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %11, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %12, align 4
  br label %254

69:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 104, ptr %16) #7
  %70 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  invoke void @_ZN3imp4EdgeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %16, ptr noundef nonnull align 8 dereferenceable(104) %70)
          to label %71 unwind label %75

71:                                               ; preds = %69
  %72 = invoke noundef zeroext i1 @_ZNK3imp4EdgeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %10, ptr noundef nonnull align 8 dereferenceable(104) %16)
          to label %73 unwind label %79

73:                                               ; preds = %71
  br i1 %72, label %74, label %83

74:                                               ; preds = %73
  store i32 5, ptr %9, align 4
  br label %239

75:                                               ; preds = %69
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %11, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %12, align 4
  br label %250

79:                                               ; preds = %83, %71
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %11, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %12, align 4
  br label %249

83:                                               ; preds = %73
  %84 = invoke noundef zeroext i1 @_ZNK3imp4Edge11connectedToERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %10, ptr noundef nonnull align 8 dereferenceable(104) %16)
          to label %85 unwind label %79

85:                                               ; preds = %83
  br i1 %84, label %87, label %86

86:                                               ; preds = %85
  store i32 5, ptr %9, align 4
  br label %239

87:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 104, ptr %17) #7
  invoke void @_ZN3imp4EdgeC1Ev(ptr noundef nonnull align 8 dereferenceable(104) %17)
          to label %88 unwind label %98

88:                                               ; preds = %87
  %89 = getelementptr inbounds %"class.imp::Edge", ptr %10, i32 0, i32 1
  %90 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 1
  %91 = invoke noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %89, ptr noundef nonnull align 8 dereferenceable(36) %90)
          to label %92 unwind label %102

92:                                               ; preds = %88
  br i1 %91, label %93, label %110

93:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 104, ptr %18) #7
  %94 = getelementptr inbounds %"class.imp::Edge", ptr %10, i32 0, i32 2
  %95 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 2
  invoke void @_ZN3imp4EdgeC1ERKNS_4Vec3ES3_(ptr noundef nonnull align 8 dereferenceable(104) %18, ptr noundef nonnull align 8 dereferenceable(36) %94, ptr noundef nonnull align 8 dereferenceable(36) %95)
          to label %96 unwind label %106

96:                                               ; preds = %93
  %97 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZN3imp4EdgeaSERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %17, ptr noundef nonnull align 8 dereferenceable(104) %18) #7
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %18) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %18) #7
  br label %155

98:                                               ; preds = %87
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %11, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %12, align 4
  br label %248

102:                                              ; preds = %138, %124, %110, %88
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %11, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %12, align 4
  br label %247

106:                                              ; preds = %93
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %11, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 104, ptr %18) #7
  br label %247

110:                                              ; preds = %92
  %111 = getelementptr inbounds %"class.imp::Edge", ptr %10, i32 0, i32 1
  %112 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 2
  %113 = invoke noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %111, ptr noundef nonnull align 8 dereferenceable(36) %112)
          to label %114 unwind label %102

114:                                              ; preds = %110
  br i1 %113, label %115, label %124

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 104, ptr %19) #7
  %116 = getelementptr inbounds %"class.imp::Edge", ptr %10, i32 0, i32 2
  %117 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 1
  invoke void @_ZN3imp4EdgeC1ERKNS_4Vec3ES3_(ptr noundef nonnull align 8 dereferenceable(104) %19, ptr noundef nonnull align 8 dereferenceable(36) %116, ptr noundef nonnull align 8 dereferenceable(36) %117)
          to label %118 unwind label %120

118:                                              ; preds = %115
  %119 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZN3imp4EdgeaSERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %17, ptr noundef nonnull align 8 dereferenceable(104) %19) #7
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %19) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %19) #7
  br label %154

120:                                              ; preds = %115
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %11, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 104, ptr %19) #7
  br label %247

124:                                              ; preds = %114
  %125 = getelementptr inbounds %"class.imp::Edge", ptr %10, i32 0, i32 2
  %126 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 1
  %127 = invoke noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %125, ptr noundef nonnull align 8 dereferenceable(36) %126)
          to label %128 unwind label %102

128:                                              ; preds = %124
  br i1 %127, label %129, label %138

129:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 104, ptr %20) #7
  %130 = getelementptr inbounds %"class.imp::Edge", ptr %10, i32 0, i32 1
  %131 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 2
  invoke void @_ZN3imp4EdgeC1ERKNS_4Vec3ES3_(ptr noundef nonnull align 8 dereferenceable(104) %20, ptr noundef nonnull align 8 dereferenceable(36) %130, ptr noundef nonnull align 8 dereferenceable(36) %131)
          to label %132 unwind label %134

132:                                              ; preds = %129
  %133 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZN3imp4EdgeaSERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %17, ptr noundef nonnull align 8 dereferenceable(104) %20) #7
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %20) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %20) #7
  br label %153

134:                                              ; preds = %129
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %11, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 104, ptr %20) #7
  br label %247

138:                                              ; preds = %128
  %139 = getelementptr inbounds %"class.imp::Edge", ptr %10, i32 0, i32 2
  %140 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 2
  %141 = invoke noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %139, ptr noundef nonnull align 8 dereferenceable(36) %140)
          to label %142 unwind label %102

142:                                              ; preds = %138
  br i1 %141, label %143, label %152

143:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 104, ptr %21) #7
  %144 = getelementptr inbounds %"class.imp::Edge", ptr %10, i32 0, i32 1
  %145 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 1
  invoke void @_ZN3imp4EdgeC1ERKNS_4Vec3ES3_(ptr noundef nonnull align 8 dereferenceable(104) %21, ptr noundef nonnull align 8 dereferenceable(36) %144, ptr noundef nonnull align 8 dereferenceable(36) %145)
          to label %146 unwind label %148

146:                                              ; preds = %143
  %147 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZN3imp4EdgeaSERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %17, ptr noundef nonnull align 8 dereferenceable(104) %21) #7
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %21) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %21) #7
  br label %152

148:                                              ; preds = %143
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %11, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 104, ptr %21) #7
  br label %247

152:                                              ; preds = %146, %142
  br label %153

153:                                              ; preds = %152, %132
  br label %154

154:                                              ; preds = %153, %118
  br label %155

155:                                              ; preds = %154, %96
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %156) #7
  %158 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %24, i32 0, i32 0
  store ptr %157, ptr %158, align 8
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %159) #7
  %161 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %25, i32 0, i32 0
  store ptr %160, ptr %161, align 8
  %162 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %24, i32 0, i32 0
  %163 = load ptr, ptr %162, align 8
  %164 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %25, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8
  %166 = invoke ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKN3imp4EdgeESt6vectorIS3_SaIS3_EEEES3_ET_SA_SA_RKT0_(ptr %163, ptr %165, ptr noundef nonnull align 8 dereferenceable(104) %17)
          to label %167 unwind label %177

167:                                              ; preds = %155
  %168 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %23, i32 0, i32 0
  store ptr %166, ptr %168, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %169) #7
  %171 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %26, i32 0, i32 0
  store ptr %170, ptr %171, align 8
  %172 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %173 = zext i1 %172 to i8
  store i8 %173, ptr %22, align 1, !tbaa !9
  %174 = load i8, ptr %22, align 1, !tbaa !9, !range !11, !noundef !12
  %175 = trunc i8 %174 to i1
  br i1 %175, label %181, label %176

176:                                              ; preds = %167
  store i32 5, ptr %9, align 4
  br label %236

177:                                              ; preds = %155
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %11, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %246

181:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 160, ptr %27) #7
  invoke void @_ZN3imp7TripletC2Ev(ptr noundef nonnull align 8 dereferenceable(160) %27)
          to label %182 unwind label %202

182:                                              ; preds = %181
  %183 = getelementptr inbounds %"class.imp::Edge", ptr %10, i32 0, i32 1
  %184 = getelementptr inbounds %"struct.imp::Triplet", ptr %27, i32 0, i32 0
  %185 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %184, ptr noundef nonnull align 8 dereferenceable(36) %183) #7
  %186 = getelementptr inbounds %"class.imp::Edge", ptr %10, i32 0, i32 2
  %187 = getelementptr inbounds %"struct.imp::Triplet", ptr %27, i32 0, i32 1
  %188 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %187, ptr noundef nonnull align 8 dereferenceable(36) %186) #7
  %189 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 1
  %190 = getelementptr inbounds %"class.imp::Edge", ptr %10, i32 0, i32 1
  %191 = invoke noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %189, ptr noundef nonnull align 8 dereferenceable(36) %190)
          to label %192 unwind label %206

192:                                              ; preds = %182
  br i1 %191, label %198, label %193

193:                                              ; preds = %192
  %194 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 1
  %195 = getelementptr inbounds %"class.imp::Edge", ptr %10, i32 0, i32 2
  %196 = invoke noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %194, ptr noundef nonnull align 8 dereferenceable(36) %195)
          to label %197 unwind label %206

197:                                              ; preds = %193
  br i1 %196, label %198, label %210

198:                                              ; preds = %197, %192
  %199 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 2
  %200 = getelementptr inbounds %"struct.imp::Triplet", ptr %27, i32 0, i32 2
  %201 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %200, ptr noundef nonnull align 8 dereferenceable(36) %199) #7
  br label %214

202:                                              ; preds = %181
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %11, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %12, align 4
  br label %245

206:                                              ; preds = %229, %193, %182
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %11, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %12, align 4
  br label %244

210:                                              ; preds = %197
  %211 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 1
  %212 = getelementptr inbounds %"struct.imp::Triplet", ptr %27, i32 0, i32 2
  %213 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %212, ptr noundef nonnull align 8 dereferenceable(36) %211) #7
  br label %214

214:                                              ; preds = %210, %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %215 = call ptr @_ZNSt6vectorIN3imp7TripletESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %216 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %29, i32 0, i32 0
  store ptr %215, ptr %216, align 8
  %217 = call ptr @_ZNSt6vectorIN3imp7TripletESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %218 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %30, i32 0, i32 0
  store ptr %217, ptr %218, align 8
  %219 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %29, i32 0, i32 0
  %220 = load ptr, ptr %219, align 8
  %221 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %30, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8
  %223 = invoke ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPN3imp7TripletESt6vectorIS3_SaIS3_EEEES3_ET_S9_S9_RKT0_(ptr %220, ptr %222, ptr noundef nonnull align 8 dereferenceable(160) %27)
          to label %224 unwind label %231

224:                                              ; preds = %214
  %225 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %28, i32 0, i32 0
  store ptr %223, ptr %225, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %226 = call ptr @_ZNSt6vectorIN3imp7TripletESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %227 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %31, i32 0, i32 0
  store ptr %226, ptr %227, align 8
  %228 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPN3imp7TripletESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br i1 %228, label %229, label %235

229:                                              ; preds = %224
  invoke void @_ZNSt6vectorIN3imp7TripletESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(160) %27)
          to label %230 unwind label %206

230:                                              ; preds = %229
  br label %235

231:                                              ; preds = %214
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %11, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %244

235:                                              ; preds = %230, %224
  call void @_ZN3imp7TripletD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %27) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %27) #7
  store i32 0, ptr %9, align 4
  br label %236

236:                                              ; preds = %235, %176
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %17) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %17) #7
  %237 = load i32, ptr %9, align 4
  switch i32 %237, label %239 [
    i32 0, label %238
  ]

238:                                              ; preds = %236
  store i32 0, ptr %9, align 4
  br label %239

239:                                              ; preds = %238, %236, %86, %74
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %16) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %16) #7
  %240 = load i32, ptr %9, align 4
  switch i32 %240, label %320 [
    i32 0, label %241
    i32 5, label %242
  ]

241:                                              ; preds = %239
  br label %242

242:                                              ; preds = %241, %239
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %62

244:                                              ; preds = %231, %206
  call void @_ZN3imp7TripletD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %27) #7
  br label %245

245:                                              ; preds = %244, %202
  call void @llvm.lifetime.end.p0(i64 160, ptr %27) #7
  br label %246

246:                                              ; preds = %245, %177
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %247

247:                                              ; preds = %246, %148, %134, %120, %106, %102
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %17) #7
  br label %248

248:                                              ; preds = %247, %98
  call void @llvm.lifetime.end.p0(i64 104, ptr %17) #7
  br label %249

249:                                              ; preds = %248, %79
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %16) #7
  br label %250

250:                                              ; preds = %249, %75
  call void @llvm.lifetime.end.p0(i64 104, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %10) #7
  br label %254

251:                                              ; preds = %64
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %10) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %10) #7
  br label %252

252:                                              ; preds = %251
  %253 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br label %49

254:                                              ; preds = %250, %65
  call void @llvm.lifetime.end.p0(i64 104, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %314

255:                                              ; preds = %51
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #7
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  store ptr %5, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %256 = load ptr, ptr %33, align 8, !tbaa !5
  %257 = call ptr @_ZNSt6vectorIN3imp7TripletESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %256) #7
  %258 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %34, i32 0, i32 0
  store ptr %257, ptr %258, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %259 = load ptr, ptr %33, align 8, !tbaa !5
  %260 = call ptr @_ZNSt6vectorIN3imp7TripletESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %259) #7
  %261 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %35, i32 0, i32 0
  store ptr %260, ptr %261, align 8
  br label %262

262:                                              ; preds = %275, %255
  %263 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3imp7TripletESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  br i1 %263, label %265, label %264

264:                                              ; preds = %262
  store i32 6, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %299

265:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 160, ptr %36) #7
  %266 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3imp7TripletESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  call void @_ZN3imp7TripletC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(160) %36, ptr noundef nonnull align 8 dereferenceable(160) %266) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %37) #7
  invoke void @_ZN3imp4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %37)
          to label %267 unwind label %277

267:                                              ; preds = %265
  %268 = getelementptr inbounds %"struct.imp::Triplet", ptr %36, i32 0, i32 0
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %38, ptr noundef nonnull align 8 dereferenceable(36) %268) #7
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef %38)
          to label %269 unwind label %281

269:                                              ; preds = %267
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %38) #7
  %270 = getelementptr inbounds %"struct.imp::Triplet", ptr %36, i32 0, i32 1
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %39, ptr noundef nonnull align 8 dereferenceable(36) %270) #7
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef %39)
          to label %271 unwind label %285

271:                                              ; preds = %269
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %39) #7
  %272 = getelementptr inbounds %"struct.imp::Triplet", ptr %36, i32 0, i32 2
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %40, ptr noundef nonnull align 8 dereferenceable(36) %272) #7
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef %40)
          to label %273 unwind label %289

273:                                              ; preds = %271
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %40) #7
  invoke void @_ZNSt6vectorIN3imp4PathESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(48) %37)
          to label %274 unwind label %293

274:                                              ; preds = %273
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #7
  call void @_ZN3imp7TripletD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %36) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %36) #7
  br label %275

275:                                              ; preds = %274
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3imp7TripletESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  br label %262

277:                                              ; preds = %265
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %11, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %12, align 4
  br label %298

281:                                              ; preds = %267
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %11, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %12, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %38) #7
  br label %297

285:                                              ; preds = %269
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %11, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %12, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %39) #7
  br label %297

289:                                              ; preds = %271
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %11, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %12, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %40) #7
  br label %297

293:                                              ; preds = %273
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %11, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %12, align 4
  br label %297

297:                                              ; preds = %293, %289, %285, %281
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #7
  br label %298

298:                                              ; preds = %297, %277
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #7
  call void @_ZN3imp7TripletD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %36) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %313

299:                                              ; preds = %264
  store i1 false, ptr %41, align 1
  invoke void @_ZN3imp7PolygonC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0)
          to label %300 unwind label %303

300:                                              ; preds = %299
  invoke void @_ZN3imp7Polygon8addPathsERKSt6vectorINS_4PathESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %301 unwind label %307

301:                                              ; preds = %300
  store i1 true, ptr %41, align 1
  store i32 1, ptr %9, align 4
  %302 = load i1, ptr %41, align 1
  br i1 %302, label %312, label %311

303:                                              ; preds = %299
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %11, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %12, align 4
  br label %313

307:                                              ; preds = %300
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %11, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %12, align 4
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  br label %313

311:                                              ; preds = %301
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  br label %312

312:                                              ; preds = %311, %301
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #7
  call void @_ZNSt6vectorIN3imp7TripletESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  ret void

313:                                              ; preds = %307, %303, %298
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #7
  br label %314

314:                                              ; preds = %313, %254
  call void @_ZNSt6vectorIN3imp7TripletESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  br label %315

315:                                              ; preds = %314
  %316 = load ptr, ptr %11, align 8
  %317 = load i32, ptr %12, align 4
  %318 = insertvalue { ptr, i32 } poison, ptr %316, 0
  %319 = insertvalue { ptr, i32 } %318, i32 %317, 1
  resume { ptr, i32 } %319

320:                                              ; preds = %239
  unreachable
}

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

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

declare void @_ZN3imp7Polygon8addPathsERKSt6vectorINS_4PathESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

!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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}


; 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.imp::Polygon" = type { %"class.imp::Object", %"class.std::vector.12" }
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl" }
%"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl" = type { %"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl_data" }
%"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<imp::Triplet, std::allocator<imp::Triplet>>::_Vector_impl" }
%"struct.std::_Vector_base<imp::Triplet, std::allocator<imp::Triplet>>::_Vector_impl" = type { %"struct.std::_Vector_base<imp::Triplet, std::allocator<imp::Triplet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<imp::Triplet, std::allocator<imp::Triplet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.22" = type { ptr }
%"class.imp::Edge" = type { %"class.imp::Object", %"class.imp::Vec3", %"class.imp::Vec3" }
%"class.imp::Vec3" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x float] }>
%"struct.imp::Triplet" = type { %"class.imp::Vec3", %"class.imp::Vec3", %"class.imp::Vec3", %"class.imp::Vec3" }
%"class.__gnu_cxx::__normal_iterator.23" = type { ptr }
%"class.imp::Path" = type { %"class.imp::Object", %"class.std::vector.24" }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<imp::Vec3, std::allocator<imp::Vec3>>::_Vector_impl" }
%"struct.std::_Vector_base<imp::Vec3, std::allocator<imp::Vec3>>::_Vector_impl" = type { %"struct.std::_Vector_base<imp::Vec3, std::allocator<imp::Vec3>>::_Vector_impl_data" }
%"struct.std::_Vector_base<imp::Vec3, std::allocator<imp::Vec3>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare void @_ZN3imp4EdgeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #3

declare noundef zeroext i1 @_ZNK3imp4EdgeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #3

declare noundef zeroext i1 @_ZNK3imp4Edge11connectedToERKS0_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #3

declare void @_ZN3imp4EdgeC1Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #3

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

declare void @_ZN3imp4EdgeC1ERKNS_4Vec3ES3_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKN3imp4EdgeESt6vectorIS3_SaIS3_EEEES3_ET_SA_SA_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #4

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPN3imp7TripletESt6vectorIS3_SaIS3_EEEES3_ET_S9_S9_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #4

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

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

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

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

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

declare void @_ZN3imp7PolygonC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3imp7TripletC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #2 align 2

declare void @_ZN3imp4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3

declare void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #2 align 2

; Function Attrs: nounwind
declare void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6

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

; Function Attrs: nounwind
declare void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp15edges2TrianglesERKSt6vectorINS_4EdgeESaIS1_EE(ptr dead_on_unwind noalias writable sret(%"class.imp::Polygon") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.0", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %6 = alloca %"class.imp::Edge", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %9 = alloca %"class.imp::Edge", align 8
  %10 = alloca %"class.imp::Edge", align 8
  %11 = alloca %"class.imp::Edge", align 8
  %12 = alloca %"class.imp::Edge", align 8
  %13 = alloca %"class.imp::Edge", align 8
  %14 = alloca %"class.imp::Edge", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %17 = alloca %"struct.imp::Triplet", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %20 = alloca %"class.std::vector.12", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %23 = alloca %"struct.imp::Triplet", align 8
  %24 = alloca %"class.imp::Path", align 8
  %25 = alloca %"class.imp::Vec3", align 8
  %26 = alloca %"class.imp::Vec3", align 8
  %27 = alloca %"class.imp::Vec3", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt6vectorIN3imp7TripletESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %28 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %28, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %29 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %29, ptr %5, align 8
  %30 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br i1 %30, label %.lr.ph45, label %._crit_edge46

.lr.ph45:                                         ; preds = %2
  %31 = getelementptr inbounds i8, ptr %6, i64 24
  %32 = getelementptr inbounds i8, ptr %9, i64 24
  %33 = getelementptr inbounds i8, ptr %9, i64 64
  %34 = getelementptr inbounds i8, ptr %6, i64 64
  %35 = getelementptr inbounds i8, ptr %17, i64 40
  %36 = getelementptr inbounds i8, ptr %17, i64 80
  br label %42

._crit_edge46:                                    ; preds = %._crit_edge, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #7
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  %37 = call ptr @_ZNSt6vectorIN3imp7TripletESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  store ptr %37, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %38 = call ptr @_ZNSt6vectorIN3imp7TripletESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  store ptr %38, ptr %22, align 8
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3imp7TripletESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br i1 %39, label %.lr.ph48, label %._crit_edge49

.lr.ph48:                                         ; preds = %._crit_edge46
  %40 = getelementptr inbounds i8, ptr %23, i64 40
  %41 = getelementptr inbounds i8, ptr %23, i64 80
  br label %137

42:                                               ; preds = %.lr.ph45, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %6) #7
  %43 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  invoke void @_ZN3imp4EdgeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %6, ptr noundef nonnull align 8 dereferenceable(104) %43)
          to label %44 unwind label %50

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %45 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %45, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %46 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %46, ptr %8, align 8
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br i1 %47, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %127, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %6) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %6) #7
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br i1 %49, label %42, label %._crit_edge46

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

.lr.ph:                                           ; preds = %44, %127
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %9) #7
  %52 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  invoke void @_ZN3imp4EdgeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %9, ptr noundef nonnull align 8 dereferenceable(104) %52)
          to label %53 unwind label %56

53:                                               ; preds = %.lr.ph
  %54 = invoke noundef zeroext i1 @_ZNK3imp4EdgeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %6, ptr noundef nonnull align 8 dereferenceable(104) %9)
          to label %55 unwind label %58

55:                                               ; preds = %53
  br i1 %54, label %127, label %60

56:                                               ; preds = %.lr.ph
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %135

58:                                               ; preds = %60, %53
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %134

60:                                               ; preds = %55
  %61 = invoke noundef zeroext i1 @_ZNK3imp4Edge11connectedToERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %6, ptr noundef nonnull align 8 dereferenceable(104) %9)
          to label %62 unwind label %58

62:                                               ; preds = %60
  br i1 %61, label %63, label %127

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %10) #7
  invoke void @_ZN3imp4EdgeC1Ev(ptr noundef nonnull align 8 dereferenceable(104) %10)
          to label %64 unwind label %69

64:                                               ; preds = %63
  %65 = call noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %31, ptr noundef nonnull align 8 dereferenceable(36) %32)
  br i1 %65, label %66, label %73

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %11) #7
  invoke void @_ZN3imp4EdgeC1ERKNS_4Vec3ES3_(ptr noundef nonnull align 8 dereferenceable(104) %11, ptr noundef nonnull align 8 dereferenceable(36) %34, ptr noundef nonnull align 8 dereferenceable(36) %33)
          to label %67 unwind label %71

67:                                               ; preds = %66
  %68 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZN3imp4EdgeaSERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %10, ptr noundef nonnull align 8 dereferenceable(104) %11) #7
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %11) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %11) #7
  br label %94

69:                                               ; preds = %63
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %133

71:                                               ; preds = %66
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %11) #7
  br label %132

73:                                               ; preds = %64
  %74 = call noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %31, ptr noundef nonnull align 8 dereferenceable(36) %33)
  br i1 %74, label %75, label %80

75:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %12) #7
  invoke void @_ZN3imp4EdgeC1ERKNS_4Vec3ES3_(ptr noundef nonnull align 8 dereferenceable(104) %12, ptr noundef nonnull align 8 dereferenceable(36) %34, ptr noundef nonnull align 8 dereferenceable(36) %32)
          to label %76 unwind label %78

76:                                               ; preds = %75
  %77 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZN3imp4EdgeaSERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %10, ptr noundef nonnull align 8 dereferenceable(104) %12) #7
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %12) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %12) #7
  br label %94

78:                                               ; preds = %75
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %12) #7
  br label %132

80:                                               ; preds = %73
  %81 = call noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %34, ptr noundef nonnull align 8 dereferenceable(36) %32)
  br i1 %81, label %82, label %87

82:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %13) #7
  invoke void @_ZN3imp4EdgeC1ERKNS_4Vec3ES3_(ptr noundef nonnull align 8 dereferenceable(104) %13, ptr noundef nonnull align 8 dereferenceable(36) %31, ptr noundef nonnull align 8 dereferenceable(36) %33)
          to label %83 unwind label %85

83:                                               ; preds = %82
  %84 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZN3imp4EdgeaSERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %10, ptr noundef nonnull align 8 dereferenceable(104) %13) #7
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %13) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %13) #7
  br label %94

85:                                               ; preds = %82
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %13) #7
  br label %132

87:                                               ; preds = %80
  %88 = call noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %34, ptr noundef nonnull align 8 dereferenceable(36) %33)
  br i1 %88, label %89, label %94

89:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %14) #7
  invoke void @_ZN3imp4EdgeC1ERKNS_4Vec3ES3_(ptr noundef nonnull align 8 dereferenceable(104) %14, ptr noundef nonnull align 8 dereferenceable(36) %31, ptr noundef nonnull align 8 dereferenceable(36) %32)
          to label %90 unwind label %92

90:                                               ; preds = %89
  %91 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZN3imp4EdgeaSERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %10, ptr noundef nonnull align 8 dereferenceable(104) %14) #7
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %14) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %14) #7
  br label %94

92:                                               ; preds = %89
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %14) #7
  br label %132

94:                                               ; preds = %76, %87, %90, %83, %67
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %95 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %96 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %97 = invoke ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKN3imp4EdgeESt6vectorIS3_SaIS3_EEEES3_ET_SA_SA_RKT0_(ptr %95, ptr %96, ptr noundef nonnull align 8 dereferenceable(104) %10)
          to label %98 unwind label %101

98:                                               ; preds = %94
  store ptr %97, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %99 = call ptr @_ZNKSt6vectorIN3imp4EdgeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %99, ptr %16, align 8
  %100 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br i1 %100, label %103, label %126

101:                                              ; preds = %94
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %132

103:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %17) #7
  invoke void @_ZN3imp7TripletC2Ev(ptr noundef nonnull align 8 dereferenceable(160) %17)
          to label %104 unwind label %110

104:                                              ; preds = %103
  %105 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %17, ptr noundef nonnull align 8 dereferenceable(36) %31) #7
  %106 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %35, ptr noundef nonnull align 8 dereferenceable(36) %34) #7
  %107 = call noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %32, ptr noundef nonnull align 8 dereferenceable(36) %31)
  br i1 %107, label %114, label %108

108:                                              ; preds = %104
  %109 = call noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %32, ptr noundef nonnull align 8 dereferenceable(36) %34)
  %spec.select = select i1 %109, ptr %33, ptr %32
  br label %114

110:                                              ; preds = %103
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %131

112:                                              ; preds = %122
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %130

114:                                              ; preds = %108, %104
  %.sink = phi ptr [ %33, %104 ], [ %spec.select, %108 ]
  %115 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %36, ptr noundef nonnull align 8 dereferenceable(36) %.sink) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %116 = call ptr @_ZNSt6vectorIN3imp7TripletESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %117 = call ptr @_ZNSt6vectorIN3imp7TripletESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %118 = invoke ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPN3imp7TripletESt6vectorIS3_SaIS3_EEEES3_ET_S9_S9_RKT0_(ptr %116, ptr %117, ptr noundef nonnull align 8 dereferenceable(160) %17)
          to label %119 unwind label %123

119:                                              ; preds = %114
  store ptr %118, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %120 = call ptr @_ZNSt6vectorIN3imp7TripletESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  store ptr %120, ptr %19, align 8
  %121 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPN3imp7TripletESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  br i1 %121, label %122, label %125

122:                                              ; preds = %119
  invoke void @_ZNSt6vectorIN3imp7TripletESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(160) %17)
          to label %125 unwind label %112

123:                                              ; preds = %114
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  br label %130

125:                                              ; preds = %122, %119
  call void @_ZN3imp7TripletD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %17) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %17) #7
  br label %126

126:                                              ; preds = %98, %125
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %10) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %10) #7
  br label %127

127:                                              ; preds = %62, %55, %126
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %9) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %9) #7
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %129 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3imp4EdgeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br i1 %129, label %.lr.ph, label %._crit_edge

130:                                              ; preds = %123, %112
  %.pn34 = phi { ptr, i32 } [ %113, %112 ], [ %124, %123 ]
  call void @_ZN3imp7TripletD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %17) #7
  br label %131

131:                                              ; preds = %130, %110
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %130 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %17) #7
  br label %132

132:                                              ; preds = %101, %131, %92, %85, %78, %71
  %.pn34.pn.pn.pn = phi { ptr, i32 } [ %72, %71 ], [ %79, %78 ], [ %86, %85 ], [ %93, %92 ], [ %.pn34.pn, %131 ], [ %102, %101 ]
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %10) #7
  br label %133

133:                                              ; preds = %132, %69
  %.pn34.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn, %132 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %10) #7
  br label %134

134:                                              ; preds = %133, %58
  %.pn34.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn.pn, %133 ], [ %59, %58 ]
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %9) #7
  br label %135

135:                                              ; preds = %134, %56
  %.pn34.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn.pn.pn, %134 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %6) #7
  br label %136

136:                                              ; preds = %135, %50
  %.pn34.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn.pn.pn.pn, %135 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %165

._crit_edge49:                                    ; preds = %143, %._crit_edge46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  invoke void @_ZN3imp7PolygonC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0)
          to label %158 unwind label %159

137:                                              ; preds = %.lr.ph48, %143
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %23) #7
  %138 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3imp7TripletESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @_ZN3imp7TripletC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(160) %23, ptr noundef nonnull align 8 dereferenceable(160) %138) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %24) #7
  invoke void @_ZN3imp4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %139 unwind label %146

139:                                              ; preds = %137
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %25, ptr noundef nonnull align 8 dereferenceable(36) %23) #7
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull %25)
          to label %140 unwind label %148

140:                                              ; preds = %139
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %25) #7
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %26, ptr noundef nonnull align 8 dereferenceable(36) %40) #7
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull %26)
          to label %141 unwind label %150

141:                                              ; preds = %140
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #7
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %27, ptr noundef nonnull align 8 dereferenceable(36) %41) #7
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull %27)
          to label %142 unwind label %152

142:                                              ; preds = %141
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %27) #7
  invoke void @_ZNSt6vectorIN3imp4PathESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %143 unwind label %154

143:                                              ; preds = %142
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %24) #7
  call void @_ZN3imp7TripletD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %23) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %23) #7
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3imp7TripletESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  %145 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3imp7TripletESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br i1 %145, label %137, label %._crit_edge49

146:                                              ; preds = %137
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %157

148:                                              ; preds = %139
  %149 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %25) #7
  br label %156

150:                                              ; preds = %140
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #7
  br label %156

152:                                              ; preds = %141
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %27) #7
  br label %156

154:                                              ; preds = %142
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %156

156:                                              ; preds = %154, %152, %150, %148
  %.pn = phi { ptr, i32 } [ %155, %154 ], [ %153, %152 ], [ %151, %150 ], [ %149, %148 ]
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #7
  br label %157

157:                                              ; preds = %156, %146
  %.pn.pn = phi { ptr, i32 } [ %.pn, %156 ], [ %147, %146 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %24) #7
  call void @_ZN3imp7TripletD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %23) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  br label %164

158:                                              ; preds = %._crit_edge49
  invoke void @_ZN3imp7Polygon8addPathsERKSt6vectorINS_4PathESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %163 unwind label %161

159:                                              ; preds = %._crit_edge49
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %164

161:                                              ; preds = %158
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  br label %164

163:                                              ; preds = %158
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  call void @_ZNSt6vectorIN3imp7TripletESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  ret void

164:                                              ; preds = %161, %159, %157
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %157 ], [ %162, %161 ], [ %160, %159 ]
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  br label %165

165:                                              ; preds = %164, %136
  %.pn34.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn.pn.pn.pn.pn, %136 ], [ %.pn.pn.pn, %164 ]
  call void @_ZNSt6vectorIN3imp7TripletESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn34.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

declare void @_ZN3imp7Polygon8addPathsERKSt6vectorINS_4PathESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

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

!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)"}


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