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

; 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::Edge" = type { %"class.imp::Object", %"class.imp::Vec3", %"class.imp::Vec3" }
%"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::Vec3" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x float] }>
%"class.imp::Path" = type { %"class.imp::Object", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::Intersection" = type { %"class.imp::Object", [2 x %"class.imp::Edge"], %"class.imp::Vec3", %"class.imp::Vec3" }
%"class.__gnu_cxx::__normal_iterator.29" = type { ptr }
%class.anon = type { %"class.imp::Vec3" }
%"class.__gnu_cxx::__normal_iterator.3" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: 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 #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3imp4Vec3ESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(36)) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp4Path4edgeEi(ptr dead_on_unwind noalias writable sret(%"class.imp::Edge") align 8, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3imp4PathC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3imp12Intersection7computeEv(ptr noundef nonnull align 8 dereferenceable(312)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.imp::Path", align 8
  %8 = alloca %"class.imp::Path", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.imp::Edge", align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.imp::Edge", align 8
  %17 = alloca %"class.imp::Intersection", align 8
  %18 = alloca %"class.imp::Edge", align 8
  %19 = alloca %"class.imp::Edge", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %23 = alloca i8, align 1
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %25 = alloca %"class.imp::Vec3", align 8
  %26 = alloca %class.anon, align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %29 = alloca %class.anon, align 8
  %30 = alloca %"class.imp::Vec3", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #5
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3imp4PathC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %31)
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #5
  invoke void @_ZN3imp4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %32 unwind label %41

32:                                               ; preds = %3
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3imp4PathaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %33, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %35 unwind label %45

35:                                               ; preds = %32
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %183, %35
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = call noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %7)
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %50, label %40

40:                                               ; preds = %36
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %201

41:                                               ; preds = %3
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %9, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %10, align 4
  br label %49

45:                                               ; preds = %32
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %9, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %10, align 4
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  br label %49

49:                                               ; preds = %45, %41
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #5
  br label %206

50:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 104, ptr %13) #5
  %51 = load i32, ptr %11, align 4, !tbaa !9
  invoke void @_ZNK3imp4Path4edgeEi(ptr dead_on_unwind writable sret(%"class.imp::Edge") align 8 %13, ptr noundef nonnull align 8 dereferenceable(48) %7, i32 noundef %51)
          to label %52 unwind label %59

52:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  call void @_ZNSt6vectorIN3imp4Vec3ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %159, %52
  %54 = load i32, ptr %15, align 4, !tbaa !9
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = call noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %55)
  %57 = icmp slt i32 %54, %56
  br i1 %57, label %63, label %58

58:                                               ; preds = %53
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %166

59:                                               ; preds = %50
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %9, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %10, align 4
  br label %200

63:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 104, ptr %16) #5
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load i32, ptr %15, align 4, !tbaa !9
  invoke void @_ZNK3imp4Path4edgeEi(ptr dead_on_unwind writable sret(%"class.imp::Edge") align 8 %16, ptr noundef nonnull align 8 dereferenceable(48) %64, i32 noundef %65)
          to label %66 unwind label %87

66:                                               ; preds = %63
  %67 = getelementptr inbounds %"class.imp::Edge", ptr %13, i32 0, i32 1
  %68 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 1
  %69 = invoke noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %67, ptr noundef nonnull align 8 dereferenceable(36) %68)
          to label %70 unwind label %91

70:                                               ; preds = %66
  br i1 %69, label %86, label %71

71:                                               ; preds = %70
  %72 = getelementptr inbounds %"class.imp::Edge", ptr %13, i32 0, i32 1
  %73 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 2
  %74 = invoke noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %72, ptr noundef nonnull align 8 dereferenceable(36) %73)
          to label %75 unwind label %91

75:                                               ; preds = %71
  br i1 %74, label %86, label %76

76:                                               ; preds = %75
  %77 = getelementptr inbounds %"class.imp::Edge", ptr %13, i32 0, i32 2
  %78 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 1
  %79 = invoke noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %77, ptr noundef nonnull align 8 dereferenceable(36) %78)
          to label %80 unwind label %91

80:                                               ; preds = %76
  br i1 %79, label %86, label %81

81:                                               ; preds = %80
  %82 = getelementptr inbounds %"class.imp::Edge", ptr %13, i32 0, i32 2
  %83 = getelementptr inbounds %"class.imp::Edge", ptr %16, i32 0, i32 2
  %84 = invoke noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %82, ptr noundef nonnull align 8 dereferenceable(36) %83)
          to label %85 unwind label %91

85:                                               ; preds = %81
  br i1 %84, label %86, label %95

86:                                               ; preds = %85, %80, %75, %70
  store i32 7, ptr %12, align 4
  br label %156

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

91:                                               ; preds = %81, %76, %71, %66
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %9, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %10, align 4
  br label %164

95:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 312, ptr %17) #5
  invoke void @_ZN3imp4EdgeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %18, ptr noundef nonnull align 8 dereferenceable(104) %13)
          to label %96 unwind label %121

96:                                               ; preds = %95
  invoke void @_ZN3imp4EdgeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %19, ptr noundef nonnull align 8 dereferenceable(104) %16)
          to label %97 unwind label %125

97:                                               ; preds = %96
  invoke void @_ZN3imp12IntersectionC1ENS_4EdgeES1_(ptr noundef nonnull align 8 dereferenceable(312) %17, ptr noundef %18, ptr noundef %19)
          to label %98 unwind label %129

98:                                               ; preds = %97
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %19) #5
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = call ptr @_ZNSt6vectorIN3imp12IntersectionESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #5
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %21, i32 0, i32 0
  store ptr %100, ptr %101, align 8
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = call ptr @_ZNSt6vectorIN3imp12IntersectionESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #5
  %104 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %22, i32 0, i32 0
  store ptr %103, ptr %104, align 8
  %105 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %21, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8
  %107 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %22, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8
  %109 = invoke ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPN3imp12IntersectionESt6vectorIS3_SaIS3_EEEES3_ET_S9_S9_RKT0_(ptr %106, ptr %108, ptr noundef nonnull align 8 dereferenceable(312) %17)
          to label %110 unwind label %134

110:                                              ; preds = %98
  %111 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %20, i32 0, i32 0
  store ptr %109, ptr %111, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  store i8 0, ptr %23, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = call ptr @_ZNSt6vectorIN3imp12IntersectionESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #5
  %114 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %24, i32 0, i32 0
  store ptr %113, ptr %114, align 8
  %115 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3imp12IntersectionESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br i1 %115, label %116, label %138

116:                                              ; preds = %110
  %117 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3imp12IntersectionESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  %118 = getelementptr inbounds %"class.imp::Intersection", ptr %117, i32 0, i32 3
  %119 = getelementptr inbounds %"class.imp::Intersection", ptr %17, i32 0, i32 3
  %120 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %119, ptr noundef nonnull align 8 dereferenceable(36) %118) #5
  store i8 1, ptr %23, align 1, !tbaa !11
  br label %149

121:                                              ; preds = %95
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %9, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %10, align 4
  br label %163

125:                                              ; preds = %96
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %9, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %10, align 4
  br label %133

129:                                              ; preds = %97
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %9, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %10, align 4
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %19) #5
  br label %133

133:                                              ; preds = %129, %125
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %18) #5
  br label %163

134:                                              ; preds = %98
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %9, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %10, align 4
  br label %162

138:                                              ; preds = %110
  %139 = invoke noundef zeroext i1 @_ZN3imp12Intersection7computeEv(ptr noundef nonnull align 8 dereferenceable(312) %17)
          to label %140 unwind label %144

140:                                              ; preds = %138
  br i1 %139, label %141, label %148

141:                                              ; preds = %140
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %142, ptr noundef nonnull align 8 dereferenceable(312) %17)
          to label %143 unwind label %144

143:                                              ; preds = %141
  store i8 1, ptr %23, align 1, !tbaa !11
  br label %148

144:                                              ; preds = %152, %141, %138
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %9, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  br label %162

148:                                              ; preds = %143, %140
  br label %149

149:                                              ; preds = %148, %116
  %150 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %151 = trunc i8 %150 to i1
  br i1 %151, label %152, label %155

152:                                              ; preds = %149
  %153 = getelementptr inbounds %"class.imp::Intersection", ptr %17, i32 0, i32 3
  invoke void @_ZNSt6vectorIN3imp4Vec3ESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(36) %153)
          to label %154 unwind label %144

154:                                              ; preds = %152
  br label %155

155:                                              ; preds = %154, %149
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @_ZN3imp12IntersectionD2Ev(ptr noundef nonnull align 8 dereferenceable(312) %17) #5
  call void @llvm.lifetime.end.p0(i64 312, ptr %17) #5
  store i32 0, ptr %12, align 4
  br label %156

156:                                              ; preds = %155, %86
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %16) #5
  call void @llvm.lifetime.end.p0(i64 104, ptr %16) #5
  %157 = load i32, ptr %12, align 4
  switch i32 %157, label %212 [
    i32 0, label %158
    i32 7, label %159
  ]

158:                                              ; preds = %156
  br label %159

159:                                              ; preds = %158, %156
  %160 = load i32, ptr %15, align 4, !tbaa !9
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %15, align 4, !tbaa !9
  br label %53, !llvm.loop !15

162:                                              ; preds = %144, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @_ZN3imp12IntersectionD2Ev(ptr noundef nonnull align 8 dereferenceable(312) %17) #5
  br label %163

163:                                              ; preds = %162, %133, %121
  call void @llvm.lifetime.end.p0(i64 312, ptr %17) #5
  br label %164

164:                                              ; preds = %163, %91
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %16) #5
  br label %165

165:                                              ; preds = %164, %87
  call void @llvm.lifetime.end.p0(i64 104, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %199

166:                                              ; preds = %58
  call void @llvm.lifetime.start.p0(i64 40, ptr %25) #5
  %167 = getelementptr inbounds %"class.imp::Edge", ptr %13, i32 0, i32 1
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %25, ptr noundef nonnull align 8 dereferenceable(36) %167) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #5
  %168 = getelementptr inbounds %class.anon, ptr %26, i32 0, i32 0
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %168, ptr noundef nonnull align 8 dereferenceable(36) %25) #5
  %169 = call ptr @_ZNSt6vectorIN3imp4Vec3ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %170 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %27, i32 0, i32 0
  store ptr %169, ptr %170, align 8
  %171 = call ptr @_ZNSt6vectorIN3imp4Vec3ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %172 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %28, i32 0, i32 0
  store ptr %171, ptr %172, align 8
  call void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0C2ERKS9_"(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef nonnull align 8 dereferenceable(40) %26) #5
  %173 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %27, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8
  %175 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %28, i32 0, i32 0
  %176 = load ptr, ptr %175, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN3imp4Vec3ESt6vectorIS3_SaIS3_EEEEZNS2_12Intersection7resolveERNS2_4PathERKSA_RS5_IS9_SaIS9_EEE3$_0EvT_SI_T0_"(ptr %174, ptr %176, ptr noundef %29)
          to label %177 unwind label %186

177:                                              ; preds = %166
  call void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %29) #5
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3imp4Path11addVerticesERKSt6vectorINS_4Vec3ESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %178, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %179 unwind label %190

179:                                              ; preds = %177
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %"class.imp::Edge", ptr %13, i32 0, i32 2
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %30, ptr noundef nonnull align 8 dereferenceable(36) %181) #5
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %180, ptr noundef %30)
          to label %182 unwind label %194

182:                                              ; preds = %179
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %30) #5
  call void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %26) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %25) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #5
  call void @_ZNSt6vectorIN3imp4Vec3ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %13) #5
  call void @llvm.lifetime.end.p0(i64 104, ptr %13) #5
  br label %183

183:                                              ; preds = %182
  %184 = load i32, ptr %11, align 4, !tbaa !9
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %11, align 4, !tbaa !9
  br label %36, !llvm.loop !17

186:                                              ; preds = %166
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %9, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %10, align 4
  call void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %29) #5
  br label %198

190:                                              ; preds = %177
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %9, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %10, align 4
  br label %198

194:                                              ; preds = %179
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %9, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %10, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %30) #5
  br label %198

198:                                              ; preds = %194, %190, %186
  call void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %26) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %25) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #5
  br label %199

199:                                              ; preds = %198, %165
  call void @_ZNSt6vectorIN3imp4Vec3ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %13) #5
  br label %200

200:                                              ; preds = %199, %59
  call void @llvm.lifetime.end.p0(i64 104, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %206

201:                                              ; preds = %40
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = call noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %202)
  %204 = call noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %7)
  %205 = icmp sgt i32 %203, %204
  store i32 1, ptr %12, align 4
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  ret i1 %205

206:                                              ; preds = %200, %49
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  br label %207

207:                                              ; preds = %206
  %208 = load ptr, ptr %9, align 8
  %209 = load i32, ptr %10, align 4
  %210 = insertvalue { ptr, i32 } poison, ptr %208, 0
  %211 = insertvalue { ptr, i32 } %210, i32 %209, 1
  resume { ptr, i32 } %211

212:                                              ; preds = %156
  unreachable
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(312)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN3imp4Vec3ESt6vectorIS3_SaIS3_EEEEZNS2_12Intersection7resolveERNS2_4PathERKSA_RS5_IS9_SaIS9_EEE3$_0EvT_SI_T0_"(ptr, ptr, ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0C2ERKS9_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

declare void @_ZN3imp4EdgeC1ERKS0_(ptr, ptr)

declare void @_ZN3imp4PathC1Ev(ptr)

declare void @_ZN3imp4PathD1Ev(ptr)

declare void @_ZN3imp12IntersectionC1ENS_4EdgeES1_(ptr, ptr, ptr)

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


; 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::Edge" = type { %"class.imp::Object", %"class.imp::Vec3", %"class.imp::Vec3" }
%"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::Vec3" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x float] }>
%"class.imp::Path" = type { %"class.imp::Object", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::Intersection" = type { %"class.imp::Object", [2 x %"class.imp::Edge"], %"class.imp::Vec3", %"class.imp::Vec3" }
%"class.__gnu_cxx::__normal_iterator.29" = type { ptr }
%class.anon = type { %"class.imp::Vec3" }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: 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 #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3imp4Vec3ESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp4Path4edgeEi(ptr dead_on_unwind noalias writable sret(%"class.imp::Edge") align 8, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN3imp4Vec3ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3imp4PathC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3imp12Intersection7computeEv(ptr noundef nonnull align 8 dereferenceable(312)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.imp::Path", align 8
  %5 = alloca %"class.imp::Path", align 8
  %6 = alloca %"class.imp::Edge", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.imp::Edge", align 8
  %9 = alloca %"class.imp::Intersection", align 8
  %10 = alloca %"class.imp::Edge", align 8
  %11 = alloca %"class.imp::Edge", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %14 = alloca %"class.imp::Vec3", align 8
  %15 = alloca %class.anon, align 8
  %16 = alloca %class.anon, align 8
  %17 = alloca %"class.imp::Vec3", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #5
  call void @_ZN3imp4PathC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(48) %0)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #5
  invoke void @_ZN3imp4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %18 unwind label %31

18:                                               ; preds = %3
  %19 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3imp4PathaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %20 unwind label %33

20:                                               ; preds = %18
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
  %21 = call noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %4)
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph49, label %._crit_edge50

.lr.ph49:                                         ; preds = %20
  %23 = getelementptr inbounds i8, ptr %6, i64 24
  %24 = getelementptr inbounds i8, ptr %8, i64 24
  %25 = getelementptr inbounds i8, ptr %8, i64 64
  %26 = getelementptr inbounds i8, ptr %6, i64 64
  %27 = getelementptr inbounds i8, ptr %9, i64 272
  br label %36

._crit_edge50:                                    ; preds = %93, %20
  %28 = call noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %29 = call noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %4)
  %30 = icmp sgt i32 %28, %29
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  ret i1 %30

31:                                               ; preds = %3
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %35

33:                                               ; preds = %18
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  br label %35

35:                                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
  br label %106

36:                                               ; preds = %.lr.ph49, %93
  %.03247 = phi i32 [ 0, %.lr.ph49 ], [ %94, %93 ]
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %6) #5
  invoke void @_ZNK3imp4Path4edgeEi(ptr dead_on_unwind nonnull writable sret(%"class.imp::Edge") align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %4, i32 noundef %.03247)
          to label %37 unwind label %42

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @_ZNSt6vectorIN3imp4Vec3ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %38 = call noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %84, %37
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #5
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef nonnull align 8 dereferenceable(36) %23) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #5
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %15, ptr noundef nonnull align 8 dereferenceable(36) %14) #5
  %40 = call ptr @_ZNSt6vectorIN3imp4Vec3ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %41 = call ptr @_ZNSt6vectorIN3imp4Vec3ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0C2ERKS9_"(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN3imp4Vec3ESt6vectorIS3_SaIS3_EEEEZNS2_12Intersection7resolveERNS2_4PathERKSA_RS5_IS9_SaIS9_EEE3$_0EvT_SI_T0_"(ptr %40, ptr %41, ptr noundef nonnull %16)
          to label %91 unwind label %97

42:                                               ; preds = %36
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %105

.lr.ph:                                           ; preds = %37, %84
  %.03346 = phi i32 [ %85, %84 ], [ 0, %37 ]
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %8) #5
  invoke void @_ZNK3imp4Path4edgeEi(ptr dead_on_unwind nonnull writable sret(%"class.imp::Edge") align 8 %8, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %.03346)
          to label %44 unwind label %52

44:                                               ; preds = %.lr.ph
  %45 = call noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %23, ptr noundef nonnull align 8 dereferenceable(36) %24)
  br i1 %45, label %84, label %46

46:                                               ; preds = %44
  %47 = call noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %23, ptr noundef nonnull align 8 dereferenceable(36) %25)
  br i1 %47, label %84, label %48

48:                                               ; preds = %46
  %49 = call noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %26, ptr noundef nonnull align 8 dereferenceable(36) %24)
  br i1 %49, label %84, label %50

50:                                               ; preds = %48
  %51 = call noundef zeroext i1 @_ZNK3imp3VecILi3EfEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %26, ptr noundef nonnull align 8 dereferenceable(36) %25)
  br i1 %51, label %84, label %54

52:                                               ; preds = %.lr.ph
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %90

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 312, ptr nonnull %9) #5
  invoke void @_ZN3imp4EdgeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %10, ptr noundef nonnull align 8 dereferenceable(104) %6)
          to label %55 unwind label %68

55:                                               ; preds = %54
  invoke void @_ZN3imp4EdgeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(104) %11, ptr noundef nonnull align 8 dereferenceable(104) %8)
          to label %56 unwind label %70

56:                                               ; preds = %55
  invoke void @_ZN3imp12IntersectionC1ENS_4EdgeES1_(ptr noundef nonnull align 8 dereferenceable(312) %9, ptr noundef nonnull %10, ptr noundef nonnull %11)
          to label %57 unwind label %72

57:                                               ; preds = %56
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %11) #5
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %58 = call ptr @_ZNSt6vectorIN3imp12IntersectionESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %59 = call ptr @_ZNSt6vectorIN3imp12IntersectionESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %60 = invoke ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPN3imp12IntersectionESt6vectorIS3_SaIS3_EEEES3_ET_S9_S9_RKT0_(ptr %58, ptr %59, ptr noundef nonnull align 8 dereferenceable(312) %9)
          to label %61 unwind label %75

61:                                               ; preds = %57
  store ptr %60, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %62 = call ptr @_ZNSt6vectorIN3imp12IntersectionESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %62, ptr %13, align 8
  %63 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3imp12IntersectionESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  br i1 %63, label %64, label %77

64:                                               ; preds = %61
  %65 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3imp12IntersectionESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %66 = getelementptr inbounds i8, ptr %65, i64 272
  %67 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %27, ptr noundef nonnull align 8 dereferenceable(36) %66) #5
  br label %.critedge

68:                                               ; preds = %54
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %89

70:                                               ; preds = %55
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %74

72:                                               ; preds = %56
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %11) #5
  br label %74

74:                                               ; preds = %72, %70
  %.pn37 = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ]
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %10) #5
  br label %89

75:                                               ; preds = %57
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %88

77:                                               ; preds = %61
  %78 = invoke noundef zeroext i1 @_ZN3imp12Intersection7computeEv(ptr noundef nonnull align 8 dereferenceable(312) %9)
          to label %79 unwind label %81

79:                                               ; preds = %77
  br i1 %78, label %80, label %83

80:                                               ; preds = %79
  invoke void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(312) %9)
          to label %.critedge unwind label %81

81:                                               ; preds = %.critedge, %80, %77
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %88

.critedge:                                        ; preds = %80, %64
  invoke void @_ZNSt6vectorIN3imp4Vec3ESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(36) %27)
          to label %83 unwind label %81

83:                                               ; preds = %79, %.critedge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @_ZN3imp12IntersectionD2Ev(ptr noundef nonnull align 8 dereferenceable(312) %9) #5
  call void @llvm.lifetime.end.p0(i64 312, ptr nonnull %9) #5
  br label %84

84:                                               ; preds = %44, %46, %48, %50, %83
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %8) #5
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %8) #5
  %85 = add nuw nsw i32 %.03346, 1
  %86 = call noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %.lr.ph, label %._crit_edge, !llvm.loop !5

88:                                               ; preds = %81, %75
  %.pn39 = phi { ptr, i32 } [ %82, %81 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @_ZN3imp12IntersectionD2Ev(ptr noundef nonnull align 8 dereferenceable(312) %9) #5
  br label %89

89:                                               ; preds = %88, %74, %68
  %.pn39.pn = phi { ptr, i32 } [ %.pn39, %88 ], [ %.pn37, %74 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 312, ptr nonnull %9) #5
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %8) #5
  br label %90

90:                                               ; preds = %89, %52
  %.pn39.pn.pn = phi { ptr, i32 } [ %.pn39.pn, %89 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %8) #5
  br label %104

91:                                               ; preds = %._crit_edge
  call void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  invoke void @_ZN3imp4Path11addVerticesERKSt6vectorINS_4Vec3ESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %92 unwind label %99

92:                                               ; preds = %91
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %17, ptr noundef nonnull align 8 dereferenceable(36) %26) #5
  invoke void @_ZN3imp4Path9addVertexENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull %17)
          to label %93 unwind label %101

93:                                               ; preds = %92
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %17) #5
  call void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #5
  call void @_ZNSt6vectorIN3imp4Vec3ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %6) #5
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %6) #5
  %94 = add nuw nsw i32 %.03247, 1
  %95 = call noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %4)
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %36, label %._crit_edge50, !llvm.loop !7

97:                                               ; preds = %._crit_edge
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  br label %103

99:                                               ; preds = %91
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %92
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %17) #5
  br label %103

103:                                              ; preds = %101, %99, %97
  %.pn35 = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ], [ %98, %97 ]
  call void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #5
  br label %104

104:                                              ; preds = %103, %90
  %.pn39.pn.pn.pn = phi { ptr, i32 } [ %.pn39.pn.pn, %90 ], [ %.pn35, %103 ]
  call void @_ZNSt6vectorIN3imp4Vec3ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZN3imp4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %6) #5
  br label %105

105:                                              ; preds = %104, %42
  %.pn39.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn39.pn.pn.pn, %104 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %6) #5
  br label %106

106:                                              ; preds = %105, %35
  %.pn39.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn39.pn.pn.pn.pn, %105 ], [ %.pn, %35 ]
  call void @_ZN3imp4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn39.pn.pn.pn.pn.pn
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(312)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN3imp4Vec3ESt6vectorIS3_SaIS3_EEEEZNS2_12Intersection7resolveERNS2_4PathERKSA_RS5_IS9_SaIS9_EEE3$_0EvT_SI_T0_"(ptr, ptr, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0C2ERKS9_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN3imp12Intersection7resolveERNS_4PathERKS1_RSt6vectorIS0_SaIS0_EEEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

declare void @_ZN3imp4EdgeC1ERKS0_(ptr, ptr) local_unnamed_addr

declare void @_ZN3imp4PathC1Ev(ptr) local_unnamed_addr

declare void @_ZN3imp4PathD1Ev(ptr) local_unnamed_addr

declare void @_ZN3imp12IntersectionC1ENS_4EdgeES1_(ptr, ptr, ptr) local_unnamed_addr

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


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