; LLVM IR from ShahjalalShohag/code-library :: Geometry/Geometry 2D.ll (Z23half_plane_intersectionSt6vectorI2HPSaIS0_EE)

; 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"

%struct.PT = type { double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl" }
%"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl" = type { %"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.47" = type { ptr }
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl" }
%"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl" = type { %"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.44" = type { i8 }
%struct.HP = type { %struct.PT, %struct.PT }

; 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 uwtable
declare dso_local void @_ZNK2PTmiERKS_(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_Z5cross2PTS_(ptr noundef, ptr noundef) #2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI2PTSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5check2HPS_S_(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2HP12intersectionERKS_(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

43:                                               ; preds = %86, %2
  %44 = load i32, ptr %8, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %47 = icmp ult i64 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %89

49:                                               ; preds = %43
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %76

52:                                               ; preds = %49
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %54) #6
  %56 = getelementptr inbounds %struct.HP, ptr %55, i32 0, i32 1
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %58) #6
  %60 = getelementptr inbounds %struct.HP, ptr %59, i32 0, i32 0
  invoke void @_ZNK2PTmiERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(16) %60)
          to label %61 unwind label %81

61:                                               ; preds = %52
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = sub nsw i32 %62, 1
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %64) #6
  %66 = getelementptr inbounds %struct.HP, ptr %65, i32 0, i32 1
  %67 = load i32, ptr %8, align 4, !tbaa !9
  %68 = sub nsw i32 %67, 1
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %69) #6
  %71 = getelementptr inbounds %struct.HP, ptr %70, i32 0, i32 0
  invoke void @_ZNK2PTmiERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 8 dereferenceable(16) %71)
          to label %72 unwind label %81

72:                                               ; preds = %61
  %73 = invoke noundef double @_Z5cross2PTS_(ptr noundef %9, ptr noundef %12)
          to label %74 unwind label %81

74:                                               ; preds = %72
  %75 = fcmp une double %73, 0.000000e+00
  br i1 %75, label %76, label %85

76:                                               ; preds = %74, %49
  %77 = load i32, ptr %8, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %78) #6
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(32) %79)
          to label %80 unwind label %81

80:                                               ; preds = %76
  br label %85

81:                                               ; preds = %76, %72, %61, %52
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %10, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %304

85:                                               ; preds = %80, %74
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %8, align 4, !tbaa !9
  br label %43, !llvm.loop !11

89:                                               ; preds = %48
  %90 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2HPSaIS0_EEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %91 unwind label %101

91:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  %92 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %93 = add i64 %92, 10
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @_ZNSaI2HPEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt6vectorI2HPSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %93, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %94 unwind label %105

94:                                               ; preds = %91
  call void @_ZNSt15__new_allocatorI2HPED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %180, %94
  %96 = load i32, ptr %17, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %99 = icmp ult i64 %97, %98
  br i1 %99, label %109, label %100

100:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %183

101:                                              ; preds = %89
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %10, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %11, align 4
  br label %304

105:                                              ; preds = %91
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %10, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %11, align 4
  call void @_ZNSt15__new_allocatorI2HPED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %303

109:                                              ; preds = %95
  br label %110

110:                                              ; preds = %136, %109
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = load i32, ptr %15, align 4, !tbaa !9
  %113 = sub nsw i32 %111, %112
  %114 = icmp sgt i32 %113, 1
  br i1 %114, label %115, label %134

115:                                              ; preds = %110
  %116 = load i32, ptr %17, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %117) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %118)
          to label %119 unwind label %139

119:                                              ; preds = %115
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = sub nsw i32 %120, 2
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %122) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %123)
          to label %124 unwind label %139

124:                                              ; preds = %119
  %125 = load i32, ptr %16, align 4, !tbaa !9
  %126 = sub nsw i32 %125, 1
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %127) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %128)
          to label %129 unwind label %139

129:                                              ; preds = %124
  %130 = invoke noundef i32 @_Z5check2HPS_S_(ptr noundef %18, ptr noundef %19, ptr noundef %20)
          to label %131 unwind label %139

131:                                              ; preds = %129
  %132 = icmp ne i32 %130, 0
  %133 = xor i1 %132, true
  br label %134

134:                                              ; preds = %131, %110
  %135 = phi i1 [ false, %110 ], [ %133, %131 ]
  br i1 %135, label %136, label %143

136:                                              ; preds = %134
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = add nsw i32 %137, -1
  store i32 %138, ptr %16, align 4, !tbaa !9
  br label %110, !llvm.loop !13

139:                                              ; preds = %162, %157, %153, %149, %129, %124, %119, %115
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %10, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %302

143:                                              ; preds = %134
  br label %144

144:                                              ; preds = %169, %143
  %145 = load i32, ptr %16, align 4, !tbaa !9
  %146 = load i32, ptr %15, align 4, !tbaa !9
  %147 = sub nsw i32 %145, %146
  %148 = icmp sgt i32 %147, 1
  br i1 %148, label %149, label %167

149:                                              ; preds = %144
  %150 = load i32, ptr %17, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %151) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %152)
          to label %153 unwind label %139

153:                                              ; preds = %149
  %154 = load i32, ptr %15, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %155) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %156)
          to label %157 unwind label %139

157:                                              ; preds = %153
  %158 = load i32, ptr %15, align 4, !tbaa !9
  %159 = add nsw i32 %158, 1
  %160 = sext i32 %159 to i64
  %161 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %160) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %161)
          to label %162 unwind label %139

162:                                              ; preds = %157
  %163 = invoke noundef i32 @_Z5check2HPS_S_(ptr noundef %21, ptr noundef %22, ptr noundef %23)
          to label %164 unwind label %139

164:                                              ; preds = %162
  %165 = icmp ne i32 %163, 0
  %166 = xor i1 %165, true
  br label %167

167:                                              ; preds = %164, %144
  %168 = phi i1 [ false, %144 ], [ %166, %164 ]
  br i1 %168, label %169, label %172

169:                                              ; preds = %167
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %15, align 4, !tbaa !9
  br label %144, !llvm.loop !14

172:                                              ; preds = %167
  %173 = load i32, ptr %17, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %174) #6
  %176 = load i32, ptr %16, align 4, !tbaa !9
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %16, align 4, !tbaa !9
  %178 = sext i32 %176 to i64
  %179 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %178) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %179, ptr align 8 %175, i64 32, i1 false), !tbaa.struct !15
  br label %180

180:                                              ; preds = %172
  %181 = load i32, ptr %17, align 4, !tbaa !9
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %17, align 4, !tbaa !9
  br label %95, !llvm.loop !18

183:                                              ; preds = %100
  br label %184

184:                                              ; preds = %210, %183
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = load i32, ptr %15, align 4, !tbaa !9
  %187 = sub nsw i32 %185, %186
  %188 = icmp sgt i32 %187, 2
  br i1 %188, label %189, label %208

189:                                              ; preds = %184
  %190 = load i32, ptr %15, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %191) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %192)
          to label %193 unwind label %213

193:                                              ; preds = %189
  %194 = load i32, ptr %16, align 4, !tbaa !9
  %195 = sub nsw i32 %194, 2
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %196) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %197)
          to label %198 unwind label %213

198:                                              ; preds = %193
  %199 = load i32, ptr %16, align 4, !tbaa !9
  %200 = sub nsw i32 %199, 1
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %201) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %202)
          to label %203 unwind label %213

203:                                              ; preds = %198
  %204 = invoke noundef i32 @_Z5check2HPS_S_(ptr noundef %24, ptr noundef %25, ptr noundef %26)
          to label %205 unwind label %213

205:                                              ; preds = %203
  %206 = icmp ne i32 %204, 0
  %207 = xor i1 %206, true
  br label %208

208:                                              ; preds = %205, %184
  %209 = phi i1 [ false, %184 ], [ %207, %205 ]
  br i1 %209, label %210, label %217

210:                                              ; preds = %208
  %211 = load i32, ptr %16, align 4, !tbaa !9
  %212 = add nsw i32 %211, -1
  store i32 %212, ptr %16, align 4, !tbaa !9
  br label %184, !llvm.loop !19

213:                                              ; preds = %237, %232, %228, %223, %203, %198, %193, %189
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %10, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %11, align 4
  br label %302

217:                                              ; preds = %208
  br label %218

218:                                              ; preds = %244, %217
  %219 = load i32, ptr %16, align 4, !tbaa !9
  %220 = load i32, ptr %15, align 4, !tbaa !9
  %221 = sub nsw i32 %219, %220
  %222 = icmp sgt i32 %221, 2
  br i1 %222, label %223, label %242

223:                                              ; preds = %218
  %224 = load i32, ptr %16, align 4, !tbaa !9
  %225 = sub nsw i32 %224, 1
  %226 = sext i32 %225 to i64
  %227 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %226) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %227)
          to label %228 unwind label %213

228:                                              ; preds = %223
  %229 = load i32, ptr %15, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %230) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %231)
          to label %232 unwind label %213

232:                                              ; preds = %228
  %233 = load i32, ptr %15, align 4, !tbaa !9
  %234 = add nsw i32 %233, 1
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %235) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(32) %236)
          to label %237 unwind label %213

237:                                              ; preds = %232
  %238 = invoke noundef i32 @_Z5check2HPS_S_(ptr noundef %27, ptr noundef %28, ptr noundef %29)
          to label %239 unwind label %213

239:                                              ; preds = %237
  %240 = icmp ne i32 %238, 0
  %241 = xor i1 %240, true
  br label %242

242:                                              ; preds = %239, %218
  %243 = phi i1 [ false, %218 ], [ %241, %239 ]
  br i1 %243, label %244, label %247

244:                                              ; preds = %242
  %245 = load i32, ptr %15, align 4, !tbaa !9
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %15, align 4, !tbaa !9
  br label %218, !llvm.loop !20

247:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #6
  call void @_ZNSt6vectorI2HPSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %248 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %248, ptr %31, align 4, !tbaa !9
  br label %249

249:                                              ; preds = %259, %247
  %250 = load i32, ptr %31, align 4, !tbaa !9
  %251 = load i32, ptr %16, align 4, !tbaa !9
  %252 = icmp slt i32 %250, %251
  br i1 %252, label %254, label %253

253:                                              ; preds = %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %266

254:                                              ; preds = %249
  %255 = load i32, ptr %31, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %256) #6
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(32) %257)
          to label %258 unwind label %262

258:                                              ; preds = %254
  br label %259

259:                                              ; preds = %258
  %260 = load i32, ptr %31, align 4, !tbaa !9
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %31, align 4, !tbaa !9
  br label %249, !llvm.loop !21

262:                                              ; preds = %254
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %10, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %301

266:                                              ; preds = %253
  store i1 false, ptr %32, align 1
  call void @_ZNSt6vectorI2PTSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %267 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %268 = icmp ugt i64 %267, 2
  br i1 %268, label %269, label %297

269:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %270

270:                                              ; preds = %289, %269
  %271 = load i32, ptr %33, align 4, !tbaa !9
  %272 = sext i32 %271 to i64
  %273 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %274 = icmp ult i64 %272, %273
  br i1 %274, label %276, label %275

275:                                              ; preds = %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %296

276:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %277 = load i32, ptr %33, align 4, !tbaa !9
  %278 = sext i32 %277 to i64
  %279 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %278) #6
  %280 = load i32, ptr %33, align 4, !tbaa !9
  %281 = add nsw i32 %280, 1
  %282 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %283 = trunc i64 %282 to i32
  %284 = srem i32 %281, %283
  %285 = sext i32 %284 to i64
  %286 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %285) #6
  invoke void @_ZN2HP12intersectionERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %34, ptr noundef nonnull align 8 dereferenceable(32) %279, ptr noundef nonnull align 8 dereferenceable(32) %286)
          to label %287 unwind label %292

287:                                              ; preds = %276
  invoke void @_ZNSt6vectorI2PTSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %288 unwind label %292

288:                                              ; preds = %287
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  br label %289

289:                                              ; preds = %288
  %290 = load i32, ptr %33, align 4, !tbaa !9
  %291 = add nsw i32 %290, 1
  store i32 %291, ptr %33, align 4, !tbaa !9
  br label %270, !llvm.loop !22

292:                                              ; preds = %287, %276
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %10, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %301

296:                                              ; preds = %275
  br label %297

297:                                              ; preds = %296, %266
  store i1 true, ptr %32, align 1
  %298 = load i1, ptr %32, align 1
  br i1 %298, label %300, label %299

299:                                              ; preds = %297
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %300

300:                                              ; preds = %299, %297
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  ret void

301:                                              ; preds = %292, %262
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  br label %302

302:                                              ; preds = %301, %213, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %303

303:                                              ; preds = %302, %105
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  br label %304

304:                                              ; preds = %303, %101, %81
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  br label %305

305:                                              ; preds = %304
  %306 = load ptr, ptr %10, align 8
  %307 = load i32, ptr %11, align 4
  %308 = insertvalue { ptr, i32 } poison, ptr %306, 0
  %309 = insertvalue { ptr, i32 } %308, i32 %307, 1
  resume { ptr, i32 } %309
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2HPSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) #5

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI2HPSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

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

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

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

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

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


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

%struct.PT = type { double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl" }
%"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl" = type { %"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl" }
%"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl" = type { %"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.44" = type { i8 }
%struct.HP = type { %struct.PT, %struct.PT }

; 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 uwtable
declare dso_local void @_ZNK2PTmiERKS_(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_Z5cross2PTS_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI2PTSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5check2HPS_S_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2HP12intersectionERKS_(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z23half_plane_intersectionSt6vectorI2HPSaIS0_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.42", align 8
  %4 = alloca %struct.PT, align 8
  %5 = alloca %struct.PT, align 8
  %6 = alloca %"class.std::vector.42", align 8
  %7 = alloca %"class.std::allocator.44", align 1
  %8 = alloca %struct.HP, align 8
  %9 = alloca %struct.HP, align 8
  %10 = alloca %struct.HP, align 8
  %11 = alloca %struct.HP, align 8
  %12 = alloca %struct.HP, align 8
  %13 = alloca %struct.HP, align 8
  %14 = alloca %struct.HP, align 8
  %15 = alloca %struct.HP, align 8
  %16 = alloca %struct.HP, align 8
  %17 = alloca %struct.HP, align 8
  %18 = alloca %struct.HP, align 8
  %19 = alloca %struct.HP, align 8
  %20 = alloca %"class.std::vector.42", align 8
  %21 = alloca %struct.PT, align 8
  %22 = tail call ptr @_ZNSt6vectorI2HPSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %23 = tail call ptr @_ZNSt6vectorI2HPSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  tail call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2HPSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %22, ptr %23)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorI2HPSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %24 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not107 = icmp eq i64 %24, 0
  br i1 %.not107, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %2
  %25 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %26 unwind label %.loopexit.split-lp117

26:                                               ; preds = %.lr.ph.preheader
  %27 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %28 = icmp ugt i64 %27, 1
  br i1 %28, label %.lr.ph.peel.next, label %._crit_edge

._crit_edge:                                      ; preds = %43, %26, %2
  %29 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2HPSaIS0_EEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %46 unwind label %56

.lr.ph.peel.next:                                 ; preds = %26, %43
  %indvars.iv = phi i64 [ %indvars.iv.next, %43 ], [ 1, %26 ]
  %30 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #6
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %32 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #6
  invoke void @_ZNK2PTmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %4, ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %33 unwind label %.loopexit116

33:                                               ; preds = %.lr.ph.peel.next
  %34 = add nsw i64 %indvars.iv, -1
  %35 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %34) #6
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %37 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %34) #6
  invoke void @_ZNK2PTmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %37)
          to label %38 unwind label %.loopexit116

38:                                               ; preds = %33
  %39 = call noundef double @_Z5cross2PTS_(ptr noundef nonnull %4, ptr noundef nonnull %5)
  %40 = fcmp une double %39, 0.000000e+00
  br i1 %40, label %41, label %43

41:                                               ; preds = %38
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #6
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(32) %42)
          to label %43 unwind label %.loopexit116

.loopexit116:                                     ; preds = %.lr.ph.peel.next, %33, %41
  %lpad.loopexit118 = landingpad { ptr, i32 }
          cleanup
  br label %141

.loopexit.split-lp117:                            ; preds = %.lr.ph.preheader
  %lpad.loopexit.split-lp119 = landingpad { ptr, i32 }
          cleanup
  br label %141

43:                                               ; preds = %38, %41
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %45 = icmp ugt i64 %44, %indvars.iv.next
  br i1 %45, label %.lr.ph.peel.next, label %._crit_edge, !llvm.loop !5

46:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  %47 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %48 = add i64 %47, 10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaI2HPEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorI2HPSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %48, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %49 unwind label %58

49:                                               ; preds = %46
  call void @_ZNSt15__new_allocatorI2HPED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  %50 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not108 = icmp eq i64 %50, 0
  br i1 %.not108, label %.preheader81, label %.preheader87

.preheader87:                                     ; preds = %49, %.critedge2
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %.critedge2 ], [ 0, %49 ]
  %.05699 = phi i32 [ %86, %.critedge2 ], [ 0, %49 ]
  %.05798 = phi i64 [ %indvars.iv123, %.critedge2 ], [ 0, %49 ]
  %51 = sext i32 %.05699 to i64
  %sext = shl i64 %.05798, 32
  %52 = ashr exact i64 %sext, 32
  %invariant.op = add nsw i64 %52, 1
  br label %60

.preheader81.loopexit:                            ; preds = %.critedge2
  %53 = shl i64 %indvars.iv123, 32
  %54 = ashr exact i64 %53, 32
  %55 = sext i32 %86 to i64
  br label %.preheader81

.preheader81:                                     ; preds = %.preheader81.loopexit, %49
  %.057.lcssa = phi i64 [ 0, %49 ], [ %54, %.preheader81.loopexit ]
  %.056.lcssa = phi i64 [ 0, %49 ], [ %55, %.preheader81.loopexit ]
  %invariant.op156 = add nsw i64 %.057.lcssa, 2
  br label %90

56:                                               ; preds = %._crit_edge
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %141

58:                                               ; preds = %46
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI2HPED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  br label %140

60:                                               ; preds = %.preheader87, %71
  %indvars.iv120 = phi i64 [ %51, %.preheader87 ], [ %indvars.iv.next121, %71 ]
  %61 = icmp sgt i64 %indvars.iv120, %invariant.op
  br i1 %61, label %62, label %.critedge

62:                                               ; preds = %60
  %63 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv126) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %63)
          to label %64 unwind label %.loopexit.split-lp83

64:                                               ; preds = %62
  %65 = add nsw i64 %indvars.iv120, -2
  %66 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %65) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %66)
          to label %67 unwind label %.loopexit.split-lp83

67:                                               ; preds = %64
  %indvars.iv.next121 = add nsw i64 %indvars.iv120, -1
  %68 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv.next121) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %68)
          to label %69 unwind label %.loopexit.split-lp83

69:                                               ; preds = %67
  %70 = invoke noundef i32 @_Z5check2HPS_S_(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10)
          to label %71 unwind label %.loopexit.split-lp83

71:                                               ; preds = %69
  %.not72 = icmp eq i32 %70, 0
  br i1 %.not72, label %60, label %.critedge, !llvm.loop !8

.loopexit82:                                      ; preds = %76, %78, %80, %82
  %lpad.loopexit84 = landingpad { ptr, i32 }
          cleanup
  br label %139

.loopexit.split-lp83:                             ; preds = %62, %64, %67, %69
  %lpad.loopexit.split-lp85 = landingpad { ptr, i32 }
          cleanup
  br label %139

.critedge:                                        ; preds = %60, %71
  %72 = trunc nsw i64 %indvars.iv120 to i32
  %sext144 = shl i64 %indvars.iv120, 32
  %73 = ashr exact i64 %sext144, 32
  %invariant.op155 = add nsw i64 %73, -1
  br label %74

74:                                               ; preds = %84, %.critedge
  %indvars.iv123 = phi i64 [ %indvars.iv.next124, %84 ], [ %52, %.critedge ]
  %75 = icmp slt i64 %indvars.iv123, %invariant.op155
  br i1 %75, label %76, label %.critedge2

76:                                               ; preds = %74
  %77 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv126) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %77)
          to label %78 unwind label %.loopexit82

78:                                               ; preds = %76
  %79 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv123) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %79)
          to label %80 unwind label %.loopexit82

80:                                               ; preds = %78
  %indvars.iv.next124 = add nsw i64 %indvars.iv123, 1
  %81 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv.next124) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %81)
          to label %82 unwind label %.loopexit82

82:                                               ; preds = %80
  %83 = invoke noundef i32 @_Z5check2HPS_S_(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13)
          to label %84 unwind label %.loopexit82

84:                                               ; preds = %82
  %.not76 = icmp eq i32 %83, 0
  br i1 %.not76, label %74, label %.critedge2, !llvm.loop !9

.critedge2:                                       ; preds = %74, %84
  %85 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv126) #6
  %86 = add nsw i32 %72, 1
  %87 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %73) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %87, ptr noundef nonnull align 8 dereferenceable(32) %85, i64 32, i1 false), !tbaa.struct !10
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %88 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %89 = icmp ugt i64 %88, %indvars.iv.next127
  br i1 %89, label %.preheader87, label %.preheader81.loopexit, !llvm.loop !15

90:                                               ; preds = %.preheader81, %101
  %indvars.iv129 = phi i64 [ %.056.lcssa, %.preheader81 ], [ %indvars.iv.next130, %101 ]
  %91 = icmp sgt i64 %indvars.iv129, %invariant.op156
  br i1 %91, label %92, label %.critedge4

92:                                               ; preds = %90
  %93 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.057.lcssa) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %93)
          to label %94 unwind label %.loopexit.split-lp

94:                                               ; preds = %92
  %95 = add nsw i64 %indvars.iv129, -2
  %96 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %95) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %96)
          to label %97 unwind label %.loopexit.split-lp

97:                                               ; preds = %94
  %indvars.iv.next130 = add nsw i64 %indvars.iv129, -1
  %98 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv.next130) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %98)
          to label %99 unwind label %.loopexit.split-lp

99:                                               ; preds = %97
  %100 = invoke noundef i32 @_Z5check2HPS_S_(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16)
          to label %101 unwind label %.loopexit.split-lp

101:                                              ; preds = %99
  %.not = icmp eq i32 %100, 0
  br i1 %.not, label %90, label %.critedge4, !llvm.loop !16

.loopexit80:                                      ; preds = %107, %109, %111, %113
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %139

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

.critedge4:                                       ; preds = %90, %101
  %102 = shl i64 %indvars.iv129, 32
  %sext146 = add i64 %102, -4294967296
  %103 = ashr exact i64 %sext146, 32
  %sext147 = shl i64 %indvars.iv129, 32
  %104 = ashr exact i64 %sext147, 32
  %invariant.op157 = add nsw i64 %104, -2
  br label %105

105:                                              ; preds = %115, %.critedge4
  %indvars.iv132 = phi i64 [ %indvars.iv.next133, %115 ], [ %.057.lcssa, %.critedge4 ]
  %106 = icmp slt i64 %indvars.iv132, %invariant.op157
  br i1 %106, label %107, label %.critedge6

107:                                              ; preds = %105
  %108 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %103) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %108)
          to label %109 unwind label %.loopexit80

109:                                              ; preds = %107
  %110 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv132) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %110)
          to label %111 unwind label %.loopexit80

111:                                              ; preds = %109
  %indvars.iv.next133 = add nsw i64 %indvars.iv132, 1
  %112 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv.next133) #6
  invoke void @_ZN2HPC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %112)
          to label %113 unwind label %.loopexit80

113:                                              ; preds = %111
  %114 = invoke noundef i32 @_Z5check2HPS_S_(ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19)
          to label %115 unwind label %.loopexit80

115:                                              ; preds = %113
  %.not70 = icmp eq i32 %114, 0
  br i1 %.not70, label %105, label %.critedge6, !llvm.loop !17

.critedge6:                                       ; preds = %105, %115
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #6
  call void @_ZNSt6vectorI2HPSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %116 = icmp slt i64 %indvars.iv132, %indvars.iv129
  br i1 %116, label %.lr.ph103, label %._crit_edge104

._crit_edge104:                                   ; preds = %121, %.critedge6
  call void @_ZNSt6vectorI2PTSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %117 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %118 = icmp ugt i64 %117, 2
  br i1 %118, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %._crit_edge104
  %119 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %.not109 = icmp eq i64 %119, 0
  br i1 %.not109, label %.loopexit, label %.lr.ph106

.lr.ph103:                                        ; preds = %.critedge6, %121
  %indvars.iv136 = phi i64 [ %indvars.iv.next137, %121 ], [ %indvars.iv132, %.critedge6 ]
  %120 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv136) #6
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(32) %120)
          to label %121 unwind label %123

121:                                              ; preds = %.lr.ph103
  %indvars.iv.next137 = add nsw i64 %indvars.iv136, 1
  %122 = icmp slt i64 %indvars.iv.next137, %104
  br i1 %122, label %.lr.ph103, label %._crit_edge104, !llvm.loop !18

123:                                              ; preds = %.lr.ph103
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %138

.lr.ph106:                                        ; preds = %.preheader, %133
  %indvars.iv139 = phi i64 [ %indvars.iv.next140, %133 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  %125 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv139) #6
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 1
  %126 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %127 = trunc i64 %126 to i32
  %128 = trunc nuw i64 %indvars.iv.next140 to i32
  %129 = srem i32 %128, %127
  %130 = zext nneg i32 %129 to i64
  %131 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %130) #6
  invoke void @_ZN2HP12intersectionERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %21, ptr noundef nonnull align 8 dereferenceable(32) %125, ptr noundef nonnull align 8 dereferenceable(32) %131)
          to label %132 unwind label %136

132:                                              ; preds = %.lr.ph106
  invoke void @_ZNSt6vectorI2PTSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %133 unwind label %136

133:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  %134 = call noundef i64 @_ZNKSt6vectorI2HPSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %135 = icmp ugt i64 %134, %indvars.iv.next140
  br i1 %135, label %.lr.ph106, label %.loopexit, !llvm.loop !19

136:                                              ; preds = %132, %.lr.ph106
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %138

.loopexit:                                        ; preds = %133, %.preheader, %._crit_edge104
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #6
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret void

138:                                              ; preds = %136, %123
  %.pn = phi { ptr, i32 } [ %124, %123 ], [ %137, %136 ]
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #6
  br label %139

139:                                              ; preds = %.loopexit80, %.loopexit.split-lp, %.loopexit82, %.loopexit.split-lp83, %138
  %.pn73 = phi { ptr, i32 } [ %.pn, %138 ], [ %lpad.loopexit84, %.loopexit82 ], [ %lpad.loopexit.split-lp85, %.loopexit.split-lp83 ], [ %lpad.loopexit, %.loopexit80 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %140

140:                                              ; preds = %139, %58
  %.pn73.pn = phi { ptr, i32 } [ %.pn73, %139 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %141

141:                                              ; preds = %.loopexit116, %.loopexit.split-lp117, %140, %56
  %.pn78 = phi { ptr, i32 } [ %.pn73.pn, %140 ], [ %57, %56 ], [ %lpad.loopexit118, %.loopexit116 ], [ %lpad.loopexit.split-lp119, %.loopexit.split-lp117 ]
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn78
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2HPSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) local_unnamed_addr #5

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI2HPSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI2HPSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #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 = distinct !{!5, !6, !7}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!"llvm.loop.peeled.count", i32 1}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = !{i64 0, i64 8, !11, i64 8, i64 8, !11, i64 16, i64 8, !11, i64 24, i64 8, !11}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}
!18 = distinct !{!18, !6}
!19 = distinct !{!19, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass