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

; 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.std::pair.32" = type <{ %struct.PT, i32, [4 x i8] }>
%struct.PT = type { double, double }

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z11orientation2PTS_S_(ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18point_poly_tangentRSt6vectorI2PTSaIS0_EES0_iii(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.32") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca %struct.PT, align 8
  %16 = alloca %struct.PT, align 8
  %17 = alloca %struct.PT, align 8
  %18 = alloca i8, align 1
  %19 = alloca %struct.PT, align 8
  %20 = alloca %struct.PT, align 8
  %21 = alloca %struct.PT, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair.32", align 8
  %24 = alloca %struct.PT, align 8
  %25 = alloca %"struct.std::pair.32", align 8
  %26 = alloca %struct.PT, 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 i32, align 4
  %43 = alloca %"struct.std::pair.32", align 8
  %44 = alloca %struct.PT, align 8
  %45 = alloca %struct.PT, align 8
  %46 = alloca %struct.PT, align 8
  store ptr %0, ptr %7, align 8
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %200, %6
  %48 = load i32, ptr %12, align 4, !tbaa !9
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = sub nsw i32 %48, %49
  %51 = icmp sgt i32 %50, 1
  br i1 %51, label %52, label %201

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = load i32, ptr %12, align 4, !tbaa !9
  %55 = add nsw i32 %53, %54
  %56 = ashr i32 %55, 1
  store i32 %56, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %59) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %60)
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = load i32, ptr %13, align 4, !tbaa !9
  %63 = sub nsw i32 %62, 1
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %64) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %65)
  %66 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef %15, ptr noundef %16, ptr noundef %17)
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = sub nsw i32 0, %67
  %69 = icmp ne i32 %66, %68
  %70 = zext i1 %69 to i8
  store i8 %70, ptr %14, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %73) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %74)
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %78) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %79)
  %80 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef %19, ptr noundef %20, ptr noundef %21)
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = sub nsw i32 0, %81
  %83 = icmp ne i32 %80, %82
  %84 = zext i1 %83 to i8
  store i8 %84, ptr %18, align 1, !tbaa !11
  %85 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %86 = trunc i8 %85 to i1
  br i1 %86, label %87, label %95

87:                                               ; preds = %52
  %88 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %95

90:                                               ; preds = %87
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %93) #4
  call void @_ZNSt4pairI2PTiEC2IRS0_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(16) %94, ptr noundef nonnull align 4 dereferenceable(4) %13)
  store i32 1, ptr %22, align 4
  br label %198

95:                                               ; preds = %87, %52
  %96 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %97 = trunc i8 %96 to i1
  br i1 %97, label %121, label %98

98:                                               ; preds = %95
  %99 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %100 = trunc i8 %99 to i1
  br i1 %100, label %121, label %101

101:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #4
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = load i32, ptr %13, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  %106 = load i32, ptr %12, align 4, !tbaa !9
  call void @_Z18point_poly_tangentRSt6vectorI2PTSaIS0_EES0_iii(ptr dead_on_unwind writable sret(%"struct.std::pair.32") align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef %24, i32 noundef %103, i32 noundef %105, i32 noundef %106)
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #4
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %108 = load i32, ptr %10, align 4, !tbaa !9
  %109 = load i32, ptr %11, align 4, !tbaa !9
  %110 = load i32, ptr %13, align 4, !tbaa !9
  %111 = sub nsw i32 %110, 1
  call void @_Z18point_poly_tangentRSt6vectorI2PTSaIS0_EES0_iii(ptr dead_on_unwind writable sret(%"struct.std::pair.32") align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %107, ptr noundef %26, i32 noundef %108, i32 noundef %109, i32 noundef %111)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %112 = getelementptr inbounds %"struct.std::pair.32", ptr %23, i32 0, i32 0
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %112)
  %113 = getelementptr inbounds %"struct.std::pair.32", ptr %25, i32 0, i32 0
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) %113)
  %114 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef %27, ptr noundef %28, ptr noundef %29)
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = icmp eq i32 %114, %115
  br i1 %116, label %117, label %118

117:                                              ; preds = %101
  br label %119

118:                                              ; preds = %101
  br label %119

119:                                              ; preds = %118, %117
  %120 = phi ptr [ %23, %117 ], [ %25, %118 ]
  call void @_ZNSt4pairI2PTiEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(20) %120)
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #4
  br label %198

121:                                              ; preds = %98, %95
  %122 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %123 = trunc i8 %122 to i1
  br i1 %123, label %159, label %124

124:                                              ; preds = %121
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load i32, ptr %13, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef %127) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %128)
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = load i32, ptr %11, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %131) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %132)
  %133 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef %30, ptr noundef %31, ptr noundef %32)
  %134 = load i32, ptr %10, align 4, !tbaa !9
  %135 = icmp eq i32 %133, %134
  br i1 %135, label %136, label %139

136:                                              ; preds = %124
  %137 = load i32, ptr %13, align 4, !tbaa !9
  %138 = sub nsw i32 %137, 1
  store i32 %138, ptr %12, align 4, !tbaa !9
  br label %158

139:                                              ; preds = %124
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = load i32, ptr %11, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %142) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %143)
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %146) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %147)
  %148 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef %33, ptr noundef %34, ptr noundef %35)
  %149 = load i32, ptr %10, align 4, !tbaa !9
  %150 = icmp eq i32 %148, %149
  br i1 %150, label %151, label %154

151:                                              ; preds = %139
  %152 = load i32, ptr %13, align 4, !tbaa !9
  %153 = sub nsw i32 %152, 1
  store i32 %153, ptr %12, align 4, !tbaa !9
  br label %157

154:                                              ; preds = %139
  %155 = load i32, ptr %13, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %11, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %154, %151
  br label %158

158:                                              ; preds = %157, %136
  br label %159

159:                                              ; preds = %158, %121
  %160 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %161 = trunc i8 %160 to i1
  br i1 %161, label %197, label %162

162:                                              ; preds = %159
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %163, i64 noundef %165) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(16) %166)
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = load i32, ptr %11, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %170)
  %171 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef %36, ptr noundef %37, ptr noundef %38)
  %172 = load i32, ptr %10, align 4, !tbaa !9
  %173 = icmp eq i32 %171, %172
  br i1 %173, label %174, label %177

174:                                              ; preds = %162
  %175 = load i32, ptr %13, align 4, !tbaa !9
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %11, align 4, !tbaa !9
  br label %196

177:                                              ; preds = %162
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = load i32, ptr %11, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %180) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 8 dereferenceable(16) %181)
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = load i32, ptr %12, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %182, i64 noundef %184) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) %185)
  %186 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef %39, ptr noundef %40, ptr noundef %41)
  %187 = load i32, ptr %10, align 4, !tbaa !9
  %188 = icmp eq i32 %186, %187
  br i1 %188, label %189, label %192

189:                                              ; preds = %177
  %190 = load i32, ptr %13, align 4, !tbaa !9
  %191 = sub nsw i32 %190, 1
  store i32 %191, ptr %12, align 4, !tbaa !9
  br label %195

192:                                              ; preds = %177
  %193 = load i32, ptr %13, align 4, !tbaa !9
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %11, align 4, !tbaa !9
  br label %195

195:                                              ; preds = %192, %189
  br label %196

196:                                              ; preds = %195, %174
  br label %197

197:                                              ; preds = %196, %159
  store i32 0, ptr %22, align 4
  br label %198

198:                                              ; preds = %197, %119, %90
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  %199 = load i32, ptr %22, align 4
  switch i32 %199, label %235 [
    i32 0, label %200
    i32 1, label %234
  ]

200:                                              ; preds = %198
  br label %47, !llvm.loop !15

201:                                              ; preds = %47
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = load i32, ptr %11, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef %204) #4
  call void @_ZNSt4pairI2PTiEC2IRS0_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(16) %205, ptr noundef nonnull align 4 dereferenceable(4) %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #4
  %206 = load i32, ptr %11, align 4, !tbaa !9
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %42, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %230, %201
  %209 = load i32, ptr %42, align 4, !tbaa !9
  %210 = load i32, ptr %12, align 4, !tbaa !9
  %211 = icmp sle i32 %209, %210
  br i1 %211, label %213, label %212

212:                                              ; preds = %208
  store i32 4, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #4
  br label %233

213:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %214 = getelementptr inbounds %"struct.std::pair.32", ptr %0, i32 0, i32 0
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %214)
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = load i32, ptr %42, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %215, i64 noundef %217) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 8 dereferenceable(16) %218)
  %219 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef %44, ptr noundef %45, ptr noundef %46)
  %220 = load i32, ptr %10, align 4, !tbaa !9
  %221 = icmp ne i32 %219, %220
  br i1 %221, label %222, label %227

222:                                              ; preds = %213
  %223 = load ptr, ptr %8, align 8, !tbaa !5
  %224 = load i32, ptr %42, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %223, i64 noundef %225) #4
  call void @_ZSt9make_pairIR2PTRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind writable sret(%"struct.std::pair.32") align 8 %43, ptr noundef nonnull align 8 dereferenceable(16) %226, ptr noundef nonnull align 4 dereferenceable(4) %42)
  br label %228

227:                                              ; preds = %213
  call void @_ZNSt4pairI2PTiEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(20) %43, ptr noundef nonnull align 8 dereferenceable(20) %0)
  br label %228

228:                                              ; preds = %227, %222
  %229 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNSt4pairI2PTiEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(20) %43) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #4
  br label %230

230:                                              ; preds = %228
  %231 = load i32, ptr %42, align 4, !tbaa !9
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %42, align 4, !tbaa !9
  br label %208, !llvm.loop !17

233:                                              ; preds = %212
  br label %234

234:                                              ; preds = %233, %198
  ret void

235:                                              ; preds = %198
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairI2PTiEC2IRS0_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIR2PTRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.32") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

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

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

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


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

%"struct.std::pair.32" = type <{ %struct.PT, i32, [4 x i8] }>
%struct.PT = type { double, double }

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z11orientation2PTS_S_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18point_poly_tangentRSt6vectorI2PTSaIS0_EES0_iii(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.32") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #3 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.PT, align 8
  %10 = alloca %struct.PT, align 8
  %11 = alloca %struct.PT, align 8
  %12 = alloca %struct.PT, align 8
  %13 = alloca %struct.PT, align 8
  %14 = alloca %struct.PT, align 8
  %15 = alloca %"struct.std::pair.32", align 8
  %16 = alloca %struct.PT, align 8
  %17 = alloca %"struct.std::pair.32", align 8
  %18 = alloca %struct.PT, align 8
  %19 = alloca %struct.PT, align 8
  %20 = alloca %struct.PT, align 8
  %21 = alloca %struct.PT, align 8
  %22 = alloca %struct.PT, align 8
  %23 = alloca %struct.PT, align 8
  %24 = alloca %struct.PT, align 8
  %25 = alloca %struct.PT, align 8
  %26 = alloca %struct.PT, 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 i32, align 4
  %35 = alloca %"struct.std::pair.32", align 8
  %36 = alloca %struct.PT, align 8
  %37 = alloca %struct.PT, align 8
  %38 = alloca %struct.PT, align 8
  store i32 %4, ptr %7, align 4, !tbaa !5
  %39 = sub nsw i32 %5, %4
  %40 = icmp sgt i32 %39, 1
  br i1 %40, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %6
  %41 = sub nsw i32 0, %3
  br label %42

42:                                               ; preds = %.lr.ph, %93
  %43 = phi i32 [ %4, %.lr.ph ], [ %94, %93 ]
  %.04053 = phi i32 [ %5, %.lr.ph ], [ %.3, %93 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %44 = add nsw i32 %43, %.04053
  %45 = ashr i32 %44, 1
  store i32 %45, ptr %8, align 4, !tbaa !5
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %46) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %47)
  %48 = add nsw i32 %45, -1
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %49) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %50)
  %51 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11)
  %.not43 = icmp eq i32 %51, %41
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %46) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %52)
  %53 = add nsw i32 %45, 1
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %54) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %55)
  %56 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14)
  %.not44 = icmp eq i32 %56, %41
  %brmerge = or i1 %.not43, %.not44
  br i1 %brmerge, label %59, label %57

57:                                               ; preds = %42
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %46) #4
  call void @_ZNSt4pairI2PTiEC2IRS0_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 4 dereferenceable(4) %8)
  br label %.thread

59:                                               ; preds = %42
  %brmerge45.demorgan = and i1 %.not43, %.not44
  br i1 %brmerge45.demorgan, label %60, label %63

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %2)
  call void @_Z18point_poly_tangentRSt6vectorI2PTSaIS0_EES0_iii(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.32") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull %16, i32 noundef %3, i32 noundef %53, i32 noundef %.04053)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %2)
  call void @_Z18point_poly_tangentRSt6vectorI2PTSaIS0_EES0_iii(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.32") align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull %18, i32 noundef %3, i32 noundef %43, i32 noundef %48)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %2)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %15)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %17)
  %61 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21)
  %62 = icmp eq i32 %61, %3
  %. = select i1 %62, ptr %15, ptr %17
  call void @_ZNSt4pairI2PTiEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(20) %.)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
  br label %.thread

63:                                               ; preds = %59
  br i1 %.not43, label %64, label %77

64:                                               ; preds = %63
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %46) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %65)
  %66 = sext i32 %43 to i64
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %66) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %67)
  %68 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24)
  %69 = icmp eq i32 %68, %3
  br i1 %69, label %77, label %70

70:                                               ; preds = %64
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %66) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %71)
  %72 = sext i32 %.04053 to i64
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %72) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %73)
  %74 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27)
  %75 = icmp eq i32 %74, %3
  br i1 %75, label %77, label %76

76:                                               ; preds = %70
  store i32 %53, ptr %7, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %70, %64, %76, %63
  %78 = phi i32 [ %43, %63 ], [ %53, %76 ], [ %43, %64 ], [ %43, %70 ]
  %.1 = phi i32 [ %.04053, %63 ], [ %.04053, %76 ], [ %48, %64 ], [ %48, %70 ]
  br i1 %.not44, label %79, label %93

79:                                               ; preds = %77
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %80 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %46) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) %80)
  %81 = sext i32 %78 to i64
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %81) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %82)
  %83 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30)
  %84 = icmp eq i32 %83, %3
  br i1 %84, label %85, label %86

85:                                               ; preds = %79
  store i32 %53, ptr %7, align 4, !tbaa !5
  br label %93

86:                                               ; preds = %79
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %81) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %87)
  %88 = sext i32 %.1 to i64
  %89 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %88) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(16) %89)
  %90 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33)
  %91 = icmp eq i32 %90, %3
  br i1 %91, label %93, label %92

92:                                               ; preds = %86
  store i32 %53, ptr %7, align 4, !tbaa !5
  br label %93

.thread:                                          ; preds = %57, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br label %110

93:                                               ; preds = %86, %77, %92, %85
  %94 = phi i32 [ %78, %77 ], [ %53, %85 ], [ %53, %92 ], [ %78, %86 ]
  %.3 = phi i32 [ %.1, %77 ], [ %.1, %85 ], [ %.1, %92 ], [ %48, %86 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  %95 = sub nsw i32 %.3, %94
  %96 = icmp sgt i32 %95, 1
  br i1 %96, label %42, label %._crit_edge

._crit_edge:                                      ; preds = %93, %6
  %.040.lcssa = phi i32 [ %5, %6 ], [ %.3, %93 ]
  %.lcssa = phi i32 [ %4, %6 ], [ %94, %93 ]
  %97 = sext i32 %.lcssa to i64
  %98 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %97) #4
  call void @_ZNSt4pairI2PTiEC2IRS0_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(16) %98, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #4
  %storemerge.in55 = load i32, ptr %7, align 4, !tbaa !5
  %storemerge56 = add nsw i32 %storemerge.in55, 1
  store i32 %storemerge56, ptr %34, align 4, !tbaa !5
  %.not.not57 = icmp slt i32 %storemerge.in55, %.040.lcssa
  br i1 %.not.not57, label %.lr.ph59, label %._crit_edge60

._crit_edge60:                                    ; preds = %108, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #4
  br label %110

.lr.ph59:                                         ; preds = %._crit_edge, %108
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %35) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %2)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(16) %0)
  %99 = load i32, ptr %34, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %100) #4
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %101)
  %102 = call noundef i32 @_Z11orientation2PTS_S_(ptr noundef nonnull %36, ptr noundef nonnull %37, ptr noundef nonnull %38)
  %.not = icmp eq i32 %102, %3
  br i1 %.not, label %107, label %103

103:                                              ; preds = %.lr.ph59
  %104 = load i32, ptr %34, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %105) #4
  call void @_ZSt9make_pairIR2PTRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.32") align 8 %35, ptr noundef nonnull align 8 dereferenceable(16) %106, ptr noundef nonnull align 4 dereferenceable(4) %34)
  br label %108

107:                                              ; preds = %.lr.ph59
  call void @_ZNSt4pairI2PTiEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(20) %35, ptr noundef nonnull align 8 dereferenceable(20) %0)
  br label %108

108:                                              ; preds = %107, %103
  %109 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNSt4pairI2PTiEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(20) %35) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %35) #4
  %storemerge.in = load i32, ptr %34, align 4, !tbaa !5
  %storemerge = add nsw i32 %storemerge.in, 1
  store i32 %storemerge, ptr %34, align 4, !tbaa !5
  %.not.not = icmp slt i32 %storemerge.in, %.040.lcssa
  br i1 %.not.not, label %.lr.ph59, label %._crit_edge60, !llvm.loop !9

110:                                              ; preds = %.thread, %._crit_edge60
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairI2PTiEC2IRS0_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIR2PTRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.32") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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