; LLVM IR from tangjz/acm-icpc :: hdu/2383.ll (Z5cover5PointS_)

; 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.Point = type { double, double }
%"struct.std::pair" = type { %struct.Point, %struct.Point }
%"struct.std::less" = type { i8 }

@p = external dso_local global [101 x %struct.Point], align 16
@n = external dso_local global i32, align 4
@cnt = external dso_local global i32, align 4
@r = external dso_local global double, align 8
@seg = external dso_local global [101 x %"struct.std::pair"], align 16

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z5cover5PointS_(double %0, double %1, double %2, double %3) #3 {
  %5 = alloca i1, align 1
  %6 = alloca %struct.Point, align 8
  %7 = alloca %struct.Point, align 8
  %8 = alloca %struct.Point, align 8
  %9 = alloca %struct.Point, align 8
  %10 = alloca %struct.Point, align 8
  %11 = alloca %struct.Point, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.Point, align 8
  %16 = alloca %struct.Point, align 8
  %17 = alloca double, align 8
  %18 = alloca %struct.Point, align 8
  %19 = alloca %struct.Point, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca %struct.Point, align 8
  %23 = alloca %struct.Point, align 8
  %24 = alloca double, align 8
  %25 = alloca %struct.Point, align 8
  %26 = alloca %struct.Point, align 8
  %27 = alloca double, align 8
  %28 = alloca %"struct.std::pair", align 8
  %29 = alloca %"struct.std::less", align 1
  %30 = alloca %struct.Point, align 8
  %31 = alloca i32, align 4
  %32 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  store double %0, ptr %32, align 8
  %33 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  store double %1, ptr %33, align 8
  %34 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  store double %2, ptr %34, align 8
  %35 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  store double %3, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %36 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %37 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %38 = extractvalue { double, double } %36, 0
  store double %38, ptr %37, align 8
  %39 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %40 = extractvalue { double, double } %36, 1
  store double %40, ptr %39, align 8
  %41 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %42 = call noundef i32 @_Z4dcmpd(double noundef %41)
  %43 = icmp ne i32 %42, 0
  %44 = xor i1 %43, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  br i1 %44, label %45, label %46

45:                                               ; preds = %4
  store i1 true, ptr %5, align 1
  br label %203

46:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %47 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %48 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %49 = extractvalue { double, double } %47, 0
  store double %49, ptr %48, align 8
  %50 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %51 = extractvalue { double, double } %47, 1
  store double %51, ptr %50, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store double 1.000000e-03, ptr %12, align 8, !tbaa !5
  %52 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %53 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %54 = extractvalue { double, double } %52, 0
  store double %54, ptr %53, align 8
  %55 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %56 = extractvalue { double, double } %52, 1
  store double %56, ptr %55, align 8
  %57 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %10)
  %58 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %59 = extractvalue { double, double } %57, 0
  store double %59, ptr %58, align 8
  %60 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %61 = extractvalue { double, double } %57, 1
  store double %61, ptr %60, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  %62 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %6)
  br i1 %62, label %63, label %64

63:                                               ; preds = %46
  call void @_ZSt4swapI5PointENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  br label %64

64:                                               ; preds = %63, %46
  store i32 0, ptr @cnt, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !10
  br label %65

65:                                               ; preds = %159, %64
  %66 = load i32, ptr %13, align 4, !tbaa !10
  %67 = load i32, ptr @n, align 4, !tbaa !10
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %162

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %71 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %72 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %73 = extractvalue { double, double } %71, 0
  store double %73, ptr %72, align 8
  %74 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %75 = extractvalue { double, double } %71, 1
  store double %75, ptr %74, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %76 = load i32, ptr %13, align 4, !tbaa !10
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [101 x %struct.Point], ptr @p, i64 0, i64 %77
  %79 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %78, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %80 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %81 = extractvalue { double, double } %79, 0
  store double %81, ptr %80, align 8
  %82 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %83 = extractvalue { double, double } %79, 1
  store double %83, ptr %82, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %84 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
  %85 = call double @llvm.fabs.f64(double %84)
  %86 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  %87 = fdiv double %85, %86
  store double %87, ptr %17, align 8, !tbaa !5
  %88 = load double, ptr %17, align 8, !tbaa !5
  %89 = load double, ptr @r, align 8, !tbaa !5
  %90 = fsub double %88, %89
  %91 = call noundef i32 @_Z4dcmpd(double noundef %90)
  %92 = icmp sgt i32 %91, 0
  br i1 %92, label %93, label %94

93:                                               ; preds = %70
  store i32 4, ptr %14, align 4
  br label %156

94:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %95 = call noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
  %96 = call noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %15)
  %97 = fdiv double %95, %96
  store double %97, ptr %20, align 8, !tbaa !5
  %98 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %99 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %100 = extractvalue { double, double } %98, 0
  store double %100, ptr %99, align 8
  %101 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %102 = extractvalue { double, double } %98, 1
  store double %102, ptr %101, align 8
  %103 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %19)
  %104 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %105 = extractvalue { double, double } %103, 0
  store double %105, ptr %104, align 8
  %106 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %107 = extractvalue { double, double } %103, 1
  store double %107, ptr %106, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %108 = load double, ptr @r, align 8, !tbaa !5
  %109 = load double, ptr @r, align 8, !tbaa !5
  %110 = load double, ptr %17, align 8, !tbaa !5
  %111 = load double, ptr %17, align 8, !tbaa !5
  %112 = fmul double %110, %111
  %113 = fneg double %112
  %114 = call double @llvm.fmuladd.f64(double %108, double %109, double %113)
  %115 = call double @sqrt(double noundef %114) #8
  store double %115, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %116 = load double, ptr %21, align 8, !tbaa !5
  %117 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  %118 = fdiv double %116, %117
  store double %118, ptr %24, align 8, !tbaa !5
  %119 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %120 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %121 = extractvalue { double, double } %119, 0
  store double %121, ptr %120, align 8
  %122 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %123 = extractvalue { double, double } %119, 1
  store double %123, ptr %122, align 8
  %124 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %125 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %126 = extractvalue { double, double } %124, 0
  store double %126, ptr %125, align 8
  %127 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %128 = extractvalue { double, double } %124, 1
  store double %128, ptr %127, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %129 = load double, ptr %21, align 8, !tbaa !5
  %130 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  %131 = fdiv double %129, %130
  store double %131, ptr %27, align 8, !tbaa !5
  %132 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %133 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %134 = extractvalue { double, double } %132, 0
  store double %134, ptr %133, align 8
  %135 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %136 = extractvalue { double, double } %132, 1
  store double %136, ptr %135, align 8
  %137 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %26)
  %138 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %139 = extractvalue { double, double } %137, 0
  store double %139, ptr %138, align 8
  %140 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %141 = extractvalue { double, double } %137, 1
  store double %141, ptr %140, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  %142 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %6)
  br i1 %142, label %143, label %144

143:                                              ; preds = %94
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %6, i64 16, i1 false), !tbaa.struct !9
  br label %144

144:                                              ; preds = %143, %94
  %145 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %25)
  br i1 %145, label %146, label %147

146:                                              ; preds = %144
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %7, i64 16, i1 false), !tbaa.struct !9
  br label %147

147:                                              ; preds = %146, %144
  %148 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %25)
  br i1 %148, label %149, label %155

149:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #8
  call void @_ZSt9make_pairIR5PointS1_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %25)
  %150 = load i32, ptr @cnt, align 4, !tbaa !10
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr @cnt, align 4, !tbaa !10
  %152 = sext i32 %150 to i64
  %153 = getelementptr inbounds [101 x %"struct.std::pair"], ptr @seg, i64 0, i64 %152
  %154 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt4pairI5PointS0_EaSEOS1_(ptr noundef nonnull align 8 dereferenceable(32) %153, ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #8
  br label %155

155:                                              ; preds = %149, %147
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  store i32 0, ptr %14, align 4
  br label %156

156:                                              ; preds = %155, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  %157 = load i32, ptr %14, align 4
  switch i32 %157, label %205 [
    i32 0, label %158
    i32 4, label %159
  ]

158:                                              ; preds = %156
  br label %159

159:                                              ; preds = %158, %156
  %160 = load i32, ptr %13, align 4, !tbaa !10
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %13, align 4, !tbaa !10
  br label %65, !llvm.loop !12

162:                                              ; preds = %69
  %163 = load i32, ptr @cnt, align 4, !tbaa !10
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds %"struct.std::pair", ptr @seg, i64 %164
  call void @_ZSt4sortIPSt4pairI5PointS1_ESt4lessIS2_EEvT_S6_T0_(ptr noundef @seg, ptr noundef %165)
  %166 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) @seg)
  br i1 %166, label %167, label %168

167:                                              ; preds = %162
  store i1 false, ptr %5, align 1
  br label %203

168:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 16 getelementptr inbounds (%"struct.std::pair", ptr @seg, i32 0, i32 1), i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 1, ptr %31, align 4, !tbaa !10
  br label %169

169:                                              ; preds = %193, %168
  %170 = load i32, ptr %31, align 4, !tbaa !10
  %171 = load i32, ptr @cnt, align 4, !tbaa !10
  %172 = icmp slt i32 %170, %171
  br i1 %172, label %174, label %173

173:                                              ; preds = %169
  store i32 5, ptr %14, align 4
  br label %196

174:                                              ; preds = %169
  %175 = load i32, ptr %31, align 4, !tbaa !10
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [101 x %"struct.std::pair"], ptr @seg, i64 0, i64 %176
  %178 = getelementptr inbounds %"struct.std::pair", ptr %177, i32 0, i32 0
  %179 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %178)
  br i1 %179, label %180, label %181

180:                                              ; preds = %174
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %196

181:                                              ; preds = %174
  %182 = load i32, ptr %31, align 4, !tbaa !10
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [101 x %"struct.std::pair"], ptr @seg, i64 0, i64 %183
  %185 = getelementptr inbounds %"struct.std::pair", ptr %184, i32 0, i32 1
  %186 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %185)
  br i1 %186, label %187, label %192

187:                                              ; preds = %181
  %188 = load i32, ptr %31, align 4, !tbaa !10
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [101 x %"struct.std::pair"], ptr @seg, i64 0, i64 %189
  %191 = getelementptr inbounds %"struct.std::pair", ptr %190, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 16 %191, i64 16, i1 false), !tbaa.struct !9
  br label %192

192:                                              ; preds = %187, %181
  br label %193

193:                                              ; preds = %192
  %194 = load i32, ptr %31, align 4, !tbaa !10
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %31, align 4, !tbaa !10
  br label %169, !llvm.loop !14

196:                                              ; preds = %180, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  %197 = load i32, ptr %14, align 4
  switch i32 %197, label %202 [
    i32 5, label %198
  ]

198:                                              ; preds = %196
  %199 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %7)
  br i1 %199, label %200, label %201

200:                                              ; preds = %198
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %202

201:                                              ; preds = %198
  store i1 true, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %202

202:                                              ; preds = %201, %200, %196
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  br label %203

203:                                              ; preds = %202, %167, %45
  %204 = load i1, ptr %5, align 1
  ret i1 %204

205:                                              ; preds = %156
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapI5PointENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #5

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPSt4pairI5PointS1_ESt4lessIS2_EEvT_S6_T0_(ptr noundef, ptr noundef) #7

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


; 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.Point = type { double, double }
%"struct.std::pair" = type { %struct.Point, %struct.Point }

@p = external dso_local global [101 x %struct.Point], align 16
@n = external dso_local local_unnamed_addr global i32, align 4
@cnt = external dso_local local_unnamed_addr global i32, align 4
@r = external dso_local local_unnamed_addr global double, align 8
@seg = external dso_local global [101 x %"struct.std::pair"], align 16

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z5cover5PointS_(double %0, double %1, double %2, double %3) local_unnamed_addr #3 {
  %5 = alloca %struct.Point, align 8
  %6 = alloca %struct.Point, align 8
  %7 = alloca %struct.Point, align 8
  %8 = alloca %struct.Point, align 8
  %9 = alloca %struct.Point, align 8
  %10 = alloca double, align 8
  %11 = alloca %struct.Point, align 8
  %12 = alloca %struct.Point, align 8
  %13 = alloca %struct.Point, align 8
  %14 = alloca %struct.Point, align 8
  %15 = alloca double, align 8
  %16 = alloca %struct.Point, align 8
  %17 = alloca %struct.Point, align 8
  %18 = alloca double, align 8
  %19 = alloca %struct.Point, align 8
  %20 = alloca %struct.Point, align 8
  %21 = alloca double, align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca %struct.Point, align 8
  store double %0, ptr %5, align 8
  %24 = getelementptr inbounds i8, ptr %5, i64 8
  store double %1, ptr %24, align 8
  store double %2, ptr %6, align 8
  %25 = getelementptr inbounds i8, ptr %6, i64 8
  store double %3, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  %26 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %27 = extractvalue { double, double } %26, 0
  store double %27, ptr %7, align 8
  %28 = getelementptr inbounds i8, ptr %7, i64 8
  %29 = extractvalue { double, double } %26, 1
  store double %29, ptr %28, align 8
  %30 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %31 = call noundef i32 @_Z4dcmpd(double noundef %30)
  %.not = icmp eq i32 %31, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br i1 %.not, label %138, label %32

32:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  %33 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %34 = extractvalue { double, double } %33, 0
  store double %34, ptr %9, align 8
  %35 = getelementptr inbounds i8, ptr %9, i64 8
  %36 = extractvalue { double, double } %33, 1
  store double %36, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  store double 1.000000e-03, ptr %10, align 8, !tbaa !5
  %37 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %38 = extractvalue { double, double } %37, 0
  store double %38, ptr %8, align 8
  %39 = getelementptr inbounds i8, ptr %8, i64 8
  %40 = extractvalue { double, double } %37, 1
  store double %40, ptr %39, align 8
  %41 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %42 = extractvalue { double, double } %41, 0
  %43 = extractvalue { double, double } %41, 1
  store double %42, ptr %5, align 8, !tbaa !5
  store double %43, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  %44 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %5)
  br i1 %44, label %45, label %46

45:                                               ; preds = %32
  call void @_ZSt4swapI5PointENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  br label %46

46:                                               ; preds = %45, %32
  store i32 0, ptr @cnt, align 4, !tbaa !9
  %47 = load i32, ptr @n, align 4, !tbaa !9
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %46
  %49 = getelementptr inbounds i8, ptr %11, i64 8
  %50 = getelementptr inbounds i8, ptr %12, i64 8
  %51 = getelementptr inbounds i8, ptr %14, i64 8
  %52 = getelementptr inbounds i8, ptr %13, i64 8
  %53 = getelementptr inbounds i8, ptr %17, i64 8
  %54 = getelementptr inbounds i8, ptr %16, i64 8
  %55 = getelementptr inbounds i8, ptr %20, i64 8
  %56 = getelementptr inbounds i8, ptr %19, i64 8
  br label %61

._crit_edge.loopexit:                             ; preds = %122
  %.pre = load i32, ptr @cnt, align 4, !tbaa !9
  %57 = sext i32 %.pre to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %46
  %58 = phi i64 [ %57, %._crit_edge.loopexit ], [ 0, %46 ]
  %59 = getelementptr inbounds %"struct.std::pair", ptr @seg, i64 %58
  call void @_ZSt4sortIPSt4pairI5PointS1_ESt4lessIS2_EEvT_S6_T0_(ptr noundef nonnull @seg, ptr noundef nonnull %59)
  %60 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) @seg)
  br i1 %60, label %138, label %126

61:                                               ; preds = %.lr.ph, %122
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %122 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %62 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %63 = extractvalue { double, double } %62, 0
  store double %63, ptr %11, align 8
  %64 = extractvalue { double, double } %62, 1
  store double %64, ptr %49, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  %65 = getelementptr inbounds [101 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv
  %66 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %65, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %67 = extractvalue { double, double } %66, 0
  store double %67, ptr %12, align 8
  %68 = extractvalue { double, double } %66, 1
  store double %68, ptr %50, align 8
  %69 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
  %70 = call double @llvm.fabs.f64(double %69)
  %71 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %72 = fdiv double %70, %71
  %73 = load double, ptr @r, align 8, !tbaa !5
  %74 = fsub double %72, %73
  %75 = call noundef i32 @_Z4dcmpd(double noundef %74)
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %122, label %77

77:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %78 = call noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
  %79 = call noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %80 = fdiv double %78, %79
  store double %80, ptr %15, align 8, !tbaa !5
  %81 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %82 = extractvalue { double, double } %81, 0
  store double %82, ptr %14, align 8
  %83 = extractvalue { double, double } %81, 1
  store double %83, ptr %51, align 8
  %84 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %14)
  %85 = extractvalue { double, double } %84, 0
  store double %85, ptr %13, align 8
  %86 = extractvalue { double, double } %84, 1
  store double %86, ptr %52, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  %87 = load double, ptr @r, align 8, !tbaa !5
  %88 = fneg double %72
  %89 = fmul double %72, %88
  %90 = call double @llvm.fmuladd.f64(double %87, double %87, double %89)
  %91 = call double @sqrt(double noundef %90) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %92 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %93 = fdiv double %91, %92
  store double %93, ptr %18, align 8, !tbaa !5
  %94 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %95 = extractvalue { double, double } %94, 0
  store double %95, ptr %17, align 8
  %96 = extractvalue { double, double } %94, 1
  store double %96, ptr %53, align 8
  %97 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %17)
  %98 = extractvalue { double, double } %97, 0
  store double %98, ptr %16, align 8
  %99 = extractvalue { double, double } %97, 1
  store double %99, ptr %54, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  %100 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %101 = fdiv double %91, %100
  store double %101, ptr %21, align 8, !tbaa !5
  %102 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %103 = extractvalue { double, double } %102, 0
  store double %103, ptr %20, align 8
  %104 = extractvalue { double, double } %102, 1
  store double %104, ptr %55, align 8
  %105 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %20)
  %106 = extractvalue { double, double } %105, 0
  store double %106, ptr %19, align 8
  %107 = extractvalue { double, double } %105, 1
  store double %107, ptr %56, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #8
  %108 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %5)
  br i1 %108, label %109, label %110

109:                                              ; preds = %77
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !11
  br label %110

110:                                              ; preds = %109, %77
  %111 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %19)
  br i1 %111, label %112, label %113

112:                                              ; preds = %110
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %6, i64 16, i1 false), !tbaa.struct !11
  br label %113

113:                                              ; preds = %112, %110
  %114 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %19)
  br i1 %114, label %115, label %121

115:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #8
  call void @_ZSt9make_pairIR5PointS1_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %19)
  %116 = load i32, ptr @cnt, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr @cnt, align 4, !tbaa !9
  %118 = sext i32 %116 to i64
  %119 = getelementptr inbounds [101 x %"struct.std::pair"], ptr @seg, i64 0, i64 %118
  %120 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt4pairI5PointS0_EaSEOS1_(ptr noundef nonnull align 8 dereferenceable(32) %119, ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #8
  br label %121

121:                                              ; preds = %115, %113
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  br label %122

122:                                              ; preds = %61, %121
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %123 = load i32, ptr @n, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = icmp slt i64 %indvars.iv.next, %124
  br i1 %125, label %61, label %._crit_edge.loopexit, !llvm.loop !12

126:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @seg, i64 16), i64 16, i1 false), !tbaa.struct !11
  %127 = load i32, ptr @cnt, align 4, !tbaa !9
  %.not1719 = icmp sgt i32 %127, 1
  br i1 %.not1719, label %.lr.ph22, label %.critedge

.lr.ph22:                                         ; preds = %126, %134
  %indvars.iv24 = phi i64 [ %indvars.iv.next25, %134 ], [ 1, %126 ]
  %128 = getelementptr inbounds [101 x %"struct.std::pair"], ptr @seg, i64 0, i64 %indvars.iv24
  %129 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %128)
  br i1 %129, label %.loopexit, label %130

130:                                              ; preds = %.lr.ph22
  %131 = getelementptr inbounds i8, ptr %128, i64 16
  %132 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %131)
  br i1 %132, label %133, label %134

133:                                              ; preds = %130
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 16 dereferenceable(16) %131, i64 16, i1 false), !tbaa.struct !11
  br label %134

134:                                              ; preds = %130, %133
  %indvars.iv.next25 = add nuw nsw i64 %indvars.iv24, 1
  %135 = load i32, ptr @cnt, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %.not17 = icmp slt i64 %indvars.iv.next25, %136
  br i1 %.not17, label %.lr.ph22, label %.critedge, !llvm.loop !14

.critedge:                                        ; preds = %134, %126
  %137 = call noundef zeroext i1 @_ZNK5PointltERKS_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %not. = xor i1 %137, true
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph22, %.critedge
  %.1 = phi i1 [ %not., %.critedge ], [ false, %.lr.ph22 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #8
  br label %138

138:                                              ; preds = %._crit_edge, %4, %.loopexit
  %.2 = phi i1 [ %.1, %.loopexit ], [ true, %4 ], [ false, %._crit_edge ]
  ret i1 %.2
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapI5PointENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPSt4pairI5PointS1_ESt4lessIS2_EEvT_S6_T0_(ptr noundef, ptr noundef) local_unnamed_addr #7

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


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