; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/357 Division 2/Problem E (E)

; 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<std::pair<double, double>, std::allocator<std::pair<double, double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<double, double>, std::allocator<std::pair<double, double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<double, double>, std::allocator<std::pair<double, double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<double, double>, std::allocator<std::pair<double, double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { double, double }
%"struct.std::pair.0" = type { i32, double }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca %"struct.std::pair.0", align 8
  %27 = alloca i32, align 4
  %28 = alloca %"struct.std::pair", align 8
  %29 = alloca double, align 8
  %30 = alloca %"struct.std::pair", align 8
  %31 = alloca %"struct.std::pair.0", align 8
  %32 = alloca i32, align 4
  %33 = alloca double, align 8
  %34 = alloca %"struct.std::pair", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca double, align 8
  %38 = alloca i32, align 4
  %39 = alloca double, align 8
  %40 = alloca i32, align 4
  %41 = alloca double, align 8
  %42 = alloca double, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  %43 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = sitofp i32 %44 to double
  %46 = fmul double 1.000000e+00, %45
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = sitofp i32 %47 to double
  %49 = fmul double %46, %48
  store double %49, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %50 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %7)
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #9
  call void @_ZNSt6vectorISt4pairIddESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %239, %0
  %52 = load i32, ptr %9, align 4, !tbaa !5
  %53 = load i32, ptr %7, align 4, !tbaa !5
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 2, ptr %10, align 4
  br label %246

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %57 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %11, ptr noundef %12, ptr noundef %13)
          to label %58 unwind label %79

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %59 = load i32, ptr %11, align 4, !tbaa !5
  %60 = sitofp i32 %59 to double
  %61 = load i32, ptr %12, align 4, !tbaa !5
  %62 = sitofp i32 %61 to double
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = sitofp i32 %63 to double
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = sitofp i32 %65 to double
  %67 = call noundef double @_Z7sqrDistdddd(double noundef %60, double noundef %62, double noundef %64, double noundef %66)
  store double %67, ptr %16, align 8, !tbaa !9
  %68 = load double, ptr %16, align 8, !tbaa !9
  %69 = load i32, ptr %13, align 4, !tbaa !5
  %70 = sitofp i32 %69 to double
  %71 = fmul double 1.000000e+00, %70
  %72 = load i32, ptr %13, align 4, !tbaa !5
  %73 = sitofp i32 %72 to double
  %74 = call double @llvm.fmuladd.f64(double %71, double %73, double 1.000000e-09)
  %75 = fcmp olt double %68, %74
  br i1 %75, label %76, label %87

76:                                               ; preds = %58
  %77 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef 1.000000e+00)
          to label %78 unwind label %83

78:                                               ; preds = %76
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %236

79:                                               ; preds = %56
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %14, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %15, align 4
  br label %245

83:                                               ; preds = %76
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %14, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %15, align 4
  br label %244

87:                                               ; preds = %58
  %88 = load double, ptr %16, align 8, !tbaa !9
  %89 = call double @sqrt(double noundef %88) #9
  store double %89, ptr %16, align 8, !tbaa !9
  %90 = load i32, ptr %13, align 4, !tbaa !5
  %91 = sitofp i32 %90 to double
  %92 = load double, ptr %6, align 8, !tbaa !9
  %93 = fadd double %91, %92
  %94 = load double, ptr %16, align 8, !tbaa !9
  %95 = fsub double %94, 1.000000e-09
  %96 = fcmp olt double %93, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %87
  store i32 4, ptr %10, align 4
  br label %236

98:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %99 = load i32, ptr %12, align 4, !tbaa !5
  %100 = load i32, ptr %3, align 4, !tbaa !5
  %101 = sub nsw i32 %99, %100
  %102 = load i32, ptr %11, align 4, !tbaa !5
  %103 = load i32, ptr %2, align 4, !tbaa !5
  %104 = sub nsw i32 %102, %103
  %105 = invoke noundef double @_ZSt5atan2IiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef %101, i32 noundef %104)
          to label %106 unwind label %112

106:                                              ; preds = %98
  store double %105, ptr %20, align 8, !tbaa !9
  %107 = load double, ptr %20, align 8, !tbaa !9
  %108 = fcmp olt double %107, 0.000000e+00
  br i1 %108, label %109, label %116

109:                                              ; preds = %106
  %110 = load double, ptr %20, align 8, !tbaa !9
  %111 = fadd double %110, 0x401921FB54442D18
  store double %111, ptr %20, align 8, !tbaa !9
  br label %116

112:                                              ; preds = %98
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %14, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %15, align 4
  br label %243

116:                                              ; preds = %109, %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %117 = load double, ptr %16, align 8, !tbaa !9
  %118 = load double, ptr %16, align 8, !tbaa !9
  %119 = load i32, ptr %13, align 4, !tbaa !5
  %120 = sitofp i32 %119 to double
  %121 = fmul double 1.000000e+00, %120
  %122 = load i32, ptr %13, align 4, !tbaa !5
  %123 = sitofp i32 %122 to double
  %124 = fmul double %121, %123
  %125 = fneg double %124
  %126 = call double @llvm.fmuladd.f64(double %117, double %118, double %125)
  %127 = call double @sqrt(double noundef %126) #9
  store double %127, ptr %21, align 8, !tbaa !9
  %128 = load double, ptr %21, align 8, !tbaa !9
  %129 = load double, ptr %6, align 8, !tbaa !9
  %130 = fadd double %129, 1.000000e-09
  %131 = fcmp olt double %128, %130
  br i1 %131, label %132, label %138

132:                                              ; preds = %116
  %133 = load i32, ptr %13, align 4, !tbaa !5
  %134 = sitofp i32 %133 to double
  %135 = load double, ptr %16, align 8, !tbaa !9
  %136 = fdiv double %134, %135
  %137 = call double @asin(double noundef %136) #9
  store double %137, ptr %19, align 8, !tbaa !9
  br label %158

138:                                              ; preds = %116
  %139 = load double, ptr %16, align 8, !tbaa !9
  %140 = load double, ptr %16, align 8, !tbaa !9
  %141 = load double, ptr %6, align 8, !tbaa !9
  %142 = load double, ptr %6, align 8, !tbaa !9
  %143 = fmul double %141, %142
  %144 = call double @llvm.fmuladd.f64(double %139, double %140, double %143)
  %145 = load i32, ptr %13, align 4, !tbaa !5
  %146 = sitofp i32 %145 to double
  %147 = fmul double 1.000000e+00, %146
  %148 = load i32, ptr %13, align 4, !tbaa !5
  %149 = sitofp i32 %148 to double
  %150 = fneg double %147
  %151 = call double @llvm.fmuladd.f64(double %150, double %149, double %144)
  %152 = load double, ptr %16, align 8, !tbaa !9
  %153 = fmul double 2.000000e+00, %152
  %154 = load double, ptr %6, align 8, !tbaa !9
  %155 = fmul double %153, %154
  %156 = fdiv double %151, %155
  %157 = call double @acos(double noundef %156) #9
  store double %157, ptr %19, align 8, !tbaa !9
  br label %158

158:                                              ; preds = %138, %132
  %159 = load double, ptr %20, align 8, !tbaa !9
  %160 = load double, ptr %19, align 8, !tbaa !9
  %161 = fsub double %159, %160
  store double %161, ptr %17, align 8, !tbaa !9
  %162 = load double, ptr %20, align 8, !tbaa !9
  %163 = load double, ptr %19, align 8, !tbaa !9
  %164 = fadd double %162, %163
  store double %164, ptr %18, align 8, !tbaa !9
  %165 = load double, ptr %17, align 8, !tbaa !9
  %166 = fcmp olt double %165, 0.000000e+00
  br i1 %166, label %167, label %193

167:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %168 = load double, ptr %17, align 8, !tbaa !9
  %169 = fadd double %168, 0x401921FB54442D18
  store double %169, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  store double 0x401921FB54442D18, ptr %24, align 8, !tbaa !9
  %170 = invoke { double, double } @_ZSt9make_pairIddESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %171 unwind label %185

171:                                              ; preds = %167
  %172 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %173 = extractvalue { double, double } %170, 0
  store double %173, ptr %172, align 8
  %174 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %175 = extractvalue { double, double } %170, 1
  store double %175, ptr %174, align 8
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %176 unwind label %185

176:                                              ; preds = %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 0, ptr %27, align 4, !tbaa !5
  %177 = invoke { i32, double } @_ZSt9make_pairIiRdESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %178 unwind label %189

178:                                              ; preds = %176
  %179 = getelementptr inbounds { i32, double }, ptr %26, i32 0, i32 0
  %180 = extractvalue { i32, double } %177, 0
  store i32 %180, ptr %179, align 8
  %181 = getelementptr inbounds { i32, double }, ptr %26, i32 0, i32 1
  %182 = extractvalue { i32, double } %177, 1
  store double %182, ptr %181, align 8
  invoke void @_ZNSt4pairIddEC2IidTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %183 unwind label %189

183:                                              ; preds = %178
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %184 unwind label %189

184:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  br label %235

185:                                              ; preds = %171, %167
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %14, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  br label %242

189:                                              ; preds = %183, %178, %176
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %14, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  br label %242

193:                                              ; preds = %158
  %194 = load double, ptr %18, align 8, !tbaa !9
  %195 = fcmp ogt double %194, 0x401921FB54442D18
  br i1 %195, label %196, label %222

196:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  store double 0x401921FB54442D18, ptr %29, align 8, !tbaa !9
  %197 = invoke { double, double } @_ZSt9make_pairIRddESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %198 unwind label %214

198:                                              ; preds = %196
  %199 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %200 = extractvalue { double, double } %197, 0
  store double %200, ptr %199, align 8
  %201 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %202 = extractvalue { double, double } %197, 1
  store double %202, ptr %201, align 8
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %203 unwind label %214

203:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  store i32 0, ptr %32, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %204 = load double, ptr %18, align 8, !tbaa !9
  %205 = fsub double %204, 0x401921FB54442D18
  store double %205, ptr %33, align 8, !tbaa !9
  %206 = invoke { i32, double } @_ZSt9make_pairIidESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %207 unwind label %218

207:                                              ; preds = %203
  %208 = getelementptr inbounds { i32, double }, ptr %31, i32 0, i32 0
  %209 = extractvalue { i32, double } %206, 0
  store i32 %209, ptr %208, align 8
  %210 = getelementptr inbounds { i32, double }, ptr %31, i32 0, i32 1
  %211 = extractvalue { i32, double } %206, 1
  store double %211, ptr %210, align 8
  invoke void @_ZNSt4pairIddEC2IidTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %212 unwind label %218

212:                                              ; preds = %207
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %213 unwind label %218

213:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #9
  br label %234

214:                                              ; preds = %198, %196
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %14, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  br label %242

218:                                              ; preds = %212, %207, %203
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %14, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #9
  br label %242

222:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #9
  %223 = invoke { double, double } @_ZSt9make_pairIRdS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %224 unwind label %230

224:                                              ; preds = %222
  %225 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %226 = extractvalue { double, double } %223, 0
  store double %226, ptr %225, align 8
  %227 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %228 = extractvalue { double, double } %223, 1
  store double %228, ptr %227, align 8
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %229 unwind label %230

229:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  br label %234

230:                                              ; preds = %224, %222
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %14, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  br label %242

234:                                              ; preds = %229, %213
  br label %235

235:                                              ; preds = %234, %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  store i32 0, ptr %10, align 4
  br label %236

236:                                              ; preds = %235, %97, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  %237 = load i32, ptr %10, align 4
  switch i32 %237, label %246 [
    i32 0, label %238
    i32 4, label %239
  ]

238:                                              ; preds = %236
  br label %239

239:                                              ; preds = %238, %236
  %240 = load i32, ptr %9, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %9, align 4, !tbaa !5
  br label %51, !llvm.loop !11

242:                                              ; preds = %230, %218, %214, %189, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %243

243:                                              ; preds = %242, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %244

244:                                              ; preds = %243, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %245

245:                                              ; preds = %244, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %328

246:                                              ; preds = %236, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  %247 = load i32, ptr %10, align 4
  switch i32 %247, label %326 [
    i32 2, label %248
  ]

248:                                              ; preds = %246
  %249 = call ptr @_ZNSt6vectorISt4pairIddESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  %250 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  store ptr %249, ptr %250, align 8
  %251 = call ptr @_ZNSt6vectorISt4pairIddESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  %252 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %251, ptr %252, align 8
  %253 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  %254 = load ptr, ptr %253, align 8
  %255 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  %256 = load ptr, ptr %255, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIddESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %254, ptr %256)
          to label %257 unwind label %265

257:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  store double 0.000000e+00, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  store i32 0, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  store double 0.000000e+00, ptr %39, align 8, !tbaa !9
  %258 = call noundef i64 @_ZNKSt6vectorISt4pairIddESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  %259 = trunc i64 %258 to i32
  store i32 %259, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %260

260:                                              ; preds = %313, %257
  %261 = load i32, ptr %40, align 4, !tbaa !5
  %262 = load i32, ptr %7, align 4, !tbaa !5
  %263 = icmp slt i32 %261, %262
  br i1 %263, label %269, label %264

264:                                              ; preds = %260
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %316

265:                                              ; preds = %248
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %14, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %15, align 4
  br label %328

269:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  %270 = load i32, ptr %40, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIddESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %271) #9
  %273 = getelementptr inbounds %"struct.std::pair", ptr %272, i32 0, i32 0
  %274 = load double, ptr %273, align 8, !tbaa !13
  store double %274, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %275 = load i32, ptr %40, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIddESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %276) #9
  %278 = getelementptr inbounds %"struct.std::pair", ptr %277, i32 0, i32 1
  %279 = load double, ptr %278, align 8, !tbaa !15
  store double %279, ptr %42, align 8, !tbaa !9
  %280 = load i32, ptr %40, align 4, !tbaa !5
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %40, align 4, !tbaa !5
  br label %282

282:                                              ; preds = %297, %269
  %283 = load i32, ptr %40, align 4, !tbaa !5
  %284 = load i32, ptr %7, align 4, !tbaa !5
  %285 = icmp slt i32 %283, %284
  br i1 %285, label %286, label %295

286:                                              ; preds = %282
  %287 = load i32, ptr %40, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIddESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %288) #9
  %290 = getelementptr inbounds %"struct.std::pair", ptr %289, i32 0, i32 0
  %291 = load double, ptr %290, align 8, !tbaa !13
  %292 = load double, ptr %42, align 8, !tbaa !9
  %293 = fadd double %292, 1.000000e-09
  %294 = fcmp ole double %291, %293
  br label %295

295:                                              ; preds = %286, %282
  %296 = phi i1 [ false, %282 ], [ %294, %286 ]
  br i1 %296, label %297, label %305

297:                                              ; preds = %295
  %298 = load i32, ptr %40, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIddESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %299) #9
  %301 = getelementptr inbounds %"struct.std::pair", ptr %300, i32 0, i32 1
  %302 = load double, ptr %301, align 8, !tbaa !15
  store double %302, ptr %42, align 8, !tbaa !9
  %303 = load i32, ptr %40, align 4, !tbaa !5
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %40, align 4, !tbaa !5
  br label %282, !llvm.loop !16

305:                                              ; preds = %295
  %306 = load i32, ptr %40, align 4, !tbaa !5
  %307 = add nsw i32 %306, -1
  store i32 %307, ptr %40, align 4, !tbaa !5
  %308 = load double, ptr %42, align 8, !tbaa !9
  %309 = load double, ptr %41, align 8, !tbaa !9
  %310 = fsub double %308, %309
  %311 = load double, ptr %39, align 8, !tbaa !9
  %312 = fadd double %311, %310
  store double %312, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  br label %313

313:                                              ; preds = %305
  %314 = load i32, ptr %40, align 4, !tbaa !5
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %40, align 4, !tbaa !5
  br label %260, !llvm.loop !17

316:                                              ; preds = %264
  %317 = load double, ptr %39, align 8, !tbaa !9
  %318 = fdiv double %317, 0x401921FB54442D18
  store double %318, ptr %39, align 8, !tbaa !9
  %319 = load double, ptr %39, align 8, !tbaa !9
  %320 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %319)
          to label %321 unwind label %322

321:                                              ; preds = %316
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br label %326

322:                                              ; preds = %316
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %14, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br label %328

326:                                              ; preds = %321, %246
  call void @_ZNSt6vectorISt4pairIddESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  %327 = load i32, ptr %1, align 4
  ret i32 %327

328:                                              ; preds = %322, %265, %245
  call void @_ZNSt6vectorISt4pairIddESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %329

329:                                              ; preds = %328
  %330 = load ptr, ptr %14, align 8
  %331 = load i32, ptr %15, align 4
  %332 = insertvalue { ptr, i32 } poison, ptr %330, 0
  %333 = insertvalue { ptr, i32 } %332, i32 %331, 1
  resume { ptr, i32 } %333
}

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #5

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

declare i32 @__gxx_personality_v0(...)

declare i32 @printf(ptr noundef, ...) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt5atan2IiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, i32 noundef) #6

; Function Attrs: nounwind
declare double @asin(double noundef) #2

; Function Attrs: nounwind
declare double @acos(double noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZSt9make_pairIddESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local { i32, double } @_ZSt9make_pairIiRdESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZSt9make_pairIRddESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

; Function Attrs: mustprogress uwtable
declare dso_local { i32, double } @_ZSt9make_pairIidESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) #7

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZSt9make_pairIRdS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

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

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

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

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

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

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


; 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<std::pair<double, double>, std::allocator<std::pair<double, double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<double, double>, std::allocator<std::pair<double, double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<double, double>, std::allocator<std::pair<double, double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<double, double>, std::allocator<std::pair<double, double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { double, double }
%"struct.std::pair.0" = type { i32, double }

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca %"struct.std::pair.0", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca double, align 8
  %20 = alloca %"struct.std::pair", align 8
  %21 = alloca %"struct.std::pair.0", align 8
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  %24 = alloca %"struct.std::pair", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = sitofp i32 %26 to double
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = sitofp i32 %28 to double
  %30 = fmul double %27, %29
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #9
  call void @_ZNSt6vectorISt4pairIddESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %.not67 = icmp sgt i32 %32, 0
  br i1 %.not67, label %.lr.ph, label %.critedge65

.lr.ph:                                           ; preds = %0
  %33 = fadd double %30, 1.000000e-09
  %34 = fmul double %30, %30
  %35 = getelementptr inbounds i8, ptr %24, i64 8
  %36 = getelementptr inbounds i8, ptr %18, i64 8
  %37 = getelementptr inbounds i8, ptr %21, i64 8
  %38 = getelementptr inbounds i8, ptr %12, i64 8
  %39 = getelementptr inbounds i8, ptr %16, i64 8
  br label %40

40:                                               ; preds = %.lr.ph, %142
  %.04868 = phi i32 [ 0, %.lr.ph ], [ %143, %142 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  %41 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = sitofp i32 %42 to double
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = sitofp i32 %44 to double
  %46 = load i32, ptr %1, align 4, !tbaa !5
  %47 = sitofp i32 %46 to double
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = sitofp i32 %48 to double
  %50 = call noundef double @_Z7sqrDistdddd(double noundef %43, double noundef %45, double noundef %47, double noundef %49)
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = sitofp i32 %51 to double
  %53 = call double @llvm.fmuladd.f64(double %52, double %52, double 1.000000e-09)
  %54 = fcmp olt double %50, %53
  br i1 %54, label %146, label %55

55:                                               ; preds = %40
  %56 = call double @sqrt(double noundef %50) #9
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = sitofp i32 %57 to double
  %59 = fadd double %30, %58
  %60 = fadd double %56, -1.000000e-09
  %61 = fcmp olt double %59, %60
  br i1 %61, label %142, label %62

62:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = sub nsw i32 %63, %64
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = load i32, ptr %1, align 4, !tbaa !5
  %68 = sub nsw i32 %66, %67
  %69 = call noundef double @_ZSt5atan2IiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef %65, i32 noundef %68)
  %70 = fcmp olt double %69, 0.000000e+00
  %71 = fadd double %69, 0x401921FB54442D18
  %.055 = select i1 %70, double %71, double %69
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = sitofp i32 %72 to double
  %74 = fneg double %73
  %75 = fmul double %74, %73
  %76 = call double @llvm.fmuladd.f64(double %56, double %56, double %75)
  %77 = call double @sqrt(double noundef %76) #9
  %78 = fcmp olt double %77, %33
  br i1 %78, label %79, label %84

79:                                               ; preds = %62
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = sitofp i32 %80 to double
  %82 = fdiv double %81, %56
  %83 = call double @asin(double noundef %82) #9
  br label %94

84:                                               ; preds = %62
  %85 = call double @llvm.fmuladd.f64(double %56, double %56, double %34)
  %86 = load i32, ptr %9, align 4, !tbaa !5
  %87 = sitofp i32 %86 to double
  %88 = fneg double %87
  %89 = call double @llvm.fmuladd.f64(double %88, double %87, double %85)
  %90 = fmul double %56, 2.000000e+00
  %91 = fmul double %30, %90
  %92 = fdiv double %89, %91
  %93 = call double @acos(double noundef %92) #9
  br label %94

94:                                               ; preds = %84, %79
  %.056 = phi double [ %83, %79 ], [ %93, %84 ]
  %95 = fsub double %.055, %.056
  store double %95, ptr %10, align 8, !tbaa !9
  %96 = fadd double %.055, %.056
  store double %96, ptr %11, align 8, !tbaa !9
  %97 = fcmp olt double %95, 0.000000e+00
  br i1 %97, label %98, label %114

98:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %99 = fadd double %95, 0x401921FB54442D18
  store double %99, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  store double 0x401921FB54442D18, ptr %14, align 8, !tbaa !9
  %100 = invoke { double, double } @_ZSt9make_pairIddESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %101 unwind label %110

101:                                              ; preds = %98
  %102 = extractvalue { double, double } %100, 0
  store double %102, ptr %12, align 8
  %103 = extractvalue { double, double } %100, 1
  store double %103, ptr %38, align 8
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %104 unwind label %110

104:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #9
  store i32 0, ptr %17, align 4, !tbaa !5
  %105 = invoke { i32, double } @_ZSt9make_pairIiRdESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %106 unwind label %112

106:                                              ; preds = %104
  %107 = extractvalue { i32, double } %105, 0
  store i32 %107, ptr %16, align 8
  %108 = extractvalue { i32, double } %105, 1
  store double %108, ptr %39, align 8
  call void @_ZNSt4pairIddEC2IidTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %109 unwind label %112

109:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  br label %141

110:                                              ; preds = %101, %98
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  br label %145

112:                                              ; preds = %106, %104
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  br label %145

114:                                              ; preds = %94
  %115 = fcmp ogt double %96, 0x401921FB54442D18
  br i1 %115, label %116, label %133

116:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #9
  store double 0x401921FB54442D18, ptr %19, align 8, !tbaa !9
  %117 = invoke { double, double } @_ZSt9make_pairIRddESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %118 unwind label %129

118:                                              ; preds = %116
  %119 = extractvalue { double, double } %117, 0
  store double %119, ptr %18, align 8
  %120 = extractvalue { double, double } %117, 1
  store double %120, ptr %36, align 8
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %121 unwind label %129

121:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #9
  store i32 0, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #9
  %122 = load double, ptr %11, align 8, !tbaa !9
  %123 = fadd double %122, 0xC01921FB54442D18
  store double %123, ptr %23, align 8, !tbaa !9
  %124 = invoke { i32, double } @_ZSt9make_pairIidESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %125 unwind label %131

125:                                              ; preds = %121
  %126 = extractvalue { i32, double } %124, 0
  store i32 %126, ptr %21, align 8
  %127 = extractvalue { i32, double } %124, 1
  store double %127, ptr %37, align 8
  call void @_ZNSt4pairIddEC2IidTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %128 unwind label %131

128:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #9
  br label %141

129:                                              ; preds = %118, %116
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  br label %145

131:                                              ; preds = %125, %121
  %132 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #9
  br label %145

133:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #9
  %134 = invoke { double, double } @_ZSt9make_pairIRdS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %135 unwind label %139

135:                                              ; preds = %133
  %136 = extractvalue { double, double } %134, 0
  store double %136, ptr %24, align 8
  %137 = extractvalue { double, double } %134, 1
  store double %137, ptr %35, align 8
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %138 unwind label %139

138:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #9
  br label %141

139:                                              ; preds = %135, %133
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #9
  br label %145

141:                                              ; preds = %128, %138, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %142

142:                                              ; preds = %141, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  %143 = add nuw nsw i32 %.04868, 1
  %144 = load i32, ptr %5, align 4, !tbaa !5
  %.not = icmp slt i32 %143, %144
  br i1 %.not, label %40, label %.critedge65, !llvm.loop !11

145:                                              ; preds = %139, %131, %129, %112, %110
  %.pn = phi { ptr, i32 } [ %113, %112 ], [ %111, %110 ], [ %132, %131 ], [ %130, %129 ], [ %140, %139 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  br label %179

146:                                              ; preds = %40
  %147 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef 1.000000e+00)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  br label %178

.critedge65:                                      ; preds = %142, %0
  %148 = call ptr @_ZNSt6vectorISt4pairIddESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %149 = call ptr @_ZNSt6vectorISt4pairIddESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIddESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %148, ptr %149)
          to label %150 unwind label %156

150:                                              ; preds = %.critedge65
  %151 = call noundef i64 @_ZNKSt6vectorISt4pairIddESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %152 = trunc i64 %151 to i32
  store i32 %152, ptr %5, align 4, !tbaa !5
  %153 = icmp sgt i32 %152, 0
  br i1 %153, label %.lr.ph81, label %._crit_edge

._crit_edge:                                      ; preds = %.critedge, %150
  %.047.lcssa = phi double [ 0.000000e+00, %150 ], [ %176, %.critedge ]
  %154 = fdiv double %.047.lcssa, 0x401921FB54442D18
  %155 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %154)
  br label %178

156:                                              ; preds = %.critedge65
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %179

.lr.ph81:                                         ; preds = %150, %.critedge
  %.04580 = phi i32 [ %.146.lcssa, %.critedge ], [ 0, %150 ]
  %.04779 = phi double [ %176, %.critedge ], [ 0.000000e+00, %150 ]
  %158 = sext i32 %.04580 to i64
  %159 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIddESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %158) #9
  %160 = load double, ptr %159, align 8, !tbaa !13
  %161 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIddESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %158) #9
  %.0.in69 = getelementptr inbounds i8, ptr %161, i64 8
  %.070 = load double, ptr %.0.in69, align 8, !tbaa !15
  %.14671 = add nsw i32 %.04580, 1
  %162 = load i32, ptr %5, align 4, !tbaa !5
  %163 = icmp slt i32 %.14671, %162
  br i1 %163, label %.lr.ph74.preheader, label %.critedge

.lr.ph74.preheader:                               ; preds = %.lr.ph81
  %164 = sext i32 %.14671 to i64
  br label %.lr.ph74

.lr.ph74:                                         ; preds = %.lr.ph74.preheader, %169
  %indvars.iv = phi i64 [ %164, %.lr.ph74.preheader ], [ %indvars.iv.next, %169 ]
  %.072 = phi double [ %.070, %.lr.ph74.preheader ], [ %.0, %169 ]
  %165 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIddESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #9
  %166 = load double, ptr %165, align 8, !tbaa !13
  %167 = fadd double %.072, 1.000000e-09
  %168 = fcmp ugt double %166, %167
  br i1 %168, label %.lr.ph74..critedge.loopexit_crit_edge, label %169

.lr.ph74..critedge.loopexit_crit_edge:            ; preds = %.lr.ph74
  %.pre.pre = load i32, ptr %5, align 4, !tbaa !5
  br label %.critedge.loopexit

169:                                              ; preds = %.lr.ph74
  %170 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIddESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #9
  %.0.in = getelementptr inbounds i8, ptr %170, i64 8
  %.0 = load double, ptr %.0.in, align 8, !tbaa !15
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %171 = load i32, ptr %5, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = icmp slt i64 %indvars.iv.next, %172
  br i1 %173, label %.lr.ph74, label %.critedge.loopexit, !llvm.loop !16

.critedge.loopexit:                               ; preds = %169, %.lr.ph74..critedge.loopexit_crit_edge
  %.pre = phi i32 [ %.pre.pre, %.lr.ph74..critedge.loopexit_crit_edge ], [ %171, %169 ]
  %.0.lcssa.ph = phi double [ %.072, %.lr.ph74..critedge.loopexit_crit_edge ], [ %.0, %169 ]
  %.146.lcssa.ph.in = phi i64 [ %indvars.iv, %.lr.ph74..critedge.loopexit_crit_edge ], [ %indvars.iv.next, %169 ]
  %.146.lcssa.ph = trunc i64 %.146.lcssa.ph.in to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.lr.ph81
  %174 = phi i32 [ %162, %.lr.ph81 ], [ %.pre, %.critedge.loopexit ]
  %.0.lcssa = phi double [ %.070, %.lr.ph81 ], [ %.0.lcssa.ph, %.critedge.loopexit ]
  %.146.lcssa = phi i32 [ %.14671, %.lr.ph81 ], [ %.146.lcssa.ph, %.critedge.loopexit ]
  %175 = fsub double %.0.lcssa, %160
  %176 = fadd double %.04779, %175
  %177 = icmp slt i32 %.146.lcssa, %174
  br i1 %177, label %.lr.ph81, label %._crit_edge, !llvm.loop !17

178:                                              ; preds = %146, %._crit_edge
  call void @_ZNSt6vectorISt4pairIddESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  ret i32 0

179:                                              ; preds = %156, %145
  %.pn61 = phi { ptr, i32 } [ %157, %156 ], [ %.pn, %145 ]
  call void @_ZNSt6vectorISt4pairIddESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn61
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt5atan2IiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, i32 noundef) local_unnamed_addr #6

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZSt9make_pairIddESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

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

; Function Attrs: mustprogress uwtable
declare dso_local { i32, double } @_ZSt9make_pairIiRdESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZSt9make_pairIRddESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local { i32, double } @_ZSt9make_pairIidESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZSt9make_pairIRdS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

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

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

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

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

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

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


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