; LLVM IR from Lut1n/ImpGears :: src/ImpGears/Geometry/Polyhedron.ll (ZN3imp10Polyhedron7cutFaceERKNS_4PathENS_4EdgeE)

; 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::Vec3" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x float] }>
%"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.imp::Vec" = type <{ %"class.imp::Object", [3 x float], [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, imp::Vec3>, std::_Select1st<std::pair<const int, imp::Vec3>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, imp::Vec3>, std::_Select1st<std::pair<const int, imp::Vec3>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"class.imp::Path" = type { %"class.imp::Object", %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }
%"class.imp::Edge" = type { %"class.imp::Object", %"class.imp::Vec3", %"class.imp::Vec3" }
%"struct.std::pair" = type { i32, [4 x i8], %"class.imp::Vec3" }

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

; 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 noundef float @_ZN3imp6signOfEf(float noundef) #1

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

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

; 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

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZNK3imp4Path6normalEv(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #1 align 2

declare void @_ZNK3imp4PathixEi(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #5

; 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 float @_ZSt3absf(float noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp3mixINS_4Vec3EEET_RKS2_S4_f(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36), float noundef) #4

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

declare noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36), float noundef) unnamed_addr #4 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 uwtable
declare dso_local void @_ZN3imp16removeDuplicatedERSt6vectorINS_4Vec3ESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp10Polyhedron7cutFaceERKNS_4PathENS_4EdgeE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca %"class.std::map", align 8
  %9 = alloca %"class.imp::Vec3", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.imp::Vec3", align 8
  %13 = alloca %"class.imp::Vec", align 8
  %14 = alloca %"class.imp::Vec3", align 8
  %15 = alloca %"class.imp::Vec3", align 8
  %16 = alloca float, align 4
  %17 = alloca %"class.imp::Vec", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.imp::Vec3", align 8
  %20 = alloca float, align 4
  %21 = alloca %"class.imp::Vec", align 8
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca %"class.imp::Vec3", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %27 = alloca i32, align 4
  %28 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.imp::Path", align 8
  %31 = alloca i32, align 4
  %32 = alloca %"class.imp::Vec3", align 8
  %33 = alloca %"class.imp::Vec3", align 8
  %34 = alloca %"class.imp::Vec3", align 8
  %35 = alloca i32, align 4
  %36 = alloca %"class.imp::Vec3", align 8
  %37 = alloca %"class.imp::Path", align 8
  %38 = alloca i32, align 4
  %39 = alloca %"class.imp::Vec3", align 8
  %40 = alloca %"class.imp::Vec3", align 8
  %41 = alloca %"class.imp::Vec3", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  store i1 false, ptr %7, align 1
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #6
  call void @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #6
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK3imp4Path6normalEv(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %42)
          to label %43 unwind label %66

43:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #6
  %44 = getelementptr inbounds %"class.imp::Edge", ptr %2, i32 0, i32 2
  %45 = getelementptr inbounds %"class.imp::Edge", ptr %2, i32 0, i32 1
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %13, ptr noundef nonnull align 8 dereferenceable(36) %44, ptr noundef nonnull align 8 dereferenceable(36) %45)
          to label %46 unwind label %70

46:                                               ; preds = %43
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %12, ptr noundef nonnull align 8 dereferenceable(36) %13, float noundef 1.000000e+00)
          to label %47 unwind label %74

47:                                               ; preds = %46
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
  %48 = invoke noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36) %12)
          to label %49 unwind label %79

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #6
  invoke void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %14, ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %12)
          to label %50 unwind label %83

50:                                               ; preds = %49
  %51 = invoke noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36) %14)
          to label %52 unwind label %87

52:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #6
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %15, ptr noundef nonnull align 8 dereferenceable(48) %53, i32 noundef -1)
          to label %54 unwind label %91

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #6
  %55 = getelementptr inbounds %"class.imp::Edge", ptr %2, i32 0, i32 1
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %17, ptr noundef nonnull align 8 dereferenceable(36) %15, ptr noundef nonnull align 8 dereferenceable(36) %55)
          to label %56 unwind label %95

56:                                               ; preds = %54
  %57 = invoke noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef nonnull align 8 dereferenceable(36) %17)
          to label %58 unwind label %99

58:                                               ; preds = %56
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %17) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  store float %57, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %59

59:                                               ; preds = %191, %58
  %60 = load i32, ptr %18, align 4, !tbaa !11
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = invoke noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %61)
          to label %63 unwind label %104

63:                                               ; preds = %59
  %64 = icmp slt i32 %60, %62
  br i1 %64, label %108, label %65

65:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %197

66:                                               ; preds = %3
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %10, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %11, align 4
  br label %365

70:                                               ; preds = %43
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %10, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %11, align 4
  br label %78

74:                                               ; preds = %46
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %10, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %11, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #6
  br label %78

78:                                               ; preds = %74, %70
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
  br label %364

79:                                               ; preds = %47
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %10, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %11, align 4
  br label %363

83:                                               ; preds = %49
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %10, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %11, align 4
  br label %362

87:                                               ; preds = %50
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %10, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %11, align 4
  br label %361

91:                                               ; preds = %52
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %10, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %11, align 4
  br label %360

95:                                               ; preds = %54
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %10, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %11, align 4
  br label %103

99:                                               ; preds = %56
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %10, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %11, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %17) #6
  br label %103

103:                                              ; preds = %99, %95
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  br label %359

104:                                              ; preds = %59
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %10, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %11, align 4
  br label %196

108:                                              ; preds = %63
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #6
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load i32, ptr %18, align 4, !tbaa !11
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %19, ptr noundef nonnull align 8 dereferenceable(48) %109, i32 noundef %110)
          to label %111 unwind label %156

111:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #6
  %112 = getelementptr inbounds %"class.imp::Edge", ptr %2, i32 0, i32 1
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %21, ptr noundef nonnull align 8 dereferenceable(36) %19, ptr noundef nonnull align 8 dereferenceable(36) %112)
          to label %113 unwind label %160

113:                                              ; preds = %111
  %114 = invoke noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef nonnull align 8 dereferenceable(36) %21)
          to label %115 unwind label %164

115:                                              ; preds = %113
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #6
  store float %114, ptr %20, align 4, !tbaa !9
  %116 = load float, ptr %16, align 4, !tbaa !9
  %117 = fpext float %116 to double
  %118 = fcmp oeq double %117, 0.000000e+00
  br i1 %118, label %129, label %119

119:                                              ; preds = %115
  %120 = load float, ptr %20, align 4, !tbaa !9
  %121 = fpext float %120 to double
  %122 = fcmp oeq double %121, 0.000000e+00
  br i1 %122, label %129, label %123

123:                                              ; preds = %119
  %124 = load float, ptr %16, align 4, !tbaa !9
  %125 = call noundef float @_ZN3imp6signOfEf(float noundef %124)
  %126 = load float, ptr %20, align 4, !tbaa !9
  %127 = call noundef float @_ZN3imp6signOfEf(float noundef %126)
  %128 = fcmp une float %125, %127
  br i1 %128, label %129, label %188

129:                                              ; preds = %123, %119, %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %130 = load float, ptr %16, align 4, !tbaa !9
  %131 = invoke noundef float @_ZSt3absf(float noundef %130)
          to label %132 unwind label %169

132:                                              ; preds = %129
  %133 = load float, ptr %20, align 4, !tbaa !9
  %134 = invoke noundef float @_ZSt3absf(float noundef %133)
          to label %135 unwind label %169

135:                                              ; preds = %132
  %136 = fadd float %131, %134
  store float %136, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %137 = load float, ptr %22, align 4, !tbaa !9
  %138 = fpext float %137 to double
  %139 = fcmp ogt double %138, 0.000000e+00
  br i1 %139, label %140, label %147

140:                                              ; preds = %135
  %141 = load float, ptr %16, align 4, !tbaa !9
  %142 = invoke noundef float @_ZSt3absf(float noundef %141)
          to label %143 unwind label %173

143:                                              ; preds = %140
  %144 = load float, ptr %22, align 4, !tbaa !9
  %145 = fdiv float %142, %144
  %146 = fpext float %145 to double
  br label %148

147:                                              ; preds = %135
  br label %148

148:                                              ; preds = %147, %143
  %149 = phi double [ %146, %143 ], [ 0.000000e+00, %147 ]
  %150 = fptrunc double %149 to float
  store float %150, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #6
  %151 = load float, ptr %23, align 4, !tbaa !9
  invoke void @_ZN3imp3mixINS_4Vec3EEET_RKS2_S4_f(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %24, ptr noundef nonnull align 8 dereferenceable(36) %15, ptr noundef nonnull align 8 dereferenceable(36) %19, float noundef %151)
          to label %152 unwind label %177

152:                                              ; preds = %148
  %153 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %154 unwind label %181

154:                                              ; preds = %152
  %155 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSEOS0_(ptr noundef nonnull align 8 dereferenceable(36) %153, ptr noundef nonnull align 8 dereferenceable(36) %24) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %24) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %188

156:                                              ; preds = %108
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %10, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %11, align 4
  br label %195

160:                                              ; preds = %111
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %10, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %11, align 4
  br label %168

164:                                              ; preds = %113
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %10, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %11, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #6
  br label %168

168:                                              ; preds = %164, %160
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #6
  br label %194

169:                                              ; preds = %132, %129
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %10, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %11, align 4
  br label %187

173:                                              ; preds = %140
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %10, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %11, align 4
  br label %186

177:                                              ; preds = %148
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %10, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %11, align 4
  br label %185

181:                                              ; preds = %152
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %10, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %11, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %24) #6
  br label %185

185:                                              ; preds = %181, %177
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #6
  br label %186

186:                                              ; preds = %185, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %187

187:                                              ; preds = %186, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %194

188:                                              ; preds = %154, %123
  %189 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %15, ptr noundef nonnull align 8 dereferenceable(36) %19) #6
  %190 = load float, ptr %20, align 4, !tbaa !9
  store float %190, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #6
  br label %191

191:                                              ; preds = %188
  %192 = load i32, ptr %18, align 4, !tbaa !11
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %18, align 4, !tbaa !11
  br label %59, !llvm.loop !13

194:                                              ; preds = %187, %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #6
  br label %195

195:                                              ; preds = %194, %156
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #6
  br label %196

196:                                              ; preds = %195, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %359

197:                                              ; preds = %65
  %198 = call noundef i64 @_ZNKSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  %199 = icmp ult i64 %198, 2
  br i1 %199, label %200, label %207

200:                                              ; preds = %197
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN3imp4PathESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %201)
          to label %202 unwind label %203

202:                                              ; preds = %200
  store i1 true, ptr %7, align 1
  store i32 1, ptr %25, align 4
  br label %357

203:                                              ; preds = %200
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %10, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %11, align 4
  br label %359

207:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %208 = call ptr @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  %209 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %26, i32 0, i32 0
  store ptr %208, ptr %209, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %210 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiN3imp4Vec3EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  %211 = getelementptr inbounds %"struct.std::pair", ptr %210, i32 0, i32 0
  %212 = load i32, ptr %211, align 8, !tbaa !15
  store i32 %212, ptr %27, align 4, !tbaa !11
  %213 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiN3imp4Vec3EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %26, i32 noundef 0) #6
  %214 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %28, i32 0, i32 0
  store ptr %213, ptr %214, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %215 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiN3imp4Vec3EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  %216 = getelementptr inbounds %"struct.std::pair", ptr %215, i32 0, i32 0
  %217 = load i32, ptr %216, align 8, !tbaa !15
  store i32 %217, ptr %29, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 48, ptr %30) #6
  invoke void @_ZN3imp4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %30)
          to label %218 unwind label %224

218:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !11
  br label %219

219:                                              ; preds = %233, %218
  %220 = load i32, ptr %31, align 4, !tbaa !11
  %221 = load i32, ptr %27, align 4, !tbaa !11
  %222 = icmp slt i32 %220, %221
  br i1 %222, label %228, label %223

223:                                              ; preds = %219
  store i32 5, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %245

224:                                              ; preds = %207
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %10, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %11, align 4
  br label %356

228:                                              ; preds = %219
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = load i32, ptr %31, align 4, !tbaa !11
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %32, ptr noundef nonnull align 8 dereferenceable(48) %229, i32 noundef %230)
          to label %231 unwind label %236

231:                                              ; preds = %228
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %30, ptr noundef %32)
          to label %232 unwind label %240

232:                                              ; preds = %231
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %32) #6
  br label %233

233:                                              ; preds = %232
  %234 = load i32, ptr %31, align 4, !tbaa !11
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %31, align 4, !tbaa !11
  br label %219, !llvm.loop !23

236:                                              ; preds = %228
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %10, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %11, align 4
  br label %244

240:                                              ; preds = %231
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %10, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %11, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %32) #6
  br label %244

244:                                              ; preds = %240, %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %355

245:                                              ; preds = %223
  %246 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %247 unwind label %260

247:                                              ; preds = %245
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %33, ptr noundef nonnull align 8 dereferenceable(36) %246) #6
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %30, ptr noundef %33)
          to label %248 unwind label %264

248:                                              ; preds = %247
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %33) #6
  %249 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %250 unwind label %260

250:                                              ; preds = %248
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %34, ptr noundef nonnull align 8 dereferenceable(36) %249) #6
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %30, ptr noundef %34)
          to label %251 unwind label %268

251:                                              ; preds = %250
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %34) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %252 = load i32, ptr %29, align 4, !tbaa !11
  store i32 %252, ptr %35, align 4, !tbaa !11
  br label %253

253:                                              ; preds = %281, %251
  %254 = load i32, ptr %35, align 4, !tbaa !11
  %255 = load ptr, ptr %5, align 8, !tbaa !5
  %256 = invoke noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %255)
          to label %257 unwind label %272

257:                                              ; preds = %253
  %258 = icmp slt i32 %254, %256
  br i1 %258, label %276, label %259

259:                                              ; preds = %257
  store i32 8, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %289

260:                                              ; preds = %248, %245
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %10, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %11, align 4
  br label %355

264:                                              ; preds = %247
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %10, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %11, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %33) #6
  br label %355

268:                                              ; preds = %250
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %10, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %11, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %34) #6
  br label %355

272:                                              ; preds = %276, %253
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %10, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %11, align 4
  br label %288

276:                                              ; preds = %257
  %277 = load ptr, ptr %5, align 8, !tbaa !5
  %278 = load i32, ptr %35, align 4, !tbaa !11
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %36, ptr noundef nonnull align 8 dereferenceable(48) %277, i32 noundef %278)
          to label %279 unwind label %272

279:                                              ; preds = %276
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %30, ptr noundef %36)
          to label %280 unwind label %284

280:                                              ; preds = %279
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %36) #6
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %35, align 4, !tbaa !11
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %35, align 4, !tbaa !11
  br label %253, !llvm.loop !24

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

288:                                              ; preds = %284, %272
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %355

289:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 48, ptr %37) #6
  invoke void @_ZN3imp4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %37)
          to label %290 unwind label %297

290:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %291 = load i32, ptr %27, align 4, !tbaa !11
  store i32 %291, ptr %38, align 4, !tbaa !11
  br label %292

292:                                              ; preds = %306, %290
  %293 = load i32, ptr %38, align 4, !tbaa !11
  %294 = load i32, ptr %29, align 4, !tbaa !11
  %295 = icmp slt i32 %293, %294
  br i1 %295, label %301, label %296

296:                                              ; preds = %292
  store i32 11, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %318

297:                                              ; preds = %289
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %10, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %11, align 4
  br label %354

301:                                              ; preds = %292
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = load i32, ptr %38, align 4, !tbaa !11
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %39, ptr noundef nonnull align 8 dereferenceable(48) %302, i32 noundef %303)
          to label %304 unwind label %309

304:                                              ; preds = %301
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef %39)
          to label %305 unwind label %313

305:                                              ; preds = %304
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %39) #6
  br label %306

306:                                              ; preds = %305
  %307 = load i32, ptr %38, align 4, !tbaa !11
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr %38, align 4, !tbaa !11
  br label %292, !llvm.loop !25

309:                                              ; preds = %301
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %10, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %11, align 4
  br label %317

313:                                              ; preds = %304
  %314 = landingpad { ptr, i32 }
          cleanup
  %315 = extractvalue { ptr, i32 } %314, 0
  store ptr %315, ptr %10, align 8
  %316 = extractvalue { ptr, i32 } %314, 1
  store i32 %316, ptr %11, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %39) #6
  br label %317

317:                                              ; preds = %313, %309
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %353

318:                                              ; preds = %296
  %319 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %320 unwind label %334

320:                                              ; preds = %318
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %40, ptr noundef nonnull align 8 dereferenceable(36) %319) #6
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef %40)
          to label %321 unwind label %338

321:                                              ; preds = %320
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %40) #6
  %322 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %323 unwind label %334

323:                                              ; preds = %321
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %41, ptr noundef nonnull align 8 dereferenceable(36) %322) #6
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef %41)
          to label %324 unwind label %342

324:                                              ; preds = %323
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %41) #6
  %325 = getelementptr inbounds %"class.imp::Path", ptr %30, i32 0, i32 1
  invoke void @_ZN3imp16removeDuplicatedERSt6vectorINS_4Vec3ESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %325)
          to label %326 unwind label %334

326:                                              ; preds = %324
  %327 = getelementptr inbounds %"class.imp::Path", ptr %37, i32 0, i32 1
  invoke void @_ZN3imp16removeDuplicatedERSt6vectorINS_4Vec3ESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %327)
          to label %328 unwind label %334

328:                                              ; preds = %326
  %329 = getelementptr inbounds %"class.imp::Path", ptr %30, i32 0, i32 1
  %330 = call noundef i64 @_ZNKSt6vectorIN3imp4Vec3ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %329) #6
  %331 = icmp uge i64 %330, 3
  br i1 %331, label %332, label %346

332:                                              ; preds = %328
  invoke void @_ZNSt6vectorIN3imp4PathESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %30)
          to label %333 unwind label %334

333:                                              ; preds = %332
  br label %346

334:                                              ; preds = %350, %332, %326, %324, %321, %318
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %10, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %11, align 4
  br label %353

338:                                              ; preds = %320
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %10, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %11, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %40) #6
  br label %353

342:                                              ; preds = %323
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %10, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %11, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %41) #6
  br label %353

346:                                              ; preds = %333, %328
  %347 = getelementptr inbounds %"class.imp::Path", ptr %37, i32 0, i32 1
  %348 = call noundef i64 @_ZNKSt6vectorIN3imp4Vec3ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %347) #6
  %349 = icmp uge i64 %348, 3
  br i1 %349, label %350, label %352

350:                                              ; preds = %346
  invoke void @_ZNSt6vectorIN3imp4PathESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %37)
          to label %351 unwind label %334

351:                                              ; preds = %350
  br label %352

352:                                              ; preds = %351, %346
  store i1 true, ptr %7, align 1
  store i32 1, ptr %25, align 4
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #6
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %30) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %357

353:                                              ; preds = %342, %338, %334, %317
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #6
  br label %354

354:                                              ; preds = %353, %297
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #6
  br label %355

355:                                              ; preds = %354, %288, %268, %264, %260, %244
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %30) #6
  br label %356

356:                                              ; preds = %355, %224
  call void @llvm.lifetime.end.p0(i64 48, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %359

357:                                              ; preds = %352, %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %15) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #6
  call void @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #6
  %358 = load i1, ptr %7, align 1
  br i1 %358, label %367, label %366

359:                                              ; preds = %356, %203, %196, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %15) #6
  br label %360

360:                                              ; preds = %359, %91
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #6
  br label %361

361:                                              ; preds = %360, %87
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #6
  br label %362

362:                                              ; preds = %361, %83
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #6
  br label %363

363:                                              ; preds = %362, %79
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #6
  br label %364

364:                                              ; preds = %363, %78
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #6
  br label %365

365:                                              ; preds = %364, %66
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #6
  call void @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #6
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %368

366:                                              ; preds = %357
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %367

367:                                              ; preds = %366, %357
  ret void

368:                                              ; preds = %365
  %369 = load ptr, ptr %10, align 8
  %370 = load i32, ptr %11, align 4
  %371 = insertvalue { ptr, i32 } poison, ptr %369, 0
  %372 = insertvalue { ptr, i32 } %371, i32 %370, 1
  resume { ptr, i32 } %372
}

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 0}
!16 = !{!"_ZTSSt4pairIKiN3imp4Vec3EE", !12, i64 0, !17, i64 8}
!17 = !{!"_ZTSN3imp4Vec3E", !18, i64 0}
!18 = !{!"_ZTSN3imp3VecILi3EfEE", !19, i64 0, !7, i64 24}
!19 = !{!"_ZTSN3imp6ObjectE", !20, i64 8}
!20 = !{!"_ZTSSt10shared_ptrIN3imp6ObjectEE", !21, i64 0}
!21 = !{!"_ZTSSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !22, i64 8}
!22 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}


; 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::Vec3" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x float] }>
%"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.imp::Vec" = type <{ %"class.imp::Object", [3 x float], [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, imp::Vec3>, std::_Select1st<std::pair<const int, imp::Vec3>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, imp::Vec3>, std::_Select1st<std::pair<const int, imp::Vec3>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"class.imp::Path" = type { %"class.imp::Object", %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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

; 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 noundef float @_ZN3imp6signOfEf(float noundef) local_unnamed_addr #1

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

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

; 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

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZNK3imp4Path6normalEv(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #1 align 2

declare void @_ZNK3imp4PathixEi(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #5

; 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 float @_ZSt3absf(float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp3mixINS_4Vec3EEET_RKS2_S4_f(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36), float noundef) local_unnamed_addr #4

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

declare noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36), float noundef) unnamed_addr #4 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 uwtable
declare dso_local void @_ZN3imp16removeDuplicatedERSt6vectorINS_4Vec3ESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp10Polyhedron7cutFaceERKNS_4PathENS_4EdgeE(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef %2) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::map", align 8
  %5 = alloca %"class.imp::Vec3", align 8
  %6 = alloca %"class.imp::Vec3", align 8
  %7 = alloca %"class.imp::Vec", align 8
  %8 = alloca %"class.imp::Vec3", align 8
  %9 = alloca %"class.imp::Vec3", align 8
  %10 = alloca %"class.imp::Vec", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.imp::Vec3", align 8
  %13 = alloca %"class.imp::Vec", align 8
  %14 = alloca %"class.imp::Vec3", align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.imp::Path", align 8
  %19 = alloca %"class.imp::Vec3", align 8
  %20 = alloca %"class.imp::Vec3", align 8
  %21 = alloca %"class.imp::Vec3", align 8
  %22 = alloca %"class.imp::Vec3", align 8
  %23 = alloca %"class.imp::Path", align 8
  %24 = alloca %"class.imp::Vec3", align 8
  %25 = alloca %"class.imp::Vec3", align 8
  %26 = alloca %"class.imp::Vec3", align 8
  tail call void @_ZNSt6vectorIN3imp4PathESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #6
  call void @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  invoke void @_ZNK3imp4Path6normalEv(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %5, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %27 unwind label %45

27:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #6
  %28 = getelementptr inbounds i8, ptr %2, i64 64
  %29 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %7, ptr noundef nonnull align 8 dereferenceable(36) %28, ptr noundef nonnull align 8 dereferenceable(36) %29)
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %6, ptr noundef nonnull align 8 dereferenceable(36) %7, float noundef 1.000000e+00)
          to label %30 unwind label %47

30:                                               ; preds = %27
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  %31 = invoke noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36) %6)
          to label %32 unwind label %49

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #6
  invoke void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %8, ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 8 dereferenceable(36) %6)
          to label %33 unwind label %51

33:                                               ; preds = %32
  %34 = invoke noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36) %8)
          to label %35 unwind label %53

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #6
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef -1)
          to label %36 unwind label %55

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #6
  call void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %10, ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %29)
  %37 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %8, ptr noundef nonnull align 8 dereferenceable(36) %10)
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  br label %38

38:                                               ; preds = %90, %36
  %storemerge = phi i32 [ 0, %36 ], [ %93, %90 ]
  %.052 = phi float [ %37, %36 ], [ %62, %90 ]
  store i32 %storemerge, ptr %11, align 4, !tbaa !5
  %39 = invoke noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %40 unwind label %57

40:                                               ; preds = %38
  %41 = icmp slt i32 %storemerge, %39
  br i1 %41, label %59, label %42

42:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  %43 = call noundef i64 @_ZNKSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  %44 = icmp ult i64 %43, 2
  br i1 %44, label %96, label %99

45:                                               ; preds = %3
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %195

47:                                               ; preds = %27
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  br label %194

49:                                               ; preds = %30
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %193

51:                                               ; preds = %32
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %192

53:                                               ; preds = %33
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %191

55:                                               ; preds = %35
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %190

57:                                               ; preds = %38
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %95

59:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #6
  %60 = load i32, ptr %11, align 4, !tbaa !5
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %12, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %60)
          to label %61 unwind label %83

61:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #6
  call void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %13, ptr noundef nonnull align 8 dereferenceable(36) %12, ptr noundef nonnull align 8 dereferenceable(36) %29)
  %62 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %8, ptr noundef nonnull align 8 dereferenceable(36) %13)
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #6
  %63 = fcmp oeq float %.052, 0.000000e+00
  %64 = fcmp oeq float %62, 0.000000e+00
  %or.cond = or i1 %63, %64
  br i1 %or.cond, label %69, label %65

65:                                               ; preds = %61
  %66 = call noundef float @_ZN3imp6signOfEf(float noundef %.052)
  %67 = call noundef float @_ZN3imp6signOfEf(float noundef %62)
  %68 = fcmp une float %66, %67
  br i1 %68, label %69, label %90

69:                                               ; preds = %65, %61
  %70 = call noundef float @_ZSt3absf(float noundef %.052)
  %71 = call noundef float @_ZSt3absf(float noundef %62)
  %72 = fadd float %70, %71
  %73 = fcmp ogt float %72, 0.000000e+00
  br i1 %73, label %74, label %77

74:                                               ; preds = %69
  %75 = call noundef float @_ZSt3absf(float noundef %.052)
  %76 = fdiv float %75, %72
  br label %77

77:                                               ; preds = %69, %74
  %78 = phi float [ %76, %74 ], [ 0.000000e+00, %69 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #6
  invoke void @_ZN3imp3mixINS_4Vec3EEET_RKS2_S4_f(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %14, ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %12, float noundef %78)
          to label %79 unwind label %85

79:                                               ; preds = %77
  %80 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %81 unwind label %87

81:                                               ; preds = %79
  %82 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSEOS0_(ptr noundef nonnull align 8 dereferenceable(36) %80, ptr noundef nonnull align 8 dereferenceable(36) %14) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #6
  br label %90

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

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

87:                                               ; preds = %79
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #6
  br label %89

89:                                               ; preds = %87, %85
  %.pn62 = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #6
  br label %94

90:                                               ; preds = %81, %65
  %91 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %12) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  %92 = load i32, ptr %11, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  br label %38, !llvm.loop !9

94:                                               ; preds = %89, %83
  %.pn62.pn = phi { ptr, i32 } [ %.pn62, %89 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  br label %95

95:                                               ; preds = %94, %57
  %.pn62.pn.pn = phi { ptr, i32 } [ %.pn62.pn, %94 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  br label %189

96:                                               ; preds = %42
  invoke void @_ZNSt6vectorIN3imp4PathESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %188 unwind label %97

97:                                               ; preds = %96
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %189

99:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %100 = call ptr @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  store ptr %100, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %101 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiN3imp4Vec3EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %102 = load i32, ptr %101, align 8, !tbaa !11
  store i32 %102, ptr %16, align 4, !tbaa !5
  %103 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiN3imp4Vec3EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  %104 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiN3imp4Vec3EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %105 = load i32, ptr %104, align 8, !tbaa !11
  store i32 %105, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %18) #6
  invoke void @_ZN3imp4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %.preheader unwind label %109

.preheader:                                       ; preds = %99
  %106 = load i32, ptr %16, align 4, !tbaa !5
  %107 = icmp sgt i32 %106, 0
  br i1 %107, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %112, %.preheader
  %108 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %120 unwind label %131

109:                                              ; preds = %99
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %187

.lr.ph:                                           ; preds = %.preheader, %112
  %.03273 = phi i32 [ %113, %112 ], [ 0, %.preheader ]
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %19, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %.03273)
          to label %111 unwind label %116

111:                                              ; preds = %.lr.ph
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull %19)
          to label %112 unwind label %118

112:                                              ; preds = %111
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #6
  %113 = add nuw nsw i32 %.03273, 1
  %114 = load i32, ptr %16, align 4, !tbaa !5
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %.lr.ph, label %._crit_edge, !llvm.loop !20

116:                                              ; preds = %.lr.ph
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %186

118:                                              ; preds = %111
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #6
  br label %186

120:                                              ; preds = %._crit_edge
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %20, ptr noundef nonnull align 8 dereferenceable(36) %108) #6
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull %20)
          to label %121 unwind label %133

121:                                              ; preds = %120
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %20) #6
  %122 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %123 unwind label %131

123:                                              ; preds = %121
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %21, ptr noundef nonnull align 8 dereferenceable(36) %122) #6
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull %21)
          to label %124 unwind label %135

124:                                              ; preds = %123
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #6
  %125 = load i32, ptr %17, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %141, %124
  %.031 = phi i32 [ %125, %124 ], [ %142, %141 ]
  %127 = invoke noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %128 unwind label %137

128:                                              ; preds = %126
  %129 = icmp slt i32 %.031, %127
  br i1 %129, label %139, label %130

130:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %23) #6
  invoke void @_ZN3imp4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %23)
          to label %145 unwind label %150

131:                                              ; preds = %121, %._crit_edge
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %186

133:                                              ; preds = %120
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %20) #6
  br label %186

135:                                              ; preds = %123
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #6
  br label %186

137:                                              ; preds = %139, %126
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %186

139:                                              ; preds = %128
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %22, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %.031)
          to label %140 unwind label %137

140:                                              ; preds = %139
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull %22)
          to label %141 unwind label %143

141:                                              ; preds = %140
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %22) #6
  %142 = add nsw i32 %.031, 1
  br label %126, !llvm.loop !21

143:                                              ; preds = %140
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %22) #6
  br label %186

145:                                              ; preds = %130
  %146 = load i32, ptr %16, align 4, !tbaa !5
  %147 = load i32, ptr %17, align 4, !tbaa !5
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %.lr.ph76, label %._crit_edge77

._crit_edge77:                                    ; preds = %153, %145
  %149 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %161 unwind label %173

150:                                              ; preds = %130
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %185

.lr.ph76:                                         ; preds = %145, %153
  %.074 = phi i32 [ %154, %153 ], [ %146, %145 ]
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %24, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %.074)
          to label %152 unwind label %157

152:                                              ; preds = %.lr.ph76
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull %24)
          to label %153 unwind label %159

153:                                              ; preds = %152
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %24) #6
  %154 = add nsw i32 %.074, 1
  %155 = load i32, ptr %17, align 4, !tbaa !5
  %156 = icmp slt i32 %154, %155
  br i1 %156, label %.lr.ph76, label %._crit_edge77, !llvm.loop !22

157:                                              ; preds = %.lr.ph76
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %184

159:                                              ; preds = %152
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %24) #6
  br label %184

161:                                              ; preds = %._crit_edge77
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %25, ptr noundef nonnull align 8 dereferenceable(36) %149) #6
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull %25)
          to label %162 unwind label %175

162:                                              ; preds = %161
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %25) #6
  %163 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %164 unwind label %173

164:                                              ; preds = %162
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %26, ptr noundef nonnull align 8 dereferenceable(36) %163) #6
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull %26)
          to label %165 unwind label %177

165:                                              ; preds = %164
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #6
  %166 = getelementptr inbounds i8, ptr %18, i64 24
  invoke void @_ZN3imp16removeDuplicatedERSt6vectorINS_4Vec3ESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %166)
          to label %167 unwind label %173

167:                                              ; preds = %165
  %168 = getelementptr inbounds i8, ptr %23, i64 24
  invoke void @_ZN3imp16removeDuplicatedERSt6vectorINS_4Vec3ESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %168)
          to label %169 unwind label %173

169:                                              ; preds = %167
  %170 = call noundef i64 @_ZNKSt6vectorIN3imp4Vec3ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #6
  %171 = icmp ugt i64 %170, 2
  br i1 %171, label %172, label %179

172:                                              ; preds = %169
  invoke void @_ZNSt6vectorIN3imp4PathESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %179 unwind label %173

173:                                              ; preds = %182, %172, %167, %165, %162, %._crit_edge77
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %184

175:                                              ; preds = %161
  %176 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %25) #6
  br label %184

177:                                              ; preds = %164
  %178 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #6
  br label %184

179:                                              ; preds = %172, %169
  %180 = call noundef i64 @_ZNKSt6vectorIN3imp4Vec3ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %168) #6
  %181 = icmp ugt i64 %180, 2
  br i1 %181, label %182, label %183

182:                                              ; preds = %179
  invoke void @_ZNSt6vectorIN3imp4PathESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %23)
          to label %183 unwind label %173

183:                                              ; preds = %182, %179
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #6
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %188

184:                                              ; preds = %157, %159, %177, %175, %173
  %.pn.pn = phi { ptr, i32 } [ %174, %173 ], [ %178, %177 ], [ %176, %175 ], [ %160, %159 ], [ %158, %157 ]
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #6
  br label %185

185:                                              ; preds = %184, %150
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %184 ], [ %151, %150 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #6
  br label %186

186:                                              ; preds = %137, %143, %116, %118, %185, %135, %133, %131
  %.pn58.pn = phi { ptr, i32 } [ %.pn.pn.pn, %185 ], [ %136, %135 ], [ %132, %131 ], [ %134, %133 ], [ %119, %118 ], [ %117, %116 ], [ %144, %143 ], [ %138, %137 ]
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  br label %187

187:                                              ; preds = %186, %109
  %.pn58.pn.pn = phi { ptr, i32 } [ %.pn58.pn, %186 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %189

188:                                              ; preds = %96, %183
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  ret void

189:                                              ; preds = %187, %97, %95
  %.pn62.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn, %95 ], [ %98, %97 ], [ %.pn58.pn.pn, %187 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #6
  br label %190

190:                                              ; preds = %189, %55
  %.pn62.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn.pn, %189 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  br label %191

191:                                              ; preds = %190, %53
  %.pn62.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn.pn.pn, %190 ], [ %54, %53 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #6
  br label %192

192:                                              ; preds = %191, %51
  %.pn62.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn.pn.pn.pn, %191 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  br label %193

193:                                              ; preds = %192, %49
  %.pn62.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn.pn.pn.pn.pn, %192 ], [ %50, %49 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #6
  br label %194

194:                                              ; preds = %193, %47
  %.pn62.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn.pn.pn.pn.pn.pn, %193 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #6
  br label %195

195:                                              ; preds = %194, %45
  %.pn62.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn.pn.pn.pn.pn.pn.pn, %194 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @_ZNSt3mapIiN3imp4Vec3ESt4lessIiESaISt4pairIKiS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  resume { ptr, i32 } %.pn62.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIKiN3imp4Vec3EE", !6, i64 0, !13, i64 8}
!13 = !{!"_ZTSN3imp4Vec3E", !14, i64 0}
!14 = !{!"_ZTSN3imp3VecILi3EfEE", !15, i64 0, !7, i64 24}
!15 = !{!"_ZTSN3imp6ObjectE", !16, i64 8}
!16 = !{!"_ZTSSt10shared_ptrIN3imp6ObjectEE", !17, i64 0}
!17 = !{!"_ZTSSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EE", !18, i64 0, !19, i64 8}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !18, i64 0}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}


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