; LLVM IR from wesley-a-leung/Resources :: Tests/C++/geometry/2d (ConvexPolygonFuzzTest)

; 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 { x86_fp80, x86_fp80 }
%struct.Circle = type { %struct.pt, x86_fp80 }
%"struct.std::pair.20" = type { i32, i32 }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { %struct.pt, %struct.pt }

@.str = external hidden unnamed_addr constant [58 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [126 x i8], align 1
@__PRETTY_FUNCTION__._Z26convexPolygonCircleTangentRKSt6vectorI2ptSaIS0_EE6Circleb = external hidden unnamed_addr constant [76 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [60 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z2ltee(x86_fp80 noundef, x86_fp80 noundef) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3ccw2ptS_S_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) #2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z19circleCircleTangent6CircleS_bRSt6vectorISt4pairI2ptS2_ESaIS3_EE(ptr noundef byval(%struct.Circle) align 16, ptr noundef byval(%struct.Circle) align 16, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6CircleC2E2pte(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.pt) align 16, x86_fp80 noundef) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3modii(i32 noundef, i32 noundef) #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i64 @_Z26convexPolygonCircleTangentRKSt6vectorI2ptSaIS0_EE6Circleb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef byval(%struct.Circle) align 16 %1, i1 noundef zeroext %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.std::pair.20", align 4
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.2", align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.Circle, align 16
  %13 = alloca %struct.pt, align 16
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.Circle, align 16
  %17 = alloca %struct.pt, align 16
  %18 = alloca i32, align 4
  %19 = alloca %struct.pt, align 16
  %20 = alloca %struct.pt, align 16
  %21 = alloca %struct.pt, align 16
  %22 = alloca i8, align 1
  %23 = alloca %struct.pt, align 16
  %24 = alloca %struct.pt, align 16
  %25 = alloca %struct.pt, align 16
  %26 = alloca %struct.pt, align 16
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %struct.Circle, align 16
  %31 = alloca %struct.pt, align 16
  %32 = alloca %struct.Circle, align 16
  %33 = alloca %struct.pt, align 16
  %34 = alloca %struct.pt, align 16
  %35 = alloca %struct.pt, align 16
  %36 = alloca %struct.pt, align 16
  %37 = alloca %struct.pt, align 16
  %38 = alloca %struct.pt, align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  %39 = zext i1 %2 to i8
  store i8 %39, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #5
  %42 = trunc i64 %41 to i32
  store i32 %42, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %43

43:                                               ; preds = %205, %3
  %44 = load i32, ptr %11, align 4, !tbaa !11
  %45 = icmp slt i32 %44, 2
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %211

47:                                               ; preds = %43
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 0) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 %49, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZN6CircleC2E2pte(ptr noundef nonnull align 16 dereferenceable(48) %12, ptr noundef byval(%struct.pt) align 16 %13, x86_fp80 noundef 0xK00000000000000000000)
          to label %50 unwind label %58

50:                                               ; preds = %47
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %1, i64 48, i1 false), !tbaa.struct !16
  %51 = load i8, ptr %6, align 1, !tbaa !9, !range !17, !noundef !18
  %52 = trunc i8 %51 to i1
  %53 = invoke noundef i32 @_Z19circleCircleTangent6CircleS_bRSt6vectorISt4pairI2ptS2_ESaIS3_EE(ptr noundef byval(%struct.Circle) align 16 %12, ptr noundef byval(%struct.Circle) align 16 %16, i1 noundef zeroext %52, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %54 unwind label %58

54:                                               ; preds = %50
  %55 = icmp eq i32 %53, 1
  br i1 %55, label %56, label %57

56:                                               ; preds = %54
  br label %63

57:                                               ; preds = %54
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 256, ptr noundef @__PRETTY_FUNCTION__._Z26convexPolygonCircleTangentRKSt6vectorI2ptSaIS0_EE6Circleb) #6
  unreachable

58:                                               ; preds = %50, %47
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %14, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %15, align 4
  br label %210

62:                                               ; No predecessors!
  br label %63

63:                                               ; preds = %62, %56
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #5
  %64 = load i32, ptr %11, align 4, !tbaa !11
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %65) #5
  %67 = getelementptr inbounds %"struct.std::pair", ptr %66, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %67, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %17, i64 32, i1 false), !tbaa.struct !13
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef 0) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %69, i64 32, i1 false), !tbaa.struct !13
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %71, i64 32, i1 false), !tbaa.struct !13
  %72 = invoke noundef i32 @_Z3ccw2ptS_S_(ptr noundef byval(%struct.pt) align 16 %19, ptr noundef byval(%struct.pt) align 16 %20, ptr noundef byval(%struct.pt) align 16 %21)
          to label %73 unwind label %125

73:                                               ; preds = %63
  store i32 %72, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  %74 = load i32, ptr %18, align 4, !tbaa !11
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %79

76:                                               ; preds = %73
  %77 = load i32, ptr %18, align 4, !tbaa !11
  %78 = icmp slt i32 %77, 0
  br label %89

79:                                               ; preds = %73
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %17, i64 32, i1 false), !tbaa.struct !13
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %81, i64 32, i1 false), !tbaa.struct !13
  %82 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %23, ptr noundef byval(%struct.pt) align 16 %24)
          to label %83 unwind label %129

83:                                               ; preds = %79
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %17, i64 32, i1 false), !tbaa.struct !13
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef 0) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %85, i64 32, i1 false), !tbaa.struct !13
  %86 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %25, ptr noundef byval(%struct.pt) align 16 %26)
          to label %87 unwind label %129

87:                                               ; preds = %83
  %88 = call noundef zeroext i1 @_Z2ltee(x86_fp80 noundef %82, x86_fp80 noundef %86)
  br label %89

89:                                               ; preds = %87, %76
  %90 = phi i1 [ %78, %76 ], [ %88, %87 ]
  %91 = zext i1 %90 to i8
  store i8 %91, ptr %22, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %92 = load i8, ptr %22, align 1, !tbaa !9, !range !17, !noundef !18
  %93 = trunc i8 %92 to i1
  %94 = zext i1 %93 to i32
  %95 = load i32, ptr %11, align 4, !tbaa !11
  %96 = icmp eq i32 %94, %95
  %97 = zext i1 %96 to i32
  store i32 %97, ptr %27, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %98 = load i32, ptr %27, align 4, !tbaa !11
  %99 = load i32, ptr %7, align 4, !tbaa !11
  %100 = add nsw i32 %98, %99
  %101 = sub nsw i32 %100, 2
  store i32 %101, ptr %28, align 4, !tbaa !11
  br label %102

102:                                              ; preds = %194, %89
  %103 = load i32, ptr %27, align 4, !tbaa !11
  %104 = load i32, ptr %28, align 4, !tbaa !11
  %105 = icmp sle i32 %103, %104
  br i1 %105, label %106, label %195

106:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %107 = load i32, ptr %27, align 4, !tbaa !11
  %108 = load i32, ptr %28, align 4, !tbaa !11
  %109 = load i32, ptr %27, align 4, !tbaa !11
  %110 = sub nsw i32 %108, %109
  %111 = sdiv i32 %110, 2
  %112 = add nsw i32 %107, %111
  store i32 %112, ptr %29, align 4, !tbaa !11
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = load i32, ptr %29, align 4, !tbaa !11
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef %115) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %116, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZN6CircleC2E2pte(ptr noundef nonnull align 16 dereferenceable(48) %30, ptr noundef byval(%struct.pt) align 16 %31, x86_fp80 noundef 0xK00000000000000000000)
          to label %117 unwind label %133

117:                                              ; preds = %106
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %1, i64 48, i1 false), !tbaa.struct !16
  %118 = load i8, ptr %6, align 1, !tbaa !9, !range !17, !noundef !18
  %119 = trunc i8 %118 to i1
  %120 = invoke noundef i32 @_Z19circleCircleTangent6CircleS_bRSt6vectorISt4pairI2ptS2_ESaIS3_EE(ptr noundef byval(%struct.Circle) align 16 %30, ptr noundef byval(%struct.Circle) align 16 %32, i1 noundef zeroext %119, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %121 unwind label %133

121:                                              ; preds = %117
  %122 = icmp eq i32 %120, 1
  br i1 %122, label %123, label %124

123:                                              ; preds = %121
  br label %138

124:                                              ; preds = %121
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 261, ptr noundef @__PRETTY_FUNCTION__._Z26convexPolygonCircleTangentRKSt6vectorI2ptSaIS0_EE6Circleb) #6
  unreachable

125:                                              ; preds = %63
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %14, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %15, align 4
  br label %209

129:                                              ; preds = %83, %79
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %14, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %15, align 4
  br label %208

133:                                              ; preds = %169, %138, %117, %106
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %14, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %208

137:                                              ; No predecessors!
  br label %138

138:                                              ; preds = %137, %123
  %139 = load i32, ptr %11, align 4, !tbaa !11
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %140) #5
  %142 = getelementptr inbounds %"struct.std::pair", ptr %141, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %142, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %17, i64 32, i1 false), !tbaa.struct !13
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %143, i64 noundef 0) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %144, i64 32, i1 false), !tbaa.struct !13
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = load i32, ptr %29, align 4, !tbaa !11
  %147 = sext i32 %146 to i64
  %148 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %145, i64 noundef %147) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %148, i64 32, i1 false), !tbaa.struct !13
  %149 = invoke noundef i32 @_Z3ccw2ptS_S_(ptr noundef byval(%struct.pt) align 16 %33, ptr noundef byval(%struct.pt) align 16 %34, ptr noundef byval(%struct.pt) align 16 %35)
          to label %150 unwind label %133

150:                                              ; preds = %138
  %151 = load i32, ptr %11, align 4, !tbaa !11
  %152 = icmp ne i32 %151, 0
  %153 = zext i1 %152 to i64
  %154 = select i1 %152, i32 1, i32 -1
  %155 = icmp eq i32 %149, %154
  br i1 %155, label %156, label %169

156:                                              ; preds = %150
  %157 = load i8, ptr %22, align 1, !tbaa !9, !range !17, !noundef !18
  %158 = trunc i8 %157 to i1
  %159 = zext i1 %158 to i32
  %160 = load i32, ptr %11, align 4, !tbaa !11
  %161 = icmp ne i32 %159, %160
  br i1 %161, label %162, label %165

162:                                              ; preds = %156
  %163 = load i32, ptr %29, align 4, !tbaa !11
  %164 = sub nsw i32 %163, 1
  store i32 %164, ptr %28, align 4, !tbaa !11
  br label %168

165:                                              ; preds = %156
  %166 = load i32, ptr %29, align 4, !tbaa !11
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %27, align 4, !tbaa !11
  br label %168

168:                                              ; preds = %165, %162
  br label %194

169:                                              ; preds = %150
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = load i32, ptr %29, align 4, !tbaa !11
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %170, i64 noundef %172) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %173, i64 32, i1 false), !tbaa.struct !13
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = load i32, ptr %29, align 4, !tbaa !11
  %176 = add nsw i32 %175, 1
  %177 = load i32, ptr %7, align 4, !tbaa !11
  %178 = call noundef i32 @_Z3modii(i32 noundef %176, i32 noundef %177)
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %174, i64 noundef %179) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %180, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %17, i64 32, i1 false), !tbaa.struct !13
  %181 = invoke noundef i32 @_Z3ccw2ptS_S_(ptr noundef byval(%struct.pt) align 16 %36, ptr noundef byval(%struct.pt) align 16 %37, ptr noundef byval(%struct.pt) align 16 %38)
          to label %182 unwind label %133

182:                                              ; preds = %169
  %183 = icmp slt i32 %181, 0
  %184 = zext i1 %183 to i32
  %185 = load i32, ptr %11, align 4, !tbaa !11
  %186 = icmp ne i32 %184, %185
  br i1 %186, label %187, label %190

187:                                              ; preds = %182
  %188 = load i32, ptr %29, align 4, !tbaa !11
  %189 = sub nsw i32 %188, 1
  store i32 %189, ptr %28, align 4, !tbaa !11
  br label %193

190:                                              ; preds = %182
  %191 = load i32, ptr %29, align 4, !tbaa !11
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %27, align 4, !tbaa !11
  br label %193

193:                                              ; preds = %190, %187
  br label %194

194:                                              ; preds = %193, %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %102, !llvm.loop !19

195:                                              ; preds = %102
  %196 = load i32, ptr %27, align 4, !tbaa !11
  %197 = load i32, ptr %7, align 4, !tbaa !11
  %198 = call noundef i32 @_Z3modii(i32 noundef %196, i32 noundef %197)
  %199 = load i32, ptr %11, align 4, !tbaa !11
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %202

201:                                              ; preds = %195
  br label %203

202:                                              ; preds = %195
  br label %203

203:                                              ; preds = %202, %201
  %204 = phi ptr [ %9, %201 ], [ %8, %202 ]
  store i32 %198, ptr %204, align 4, !tbaa !11
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  br label %205

205:                                              ; preds = %203
  %206 = load i32, ptr %11, align 4, !tbaa !11
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %11, align 4, !tbaa !11
  br label %43, !llvm.loop !21

208:                                              ; preds = %133, %129
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  br label %209

209:                                              ; preds = %208, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  br label %210

210:                                              ; preds = %209, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %219

211:                                              ; preds = %46
  %212 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %213 unwind label %215

213:                                              ; preds = %211
  store i64 %212, ptr %4, align 4
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %214 = load i64, ptr %4, align 4
  ret i64 %214

215:                                              ; preds = %211
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %14, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %15, align 4
  br label %219

219:                                              ; preds = %215, %210
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %220

220:                                              ; preds = %219
  %221 = load ptr, ptr %14, align 8
  %222 = load i32, ptr %15, align 4
  %223 = insertvalue { ptr, i32 } poison, ptr %221, 0
  %224 = insertvalue { ptr, i32 } %223, i32 %222, 1
  resume { ptr, i32 } %224
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

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

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

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


; 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 { x86_fp80, x86_fp80 }
%struct.Circle = type { %struct.pt, x86_fp80 }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [58 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [126 x i8], align 1
@__PRETTY_FUNCTION__._Z26convexPolygonCircleTangentRKSt6vectorI2ptSaIS0_EE6Circleb = external hidden unnamed_addr constant [76 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [60 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z2ltee(x86_fp80 noundef, x86_fp80 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3ccw2ptS_S_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z19circleCircleTangent6CircleS_bRSt6vectorISt4pairI2ptS2_ESaIS3_EE(ptr noundef byval(%struct.Circle) align 16, ptr noundef byval(%struct.Circle) align 16, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6CircleC2E2pte(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.pt) align 16, x86_fp80 noundef) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3modii(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i64 @_Z26convexPolygonCircleTangentRKSt6vectorI2ptSaIS0_EE6Circleb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nocapture noundef readonly byval(%struct.Circle) align 16 %1, i1 noundef zeroext %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector.2", align 8
  %7 = alloca %struct.Circle, align 16
  %8 = alloca %struct.pt, align 16
  %9 = alloca %struct.pt, align 16
  %10 = alloca %struct.pt, align 16
  %11 = alloca %struct.pt, align 16
  %12 = alloca %struct.pt, align 16
  %13 = alloca %struct.Circle, align 16
  %14 = alloca %struct.pt, align 16
  %15 = alloca %struct.pt, align 16
  %16 = alloca %struct.pt, align 16
  %17 = tail call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %18 = trunc i64 %17 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %19 = add i32 %18, -2
  br label %22

20:                                               ; preds = %._crit_edge
  %21 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %94 unwind label %95

22:                                               ; preds = %3, %._crit_edge
  %.not57 = phi i32 [ -1, %3 ], [ 1, %._crit_edge ]
  %.not56 = phi i1 [ true, %3 ], [ false, %._crit_edge ]
  %indvars.iv = phi i64 [ 0, %3 ], [ 1, %._crit_edge ]
  %23 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  call void @_ZN6CircleC2E2pte(ptr noundef nonnull align 16 dereferenceable(48) %7, ptr noundef nonnull byval(%struct.pt) align 16 %23, x86_fp80 noundef 0xK00000000000000000000)
  %24 = invoke noundef i32 @_Z19circleCircleTangent6CircleS_bRSt6vectorISt4pairI2ptS2_ESaIS3_EE(ptr noundef nonnull byval(%struct.Circle) align 16 %7, ptr noundef nonnull byval(%struct.Circle) align 16 %1, i1 noundef zeroext %2, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %25 unwind label %28

25:                                               ; preds = %22
  %26 = icmp eq i32 %24, 1
  br i1 %26, label %30, label %27

27:                                               ; preds = %25
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 256, ptr noundef nonnull @__PRETTY_FUNCTION__._Z26convexPolygonCircleTangentRKSt6vectorI2ptSaIS0_EE6Circleb) #6
  unreachable

28:                                               ; preds = %22
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %97

30:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8)
  %31 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
  %32 = getelementptr inbounds i8, ptr %31, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 16 dereferenceable(32) %32, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %9, ptr noundef nonnull align 16 dereferenceable(32) %32, i64 32, i1 false)
  %33 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %10, ptr noundef nonnull align 16 dereferenceable(32) %33, i64 32, i1 false), !tbaa.struct !9
  %34 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %35 = invoke noundef i32 @_Z3ccw2ptS_S_(ptr noundef nonnull byval(%struct.pt) align 16 %9, ptr noundef nonnull byval(%struct.pt) align 16 %10, ptr noundef nonnull byval(%struct.pt) align 16 %34)
          to label %36 unwind label %62

36:                                               ; preds = %30
  %.not = icmp eq i32 %35, 0
  br i1 %.not, label %39, label %37

37:                                               ; preds = %36
  %38 = icmp slt i32 %35, 0
  br label %47

39:                                               ; preds = %36
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %11, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !9
  %40 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %41 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %11, ptr noundef nonnull byval(%struct.pt) align 16 %40)
          to label %42 unwind label %64

42:                                               ; preds = %39
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %12, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !9
  %43 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  %44 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %12, ptr noundef nonnull byval(%struct.pt) align 16 %43)
          to label %45 unwind label %64

45:                                               ; preds = %42
  %46 = call noundef zeroext i1 @_Z2ltee(x86_fp80 noundef %41, x86_fp80 noundef %44)
  br label %47

47:                                               ; preds = %45, %37
  %48 = phi i1 [ %38, %37 ], [ %46, %45 ]
  %49 = zext i1 %48 to i64
  %50 = icmp eq i64 %indvars.iv, %49
  %51 = zext i1 %50 to i32
  %52 = add i32 %19, %51
  %.not5567 = icmp slt i32 %52, %51
  br i1 %.not5567, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %47, %91
  %.04569 = phi i32 [ %.1, %91 ], [ %52, %47 ]
  %.04668 = phi i32 [ %.147, %91 ], [ %51, %47 ]
  %53 = sub nsw i32 %.04569, %.04668
  %54 = sdiv i32 %53, 2
  %55 = add nsw i32 %54, %.04668
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %56) #5
  call void @_ZN6CircleC2E2pte(ptr noundef nonnull align 16 dereferenceable(48) %13, ptr noundef nonnull byval(%struct.pt) align 16 %57, x86_fp80 noundef 0xK00000000000000000000)
  %58 = invoke noundef i32 @_Z19circleCircleTangent6CircleS_bRSt6vectorISt4pairI2ptS2_ESaIS3_EE(ptr noundef nonnull byval(%struct.Circle) align 16 %13, ptr noundef nonnull byval(%struct.Circle) align 16 %1, i1 noundef zeroext %2, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %59 unwind label %66

59:                                               ; preds = %.lr.ph
  %60 = icmp eq i32 %58, 1
  br i1 %60, label %68, label %61

61:                                               ; preds = %59
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 261, ptr noundef nonnull @__PRETTY_FUNCTION__._Z26convexPolygonCircleTangentRKSt6vectorI2ptSaIS0_EE6Circleb) #6
  unreachable

62:                                               ; preds = %30
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %93

64:                                               ; preds = %42, %39
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %93

66:                                               ; preds = %81, %68, %.lr.ph
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %93

68:                                               ; preds = %59
  %69 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
  %70 = getelementptr inbounds i8, ptr %69, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 16 dereferenceable(32) %70, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %14, ptr noundef nonnull align 16 dereferenceable(32) %70, i64 32, i1 false)
  %71 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %15, ptr noundef nonnull align 16 dereferenceable(32) %71, i64 32, i1 false), !tbaa.struct !9
  %72 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %56) #5
  %73 = invoke noundef i32 @_Z3ccw2ptS_S_(ptr noundef nonnull byval(%struct.pt) align 16 %14, ptr noundef nonnull byval(%struct.pt) align 16 %15, ptr noundef nonnull byval(%struct.pt) align 16 %72)
          to label %74 unwind label %66

74:                                               ; preds = %68
  %75 = icmp eq i32 %73, %.not57
  br i1 %75, label %76, label %81

76:                                               ; preds = %74
  br i1 %50, label %79, label %77

77:                                               ; preds = %76
  %78 = add nsw i32 %55, -1
  br label %91

79:                                               ; preds = %76
  %80 = add nsw i32 %55, 1
  br label %91

81:                                               ; preds = %74
  %82 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %56) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %16, ptr noundef nonnull align 16 dereferenceable(32) %82, i64 32, i1 false), !tbaa.struct !9
  %83 = add nsw i32 %55, 1
  %84 = call noundef i32 @_Z3modii(i32 noundef %83, i32 noundef %18)
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %85) #5
  %87 = invoke noundef i32 @_Z3ccw2ptS_S_(ptr noundef nonnull byval(%struct.pt) align 16 %16, ptr noundef nonnull byval(%struct.pt) align 16 %86, ptr noundef nonnull byval(%struct.pt) align 16 %8)
          to label %88 unwind label %66

88:                                               ; preds = %81
  %.lobit = lshr i32 %87, 31
  %89 = zext nneg i32 %.lobit to i64
  %.not62 = icmp eq i64 %indvars.iv, %89
  %90 = add nsw i32 %55, -1
  %spec.select = select i1 %.not62, i32 %83, i32 %.04668
  %spec.select64 = select i1 %.not62, i32 %.04569, i32 %90
  br label %91

91:                                               ; preds = %88, %77, %79
  %.147 = phi i32 [ %.04668, %77 ], [ %80, %79 ], [ %spec.select, %88 ]
  %.1 = phi i32 [ %78, %77 ], [ %.04569, %79 ], [ %spec.select64, %88 ]
  %.not55 = icmp sgt i32 %.147, %.1
  br i1 %.not55, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %91, %47
  %.046.lcssa = phi i32 [ %51, %47 ], [ %.147, %91 ]
  %92 = call noundef i32 @_Z3modii(i32 noundef %.046.lcssa, i32 noundef %18)
  %. = select i1 %.not56, ptr %4, ptr %5
  store i32 %92, ptr %., align 4, !tbaa !5
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8)
  br i1 %.not56, label %22, label %20, !llvm.loop !14

93:                                               ; preds = %64, %66, %62
  %.pn.pn = phi { ptr, i32 } [ %63, %62 ], [ %67, %66 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8)
  br label %97

94:                                               ; preds = %20
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  ret i64 %21

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

97:                                               ; preds = %28, %93, %95
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %96, %95 ], [ %.pn.pn, %93 ], [ %29, %28 ]
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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 = !{i64 0, i64 16, !10, i64 16, i64 16, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"long double", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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