; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/WF/Easy Medium/ACM14KP1/A.ll (Z5solvei)

; 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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<setpoint, setpoint, std::_Identity<setpoint>, std::less<setpoint>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<setpoint, setpoint, std::_Identity<setpoint>, std::less<setpoint>>::_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" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<point, std::allocator<point>>::_Vector_impl" }
%"struct.std::_Vector_base<point, std::allocator<point>>::_Vector_impl" = type { %"struct.std::_Vector_base<point, std::allocator<point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<point, std::allocator<point>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.setpoint = type { double, double, i32 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%struct.point = type { double, double }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Setprecision" = type { i32 }

@s = external dso_local global %"class.std::set", 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 [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvei(i32 noundef %0) #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator.0", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.setpoint, align 8
  %15 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %17 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %19 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %20 = alloca %struct.point, align 8
  %21 = alloca %struct.point, align 8
  %22 = alloca double, align 8
  %23 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %24 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca %"struct.std::_Setprecision", align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #7
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
  call void @_ZNSaI5pointEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  invoke void @_ZNSt6vectorI5pointSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %29, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %30 unwind label %36

30:                                               ; preds = %1
  call void @_ZNSt15__new_allocatorI5pointED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %53, %30
  %32 = load i32, ptr %8, align 4, !tbaa !5
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %40, label %35

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

36:                                               ; preds = %1
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %6, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %7, align 4
  call void @_ZNSt15__new_allocatorI5pointED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  br label %294

40:                                               ; preds = %31
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %42) #7
  %44 = getelementptr inbounds %struct.point, ptr %43, i32 0, i32 0
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %46 unwind label %56

46:                                               ; preds = %40
  %47 = load i32, ptr %8, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %48) #7
  %50 = getelementptr inbounds %struct.point, ptr %49, i32 0, i32 1
  %51 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(8) %50)
          to label %52 unwind label %56

52:                                               ; preds = %46
  br label %53

53:                                               ; preds = %52
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %8, align 4, !tbaa !5
  br label %31, !llvm.loop !9

56:                                               ; preds = %46, %40
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %6, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %293

60:                                               ; preds = %35
  %61 = call ptr @_ZNSt6vectorI5pointSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %62 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %61, ptr %62, align 8
  %63 = call ptr @_ZNSt6vectorI5pointSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %64 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %63, ptr %64, align 8
  %65 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8
  %67 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP5pointSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %66, ptr %68)
          to label %69 unwind label %75

69:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store double 1.000000e+09, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @_ZNSt3setI8setpointSt4lessIS0_ESaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) @s) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %256, %69
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %79, label %74

74:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %266

75:                                               ; preds = %60
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %6, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %7, align 4
  br label %293

79:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  br label %80

80:                                               ; preds = %117, %79
  %81 = load i32, ptr %12, align 4, !tbaa !5
  %82 = load i32, ptr %13, align 4, !tbaa !5
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %84, label %99

84:                                               ; preds = %80
  %85 = load i32, ptr %13, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %86) #7
  %88 = getelementptr inbounds %struct.point, ptr %87, i32 0, i32 0
  %89 = load double, ptr %88, align 8, !tbaa !13
  %90 = load i32, ptr %12, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %91) #7
  %93 = getelementptr inbounds %struct.point, ptr %92, i32 0, i32 0
  %94 = load double, ptr %93, align 8, !tbaa !13
  %95 = fsub double %89, %94
  %96 = load double, ptr %11, align 8, !tbaa !11
  %97 = fdiv double %96, 2.000000e+00
  %98 = fcmp ogt double %95, %97
  br label %99

99:                                               ; preds = %84, %80
  %100 = phi i1 [ false, %80 ], [ %98, %84 ]
  br i1 %100, label %101, label %124

101:                                              ; preds = %99
  %102 = load i32, ptr %12, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %103) #7
  %105 = getelementptr inbounds %struct.point, ptr %104, i32 0, i32 0
  %106 = load double, ptr %105, align 8, !tbaa !13
  %107 = getelementptr inbounds %struct.setpoint, ptr %14, i32 0, i32 0
  store double %106, ptr %107, align 8, !tbaa !15
  %108 = load i32, ptr %12, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %109) #7
  %111 = getelementptr inbounds %struct.point, ptr %110, i32 0, i32 1
  %112 = load double, ptr %111, align 8, !tbaa !17
  %113 = getelementptr inbounds %struct.setpoint, ptr %14, i32 0, i32 1
  store double %112, ptr %113, align 8, !tbaa !18
  %114 = load i32, ptr %12, align 4, !tbaa !5
  %115 = getelementptr inbounds %struct.setpoint, ptr %14, i32 0, i32 2
  store i32 %114, ptr %115, align 8, !tbaa !19
  %116 = invoke noundef i64 @_ZNSt3setI8setpointSt4lessIS0_ESaIS0_EE5eraseERKS0_(ptr noundef nonnull align 8 dereferenceable(48) @s, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %117 unwind label %120

117:                                              ; preds = %101
  %118 = load i32, ptr %12, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %12, align 4, !tbaa !5
  br label %80, !llvm.loop !20

120:                                              ; preds = %101
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %6, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %7, align 4
  br label %265

124:                                              ; preds = %99
  %125 = getelementptr inbounds %struct.setpoint, ptr %14, i32 0, i32 0
  store double -1.000000e+00, ptr %125, align 8, !tbaa !15
  %126 = getelementptr inbounds %struct.setpoint, ptr %14, i32 0, i32 2
  store i32 -1, ptr %126, align 8, !tbaa !19
  %127 = load i32, ptr %13, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %128) #7
  %130 = getelementptr inbounds %struct.point, ptr %129, i32 0, i32 1
  %131 = load double, ptr %130, align 8, !tbaa !17
  %132 = load double, ptr %11, align 8, !tbaa !11
  %133 = fdiv double %132, 2.000000e+00
  %134 = fsub double %131, %133
  %135 = getelementptr inbounds %struct.setpoint, ptr %14, i32 0, i32 1
  store double %134, ptr %135, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %136 = invoke ptr @_ZNSt3setI8setpointSt4lessIS0_ESaIS0_EE11lower_boundERKS0_(ptr noundef nonnull align 8 dereferenceable(48) @s, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %137 unwind label %217

137:                                              ; preds = %124
  %138 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %15, i32 0, i32 0
  store ptr %136, ptr %138, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @_ZNSt23_Rb_tree_const_iteratorI8setpointEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br label %139

139:                                              ; preds = %232, %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %140 = call ptr @_ZNKSt3setI8setpointSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @s) #7
  %141 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %17, i32 0, i32 0
  store ptr %140, ptr %141, align 8
  %142 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI8setpointES3_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br i1 %142, label %143, label %158

143:                                              ; preds = %139
  %144 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI8setpointEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %145 = getelementptr inbounds %struct.setpoint, ptr %144, i32 0, i32 1
  %146 = load double, ptr %145, align 8, !tbaa !18
  %147 = load i32, ptr %13, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %148) #7
  %150 = getelementptr inbounds %struct.point, ptr %149, i32 0, i32 1
  %151 = load double, ptr %150, align 8, !tbaa !17
  %152 = fsub double %146, %151
  %153 = invoke noundef double @_ZSt3absd(double noundef %152)
          to label %154 unwind label %221

154:                                              ; preds = %143
  %155 = load double, ptr %11, align 8, !tbaa !11
  %156 = fdiv double %155, 2.000000e+00
  %157 = fcmp ole double %153, %156
  br label %158

158:                                              ; preds = %154, %139
  %159 = phi i1 [ false, %139 ], [ %157, %154 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br i1 %159, label %160, label %235

160:                                              ; preds = %158
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %15, i64 8, i1 false), !tbaa.struct !21
  %161 = call ptr @_ZNSt23_Rb_tree_const_iteratorI8setpointEppEi(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef 0) #7
  %162 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %18, i32 0, i32 0
  store ptr %161, ptr %162, align 8
  br label %163

163:                                              ; preds = %229, %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %164 = call ptr @_ZNKSt3setI8setpointSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @s) #7
  %165 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %19, i32 0, i32 0
  store ptr %164, ptr %165, align 8
  %166 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI8setpointES3_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br i1 %166, label %167, label %182

167:                                              ; preds = %163
  %168 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI8setpointEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %169 = getelementptr inbounds %struct.setpoint, ptr %168, i32 0, i32 1
  %170 = load double, ptr %169, align 8, !tbaa !18
  %171 = load i32, ptr %13, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %172) #7
  %174 = getelementptr inbounds %struct.point, ptr %173, i32 0, i32 1
  %175 = load double, ptr %174, align 8, !tbaa !17
  %176 = fsub double %170, %175
  %177 = invoke noundef double @_ZSt3absd(double noundef %176)
          to label %178 unwind label %225

178:                                              ; preds = %167
  %179 = load double, ptr %11, align 8, !tbaa !11
  %180 = fdiv double %179, 2.000000e+00
  %181 = fcmp ole double %177, %180
  br label %182

182:                                              ; preds = %178, %163
  %183 = phi i1 [ false, %163 ], [ %181, %178 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br i1 %183, label %184, label %232

184:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  %185 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI8setpointEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %186 = getelementptr inbounds %struct.setpoint, ptr %185, i32 0, i32 0
  %187 = load double, ptr %186, align 8, !tbaa !15
  %188 = getelementptr inbounds %struct.point, ptr %20, i32 0, i32 0
  store double %187, ptr %188, align 8, !tbaa !13
  %189 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI8setpointEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %190 = getelementptr inbounds %struct.setpoint, ptr %189, i32 0, i32 1
  %191 = load double, ptr %190, align 8, !tbaa !18
  %192 = getelementptr inbounds %struct.point, ptr %20, i32 0, i32 1
  store double %191, ptr %192, align 8, !tbaa !17
  %193 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI8setpointEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %194 = getelementptr inbounds %struct.setpoint, ptr %193, i32 0, i32 0
  %195 = load double, ptr %194, align 8, !tbaa !15
  %196 = getelementptr inbounds %struct.point, ptr %21, i32 0, i32 0
  store double %195, ptr %196, align 8, !tbaa !13
  %197 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI8setpointEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %198 = getelementptr inbounds %struct.setpoint, ptr %197, i32 0, i32 1
  %199 = load double, ptr %198, align 8, !tbaa !18
  %200 = getelementptr inbounds %struct.point, ptr %21, i32 0, i32 1
  store double %199, ptr %200, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %201 = load i32, ptr %13, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %202) #7
  %204 = call noundef double @_Z3disRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %203, ptr noundef nonnull align 8 dereferenceable(16) %20)
  %205 = load i32, ptr %13, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %206) #7
  %208 = call noundef double @_Z3disRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %207, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %209 = fadd double %204, %208
  %210 = call noundef double @_Z3disRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %211 = fadd double %209, %210
  store double %211, ptr %22, align 8, !tbaa !11
  %212 = load double, ptr %22, align 8, !tbaa !11
  %213 = load double, ptr %11, align 8, !tbaa !11
  %214 = fcmp olt double %212, %213
  br i1 %214, label %215, label %229

215:                                              ; preds = %184
  %216 = load double, ptr %22, align 8, !tbaa !11
  store double %216, ptr %11, align 8, !tbaa !11
  br label %229

217:                                              ; preds = %124
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %6, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %7, align 4
  br label %264

221:                                              ; preds = %143
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %6, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %263

225:                                              ; preds = %167
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %6, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %263

229:                                              ; preds = %215, %184
  %230 = call ptr @_ZNSt23_Rb_tree_const_iteratorI8setpointEppEi(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef 0) #7
  %231 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %23, i32 0, i32 0
  store ptr %230, ptr %231, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  br label %163, !llvm.loop !24

232:                                              ; preds = %182
  %233 = call ptr @_ZNSt23_Rb_tree_const_iteratorI8setpointEppEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 0) #7
  %234 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %24, i32 0, i32 0
  store ptr %233, ptr %234, align 8
  br label %139, !llvm.loop !25

235:                                              ; preds = %158
  %236 = load i32, ptr %13, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %237) #7
  %239 = getelementptr inbounds %struct.point, ptr %238, i32 0, i32 0
  %240 = load double, ptr %239, align 8, !tbaa !13
  %241 = getelementptr inbounds %struct.setpoint, ptr %14, i32 0, i32 0
  store double %240, ptr %241, align 8, !tbaa !15
  %242 = load i32, ptr %13, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %243) #7
  %245 = getelementptr inbounds %struct.point, ptr %244, i32 0, i32 1
  %246 = load double, ptr %245, align 8, !tbaa !17
  %247 = getelementptr inbounds %struct.setpoint, ptr %14, i32 0, i32 1
  store double %246, ptr %247, align 8, !tbaa !18
  %248 = load i32, ptr %13, align 4, !tbaa !5
  %249 = getelementptr inbounds %struct.setpoint, ptr %14, i32 0, i32 2
  store i32 %248, ptr %249, align 8, !tbaa !19
  %250 = invoke { ptr, i8 } @_ZNSt3setI8setpointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) @s, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %251 unwind label %259

251:                                              ; preds = %235
  %252 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 0
  %253 = extractvalue { ptr, i8 } %250, 0
  store ptr %253, ptr %252, align 8
  %254 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 1
  %255 = extractvalue { ptr, i8 } %250, 1
  store i8 %255, ptr %254, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %256

256:                                              ; preds = %251
  %257 = load i32, ptr %13, align 4, !tbaa !5
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %13, align 4, !tbaa !5
  br label %70, !llvm.loop !26

259:                                              ; preds = %235
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %6, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %7, align 4
  br label %263

263:                                              ; preds = %259, %225, %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %264

264:                                              ; preds = %263, %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %265

265:                                              ; preds = %264, %120
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %292

266:                                              ; preds = %74
  %267 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %268 unwind label %288

268:                                              ; preds = %266
  %269 = load i32, ptr %2, align 4, !tbaa !5
  %270 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %267, i32 noundef %269)
          to label %271 unwind label %288

271:                                              ; preds = %268
  %272 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %270, ptr noundef @.str.2)
          to label %273 unwind label %288

273:                                              ; preds = %271
  %274 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %272, ptr noundef @_ZSt5fixedRSt8ios_base)
          to label %275 unwind label %288

275:                                              ; preds = %273
  %276 = invoke i32 @_ZSt12setprecisioni(i32 noundef 11)
          to label %277 unwind label %288

277:                                              ; preds = %275
  %278 = getelementptr inbounds %"struct.std::_Setprecision", ptr %26, i32 0, i32 0
  store i32 %276, ptr %278, align 4
  %279 = getelementptr inbounds %"struct.std::_Setprecision", ptr %26, i32 0, i32 0
  %280 = load i32, ptr %279, align 4
  %281 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %274, i32 %280)
          to label %282 unwind label %288

282:                                              ; preds = %277
  %283 = load double, ptr %11, align 8, !tbaa !11
  %284 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %281, double noundef %283)
          to label %285 unwind label %288

285:                                              ; preds = %282
  %286 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %284, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %287 unwind label %288

287:                                              ; preds = %285
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @_ZNSt6vectorI5pointSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  ret void

288:                                              ; preds = %285, %282, %277, %275, %273, %271, %268, %266
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %6, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %7, align 4
  br label %292

292:                                              ; preds = %288, %265
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %293

293:                                              ; preds = %292, %75, %56
  call void @_ZNSt6vectorI5pointSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br label %294

294:                                              ; preds = %293, %36
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %295

295:                                              ; preds = %294
  %296 = load ptr, ptr %6, align 8
  %297 = load i32, ptr %7, align 4
  %298 = insertvalue { ptr, i32 } poison, ptr %296, 0
  %299 = insertvalue { ptr, i32 } %298, i32 %297, 1
  resume { ptr, i32 } %299
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; 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
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP5pointSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setI8setpointSt4lessIS0_ESaIS0_EE11lower_boundERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI8setpointEptEv(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) #6

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setI8setpointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; 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) #4

; 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) #4

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 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)) #4

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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


; 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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<setpoint, setpoint, std::_Identity<setpoint>, std::less<setpoint>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<setpoint, setpoint, std::_Identity<setpoint>, std::less<setpoint>>::_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" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<point, std::allocator<point>>::_Vector_impl" }
%"struct.std::_Vector_base<point, std::allocator<point>>::_Vector_impl" = type { %"struct.std::_Vector_base<point, std::allocator<point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<point, std::allocator<point>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%struct.setpoint = type { double, double, i32 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%struct.point = type { double, double }

@s = external dso_local global %"class.std::set", 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 [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvei(i32 noundef %0) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator.0", align 1
  %5 = alloca %struct.setpoint, align 8
  %6 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %struct.point, align 8
  %11 = alloca %struct.point, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaI5pointEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorI5pointSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %14, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %15 unwind label %20

15:                                               ; preds = %1
  call void @_ZNSt15__new_allocatorI5pointED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %28, %15
  %18 = call ptr @_ZNSt6vectorI5pointSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %19 = call ptr @_ZNSt6vectorI5pointSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP5pointSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %18, ptr %19)
          to label %34 unwind label %42

20:                                               ; preds = %1
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI5pointED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %160

.lr.ph:                                           ; preds = %15, %28
  %indvars.iv = phi i64 [ %indvars.iv.next, %28 ], [ 0, %15 ]
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  %23 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %24 unwind label %32

24:                                               ; preds = %.lr.ph
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %28 unwind label %32

28:                                               ; preds = %24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = icmp slt i64 %indvars.iv.next, %30
  br i1 %31, label %.lr.ph, label %._crit_edge, !llvm.loop !9

32:                                               ; preds = %24, %.lr.ph
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %159

34:                                               ; preds = %._crit_edge
  call void @_ZNSt3setI8setpointSt4lessIS0_ESaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) @s) #6
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %.lr.ph90, label %._crit_edge91

.lr.ph90:                                         ; preds = %34
  %37 = getelementptr inbounds i8, ptr %5, i64 8
  %38 = getelementptr inbounds i8, ptr %5, i64 16
  %39 = getelementptr inbounds i8, ptr %10, i64 8
  %40 = getelementptr inbounds i8, ptr %11, i64 8
  br label %44

._crit_edge91:                                    ; preds = %135, %34
  %.048.lcssa = phi double [ 1.000000e+09, %34 ], [ %.14968, %135 ]
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %143 unwind label %157

42:                                               ; preds = %._crit_edge
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %159

44:                                               ; preds = %.lr.ph90, %135
  %indvars.iv100 = phi i64 [ 0, %.lr.ph90 ], [ %indvars.iv.next101, %135 ]
  %.04888 = phi double [ 1.000000e+09, %.lr.ph90 ], [ %.14968, %135 ]
  %.05287 = phi i32 [ 0, %.lr.ph90 ], [ %.153.lcssa, %135 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %45 = sext i32 %.05287 to i64
  %46 = icmp sgt i64 %indvars.iv100, %45
  %47 = fmul double %.04888, 5.000000e-01
  br i1 %46, label %.lr.ph75, label %.critedge

.lr.ph75:                                         ; preds = %44
  %48 = trunc nuw nsw i64 %indvars.iv100 to i32
  br label %49

49:                                               ; preds = %.lr.ph75, %64
  %indvars.iv97 = phi i64 [ %45, %.lr.ph75 ], [ %indvars.iv.next98, %64 ]
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv100) #6
  %51 = load double, ptr %50, align 8, !tbaa !11
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv97) #6
  %53 = load double, ptr %52, align 8, !tbaa !11
  %54 = fsub double %51, %53
  %55 = fcmp ogt double %54, %47
  %56 = trunc nsw i64 %indvars.iv97 to i32
  br i1 %55, label %57, label %.critedge

57:                                               ; preds = %49
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv97) #6
  %59 = load double, ptr %58, align 8, !tbaa !11
  store double %59, ptr %5, align 8, !tbaa !14
  %60 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv97) #6
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load double, ptr %61, align 8, !tbaa !16
  store double %62, ptr %37, align 8, !tbaa !17
  store i32 %56, ptr %38, align 8, !tbaa !18
  %63 = invoke noundef i64 @_ZNSt3setI8setpointSt4lessIS0_ESaIS0_EE5eraseERKS0_(ptr noundef nonnull align 8 dereferenceable(48) @s, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %64 unwind label %66

64:                                               ; preds = %57
  %indvars.iv.next98 = add nsw i64 %indvars.iv97, 1
  %65 = icmp slt i64 %indvars.iv.next98, %indvars.iv100
  br i1 %65, label %49, label %.critedge, !llvm.loop !19

66:                                               ; preds = %57
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %142

.critedge:                                        ; preds = %49, %64, %44
  %.153.lcssa = phi i32 [ %.05287, %44 ], [ %48, %64 ], [ %56, %49 ]
  store double -1.000000e+00, ptr %5, align 8, !tbaa !14
  store i32 -1, ptr %38, align 8, !tbaa !18
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv100) #6
  %69 = getelementptr inbounds i8, ptr %68, i64 8
  %70 = load double, ptr %69, align 8, !tbaa !16
  %71 = fsub double %70, %47
  store double %71, ptr %37, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %72 = invoke ptr @_ZNSt3setI8setpointSt4lessIS0_ESaIS0_EE11lower_boundERKS0_(ptr noundef nonnull align 8 dereferenceable(48) @s, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %73 unwind label %123

73:                                               ; preds = %.critedge
  store ptr %72, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @_ZNSt23_Rb_tree_const_iteratorI8setpointEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %74 = call ptr @_ZNKSt3setI8setpointSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @s) #6
  store ptr %74, ptr %8, align 8
  %75 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI8setpointES3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br i1 %75, label %.lr.ph84, label %.critedge2

.lr.ph84:                                         ; preds = %73, %.loopexit
  %.14982 = phi double [ %.25066, %.loopexit ], [ %.04888, %73 ]
  %76 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI8setpointEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  %78 = load double, ptr %77, align 8, !tbaa !17
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv100) #6
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  %81 = load double, ptr %80, align 8, !tbaa !16
  %82 = fsub double %78, %81
  %83 = call noundef double @_ZSt3absd(double noundef %82)
  %84 = fmul double %.14982, 5.000000e-01
  %85 = fcmp ugt double %83, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br i1 %85, label %.loopexit63, label %86

86:                                               ; preds = %.lr.ph84
  %87 = load i64, ptr %6, align 8, !tbaa !20
  store i64 %87, ptr %7, align 8, !tbaa !20
  %88 = call ptr @_ZNSt23_Rb_tree_const_iteratorI8setpointEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %89 = call ptr @_ZNKSt3setI8setpointSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @s) #6
  store ptr %89, ptr %9, align 8
  %90 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI8setpointES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %90, label %.lr.ph80, label %.critedge4

.lr.ph80:                                         ; preds = %86, %101
  %.25078 = phi double [ %.351, %101 ], [ %.14982, %86 ]
  %91 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI8setpointEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = load double, ptr %92, align 8, !tbaa !17
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv100) #6
  %95 = getelementptr inbounds i8, ptr %94, i64 8
  %96 = load double, ptr %95, align 8, !tbaa !16
  %97 = fsub double %93, %96
  %98 = call noundef double @_ZSt3absd(double noundef %97)
  %99 = fmul double %.25078, 5.000000e-01
  %100 = fcmp ugt double %98, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br i1 %100, label %.loopexit, label %101

101:                                              ; preds = %.lr.ph80
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  %102 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI8setpointEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %103 = load double, ptr %102, align 8, !tbaa !14
  store double %103, ptr %10, align 8, !tbaa !11
  %104 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI8setpointEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %105 = getelementptr inbounds i8, ptr %104, i64 8
  %106 = load double, ptr %105, align 8, !tbaa !17
  store double %106, ptr %39, align 8, !tbaa !16
  %107 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI8setpointEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %108 = load double, ptr %107, align 8, !tbaa !14
  store double %108, ptr %11, align 8, !tbaa !11
  %109 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI8setpointEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %110 = getelementptr inbounds i8, ptr %109, i64 8
  %111 = load double, ptr %110, align 8, !tbaa !17
  store double %111, ptr %40, align 8, !tbaa !16
  %112 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv100) #6
  %113 = call noundef double @_Z3disRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %112, ptr noundef nonnull align 8 dereferenceable(16) %10)
  %114 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv100) #6
  %115 = call noundef double @_Z3disRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %114, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %116 = fadd double %113, %115
  %117 = call noundef double @_Z3disRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %118 = fadd double %116, %117
  %119 = fcmp olt double %118, %.25078
  %.351 = select i1 %119, double %118, double %.25078
  %120 = call ptr @_ZNSt23_Rb_tree_const_iteratorI8setpointEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %121 = call ptr @_ZNKSt3setI8setpointSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @s) #6
  store ptr %121, ptr %9, align 8
  %122 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI8setpointES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %122, label %.lr.ph80, label %.critedge4, !llvm.loop !22

123:                                              ; preds = %.critedge
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %141

.critedge4:                                       ; preds = %101, %86
  %.250.lcssa = phi double [ %.14982, %86 ], [ %.351, %101 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph80, %.critedge4
  %.25066 = phi double [ %.250.lcssa, %.critedge4 ], [ %.25078, %.lr.ph80 ]
  %125 = call ptr @_ZNSt23_Rb_tree_const_iteratorI8setpointEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %126 = call ptr @_ZNKSt3setI8setpointSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @s) #6
  store ptr %126, ptr %8, align 8
  %127 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI8setpointES3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br i1 %127, label %.lr.ph84, label %.critedge2, !llvm.loop !23

.critedge2:                                       ; preds = %.loopexit, %73
  %.149.lcssa = phi double [ %.04888, %73 ], [ %.25066, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %.loopexit63

.loopexit63:                                      ; preds = %.lr.ph84, %.critedge2
  %.14968 = phi double [ %.149.lcssa, %.critedge2 ], [ %.14982, %.lr.ph84 ]
  %128 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv100) #6
  %129 = load double, ptr %128, align 8, !tbaa !11
  store double %129, ptr %5, align 8, !tbaa !14
  %130 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5pointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv100) #6
  %131 = getelementptr inbounds i8, ptr %130, i64 8
  %132 = load double, ptr %131, align 8, !tbaa !16
  store double %132, ptr %37, align 8, !tbaa !17
  %133 = trunc nuw nsw i64 %indvars.iv100 to i32
  store i32 %133, ptr %38, align 8, !tbaa !18
  %134 = invoke { ptr, i8 } @_ZNSt3setI8setpointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) @s, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %135 unwind label %139

135:                                              ; preds = %.loopexit63
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %136 = load i32, ptr %2, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = icmp slt i64 %indvars.iv.next101, %137
  br i1 %138, label %44, label %._crit_edge91, !llvm.loop !24

139:                                              ; preds = %.loopexit63
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %141

141:                                              ; preds = %139, %123
  %.pn = phi { ptr, i32 } [ %140, %139 ], [ %124, %123 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %142

142:                                              ; preds = %141, %66
  %.pn57 = phi { ptr, i32 } [ %67, %66 ], [ %.pn, %141 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %159

143:                                              ; preds = %._crit_edge91
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %41, i32 noundef %0)
          to label %145 unwind label %157

145:                                              ; preds = %143
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef nonnull @.str.2)
          to label %147 unwind label %157

147:                                              ; preds = %145
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
          to label %149 unwind label %157

149:                                              ; preds = %147
  %150 = call i32 @_ZSt12setprecisioni(i32 noundef 11)
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %148, i32 %150)
          to label %152 unwind label %157

152:                                              ; preds = %149
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %151, double noundef %.048.lcssa)
          to label %154 unwind label %157

154:                                              ; preds = %152
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %156 unwind label %157

156:                                              ; preds = %154
  call void @_ZNSt6vectorI5pointSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  ret void

157:                                              ; preds = %154, %152, %149, %147, %145, %143, %._crit_edge91
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %159

159:                                              ; preds = %142, %157, %42, %32
  %.pn60 = phi { ptr, i32 } [ %33, %32 ], [ %43, %42 ], [ %.pn57, %142 ], [ %158, %157 ]
  call void @_ZNSt6vectorI5pointSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %160

160:                                              ; preds = %159, %20
  %.pn60.pn = phi { ptr, i32 } [ %.pn60, %159 ], [ %21, %20 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn60.pn
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 #3

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP5pointSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) local_unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setI8setpointSt4lessIS0_ESaIS0_EE11lower_boundERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setI8setpointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; 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 #4

; 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 #4

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

; 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 #1 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)) #4

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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


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