; LLVM IR from viveakrt/Competitive-programing :: SPOJ (bsheep)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.pt = type { double, double }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<double, double>, std::pair<const std::pair<double, double>, int>, std::_Select1st<std::pair<const std::pair<double, double>, int>>, std::less<std::pair<double, double>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<double, double>, std::pair<const std::pair<double, double>, int>, std::_Select1st<std::pair<const std::pair<double, double>, int>>, std::less<std::pair<double, double>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { double, double }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Setprecision" = type { i32 }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@s = external dso_local global %"class.std::vector", align 8
@up = external dso_local global %"class.std::vector", align 8
@dn = external dso_local global %"class.std::vector", align 8
@a = external dso_local global %struct.pt, align 8
@b = external dso_local global %struct.pt, align 8
@hsh = external dso_local global %"class.std::map", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca %struct.pt, align 8
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.pt, align 8
  %12 = alloca %struct.pt, align 8
  %13 = alloca %struct.pt, align 8
  %14 = alloca %struct.pt, align 8
  %15 = alloca %struct.pt, align 8
  %16 = alloca %struct.pt, align 8
  %17 = alloca %struct.pt, align 8
  %18 = alloca %struct.pt, align 8
  %19 = alloca %struct.pt, align 8
  %20 = alloca %struct.pt, align 8
  %21 = alloca %struct.pt, align 8
  %22 = alloca %struct.pt, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca i32, align 4
  %28 = alloca double, align 8
  %29 = alloca i32, align 4
  %30 = alloca %struct.pt, align 8
  %31 = alloca %struct.pt, align 8
  %32 = alloca %struct.pt, align 8
  %33 = alloca %struct.pt, align 8
  %34 = alloca %"struct.std::_Setprecision", align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %"struct.std::pair", align 8
  %38 = alloca i32, align 4
  %39 = alloca %"struct.std::pair", align 8
  store i32 0, ptr %1, align 4
  %40 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %41 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %42 = getelementptr i8, ptr %41, i64 -24
  %43 = load i64, ptr %42, align 8
  %44 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %43
  %45 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %44, ptr noundef null)
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @t)
  br label %47

47:                                               ; preds = %390, %0
  %48 = load i32, ptr @t, align 4, !tbaa !8
  %49 = add nsw i32 %48, -1
  store i32 %49, ptr @t, align 4, !tbaa !8
  %50 = icmp ne i32 %48, 0
  br i1 %50, label %51, label %392

51:                                               ; preds = %47
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @_ZNSt6vectorI2ptSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  call void @_ZNSt3mapISt4pairIddEiSt4lessIS1_ESaIS0_IKS1_iEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) @hsh) #8
  call void @_ZNSt6vectorI2ptSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @up) #8
  call void @_ZNSt6vectorI2ptSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !8
  br label %53

53:                                               ; preds = %74, %51
  %54 = load i32, ptr %2, align 4, !tbaa !8
  %55 = load i32, ptr @n, align 4, !tbaa !8
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %77

58:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %60 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %59, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #8
  %61 = getelementptr inbounds %struct.pt, ptr %5, i32 0, i32 0
  %62 = load double, ptr %3, align 8, !tbaa !11
  store double %62, ptr %61, align 8, !tbaa !13
  %63 = getelementptr inbounds %struct.pt, ptr %5, i32 0, i32 1
  %64 = load double, ptr %4, align 8, !tbaa !11
  store double %64, ptr %63, align 8, !tbaa !15
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) @s, ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #8
  call void @_ZNSt4pairIddEC2IRdS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIddEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @hsh, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %66 = load i32, ptr %65, align 4, !tbaa !8
  %67 = icmp ne i32 %66, 0
  %68 = xor i1 %67, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #8
  br i1 %68, label %69, label %73

69:                                               ; preds = %58
  %70 = load i32, ptr %2, align 4, !tbaa !8
  %71 = add nsw i32 %70, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  call void @_ZNSt4pairIddEC2IRdS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIddEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @hsh, ptr noundef nonnull align 8 dereferenceable(16) %7)
  store i32 %71, ptr %72, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  br label %73

73:                                               ; preds = %69, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %2, align 4, !tbaa !8
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %2, align 4, !tbaa !8
  br label %53, !llvm.loop !16

77:                                               ; preds = %57
  %78 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %79 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %78, ptr %79, align 8
  %80 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %83, ptr %85, ptr noundef @_Z3cmp2ptS_)
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef 0) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @a, ptr align 8 %86, i64 16, i1 false), !tbaa.struct !18
  %87 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %88 = sub i64 %87, 1
  %89 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %88) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @b, ptr align 8 %89, i64 16, i1 false), !tbaa.struct !18
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @up, ptr noundef nonnull align 8 dereferenceable(16) @a)
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @dn, ptr noundef nonnull align 8 dereferenceable(16) @a)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 1, ptr %10, align 4, !tbaa !8
  br label %90

90:                                               ; preds = %213, %77
  %91 = load i32, ptr %10, align 4, !tbaa !8
  %92 = sext i32 %91 to i64
  %93 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %94 = icmp ult i64 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %216

96:                                               ; preds = %90
  %97 = load i32, ptr %10, align 4, !tbaa !8
  %98 = sext i32 %97 to i64
  %99 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %100 = sub i64 %99, 1
  %101 = icmp eq i64 %98, %100
  br i1 %101, label %119, label %102

102:                                              ; preds = %96
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 @a, i64 16, i1 false), !tbaa.struct !18
  %103 = load i32, ptr %10, align 4, !tbaa !8
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %104) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %105, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 @b, i64 16, i1 false), !tbaa.struct !18
  %106 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %107 = load double, ptr %106, align 8
  %108 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %109 = load double, ptr %108, align 8
  %110 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %111 = load double, ptr %110, align 8
  %112 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %113 = load double, ptr %112, align 8
  %114 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %115 = load double, ptr %114, align 8
  %116 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %117 = load double, ptr %116, align 8
  %118 = call noundef zeroext i1 @_Z2cw2ptS_S_(double %107, double %109, double %111, double %113, double %115, double %117)
  br i1 %118, label %119, label %154

119:                                              ; preds = %102, %96
  br label %120

120:                                              ; preds = %149, %119
  %121 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @up) #8
  %122 = icmp uge i64 %121, 2
  br i1 %122, label %123, label %147

123:                                              ; preds = %120
  %124 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @up) #8
  %125 = sub i64 %124, 2
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @up, i64 noundef %125) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %126, i64 16, i1 false), !tbaa.struct !18
  %127 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @up) #8
  %128 = sub i64 %127, 1
  %129 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @up, i64 noundef %128) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %129, i64 16, i1 false), !tbaa.struct !18
  %130 = load i32, ptr %10, align 4, !tbaa !8
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %131) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %132, i64 16, i1 false), !tbaa.struct !18
  %133 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %134 = load double, ptr %133, align 8
  %135 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %136 = load double, ptr %135, align 8
  %137 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %138 = load double, ptr %137, align 8
  %139 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %140 = load double, ptr %139, align 8
  %141 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %142 = load double, ptr %141, align 8
  %143 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %144 = load double, ptr %143, align 8
  %145 = call noundef zeroext i1 @_Z2cw2ptS_S_(double %134, double %136, double %138, double %140, double %142, double %144)
  %146 = xor i1 %145, true
  br label %147

147:                                              ; preds = %123, %120
  %148 = phi i1 [ false, %120 ], [ %146, %123 ]
  br i1 %148, label %149, label %150

149:                                              ; preds = %147
  call void @_ZNSt6vectorI2ptSaIS0_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @up) #8
  br label %120, !llvm.loop !19

150:                                              ; preds = %147
  %151 = load i32, ptr %10, align 4, !tbaa !8
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %152) #8
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @up, ptr noundef nonnull align 8 dereferenceable(16) %153)
  br label %154

154:                                              ; preds = %150, %102
  %155 = load i32, ptr %10, align 4, !tbaa !8
  %156 = sext i32 %155 to i64
  %157 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %158 = sub i64 %157, 1
  %159 = icmp eq i64 %156, %158
  br i1 %159, label %177, label %160

160:                                              ; preds = %154
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 @a, i64 16, i1 false), !tbaa.struct !18
  %161 = load i32, ptr %10, align 4, !tbaa !8
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %162) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %163, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 @b, i64 16, i1 false), !tbaa.struct !18
  %164 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %165 = load double, ptr %164, align 8
  %166 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %167 = load double, ptr %166, align 8
  %168 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %169 = load double, ptr %168, align 8
  %170 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %171 = load double, ptr %170, align 8
  %172 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %173 = load double, ptr %172, align 8
  %174 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %175 = load double, ptr %174, align 8
  %176 = call noundef zeroext i1 @_Z3ccw2ptS_S_(double %165, double %167, double %169, double %171, double %173, double %175)
  br i1 %176, label %177, label %212

177:                                              ; preds = %160, %154
  br label %178

178:                                              ; preds = %207, %177
  %179 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  %180 = icmp uge i64 %179, 2
  br i1 %180, label %181, label %205

181:                                              ; preds = %178
  %182 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  %183 = sub i64 %182, 2
  %184 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dn, i64 noundef %183) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %184, i64 16, i1 false), !tbaa.struct !18
  %185 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  %186 = sub i64 %185, 1
  %187 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dn, i64 noundef %186) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %187, i64 16, i1 false), !tbaa.struct !18
  %188 = load i32, ptr %10, align 4, !tbaa !8
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %189) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %190, i64 16, i1 false), !tbaa.struct !18
  %191 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %192 = load double, ptr %191, align 8
  %193 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %194 = load double, ptr %193, align 8
  %195 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %196 = load double, ptr %195, align 8
  %197 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %198 = load double, ptr %197, align 8
  %199 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %200 = load double, ptr %199, align 8
  %201 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %202 = load double, ptr %201, align 8
  %203 = call noundef zeroext i1 @_Z3ccw2ptS_S_(double %192, double %194, double %196, double %198, double %200, double %202)
  %204 = xor i1 %203, true
  br label %205

205:                                              ; preds = %181, %178
  %206 = phi i1 [ false, %178 ], [ %204, %181 ]
  br i1 %206, label %207, label %208

207:                                              ; preds = %205
  call void @_ZNSt6vectorI2ptSaIS0_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  br label %178, !llvm.loop !20

208:                                              ; preds = %205
  %209 = load i32, ptr %10, align 4, !tbaa !8
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %210) #8
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @dn, ptr noundef nonnull align 8 dereferenceable(16) %211)
  br label %212

212:                                              ; preds = %208, %160
  br label %213

213:                                              ; preds = %212
  %214 = load i32, ptr %10, align 4, !tbaa !8
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %10, align 4, !tbaa !8
  br label %90, !llvm.loop !21

216:                                              ; preds = %95
  call void @_ZNSt6vectorI2ptSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !8
  br label %217

217:                                              ; preds = %227, %216
  %218 = load i32, ptr %23, align 4, !tbaa !8
  %219 = sext i32 %218 to i64
  %220 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  %221 = icmp ult i64 %219, %220
  br i1 %221, label %223, label %222

222:                                              ; preds = %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %230

223:                                              ; preds = %217
  %224 = load i32, ptr %23, align 4, !tbaa !8
  %225 = sext i32 %224 to i64
  %226 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dn, i64 noundef %225) #8
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @s, ptr noundef nonnull align 8 dereferenceable(16) %226)
  br label %227

227:                                              ; preds = %223
  %228 = load i32, ptr %23, align 4, !tbaa !8
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %23, align 4, !tbaa !8
  br label %217, !llvm.loop !22

230:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %231 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @up) #8
  %232 = sub i64 %231, 2
  %233 = trunc i64 %232 to i32
  store i32 %233, ptr %24, align 4, !tbaa !8
  br label %234

234:                                              ; preds = %242, %230
  %235 = load i32, ptr %24, align 4, !tbaa !8
  %236 = icmp sgt i32 %235, 0
  br i1 %236, label %238, label %237

237:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %245

238:                                              ; preds = %234
  %239 = load i32, ptr %24, align 4, !tbaa !8
  %240 = sext i32 %239 to i64
  %241 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @up, i64 noundef %240) #8
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @s, ptr noundef nonnull align 8 dereferenceable(16) %241)
  br label %242

242:                                              ; preds = %238
  %243 = load i32, ptr %24, align 4, !tbaa !8
  %244 = add nsw i32 %243, -1
  store i32 %244, ptr %24, align 4, !tbaa !8
  br label %234, !llvm.loop !23

245:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  store double 0x41DFFFFFFFC00000, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  store double 0x41DFFFFFFFC00000, ptr %26, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  store double 0.000000e+00, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !8
  br label %246

246:                                              ; preds = %272, %245
  %247 = load i32, ptr %29, align 4, !tbaa !8
  %248 = sext i32 %247 to i64
  %249 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %250 = sub i64 %249, 1
  %251 = icmp ult i64 %248, %250
  br i1 %251, label %253, label %252

252:                                              ; preds = %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %275

253:                                              ; preds = %246
  %254 = load i32, ptr %29, align 4, !tbaa !8
  %255 = sext i32 %254 to i64
  %256 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %255) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %256, i64 16, i1 false), !tbaa.struct !18
  %257 = load i32, ptr %29, align 4, !tbaa !8
  %258 = add nsw i32 %257, 1
  %259 = sext i32 %258 to i64
  %260 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %259) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 8 %260, i64 16, i1 false), !tbaa.struct !18
  %261 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %262 = load double, ptr %261, align 8
  %263 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %264 = load double, ptr %263, align 8
  %265 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %266 = load double, ptr %265, align 8
  %267 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %268 = load double, ptr %267, align 8
  %269 = call noundef double @_Z4dist2ptS_(double %262, double %264, double %266, double %268)
  %270 = load double, ptr %28, align 8, !tbaa !11
  %271 = fadd double %270, %269
  store double %271, ptr %28, align 8, !tbaa !11
  br label %272

272:                                              ; preds = %253
  %273 = load i32, ptr %29, align 4, !tbaa !8
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %29, align 4, !tbaa !8
  br label %246, !llvm.loop !24

275:                                              ; preds = %252
  %276 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef 0) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %276, i64 16, i1 false), !tbaa.struct !18
  %277 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %277, i64 16, i1 false), !tbaa.struct !18
  %278 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %279 = load double, ptr %278, align 8
  %280 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %281 = load double, ptr %280, align 8
  %282 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %283 = load double, ptr %282, align 8
  %284 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %285 = load double, ptr %284, align 8
  %286 = call noundef double @_Z4dist2ptS_(double %279, double %281, double %283, double %285)
  %287 = load double, ptr %28, align 8, !tbaa !11
  %288 = fadd double %287, %286
  store double %288, ptr %28, align 8, !tbaa !11
  %289 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt5fixedRSt8ios_base)
  %290 = call i32 @_ZSt12setprecisioni(i32 noundef 2)
  %291 = getelementptr inbounds %"struct.std::_Setprecision", ptr %34, i32 0, i32 0
  store i32 %290, ptr %291, align 4
  %292 = getelementptr inbounds %"struct.std::_Setprecision", ptr %34, i32 0, i32 0
  %293 = load i32, ptr %292, align 4
  %294 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %293)
  %295 = load double, ptr %28, align 8, !tbaa !11
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %294, double noundef %295)
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %296, i8 noundef signext 10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 0, ptr %35, align 4, !tbaa !8
  br label %298

298:                                              ; preds = %341, %275
  %299 = load i32, ptr %35, align 4, !tbaa !8
  %300 = sext i32 %299 to i64
  %301 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %302 = icmp ult i64 %300, %301
  br i1 %302, label %304, label %303

303:                                              ; preds = %298
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %344

304:                                              ; preds = %298
  %305 = load i32, ptr %35, align 4, !tbaa !8
  %306 = sext i32 %305 to i64
  %307 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %306) #8
  %308 = getelementptr inbounds %struct.pt, ptr %307, i32 0, i32 1
  %309 = load double, ptr %308, align 8, !tbaa !15
  %310 = load double, ptr %25, align 8, !tbaa !11
  %311 = fcmp olt double %309, %310
  br i1 %311, label %328, label %312

312:                                              ; preds = %304
  %313 = load i32, ptr %35, align 4, !tbaa !8
  %314 = sext i32 %313 to i64
  %315 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %314) #8
  %316 = getelementptr inbounds %struct.pt, ptr %315, i32 0, i32 1
  %317 = load double, ptr %316, align 8, !tbaa !15
  %318 = load double, ptr %25, align 8, !tbaa !11
  %319 = fcmp oeq double %317, %318
  br i1 %319, label %320, label %340

320:                                              ; preds = %312
  %321 = load i32, ptr %35, align 4, !tbaa !8
  %322 = sext i32 %321 to i64
  %323 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %322) #8
  %324 = getelementptr inbounds %struct.pt, ptr %323, i32 0, i32 0
  %325 = load double, ptr %324, align 8, !tbaa !13
  %326 = load double, ptr %26, align 8, !tbaa !11
  %327 = fcmp olt double %325, %326
  br i1 %327, label %328, label %340

328:                                              ; preds = %320, %304
  %329 = load i32, ptr %35, align 4, !tbaa !8
  store i32 %329, ptr %27, align 4, !tbaa !8
  %330 = load i32, ptr %35, align 4, !tbaa !8
  %331 = sext i32 %330 to i64
  %332 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %331) #8
  %333 = getelementptr inbounds %struct.pt, ptr %332, i32 0, i32 1
  %334 = load double, ptr %333, align 8, !tbaa !15
  store double %334, ptr %25, align 8, !tbaa !11
  %335 = load i32, ptr %35, align 4, !tbaa !8
  %336 = sext i32 %335 to i64
  %337 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %336) #8
  %338 = getelementptr inbounds %struct.pt, ptr %337, i32 0, i32 0
  %339 = load double, ptr %338, align 8, !tbaa !13
  store double %339, ptr %26, align 8, !tbaa !11
  br label %340

340:                                              ; preds = %328, %320, %312
  br label %341

341:                                              ; preds = %340
  %342 = load i32, ptr %35, align 4, !tbaa !8
  %343 = add nsw i32 %342, 1
  store i32 %343, ptr %35, align 4, !tbaa !8
  br label %298, !llvm.loop !25

344:                                              ; preds = %303
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %345 = load i32, ptr %27, align 4, !tbaa !8
  store i32 %345, ptr %36, align 4, !tbaa !8
  br label %346

346:                                              ; preds = %365, %344
  %347 = load i32, ptr %36, align 4, !tbaa !8
  %348 = sext i32 %347 to i64
  %349 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %350 = icmp ult i64 %348, %349
  br i1 %350, label %352, label %351

351:                                              ; preds = %346
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %368

352:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #8
  %353 = load i32, ptr %36, align 4, !tbaa !8
  %354 = sext i32 %353 to i64
  %355 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %354) #8
  %356 = getelementptr inbounds %struct.pt, ptr %355, i32 0, i32 0
  %357 = load i32, ptr %36, align 4, !tbaa !8
  %358 = sext i32 %357 to i64
  %359 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %358) #8
  %360 = getelementptr inbounds %struct.pt, ptr %359, i32 0, i32 1
  call void @_ZNSt4pairIddEC2IRdS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(8) %356, ptr noundef nonnull align 8 dereferenceable(8) %360)
  %361 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIddEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @hsh, ptr noundef nonnull align 8 dereferenceable(16) %37)
  %362 = load i32, ptr %361, align 4, !tbaa !8
  %363 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %362)
  %364 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %363, i8 noundef signext 32)
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #8
  br label %365

365:                                              ; preds = %352
  %366 = load i32, ptr %36, align 4, !tbaa !8
  %367 = add nsw i32 %366, 1
  store i32 %367, ptr %36, align 4, !tbaa !8
  br label %346, !llvm.loop !26

368:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  store i32 0, ptr %38, align 4, !tbaa !8
  br label %369

369:                                              ; preds = %387, %368
  %370 = load i32, ptr %38, align 4, !tbaa !8
  %371 = load i32, ptr %27, align 4, !tbaa !8
  %372 = icmp slt i32 %370, %371
  br i1 %372, label %374, label %373

373:                                              ; preds = %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %390

374:                                              ; preds = %369
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #8
  %375 = load i32, ptr %38, align 4, !tbaa !8
  %376 = sext i32 %375 to i64
  %377 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %376) #8
  %378 = getelementptr inbounds %struct.pt, ptr %377, i32 0, i32 0
  %379 = load i32, ptr %38, align 4, !tbaa !8
  %380 = sext i32 %379 to i64
  %381 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %380) #8
  %382 = getelementptr inbounds %struct.pt, ptr %381, i32 0, i32 1
  call void @_ZNSt4pairIddEC2IRdS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(8) %378, ptr noundef nonnull align 8 dereferenceable(8) %382)
  %383 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIddEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @hsh, ptr noundef nonnull align 8 dereferenceable(16) %39)
  %384 = load i32, ptr %383, align 4, !tbaa !8
  %385 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %384)
  %386 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %385, i8 noundef signext 32)
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #8
  br label %387

387:                                              ; preds = %374
  %388 = load i32, ptr %38, align 4, !tbaa !8
  %389 = add nsw i32 %388, 1
  store i32 %389, ptr %38, align 4, !tbaa !8
  br label %369, !llvm.loop !27

390:                                              ; preds = %373
  %391 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %47, !llvm.loop !28

392:                                              ; preds = %47
  %393 = load i32, ptr %1, align 4
  ret i32 %393
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #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) #6

; 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 uwtable
declare dso_local void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8), i32) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) #7

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #4 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

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 norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !10, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS2pt", !12, i64 0, !12, i64 8}
!15 = !{!14, !12, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{i64 0, i64 8, !11, i64 8, i64 8, !11}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.pt = type { double, double }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<double, double>, std::pair<const std::pair<double, double>, int>, std::_Select1st<std::pair<const std::pair<double, double>, int>>, std::less<std::pair<double, double>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<double, double>, std::pair<const std::pair<double, double>, int>, std::_Select1st<std::pair<const std::pair<double, double>, int>>, std::less<std::pair<double, double>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { double, double }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@s = external dso_local global %"class.std::vector", align 8
@up = external dso_local global %"class.std::vector", align 8
@dn = external dso_local global %"class.std::vector", align 8
@a = external dso_local global %struct.pt, align 8
@b = external dso_local local_unnamed_addr global %struct.pt, align 8
@hsh = external dso_local global %"class.std::map", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca %struct.pt, align 8
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %9 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @t)
  %15 = load i32, ptr @t, align 4, !tbaa !8
  %16 = add nsw i32 %15, -1
  store i32 %16, ptr @t, align 4, !tbaa !8
  %.not137 = icmp eq i32 %15, 0
  br i1 %.not137, label %._crit_edge141, label %.lr.ph140

.lr.ph140:                                        ; preds = %0
  %17 = getelementptr inbounds i8, ptr %3, i64 8
  br label %18

18:                                               ; preds = %.lr.ph140, %._crit_edge136
  %.091138 = phi i32 [ undef, %.lr.ph140 ], [ %.192.lcssa, %._crit_edge136 ]
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @_ZNSt6vectorI2ptSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  call void @_ZNSt3mapISt4pairIddEiSt4lessIS1_ESaIS0_IKS1_iEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) @hsh) #8
  call void @_ZNSt6vectorI2ptSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @up) #8
  call void @_ZNSt6vectorI2ptSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  %20 = load i32, ptr @n, align 4, !tbaa !8
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph._crit_edge, %18
  %22 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %23 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %22, ptr %23, ptr noundef nonnull @_Z3cmp2ptS_)
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef 0) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) @a, ptr noundef nonnull align 8 dereferenceable(16) %24, i64 16, i1 false), !tbaa.struct !11
  %25 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %26 = add i64 %25, -1
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %26) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) @b, ptr noundef nonnull align 8 dereferenceable(16) %27, i64 16, i1 false), !tbaa.struct !11
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @up, ptr noundef nonnull align 8 dereferenceable(16) @a)
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @dn, ptr noundef nonnull align 8 dereferenceable(16) @a)
  %28 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %29 = icmp ugt i64 %28, 1
  br i1 %29, label %.lr.ph112, label %._crit_edge113

.lr.ph:                                           ; preds = %18, %.lr.ph._crit_edge
  %.084103 = phi i32 [ %36, %.lr.ph._crit_edge ], [ 0, %18 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  %32 = load double, ptr %1, align 8, !tbaa !12
  store double %32, ptr %3, align 8, !tbaa !14
  %33 = load double, ptr %2, align 8, !tbaa !12
  store double %33, ptr %17, align 8, !tbaa !16
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) @s, ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  call void @_ZNSt4pairIddEC2IRdS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIddEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @hsh, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %35 = load i32, ptr %34, align 4, !tbaa !8
  %.not100 = icmp eq i32 %35, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  %36 = add nuw nsw i32 %.084103, 1
  br i1 %.not100, label %37, label %.lr.ph._crit_edge

37:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  call void @_ZNSt4pairIddEC2IRdS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIddEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @hsh, ptr noundef nonnull align 8 dereferenceable(16) %5)
  store i32 %36, ptr %38, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  br label %.lr.ph._crit_edge

.lr.ph._crit_edge:                                ; preds = %.lr.ph, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  %39 = load i32, ptr @n, align 4, !tbaa !8
  %40 = icmp slt i32 %36, %39
  br i1 %40, label %.lr.ph, label %._crit_edge, !llvm.loop !17

._crit_edge113:                                   ; preds = %85, %._crit_edge
  call void @_ZNSt6vectorI2ptSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %41 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  %.not142 = icmp eq i64 %41, 0
  br i1 %.not142, label %._crit_edge117, label %.lr.ph116

.lr.ph112:                                        ; preds = %._crit_edge, %85
  %indvars.iv = phi i64 [ %indvars.iv.next, %85 ], [ 1, %._crit_edge ]
  %42 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %43 = add i64 %42, -1
  %44 = icmp eq i64 %43, %indvars.iv
  br i1 %44, label %48, label %45

45:                                               ; preds = %.lr.ph112
  %.sroa.064.0.copyload = load double, ptr @a, align 8, !tbaa !12
  %.sroa.265.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !12
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv) #8
  %.sroa.062.0.copyload = load double, ptr %46, align 8, !tbaa !12
  %.sroa.263.0..sroa_idx = getelementptr inbounds i8, ptr %46, i64 8
  %.sroa.263.0.copyload = load double, ptr %.sroa.263.0..sroa_idx, align 8, !tbaa !12
  %.sroa.060.0.copyload = load double, ptr @b, align 8, !tbaa !12
  %.sroa.261.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @b, i64 8), align 8, !tbaa !12
  %47 = call noundef zeroext i1 @_Z2cw2ptS_S_(double %.sroa.064.0.copyload, double %.sroa.265.0.copyload, double %.sroa.062.0.copyload, double %.sroa.263.0.copyload, double %.sroa.060.0.copyload, double %.sroa.261.0.copyload)
  br i1 %47, label %48, label %63

48:                                               ; preds = %45, %.lr.ph112
  %49 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @up) #8
  %50 = icmp ugt i64 %49, 1
  br i1 %50, label %.lr.ph105, label %.critedge

.lr.ph105:                                        ; preds = %48, %59
  %51 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @up) #8
  %52 = add i64 %51, -2
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @up, i64 noundef %52) #8
  %.sroa.058.0.copyload = load double, ptr %53, align 8, !tbaa !12
  %.sroa.259.0..sroa_idx = getelementptr inbounds i8, ptr %53, i64 8
  %.sroa.259.0.copyload = load double, ptr %.sroa.259.0..sroa_idx, align 8, !tbaa !12
  %54 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @up) #8
  %55 = add i64 %54, -1
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @up, i64 noundef %55) #8
  %.sroa.056.0.copyload = load double, ptr %56, align 8, !tbaa !12
  %.sroa.257.0..sroa_idx = getelementptr inbounds i8, ptr %56, i64 8
  %.sroa.257.0.copyload = load double, ptr %.sroa.257.0..sroa_idx, align 8, !tbaa !12
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv) #8
  %.sroa.054.0.copyload = load double, ptr %57, align 8, !tbaa !12
  %.sroa.255.0..sroa_idx = getelementptr inbounds i8, ptr %57, i64 8
  %.sroa.255.0.copyload = load double, ptr %.sroa.255.0..sroa_idx, align 8, !tbaa !12
  %58 = call noundef zeroext i1 @_Z2cw2ptS_S_(double %.sroa.058.0.copyload, double %.sroa.259.0.copyload, double %.sroa.056.0.copyload, double %.sroa.257.0.copyload, double %.sroa.054.0.copyload, double %.sroa.255.0.copyload)
  br i1 %58, label %.critedge, label %59

59:                                               ; preds = %.lr.ph105
  call void @_ZNSt6vectorI2ptSaIS0_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @up) #8
  %60 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @up) #8
  %61 = icmp ugt i64 %60, 1
  br i1 %61, label %.lr.ph105, label %.critedge, !llvm.loop !19

.critedge:                                        ; preds = %.lr.ph105, %59, %48
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv) #8
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @up, ptr noundef nonnull align 8 dereferenceable(16) %62)
  br label %63

63:                                               ; preds = %.critedge, %45
  %64 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %65 = add i64 %64, -1
  %66 = icmp eq i64 %65, %indvars.iv
  br i1 %66, label %70, label %67

67:                                               ; preds = %63
  %.sroa.052.0.copyload = load double, ptr @a, align 8, !tbaa !12
  %.sroa.253.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !12
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv) #8
  %.sroa.050.0.copyload = load double, ptr %68, align 8, !tbaa !12
  %.sroa.251.0..sroa_idx = getelementptr inbounds i8, ptr %68, i64 8
  %.sroa.251.0.copyload = load double, ptr %.sroa.251.0..sroa_idx, align 8, !tbaa !12
  %.sroa.048.0.copyload = load double, ptr @b, align 8, !tbaa !12
  %.sroa.249.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @b, i64 8), align 8, !tbaa !12
  %69 = call noundef zeroext i1 @_Z3ccw2ptS_S_(double %.sroa.052.0.copyload, double %.sroa.253.0.copyload, double %.sroa.050.0.copyload, double %.sroa.251.0.copyload, double %.sroa.048.0.copyload, double %.sroa.249.0.copyload)
  br i1 %69, label %70, label %85

70:                                               ; preds = %67, %63
  %71 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  %72 = icmp ugt i64 %71, 1
  br i1 %72, label %.lr.ph108, label %.critedge2

.lr.ph108:                                        ; preds = %70, %81
  %73 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  %74 = add i64 %73, -2
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dn, i64 noundef %74) #8
  %.sroa.046.0.copyload = load double, ptr %75, align 8, !tbaa !12
  %.sroa.247.0..sroa_idx = getelementptr inbounds i8, ptr %75, i64 8
  %.sroa.247.0.copyload = load double, ptr %.sroa.247.0..sroa_idx, align 8, !tbaa !12
  %76 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  %77 = add i64 %76, -1
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dn, i64 noundef %77) #8
  %.sroa.044.0.copyload = load double, ptr %78, align 8, !tbaa !12
  %.sroa.245.0..sroa_idx = getelementptr inbounds i8, ptr %78, i64 8
  %.sroa.245.0.copyload = load double, ptr %.sroa.245.0..sroa_idx, align 8, !tbaa !12
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv) #8
  %.sroa.042.0.copyload = load double, ptr %79, align 8, !tbaa !12
  %.sroa.243.0..sroa_idx = getelementptr inbounds i8, ptr %79, i64 8
  %.sroa.243.0.copyload = load double, ptr %.sroa.243.0..sroa_idx, align 8, !tbaa !12
  %80 = call noundef zeroext i1 @_Z3ccw2ptS_S_(double %.sroa.046.0.copyload, double %.sroa.247.0.copyload, double %.sroa.044.0.copyload, double %.sroa.245.0.copyload, double %.sroa.042.0.copyload, double %.sroa.243.0.copyload)
  br i1 %80, label %.critedge2, label %81

81:                                               ; preds = %.lr.ph108
  call void @_ZNSt6vectorI2ptSaIS0_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  %82 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  %83 = icmp ugt i64 %82, 1
  br i1 %83, label %.lr.ph108, label %.critedge2, !llvm.loop !20

.critedge2:                                       ; preds = %.lr.ph108, %81, %70
  %84 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv) #8
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @dn, ptr noundef nonnull align 8 dereferenceable(16) %84)
  br label %85

85:                                               ; preds = %67, %.critedge2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %86 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %87 = icmp ugt i64 %86, %indvars.iv.next
  br i1 %87, label %.lr.ph112, label %._crit_edge113, !llvm.loop !21

._crit_edge117:                                   ; preds = %.lr.ph116, %._crit_edge113
  %88 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @up) #8
  %89 = trunc i64 %88 to i32
  %90 = add i32 %89, -2
  %91 = icmp sgt i32 %90, 0
  br i1 %91, label %.lr.ph120.preheader, label %.preheader102

.lr.ph120.preheader:                              ; preds = %._crit_edge117
  %92 = zext nneg i32 %90 to i64
  br label %.lr.ph120

.lr.ph116:                                        ; preds = %._crit_edge113, %.lr.ph116
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %.lr.ph116 ], [ 0, %._crit_edge113 ]
  %93 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dn, i64 noundef %indvars.iv146) #8
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @s, ptr noundef nonnull align 8 dereferenceable(16) %93)
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %94 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @dn) #8
  %95 = icmp ugt i64 %94, %indvars.iv.next147
  br i1 %95, label %.lr.ph116, label %._crit_edge117, !llvm.loop !22

.preheader102:                                    ; preds = %.lr.ph120, %._crit_edge117
  %96 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %.not143 = icmp eq i64 %96, 1
  br i1 %.not143, label %._crit_edge124, label %.lr.ph123

.lr.ph120:                                        ; preds = %.lr.ph120.preheader, %.lr.ph120
  %indvars.iv149 = phi i64 [ %92, %.lr.ph120.preheader ], [ %indvars.iv.next150, %.lr.ph120 ]
  %97 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @up, i64 noundef %indvars.iv149) #8
  call void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @s, ptr noundef nonnull align 8 dereferenceable(16) %97)
  %indvars.iv.next150 = add nsw i64 %indvars.iv149, -1
  %98 = icmp ugt i64 %indvars.iv149, 1
  br i1 %98, label %.lr.ph120, label %.preheader102, !llvm.loop !23

._crit_edge124:                                   ; preds = %.lr.ph123, %.preheader102
  %.093.lcssa = phi double [ 0.000000e+00, %.preheader102 ], [ %112, %.lr.ph123 ]
  %99 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef 0) #8
  %.sroa.019.0.copyload = load double, ptr %99, align 8, !tbaa !12
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %99, i64 8
  %.sroa.220.0.copyload = load double, ptr %.sroa.220.0..sroa_idx, align 8, !tbaa !12
  %100 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %.sroa.018.0.copyload = load double, ptr %100, align 8, !tbaa !12
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %100, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !12
  %101 = call noundef double @_Z4dist2ptS_(double %.sroa.019.0.copyload, double %.sroa.220.0.copyload, double %.sroa.018.0.copyload, double %.sroa.2.0.copyload)
  %102 = fadd double %.093.lcssa, %101
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
  %104 = call i32 @_ZSt12setprecisioni(i32 noundef 2)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %104)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %105, double noundef %102)
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %106, i8 noundef signext 10)
  %108 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %.not144 = icmp eq i64 %108, 0
  br i1 %.not144, label %.preheader101, label %.lr.ph130

.lr.ph123:                                        ; preds = %.preheader102, %.lr.ph123
  %indvars.iv152 = phi i64 [ %indvars.iv.next153, %.lr.ph123 ], [ 0, %.preheader102 ]
  %.093122 = phi double [ %112, %.lr.ph123 ], [ 0.000000e+00, %.preheader102 ]
  %109 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv152) #8
  %.sroa.023.0.copyload = load double, ptr %109, align 8, !tbaa !12
  %.sroa.224.0..sroa_idx = getelementptr inbounds i8, ptr %109, i64 8
  %.sroa.224.0.copyload = load double, ptr %.sroa.224.0..sroa_idx, align 8, !tbaa !12
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv.next153) #8
  %.sroa.021.0.copyload = load double, ptr %110, align 8, !tbaa !12
  %.sroa.222.0..sroa_idx = getelementptr inbounds i8, ptr %110, i64 8
  %.sroa.222.0.copyload = load double, ptr %.sroa.222.0..sroa_idx, align 8, !tbaa !12
  %111 = call noundef double @_Z4dist2ptS_(double %.sroa.023.0.copyload, double %.sroa.224.0.copyload, double %.sroa.021.0.copyload, double %.sroa.222.0.copyload)
  %112 = fadd double %.093122, %111
  %113 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %114 = add i64 %113, -1
  %115 = icmp ugt i64 %114, %indvars.iv.next153
  br i1 %115, label %.lr.ph123, label %._crit_edge124, !llvm.loop !24

.preheader101:                                    ; preds = %139, %._crit_edge124
  %.192.lcssa = phi i32 [ %.091138, %._crit_edge124 ], [ %.2, %139 ]
  %116 = sext i32 %.192.lcssa to i64
  %117 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %118 = icmp ugt i64 %117, %116
  br i1 %118, label %.lr.ph133, label %.preheader

.lr.ph130:                                        ; preds = %._crit_edge124, %139
  %indvars.iv155 = phi i64 [ %indvars.iv.next156, %139 ], [ 0, %._crit_edge124 ]
  %.088127 = phi double [ %.1, %139 ], [ 0x41DFFFFFFFC00000, %._crit_edge124 ]
  %.089126 = phi double [ %.190, %139 ], [ 0x41DFFFFFFFC00000, %._crit_edge124 ]
  %.192125 = phi i32 [ %.2, %139 ], [ %.091138, %._crit_edge124 ]
  %119 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv155) #8
  %120 = getelementptr inbounds i8, ptr %119, i64 8
  %121 = load double, ptr %120, align 8, !tbaa !16
  %122 = fcmp olt double %121, %.088127
  br i1 %122, label %132, label %123

123:                                              ; preds = %.lr.ph130
  %124 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv155) #8
  %125 = getelementptr inbounds i8, ptr %124, i64 8
  %126 = load double, ptr %125, align 8, !tbaa !16
  %127 = fcmp oeq double %126, %.088127
  br i1 %127, label %128, label %139

128:                                              ; preds = %123
  %129 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv155) #8
  %130 = load double, ptr %129, align 8, !tbaa !14
  %131 = fcmp olt double %130, %.089126
  br i1 %131, label %132, label %139

132:                                              ; preds = %128, %.lr.ph130
  %133 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv155) #8
  %134 = getelementptr inbounds i8, ptr %133, i64 8
  %135 = load double, ptr %134, align 8, !tbaa !16
  %136 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv155) #8
  %137 = load double, ptr %136, align 8, !tbaa !14
  %138 = trunc nuw nsw i64 %indvars.iv155 to i32
  br label %139

139:                                              ; preds = %123, %128, %132
  %.2 = phi i32 [ %138, %132 ], [ %.192125, %128 ], [ %.192125, %123 ]
  %.190 = phi double [ %137, %132 ], [ %.089126, %128 ], [ %.089126, %123 ]
  %.1 = phi double [ %135, %132 ], [ %.088127, %128 ], [ %.088127, %123 ]
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %140 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %141 = icmp ugt i64 %140, %indvars.iv.next156
  br i1 %141, label %.lr.ph130, label %.preheader101, !llvm.loop !25

.preheader:                                       ; preds = %.lr.ph133, %.preheader101
  %142 = icmp sgt i32 %.192.lcssa, 0
  br i1 %142, label %.lr.ph135.preheader, label %._crit_edge136

.lr.ph135.preheader:                              ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %.192.lcssa to i64
  br label %.lr.ph135

.lr.ph133:                                        ; preds = %.preheader101, %.lr.ph133
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %.lr.ph133 ], [ %116, %.preheader101 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  %143 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv158) #8
  %144 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv158) #8
  %145 = getelementptr inbounds i8, ptr %144, i64 8
  call void @_ZNSt4pairIddEC2IRdS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef nonnull align 8 dereferenceable(8) %145)
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIddEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @hsh, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %147 = load i32, ptr %146, align 4, !tbaa !8
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %147)
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %148, i8 noundef signext 32)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %150 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %151 = icmp ugt i64 %150, %indvars.iv.next159
  br i1 %151, label %.lr.ph133, label %.preheader, !llvm.loop !26

._crit_edge136:                                   ; preds = %.lr.ph135, %.preheader
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %153 = load i32, ptr @t, align 4, !tbaa !8
  %154 = add nsw i32 %153, -1
  store i32 %154, ptr @t, align 4, !tbaa !8
  %.not = icmp eq i32 %153, 0
  br i1 %.not, label %._crit_edge141, label %18, !llvm.loop !27

.lr.ph135:                                        ; preds = %.lr.ph135.preheader, %.lr.ph135
  %indvars.iv161 = phi i64 [ 0, %.lr.ph135.preheader ], [ %indvars.iv.next162, %.lr.ph135 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  %155 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv161) #8
  %156 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %indvars.iv161) #8
  %157 = getelementptr inbounds i8, ptr %156, i64 8
  call void @_ZNSt4pairIddEC2IRdS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef nonnull align 8 dereferenceable(8) %157)
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIddEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @hsh, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %159 = load i32, ptr %158, align 4, !tbaa !8
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %159)
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %160, i8 noundef signext 32)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next162, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge136, label %.lr.ph135, !llvm.loop !28

._crit_edge141:                                   ; preds = %._crit_edge136, %0
  ret i32 0
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapISt4pairIddEiSt4lessIS1_ESaIS0_IKS1_iEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 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 uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #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) #6

; 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 uwtable
declare dso_local void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8), i32) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #4 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

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 norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{i64 0, i64 8, !12, i64 8, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !10, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTS2pt", !13, i64 0, !13, i64 8}
!16 = !{!15, !13, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}
!27 = distinct !{!27, !18}
!28 = distinct !{!28, !18}


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