; LLVM IR from ShahjalalShohag/code-library :: Geometry/Delaunay Triangulation.ll (Z3recRKSt6vectorI2PTSaIS0_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 { i64, i64 }
%"struct.std::pair" = type { ptr, ptr }
%"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" = type { ptr }
%"class.std::allocator" = type { i8 }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { ptr }
%"struct.std::_Head_base.1" = type { ptr }
%struct.Quad = type { i8, ptr, ptr, %struct.PT }

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z4circ2PTS_S_S_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z9make_edge2PTS_(ptr noundef, ptr noundef) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z6spliceP4QuadS0_(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z7connectP4QuadS0_(ptr noundef, ptr noundef) #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local { ptr, ptr } @_Z3recRKSt6vectorI2PTSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.std::pair", align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.PT, align 8
  %6 = alloca %struct.PT, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.PT, align 8
  %9 = alloca %struct.PT, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca %struct.PT, align 8
  %14 = alloca %struct.PT, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca %"class.std::vector", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.std::allocator", align 1
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca %"class.std::tuple", align 8
  %32 = alloca %"struct.std::pair", align 8
  %33 = alloca %"class.std::vector", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca %"class.std::allocator", align 1
  %38 = alloca %"class.std::tuple", align 8
  %39 = alloca %struct.PT, align 8
  %40 = alloca %struct.PT, align 8
  %41 = alloca %struct.PT, align 8
  %42 = alloca %struct.PT, align 8
  %43 = alloca ptr, align 8
  %44 = alloca %struct.PT, align 8
  %45 = alloca %struct.PT, align 8
  %46 = alloca ptr, align 8
  %47 = alloca %struct.PT, align 8
  %48 = alloca %struct.PT, align 8
  %49 = alloca %struct.PT, align 8
  %50 = alloca %struct.PT, align 8
  %51 = alloca %struct.PT, align 8
  %52 = alloca %struct.PT, align 8
  %53 = alloca %struct.PT, align 8
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca %struct.PT, align 8
  %57 = alloca %struct.PT, align 8
  %58 = alloca %struct.PT, align 8
  %59 = alloca %struct.PT, align 8
  %60 = alloca %struct.PT, align 8
  %61 = alloca %struct.PT, align 8
  %62 = alloca %struct.PT, align 8
  %63 = alloca ptr, align 8
  %64 = alloca %struct.PT, align 8
  %65 = alloca %struct.PT, align 8
  %66 = alloca %struct.PT, align 8
  %67 = alloca %struct.PT, align 8
  %68 = alloca %struct.PT, align 8
  %69 = alloca %struct.PT, align 8
  %70 = alloca %struct.PT, align 8
  %71 = alloca %struct.PT, align 8
  %72 = alloca %struct.PT, align 8
  %73 = alloca %struct.PT, align 8
  %74 = alloca %struct.PT, align 8
  %75 = alloca %struct.PT, align 8
  %76 = alloca %struct.PT, align 8
  %77 = alloca %struct.PT, align 8
  %78 = alloca %struct.PT, align 8
  %79 = alloca %struct.PT, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #4
  %82 = icmp ule i64 %81, 3
  br i1 %82, label %83, label %139

83:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef 0) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %85)
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef 1) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %87)
  %88 = call noundef ptr @_Z9make_edge2PTS_(ptr noundef %5, ptr noundef %6)
  store ptr %88, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef 1) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %90)
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %92)
  %93 = call noundef ptr @_Z9make_edge2PTS_(ptr noundef %8, ptr noundef %9)
  store ptr %93, ptr %7, align 8, !tbaa !5
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #4
  %96 = icmp eq i64 %95, 2
  br i1 %96, label %97, label %100

97:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %98)
  store ptr %99, ptr %10, align 8, !tbaa !5
  call void @_ZNSt4pairIP4QuadS1_EC2IRS1_S1_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  store i32 1, ptr %11, align 4
  br label %138

100:                                              ; preds = %83
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %101)
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6spliceP4QuadS0_(ptr noundef %102, ptr noundef %103)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef 0) #4
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef 1) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %107)
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef 2) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %109)
  %110 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %105, ptr noundef %13, ptr noundef %14)
  store i64 %110, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %111 = load i64, ptr %12, align 8, !tbaa !9
  %112 = icmp ne i64 %111, 0
  br i1 %112, label %113, label %117

113:                                              ; preds = %100
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = call noundef ptr @_Z7connectP4QuadS0_(ptr noundef %114, ptr noundef %115)
  br label %118

117:                                              ; preds = %100
  br label %118

118:                                              ; preds = %117, %113
  %119 = phi ptr [ %116, %113 ], [ null, %117 ]
  store ptr %119, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %120 = load i64, ptr %12, align 8, !tbaa !9
  %121 = icmp slt i64 %120, 0
  br i1 %121, label %122, label %125

122:                                              ; preds = %118
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  %124 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %123)
  br label %127

125:                                              ; preds = %118
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  br label %127

127:                                              ; preds = %125, %122
  %128 = phi ptr [ %124, %122 ], [ %126, %125 ]
  store ptr %128, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %129 = load i64, ptr %12, align 8, !tbaa !9
  %130 = icmp slt i64 %129, 0
  br i1 %130, label %131, label %133

131:                                              ; preds = %127
  %132 = load ptr, ptr %15, align 8, !tbaa !5
  br label %136

133:                                              ; preds = %127
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %134)
  br label %136

136:                                              ; preds = %133, %131
  %137 = phi ptr [ %132, %131 ], [ %135, %133 ]
  store ptr %137, ptr %17, align 8, !tbaa !5
  call void @_ZNSt4pairIP4QuadS1_EC2IS1_S1_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %138

138:                                              ; preds = %136, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %389

139:                                              ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #4
  %142 = udiv i64 %141, 2
  %143 = trunc i64 %142 to i32
  store i32 %143, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #4
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = call ptr @_ZNKSt6vectorI2PTSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #4
  %146 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %145, ptr %146, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = call ptr @_ZNKSt6vectorI2PTSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %147) #4
  %149 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %148, ptr %149, align 8
  %150 = load i32, ptr %22, align 4, !tbaa !11
  %151 = sext i32 %150 to i64
  %152 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPK2PTSt6vectorIS1_SaIS1_EEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %27, i64 noundef %151) #4
  %153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %152, ptr %153, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #4
  call void @_ZNSaI2PTEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #4
  %154 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8
  %156 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8
  invoke void @_ZNSt6vectorI2PTSaIS0_EEC2IN9__gnu_cxx17__normal_iteratorIPKS0_S2_EEvEET_S9_RKS1_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr %155, ptr %157, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %158 unwind label %222

158:                                              ; preds = %139
  %159 = invoke { ptr, ptr } @_Z3recRKSt6vectorI2PTSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %160 unwind label %226

160:                                              ; preds = %158
  %161 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 0
  %162 = extractvalue { ptr, ptr } %159, 0
  store ptr %162, ptr %161, align 8
  %163 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 1
  %164 = extractvalue { ptr, ptr } %159, 1
  store ptr %164, ptr %163, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #4
  call void @_ZSt3tieIJP4QuadS1_EESt5tupleIJDpRT_EES5_(ptr dead_on_unwind writable sret(%"class.std::tuple") align 8 %31, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  %165 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRP4QuadS2_EEaSIS1_S1_EENSt9enable_ifIXcl12__assignableIT_T0_EEERS3_E4typeEOSt4pairIS6_S7_E(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #4
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #4
  call void @_ZNSt15__new_allocatorI2PTED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #4
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #4
  %168 = load i32, ptr %22, align 4, !tbaa !11
  %169 = sext i32 %168 to i64
  %170 = sub i64 %167, %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  %171 = load ptr, ptr %3, align 8, !tbaa !5
  %172 = call ptr @_ZNKSt6vectorI2PTSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %171) #4
  %173 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  store ptr %172, ptr %173, align 8
  %174 = call ptr @_ZN9__gnu_cxxplIPK2PTSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_EENSA_15difference_typeERKSA_(i64 noundef %170, ptr noundef nonnull align 8 dereferenceable(8) %35) #4
  %175 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  store ptr %174, ptr %175, align 8
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = call ptr @_ZNKSt6vectorI2PTSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %176) #4
  %178 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %177, ptr %178, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #4
  call void @_ZNSaI2PTEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #4
  %179 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8
  %181 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8
  invoke void @_ZNSt6vectorI2PTSaIS0_EEC2IN9__gnu_cxx17__normal_iteratorIPKS0_S2_EEvEET_S9_RKS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr %180, ptr %182, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %183 unwind label %231

183:                                              ; preds = %160
  %184 = invoke { ptr, ptr } @_Z3recRKSt6vectorI2PTSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %185 unwind label %235

185:                                              ; preds = %183
  %186 = getelementptr inbounds { ptr, ptr }, ptr %32, i32 0, i32 0
  %187 = extractvalue { ptr, ptr } %184, 0
  store ptr %187, ptr %186, align 8
  %188 = getelementptr inbounds { ptr, ptr }, ptr %32, i32 0, i32 1
  %189 = extractvalue { ptr, ptr } %184, 1
  store ptr %189, ptr %188, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #4
  call void @_ZSt3tieIJP4QuadS1_EESt5tupleIJDpRT_EES5_(ptr dead_on_unwind writable sret(%"class.std::tuple") align 8 %38, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %21) #4
  %190 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRP4QuadS2_EEaSIS1_S1_EENSt9enable_ifIXcl12__assignableIT_T0_EEERS3_E4typeEOSt4pairIS6_S7_E(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %32) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #4
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #4
  call void @_ZNSt15__new_allocatorI2PTED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #4
  br label %191

191:                                              ; preds = %221, %185
  %192 = load ptr, ptr %19, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.Quad, ptr %192, i32 0, i32 3
  %194 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %39, ptr noundef nonnull align 8 dereferenceable(40) %194)
  %195 = load ptr, ptr %18, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.Quad, ptr %195, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 8 dereferenceable(16) %196)
  %197 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %193, ptr noundef %39, ptr noundef %40)
  %198 = icmp slt i64 %197, 0
  br i1 %198, label %199, label %203

199:                                              ; preds = %191
  %200 = load ptr, ptr %18, align 8, !tbaa !5
  %201 = call noundef ptr @_ZN4Quad4nextEv(ptr noundef nonnull align 8 dereferenceable(40) %200)
  store ptr %201, ptr %18, align 8, !tbaa !5
  %202 = icmp ne ptr %201, null
  br i1 %202, label %219, label %203

203:                                              ; preds = %199, %191
  %204 = load ptr, ptr %18, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.Quad, ptr %204, i32 0, i32 3
  %206 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %41, ptr noundef nonnull align 8 dereferenceable(40) %206)
  %207 = load ptr, ptr %19, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.Quad, ptr %207, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 8 dereferenceable(16) %208)
  %209 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %205, ptr noundef %41, ptr noundef %42)
  %210 = icmp sgt i64 %209, 0
  br i1 %210, label %211, label %217

211:                                              ; preds = %203
  %212 = load ptr, ptr %19, align 8, !tbaa !5
  %213 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %212)
  %214 = getelementptr inbounds %struct.Quad, ptr %213, i32 0, i32 1
  %215 = load ptr, ptr %214, align 8, !tbaa !13
  store ptr %215, ptr %19, align 8, !tbaa !5
  %216 = icmp ne ptr %215, null
  br label %217

217:                                              ; preds = %211, %203
  %218 = phi i1 [ false, %203 ], [ %216, %211 ]
  br label %219

219:                                              ; preds = %217, %199
  %220 = phi i1 [ true, %199 ], [ %218, %217 ]
  br i1 %220, label %221, label %240

221:                                              ; preds = %219
  br label %191, !llvm.loop !17

222:                                              ; preds = %139
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %29, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %30, align 4
  br label %230

226:                                              ; preds = %158
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %29, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %30, align 4
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #4
  br label %230

230:                                              ; preds = %226, %222
  call void @_ZNSt15__new_allocatorI2PTED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  br label %388

231:                                              ; preds = %160
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %29, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %30, align 4
  br label %239

235:                                              ; preds = %183
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %29, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %30, align 4
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #4
  br label %239

239:                                              ; preds = %235, %231
  call void @_ZNSt15__new_allocatorI2PTED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #4
  br label %388

240:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  %241 = load ptr, ptr %19, align 8, !tbaa !5
  %242 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %241)
  %243 = load ptr, ptr %18, align 8, !tbaa !5
  %244 = call noundef ptr @_Z7connectP4QuadS0_(ptr noundef %242, ptr noundef %243)
  store ptr %244, ptr %43, align 8, !tbaa !5
  %245 = load ptr, ptr %18, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.Quad, ptr %245, i32 0, i32 3
  %247 = load ptr, ptr %20, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.Quad, ptr %247, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(16) %248)
  %249 = call noundef zeroext i1 @_ZNK2PTeqES_(ptr noundef nonnull align 8 dereferenceable(16) %246, ptr noundef %44)
  br i1 %249, label %250, label %253

250:                                              ; preds = %240
  %251 = load ptr, ptr %43, align 8, !tbaa !5
  %252 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %251)
  store ptr %252, ptr %20, align 8, !tbaa !5
  br label %253

253:                                              ; preds = %250, %240
  %254 = load ptr, ptr %19, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.Quad, ptr %254, i32 0, i32 3
  %256 = load ptr, ptr %21, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.Quad, ptr %256, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %257)
  %258 = call noundef zeroext i1 @_ZNK2PTeqES_(ptr noundef nonnull align 8 dereferenceable(16) %255, ptr noundef %45)
  br i1 %258, label %259, label %261

259:                                              ; preds = %253
  %260 = load ptr, ptr %43, align 8, !tbaa !5
  store ptr %260, ptr %21, align 8, !tbaa !5
  br label %261

261:                                              ; preds = %259, %253
  br label %262

262:                                              ; preds = %386, %261
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  %263 = load ptr, ptr %43, align 8, !tbaa !5
  %264 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %263)
  %265 = getelementptr inbounds %struct.Quad, ptr %264, i32 0, i32 1
  %266 = load ptr, ptr %265, align 8, !tbaa !13
  store ptr %266, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #4
  %267 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %47, ptr noundef nonnull align 8 dereferenceable(40) %267)
  %268 = load ptr, ptr %43, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %48, ptr noundef nonnull align 8 dereferenceable(40) %268)
  %269 = load ptr, ptr %43, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.Quad, ptr %269, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(16) %270)
  %271 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef %48, ptr noundef %49)
  %272 = icmp sgt i64 %271, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #4
  br i1 %272, label %273, label %297

273:                                              ; preds = %262
  br label %274

274:                                              ; preds = %283, %273
  %275 = load ptr, ptr %46, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.Quad, ptr %275, i32 0, i32 1
  %277 = load ptr, ptr %276, align 8, !tbaa !13
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %50, ptr noundef nonnull align 8 dereferenceable(40) %277)
  %278 = load ptr, ptr %43, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %51, ptr noundef nonnull align 8 dereferenceable(40) %278)
  %279 = load ptr, ptr %43, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.Quad, ptr %279, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(16) %280)
  %281 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %53, ptr noundef nonnull align 8 dereferenceable(40) %281)
  %282 = call noundef zeroext i1 @_Z4circ2PTS_S_S_(ptr noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %53)
  br i1 %282, label %283, label %296

283:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #4
  %284 = load ptr, ptr %46, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.Quad, ptr %284, i32 0, i32 1
  %286 = load ptr, ptr %285, align 8, !tbaa !13
  store ptr %286, ptr %54, align 8, !tbaa !5
  %287 = load ptr, ptr %46, align 8, !tbaa !5
  %288 = load ptr, ptr %46, align 8, !tbaa !5
  %289 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %288)
  call void @_Z6spliceP4QuadS0_(ptr noundef %287, ptr noundef %289)
  %290 = load ptr, ptr %46, align 8, !tbaa !5
  %291 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %290)
  %292 = load ptr, ptr %46, align 8, !tbaa !5
  %293 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %292)
  %294 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %293)
  call void @_Z6spliceP4QuadS0_(ptr noundef %291, ptr noundef %294)
  %295 = load ptr, ptr %54, align 8, !tbaa !5
  store ptr %295, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #4
  br label %274, !llvm.loop !19

296:                                              ; preds = %274
  br label %297

297:                                              ; preds = %296, %262
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #4
  %298 = load ptr, ptr %43, align 8, !tbaa !5
  %299 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %298)
  store ptr %299, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %56) #4
  %300 = load ptr, ptr %55, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %56, ptr noundef nonnull align 8 dereferenceable(40) %300)
  %301 = load ptr, ptr %43, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %57, ptr noundef nonnull align 8 dereferenceable(40) %301)
  %302 = load ptr, ptr %43, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.Quad, ptr %302, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 8 dereferenceable(16) %303)
  %304 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef %57, ptr noundef %58)
  %305 = icmp sgt i64 %304, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr %56) #4
  br i1 %305, label %306, label %328

306:                                              ; preds = %297
  br label %307

307:                                              ; preds = %315, %306
  %308 = load ptr, ptr %55, align 8, !tbaa !5
  %309 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %308)
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %59, ptr noundef nonnull align 8 dereferenceable(40) %309)
  %310 = load ptr, ptr %43, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %60, ptr noundef nonnull align 8 dereferenceable(40) %310)
  %311 = load ptr, ptr %43, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.Quad, ptr %311, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull align 8 dereferenceable(16) %312)
  %313 = load ptr, ptr %55, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %62, ptr noundef nonnull align 8 dereferenceable(40) %313)
  %314 = call noundef zeroext i1 @_Z4circ2PTS_S_S_(ptr noundef %59, ptr noundef %60, ptr noundef %61, ptr noundef %62)
  br i1 %314, label %315, label %327

315:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #4
  %316 = load ptr, ptr %55, align 8, !tbaa !5
  %317 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %316)
  store ptr %317, ptr %63, align 8, !tbaa !5
  %318 = load ptr, ptr %55, align 8, !tbaa !5
  %319 = load ptr, ptr %55, align 8, !tbaa !5
  %320 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %319)
  call void @_Z6spliceP4QuadS0_(ptr noundef %318, ptr noundef %320)
  %321 = load ptr, ptr %55, align 8, !tbaa !5
  %322 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %321)
  %323 = load ptr, ptr %55, align 8, !tbaa !5
  %324 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %323)
  %325 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %324)
  call void @_Z6spliceP4QuadS0_(ptr noundef %322, ptr noundef %325)
  %326 = load ptr, ptr %63, align 8, !tbaa !5
  store ptr %326, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #4
  br label %307, !llvm.loop !20

327:                                              ; preds = %307
  br label %328

328:                                              ; preds = %327, %297
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #4
  %329 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %64, ptr noundef nonnull align 8 dereferenceable(40) %329)
  %330 = load ptr, ptr %43, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %65, ptr noundef nonnull align 8 dereferenceable(40) %330)
  %331 = load ptr, ptr %43, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.Quad, ptr %331, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 8 dereferenceable(16) %332)
  %333 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef %65, ptr noundef %66)
  %334 = icmp sgt i64 %333, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %67) #4
  br i1 %334, label %343, label %335

335:                                              ; preds = %328
  %336 = load ptr, ptr %55, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %67, ptr noundef nonnull align 8 dereferenceable(40) %336)
  %337 = load ptr, ptr %43, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %68, ptr noundef nonnull align 8 dereferenceable(40) %337)
  %338 = load ptr, ptr %43, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.Quad, ptr %338, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %69, ptr noundef nonnull align 8 dereferenceable(16) %339)
  %340 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %67, ptr noundef %68, ptr noundef %69)
  %341 = icmp sgt i64 %340, 0
  %342 = xor i1 %341, true
  br label %343

343:                                              ; preds = %335, %328
  %344 = phi i1 [ false, %328 ], [ %342, %335 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %67) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #4
  br i1 %344, label %345, label %346

345:                                              ; preds = %343
  store i32 4, ptr %11, align 4
  br label %384

346:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 16, ptr %70) #4
  %347 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %70, ptr noundef nonnull align 8 dereferenceable(40) %347)
  %348 = load ptr, ptr %43, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %71, ptr noundef nonnull align 8 dereferenceable(40) %348)
  %349 = load ptr, ptr %43, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.Quad, ptr %349, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %72, ptr noundef nonnull align 8 dereferenceable(16) %350)
  %351 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef %71, ptr noundef %72)
  %352 = icmp sgt i64 %351, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %73) #4
  br i1 %352, label %353, label %370

353:                                              ; preds = %346
  %354 = load ptr, ptr %55, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %73, ptr noundef nonnull align 8 dereferenceable(40) %354)
  %355 = load ptr, ptr %43, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %74, ptr noundef nonnull align 8 dereferenceable(40) %355)
  %356 = load ptr, ptr %43, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.Quad, ptr %356, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 8 dereferenceable(16) %357)
  %358 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %73, ptr noundef %74, ptr noundef %75)
  %359 = icmp sgt i64 %358, 0
  br i1 %359, label %360, label %368

360:                                              ; preds = %353
  %361 = load ptr, ptr %55, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %76, ptr noundef nonnull align 8 dereferenceable(40) %361)
  %362 = load ptr, ptr %55, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.Quad, ptr %362, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %77, ptr noundef nonnull align 8 dereferenceable(16) %363)
  %364 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %78, ptr noundef nonnull align 8 dereferenceable(40) %364)
  %365 = load ptr, ptr %46, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.Quad, ptr %365, i32 0, i32 3
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %79, ptr noundef nonnull align 8 dereferenceable(16) %366)
  %367 = call noundef zeroext i1 @_Z4circ2PTS_S_S_(ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %79)
  br label %368

368:                                              ; preds = %360, %353
  %369 = phi i1 [ false, %353 ], [ %367, %360 ]
  br label %370

370:                                              ; preds = %368, %346
  %371 = phi i1 [ true, %346 ], [ %369, %368 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %73) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #4
  br i1 %371, label %372, label %377

372:                                              ; preds = %370
  %373 = load ptr, ptr %55, align 8, !tbaa !5
  %374 = load ptr, ptr %43, align 8, !tbaa !5
  %375 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %374)
  %376 = call noundef ptr @_Z7connectP4QuadS0_(ptr noundef %373, ptr noundef %375)
  store ptr %376, ptr %43, align 8, !tbaa !5
  br label %383

377:                                              ; preds = %370
  %378 = load ptr, ptr %43, align 8, !tbaa !5
  %379 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %378)
  %380 = load ptr, ptr %46, align 8, !tbaa !5
  %381 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %380)
  %382 = call noundef ptr @_Z7connectP4QuadS0_(ptr noundef %379, ptr noundef %381)
  store ptr %382, ptr %43, align 8, !tbaa !5
  br label %383

383:                                              ; preds = %377, %372
  store i32 0, ptr %11, align 4
  br label %384

384:                                              ; preds = %383, %345
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  %385 = load i32, ptr %11, align 4
  switch i32 %385, label %396 [
    i32 0, label %386
    i32 4, label %387
  ]

386:                                              ; preds = %384
  br label %262, !llvm.loop !21

387:                                              ; preds = %384
  call void @_ZNSt4pairIP4QuadS1_EC2IRS1_S4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %389

388:                                              ; preds = %239, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %391

389:                                              ; preds = %387, %138
  %390 = load { ptr, ptr }, ptr %2, align 8
  ret { ptr, ptr } %390

391:                                              ; preds = %388
  %392 = load ptr, ptr %29, align 8
  %393 = load i32, ptr %30, align 4
  %394 = insertvalue { ptr, i32 } poison, ptr %392, 0
  %395 = insertvalue { ptr, i32 } %394, i32 %393, 1
  resume { ptr, i32 } %395

396:                                              ; preds = %384
  unreachable
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJP4QuadS1_EESt5tupleIJDpRT_EES5_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZN9__gnu_cxxplIPK2PTSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_EENSA_15difference_typeERKSA_(i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

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

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

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

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


; 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 { i64, i64 }
%"struct.std::pair" = type { ptr, ptr }
%"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" = type { ptr }
%"class.std::allocator" = type { i8 }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { ptr }
%"struct.std::_Head_base.1" = type { ptr }

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z4circ2PTS_S_S_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z9make_edge2PTS_(ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z6spliceP4QuadS0_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z7connectP4QuadS0_(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local { ptr, ptr } @_Z3recRKSt6vectorI2PTSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.std::pair", align 8
  %3 = alloca ptr, align 8
  %4 = alloca %struct.PT, align 8
  %5 = alloca %struct.PT, align 8
  %6 = alloca %struct.PT, align 8
  %7 = alloca %struct.PT, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.PT, align 8
  %10 = alloca %struct.PT, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca %"class.std::tuple", align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca %"class.std::tuple", align 8
  %27 = alloca %struct.PT, align 8
  %28 = alloca %struct.PT, align 8
  %29 = alloca %struct.PT, align 8
  %30 = alloca %struct.PT, align 8
  %31 = alloca %struct.PT, align 8
  %32 = alloca %struct.PT, align 8
  %33 = alloca %struct.PT, align 8
  %34 = alloca %struct.PT, align 8
  %35 = alloca %struct.PT, align 8
  %36 = alloca %struct.PT, align 8
  %37 = alloca %struct.PT, align 8
  %38 = alloca %struct.PT, align 8
  %39 = alloca %struct.PT, align 8
  %40 = alloca %struct.PT, align 8
  %41 = alloca %struct.PT, align 8
  %42 = alloca %struct.PT, align 8
  %43 = alloca %struct.PT, align 8
  %44 = alloca %struct.PT, align 8
  %45 = alloca %struct.PT, align 8
  %46 = alloca %struct.PT, align 8
  %47 = alloca %struct.PT, align 8
  %48 = alloca %struct.PT, align 8
  %49 = alloca %struct.PT, align 8
  %50 = alloca %struct.PT, align 8
  %51 = alloca %struct.PT, align 8
  %52 = alloca %struct.PT, align 8
  %53 = alloca %struct.PT, align 8
  %54 = alloca %struct.PT, align 8
  %55 = alloca %struct.PT, align 8
  %56 = alloca %struct.PT, align 8
  %57 = alloca %struct.PT, align 8
  %58 = alloca %struct.PT, align 8
  %59 = alloca %struct.PT, align 8
  %60 = alloca %struct.PT, align 8
  %61 = alloca %struct.PT, align 8
  %62 = alloca %struct.PT, align 8
  %63 = tail call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %64 = icmp ult i64 %63, 4
  br i1 %64, label %65, label %91

65:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %66 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %66)
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %67)
  %68 = call noundef ptr @_Z9make_edge2PTS_(ptr noundef nonnull %4, ptr noundef nonnull %5)
  store ptr %68, ptr %3, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %69)
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %70)
  %71 = call noundef ptr @_Z9make_edge2PTS_(ptr noundef nonnull %6, ptr noundef nonnull %7)
  %72 = call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %73 = icmp eq i64 %72, 2
  br i1 %73, label %74, label %76

74:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %75 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %68)
  store ptr %75, ptr %8, align 8, !tbaa !5
  call void @_ZNSt4pairIP4QuadS1_EC2IRS1_S1_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %90

76:                                               ; preds = %65
  %77 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %68)
  call void @_Z6spliceP4QuadS0_(ptr noundef %77, ptr noundef %71)
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #4
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %79)
  %80 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 2) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %80)
  %81 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %78, ptr noundef nonnull %9, ptr noundef nonnull %10)
  %.not104 = icmp eq i64 %81, 0
  br i1 %.not104, label %.thread, label %82

.thread:                                          ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  br label %86

82:                                               ; preds = %76
  %83 = call noundef ptr @_Z7connectP4QuadS0_(ptr noundef %71, ptr noundef nonnull %68)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %84 = icmp slt i64 %81, 0
  br i1 %84, label %.thread105, label %86

.thread105:                                       ; preds = %82
  %85 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %83)
  store ptr %85, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  br label %88

86:                                               ; preds = %.thread, %82
  store ptr %68, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %87 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %71)
  br label %88

88:                                               ; preds = %.thread105, %86
  %89 = phi ptr [ %87, %86 ], [ %83, %.thread105 ]
  store ptr %89, ptr %12, align 8, !tbaa !5
  call void @_ZNSt4pairIP4QuadS1_EC2IS1_S1_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br label %90

90:                                               ; preds = %88, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %215

91:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  %92 = tail call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #4
  %93 = tail call ptr @_ZNKSt6vectorI2PTSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #4
  %94 = tail call ptr @_ZNKSt6vectorI2PTSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  store ptr %94, ptr %19, align 8
  %95 = shl i64 %92, 31
  %96 = ashr i64 %95, 32
  %97 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPK2PTSt6vectorIS1_SaIS1_EEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef %96) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #4
  call void @_ZNSaI2PTEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #4
  invoke void @_ZNSt6vectorI2PTSaIS0_EEC2IN9__gnu_cxx17__normal_iteratorIPKS0_S2_EEvEET_S9_RKS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr %93, ptr %97, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %98 unwind label %138

98:                                               ; preds = %91
  %99 = invoke { ptr, ptr } @_Z3recRKSt6vectorI2PTSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %100 unwind label %140

100:                                              ; preds = %98
  %101 = extractvalue { ptr, ptr } %99, 0
  store ptr %101, ptr %17, align 8
  %102 = getelementptr inbounds i8, ptr %17, i64 8
  %103 = extractvalue { ptr, ptr } %99, 1
  store ptr %103, ptr %102, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #4
  call void @_ZSt3tieIJP4QuadS1_EESt5tupleIJDpRT_EES5_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  %104 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRP4QuadS2_EEaSIS1_S1_EENSt9enable_ifIXcl12__assignableIT_T0_EEERS3_E4typeEOSt4pairIS6_S7_E(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #4
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  call void @_ZNSt15__new_allocatorI2PTED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #4
  %105 = call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %106 = sub i64 %105, %96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #4
  %107 = call ptr @_ZNKSt6vectorI2PTSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  store ptr %107, ptr %24, align 8
  %108 = call ptr @_ZN9__gnu_cxxplIPK2PTSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_EENSA_15difference_typeERKSA_(i64 noundef %106, ptr noundef nonnull align 8 dereferenceable(8) %24) #4
  %109 = call ptr @_ZNKSt6vectorI2PTSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #4
  call void @_ZNSaI2PTEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #4
  invoke void @_ZNSt6vectorI2PTSaIS0_EEC2IN9__gnu_cxx17__normal_iteratorIPKS0_S2_EEvEET_S9_RKS1_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr %108, ptr %109, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %110 unwind label %143

110:                                              ; preds = %100
  %111 = invoke { ptr, ptr } @_Z3recRKSt6vectorI2PTSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %112 unwind label %145

112:                                              ; preds = %110
  %113 = extractvalue { ptr, ptr } %111, 0
  store ptr %113, ptr %22, align 8
  %114 = getelementptr inbounds i8, ptr %22, i64 8
  %115 = extractvalue { ptr, ptr } %111, 1
  store ptr %115, ptr %114, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #4
  call void @_ZSt3tieIJP4QuadS1_EESt5tupleIJDpRT_EES5_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %26, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  %116 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRP4QuadS2_EEaSIS1_S1_EENSt9enable_ifIXcl12__assignableIT_T0_EEERS3_E4typeEOSt4pairIS6_S7_E(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #4
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #4
  call void @_ZNSt15__new_allocatorI2PTED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #4
  br label %.critedge

.critedge:                                        ; preds = %.critedge.backedge, %112
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i64 24
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %27, ptr noundef nonnull align 8 dereferenceable(40) %119)
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %120, i64 24
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %121)
  %122 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %118, ptr noundef nonnull %27, ptr noundef nonnull %28)
  %123 = icmp slt i64 %122, 0
  %.pre = load ptr, ptr %13, align 8, !tbaa !5
  br i1 %123, label %124, label %126

124:                                              ; preds = %.critedge
  %125 = call noundef ptr @_ZN4Quad4nextEv(ptr noundef nonnull align 8 dereferenceable(40) %.pre)
  store ptr %125, ptr %13, align 8, !tbaa !5
  %.not = icmp eq ptr %125, null
  br i1 %.not, label %126, label %.critedge.backedge

126:                                              ; preds = %124, %.critedge
  %127 = phi ptr [ null, %124 ], [ %.pre, %.critedge ]
  %128 = getelementptr inbounds i8, ptr %127, i64 24
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %29, ptr noundef nonnull align 8 dereferenceable(40) %129)
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = getelementptr inbounds i8, ptr %130, i64 24
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %131)
  %132 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %128, ptr noundef nonnull %29, ptr noundef nonnull %30)
  %133 = icmp sgt i64 %132, 0
  %.pre112 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %.pre112)
  br i1 %133, label %135, label %.critedge2

135:                                              ; preds = %126
  %136 = getelementptr inbounds i8, ptr %134, i64 8
  %137 = load ptr, ptr %136, align 8, !tbaa !9, !nonnull !14, !noundef !14
  store ptr %137, ptr %14, align 8, !tbaa !5
  br label %.critedge.backedge

.critedge.backedge:                               ; preds = %135, %124
  br label %.critedge, !llvm.loop !15

138:                                              ; preds = %91
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %142

140:                                              ; preds = %98
  %141 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  br label %142

142:                                              ; preds = %140, %138
  %.pn = phi { ptr, i32 } [ %141, %140 ], [ %139, %138 ]
  call void @_ZNSt15__new_allocatorI2PTED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #4
  br label %214

143:                                              ; preds = %100
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %147

145:                                              ; preds = %110
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #4
  br label %147

147:                                              ; preds = %145, %143
  %.pn100 = phi { ptr, i32 } [ %146, %145 ], [ %144, %143 ]
  call void @_ZNSt15__new_allocatorI2PTED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #4
  br label %214

.critedge2:                                       ; preds = %126
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  %149 = call noundef ptr @_Z7connectP4QuadS0_(ptr noundef %134, ptr noundef %148)
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = getelementptr inbounds i8, ptr %150, i64 24
  %152 = load ptr, ptr %15, align 8, !tbaa !5
  %153 = getelementptr inbounds i8, ptr %152, i64 24
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %153)
  %154 = call noundef zeroext i1 @_ZNK2PTeqES_(ptr noundef nonnull align 8 dereferenceable(16) %151, ptr noundef nonnull %31)
  br i1 %154, label %155, label %157

155:                                              ; preds = %.critedge2
  %156 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %149)
  store ptr %156, ptr %15, align 8, !tbaa !5
  br label %157

157:                                              ; preds = %155, %.critedge2
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = getelementptr inbounds i8, ptr %158, i64 24
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = getelementptr inbounds i8, ptr %160, i64 24
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %161)
  %162 = call noundef zeroext i1 @_ZNK2PTeqES_(ptr noundef nonnull align 8 dereferenceable(16) %159, ptr noundef nonnull %32)
  br i1 %162, label %163, label %.preheader113

163:                                              ; preds = %157
  store ptr %149, ptr %16, align 8, !tbaa !5
  br label %.preheader113

.preheader113:                                    ; preds = %163, %157
  br label %164

164:                                              ; preds = %.backedge, %.preheader113
  %.093 = phi ptr [ %149, %.preheader113 ], [ %.093.be, %.backedge ]
  %165 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %.093)
  %166 = getelementptr inbounds i8, ptr %165, i64 8
  %167 = load ptr, ptr %166, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #4
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %33, ptr noundef nonnull align 8 dereferenceable(40) %167)
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %34, ptr noundef nonnull align 8 dereferenceable(40) %.093)
  %168 = getelementptr inbounds i8, ptr %.093, i64 24
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %168)
  %169 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull %34, ptr noundef nonnull %35)
  %170 = icmp sgt i64 %169, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #4
  br i1 %170, label %.preheader110, label %.loopexit111

.preheader110:                                    ; preds = %164, %174
  %.091 = phi ptr [ %175, %174 ], [ %167, %164 ]
  %171 = getelementptr inbounds i8, ptr %.091, i64 8
  %172 = load ptr, ptr %171, align 8, !tbaa !9
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %36, ptr noundef nonnull align 8 dereferenceable(40) %172)
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %37, ptr noundef nonnull align 8 dereferenceable(40) %.093)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %168)
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %39, ptr noundef nonnull align 8 dereferenceable(40) %.091)
  %173 = call noundef zeroext i1 @_Z4circ2PTS_S_S_(ptr noundef nonnull %36, ptr noundef nonnull %37, ptr noundef nonnull %38, ptr noundef nonnull %39)
  br i1 %173, label %174, label %.loopexit111

174:                                              ; preds = %.preheader110
  %175 = load ptr, ptr %171, align 8, !tbaa !9
  %176 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %.091)
  call void @_Z6spliceP4QuadS0_(ptr noundef nonnull %.091, ptr noundef %176)
  %177 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %.091)
  %178 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %.091)
  %179 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %178)
  call void @_Z6spliceP4QuadS0_(ptr noundef %177, ptr noundef %179)
  br label %.preheader110, !llvm.loop !17

.loopexit111:                                     ; preds = %.preheader110, %164
  %.192 = phi ptr [ %167, %164 ], [ %.091, %.preheader110 ]
  %180 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %.093)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %40) #4
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %40, ptr noundef nonnull align 8 dereferenceable(40) %180)
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %41, ptr noundef nonnull align 8 dereferenceable(40) %.093)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 8 dereferenceable(16) %168)
  %181 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull %41, ptr noundef nonnull %42)
  %182 = icmp sgt i64 %181, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #4
  br i1 %182, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %.loopexit111, %185
  %.088 = phi ptr [ %186, %185 ], [ %180, %.loopexit111 ]
  %183 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %.088)
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %43, ptr noundef nonnull align 8 dereferenceable(40) %183)
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %44, ptr noundef nonnull align 8 dereferenceable(40) %.093)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %168)
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %46, ptr noundef nonnull align 8 dereferenceable(40) %.088)
  %184 = call noundef zeroext i1 @_Z4circ2PTS_S_S_(ptr noundef nonnull %43, ptr noundef nonnull %44, ptr noundef nonnull %45, ptr noundef nonnull %46)
  br i1 %184, label %185, label %.loopexit

185:                                              ; preds = %.preheader
  %186 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %.088)
  %187 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %.088)
  call void @_Z6spliceP4QuadS0_(ptr noundef nonnull %.088, ptr noundef %187)
  %188 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %.088)
  %189 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %.088)
  %190 = call noundef ptr @_ZN4Quad4prevEv(ptr noundef nonnull align 8 dereferenceable(40) %189)
  call void @_Z6spliceP4QuadS0_(ptr noundef %188, ptr noundef %190)
  br label %.preheader, !llvm.loop !18

.loopexit:                                        ; preds = %.preheader, %.loopexit111
  %.1 = phi ptr [ %180, %.loopexit111 ], [ %.088, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %47) #4
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %47, ptr noundef nonnull align 8 dereferenceable(40) %.192)
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %48, ptr noundef nonnull align 8 dereferenceable(40) %.093)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(16) %168)
  %191 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull %48, ptr noundef nonnull %49)
  %192 = icmp sgt i64 %191, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %50) #4
  br i1 %192, label %.critedge4, label %193

193:                                              ; preds = %.loopexit
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %50, ptr noundef nonnull align 8 dereferenceable(40) %.1)
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %51, ptr noundef nonnull align 8 dereferenceable(40) %.093)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(16) %168)
  %194 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull %51, ptr noundef nonnull %52)
  %195 = icmp slt i64 %194, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %50) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #4
  br i1 %195, label %213, label %196

.critedge4:                                       ; preds = %.loopexit
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %50) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #4
  br label %196

196:                                              ; preds = %.critedge4, %193
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %53) #4
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %53, ptr noundef nonnull align 8 dereferenceable(40) %.192)
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %54, ptr noundef nonnull align 8 dereferenceable(40) %.093)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 8 dereferenceable(16) %168)
  %197 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull %54, ptr noundef nonnull %55)
  %198 = icmp sgt i64 %197, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %56) #4
  br i1 %198, label %199, label %.critedge6

199:                                              ; preds = %196
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %56, ptr noundef nonnull align 8 dereferenceable(40) %.1)
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %57, ptr noundef nonnull align 8 dereferenceable(40) %.093)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 8 dereferenceable(16) %168)
  %200 = call noundef i64 @_ZNK2PT5crossES_S_(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull %57, ptr noundef nonnull %58)
  %201 = icmp sgt i64 %200, 0
  br i1 %201, label %202, label %.critedge8

202:                                              ; preds = %199
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %59, ptr noundef nonnull align 8 dereferenceable(40) %.1)
  %203 = getelementptr inbounds i8, ptr %.1, i64 24
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef nonnull align 8 dereferenceable(16) %203)
  call void @_ZN4Quad1FEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %61, ptr noundef nonnull align 8 dereferenceable(40) %.192)
  %204 = getelementptr inbounds i8, ptr %.192, i64 24
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %62, ptr noundef nonnull align 8 dereferenceable(16) %204)
  %205 = call noundef zeroext i1 @_Z4circ2PTS_S_S_(ptr noundef nonnull %59, ptr noundef nonnull %60, ptr noundef nonnull %61, ptr noundef nonnull %62)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %56) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %53) #4
  br i1 %205, label %206, label %209

.critedge6:                                       ; preds = %196
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %56) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %53) #4
  br label %206

206:                                              ; preds = %.critedge6, %202
  %207 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %.093)
  %208 = call noundef ptr @_Z7connectP4QuadS0_(ptr noundef nonnull %.1, ptr noundef %207)
  br label %.backedge

.backedge:                                        ; preds = %206, %209
  %.093.be = phi ptr [ %208, %206 ], [ %212, %209 ]
  br label %164

.critedge8:                                       ; preds = %199
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %56) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %53) #4
  br label %209

209:                                              ; preds = %.critedge8, %202
  %210 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %.093)
  %211 = call noundef ptr @_ZN4Quad1rEv(ptr noundef nonnull align 8 dereferenceable(40) %.192)
  %212 = call noundef ptr @_Z7connectP4QuadS0_(ptr noundef %210, ptr noundef %211)
  br label %.backedge

213:                                              ; preds = %193
  call void @_ZNSt4pairIP4QuadS1_EC2IRS1_S4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  br label %215

214:                                              ; preds = %147, %142
  %.pn100.pn = phi { ptr, i32 } [ %.pn100, %147 ], [ %.pn, %142 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  resume { ptr, i32 } %.pn100.pn

215:                                              ; preds = %213, %90
  %.fca.0.load = load ptr, ptr %2, align 8
  %.fca.0.insert = insertvalue { ptr, ptr } poison, ptr %.fca.0.load, 0
  %.fca.1.gep = getelementptr inbounds i8, ptr %2, i64 8
  %.fca.1.load = load ptr, ptr %.fca.1.gep, align 8
  %.fca.1.insert = insertvalue { ptr, ptr } %.fca.0.insert, ptr %.fca.1.load, 1
  ret { ptr, ptr } %.fca.1.insert
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJP4QuadS1_EESt5tupleIJDpRT_EES5_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZN9__gnu_cxxplIPK2PTSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_EENSA_15difference_typeERKSA_(i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass