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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@n = external dso_local global i32, align 4
@x = external dso_local global i32, align 4
@y = external dso_local global i32, align 4
@pts = external dso_local global [300 x %"struct.std::pair"], align 16
@d = external dso_local global [300 x [300 x double]], align 16
@mx = external dso_local global double, align 8
@a1 = external dso_local global double, align 8
@a2 = external dso_local global double, align 8
@tmp1 = external dso_local global double, align 8
@tmp2 = external dso_local global double, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"struct.std::pair", align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair", align 4
  %13 = alloca %"struct.std::pair", align 4
  %14 = alloca %"struct.std::pair", align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  store i32 0, ptr %1, align 4
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %31, %0
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr @n, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %18
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @x)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) @y)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  %26 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @x, ptr noundef nonnull align 4 dereferenceable(4) @y)
  store i64 %26, ptr %3, align 4
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %28
  %30 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %31

31:                                               ; preds = %23
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %2, align 4, !tbaa !5
  br label %18, !llvm.loop !9

34:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %114, %34
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %117

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %6, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %110, %40
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = load i32, ptr @n, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %113

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %50
  %52 = getelementptr inbounds %"struct.std::pair", ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !11
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %55
  %57 = getelementptr inbounds %"struct.std::pair", ptr %56, i32 0, i32 0
  %58 = load i32, ptr %57, align 8, !tbaa !11
  %59 = sub nsw i32 %53, %58
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %61
  %63 = getelementptr inbounds %"struct.std::pair", ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 8, !tbaa !11
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %66
  %68 = getelementptr inbounds %"struct.std::pair", ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 8, !tbaa !11
  %70 = sub nsw i32 %64, %69
  %71 = mul nsw i32 %59, %70
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %73
  %75 = getelementptr inbounds %"struct.std::pair", ptr %74, i32 0, i32 1
  %76 = load i32, ptr %75, align 4, !tbaa !13
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %78
  %80 = getelementptr inbounds %"struct.std::pair", ptr %79, i32 0, i32 1
  %81 = load i32, ptr %80, align 4, !tbaa !13
  %82 = sub nsw i32 %76, %81
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %84
  %86 = getelementptr inbounds %"struct.std::pair", ptr %85, i32 0, i32 1
  %87 = load i32, ptr %86, align 4, !tbaa !13
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %89
  %91 = getelementptr inbounds %"struct.std::pair", ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 4, !tbaa !13
  %93 = sub nsw i32 %87, %92
  %94 = mul nsw i32 %82, %93
  %95 = add nsw i32 %71, %94
  %96 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %95)
  store double %96, ptr %7, align 8, !tbaa !14
  %97 = load double, ptr %7, align 8, !tbaa !14
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %99
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [300 x double], ptr %100, i64 0, i64 %102
  store double %97, ptr %103, align 8, !tbaa !14
  %104 = load i32, ptr %4, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %105
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [300 x double], ptr %106, i64 0, i64 %108
  store double %97, ptr %109, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %110

110:                                              ; preds = %48
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %6, align 4, !tbaa !5
  br label %43, !llvm.loop !16

113:                                              ; preds = %47
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %4, align 4, !tbaa !5
  br label %35, !llvm.loop !17

117:                                              ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %315, %117
  %119 = load i32, ptr %8, align 4, !tbaa !5
  %120 = load i32, ptr @n, align 4, !tbaa !5
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %318

123:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %311, %123
  %125 = load i32, ptr %9, align 4, !tbaa !5
  %126 = load i32, ptr @n, align 4, !tbaa !5
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %124
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %314

129:                                              ; preds = %124
  store double 0.000000e+00, ptr @a2, align 8, !tbaa !14
  store double 0.000000e+00, ptr @a1, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %291, %129
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = load i32, ptr @n, align 4, !tbaa !5
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %130
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %294

135:                                              ; preds = %130
  %136 = load i32, ptr %10, align 4, !tbaa !5
  %137 = load i32, ptr %8, align 4, !tbaa !5
  %138 = icmp ne i32 %136, %137
  br i1 %138, label %139, label %290

139:                                              ; preds = %135
  %140 = load i32, ptr %10, align 4, !tbaa !5
  %141 = load i32, ptr %9, align 4, !tbaa !5
  %142 = icmp ne i32 %140, %141
  br i1 %142, label %143, label %290

143:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %144 = load i32, ptr %10, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %145
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %146, i64 8, i1 false)
  %147 = load i32, ptr %8, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %148
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %149, i64 8, i1 false)
  %150 = load i32, ptr %9, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %151
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 8 %152, i64 8, i1 false)
  %153 = load i64, ptr %12, align 4
  %154 = load i64, ptr %13, align 4
  %155 = load i64, ptr %14, align 4
  %156 = call noundef i32 @_Z3ccwSt4pairIiiES0_S0_(i64 %153, i64 %154, i64 %155)
  store i32 %156, ptr %11, align 4, !tbaa !5
  %157 = load i32, ptr %11, align 4, !tbaa !5
  %158 = icmp sgt i32 %157, 0
  br i1 %158, label %159, label %222

159:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %160 = load i32, ptr %8, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %161
  %163 = load i32, ptr %10, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [300 x double], ptr %162, i64 0, i64 %164
  %166 = load double, ptr %165, align 8, !tbaa !14
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %168
  %170 = load i32, ptr %9, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [300 x double], ptr %169, i64 0, i64 %171
  %173 = load double, ptr %172, align 8, !tbaa !14
  %174 = fadd double %166, %173
  %175 = load i32, ptr %9, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %176
  %178 = load i32, ptr %8, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [300 x double], ptr %177, i64 0, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !14
  %182 = fadd double %174, %181
  %183 = fdiv double %182, 2.000000e+00
  store double %183, ptr %15, align 8, !tbaa !14
  %184 = load double, ptr %15, align 8, !tbaa !14
  %185 = load double, ptr %15, align 8, !tbaa !14
  %186 = load i32, ptr %8, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %187
  %189 = load i32, ptr %10, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [300 x double], ptr %188, i64 0, i64 %190
  %192 = load double, ptr %191, align 8, !tbaa !14
  %193 = fsub double %185, %192
  %194 = fmul double %184, %193
  %195 = load double, ptr %15, align 8, !tbaa !14
  %196 = load i32, ptr %10, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %197
  %199 = load i32, ptr %9, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [300 x double], ptr %198, i64 0, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !14
  %203 = fsub double %195, %202
  %204 = fmul double %194, %203
  %205 = load double, ptr %15, align 8, !tbaa !14
  %206 = load i32, ptr %9, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %207
  %209 = load i32, ptr %8, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [300 x double], ptr %208, i64 0, i64 %210
  %212 = load double, ptr %211, align 8, !tbaa !14
  %213 = fsub double %205, %212
  %214 = fmul double %204, %213
  %215 = call double @sqrt(double noundef %214) #8
  store double %215, ptr @tmp1, align 8, !tbaa !14
  %216 = load double, ptr @tmp1, align 8, !tbaa !14
  %217 = load double, ptr @a1, align 8, !tbaa !14
  %218 = fcmp ogt double %216, %217
  br i1 %218, label %219, label %221

219:                                              ; preds = %159
  %220 = load double, ptr @tmp1, align 8, !tbaa !14
  store double %220, ptr @a1, align 8, !tbaa !14
  br label %221

221:                                              ; preds = %219, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %289

222:                                              ; preds = %143
  %223 = load i32, ptr %11, align 4, !tbaa !5
  %224 = icmp slt i32 %223, 0
  br i1 %224, label %225, label %288

225:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %226 = load i32, ptr %8, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %227
  %229 = load i32, ptr %10, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [300 x double], ptr %228, i64 0, i64 %230
  %232 = load double, ptr %231, align 8, !tbaa !14
  %233 = load i32, ptr %10, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %234
  %236 = load i32, ptr %9, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [300 x double], ptr %235, i64 0, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !14
  %240 = fadd double %232, %239
  %241 = load i32, ptr %9, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %242
  %244 = load i32, ptr %8, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [300 x double], ptr %243, i64 0, i64 %245
  %247 = load double, ptr %246, align 8, !tbaa !14
  %248 = fadd double %240, %247
  %249 = fdiv double %248, 2.000000e+00
  store double %249, ptr %16, align 8, !tbaa !14
  %250 = load double, ptr %16, align 8, !tbaa !14
  %251 = load double, ptr %16, align 8, !tbaa !14
  %252 = load i32, ptr %8, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %253
  %255 = load i32, ptr %10, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [300 x double], ptr %254, i64 0, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !14
  %259 = fsub double %251, %258
  %260 = fmul double %250, %259
  %261 = load double, ptr %16, align 8, !tbaa !14
  %262 = load i32, ptr %10, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %263
  %265 = load i32, ptr %9, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [300 x double], ptr %264, i64 0, i64 %266
  %268 = load double, ptr %267, align 8, !tbaa !14
  %269 = fsub double %261, %268
  %270 = fmul double %260, %269
  %271 = load double, ptr %16, align 8, !tbaa !14
  %272 = load i32, ptr %9, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %273
  %275 = load i32, ptr %8, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [300 x double], ptr %274, i64 0, i64 %276
  %278 = load double, ptr %277, align 8, !tbaa !14
  %279 = fsub double %271, %278
  %280 = fmul double %270, %279
  %281 = call double @sqrt(double noundef %280) #8
  store double %281, ptr @tmp2, align 8, !tbaa !14
  %282 = load double, ptr @tmp2, align 8, !tbaa !14
  %283 = load double, ptr @a2, align 8, !tbaa !14
  %284 = fcmp ogt double %282, %283
  br i1 %284, label %285, label %287

285:                                              ; preds = %225
  %286 = load double, ptr @tmp2, align 8, !tbaa !14
  store double %286, ptr @a2, align 8, !tbaa !14
  br label %287

287:                                              ; preds = %285, %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %288

288:                                              ; preds = %287, %222
  br label %289

289:                                              ; preds = %288, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %290

290:                                              ; preds = %289, %139, %135
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %10, align 4, !tbaa !5
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %10, align 4, !tbaa !5
  br label %130, !llvm.loop !18

294:                                              ; preds = %134
  %295 = load double, ptr @a1, align 8, !tbaa !14
  %296 = load double, ptr @a2, align 8, !tbaa !14
  %297 = fadd double %295, %296
  %298 = load double, ptr @mx, align 8, !tbaa !14
  %299 = fcmp ogt double %297, %298
  br i1 %299, label %300, label %310

300:                                              ; preds = %294
  %301 = load double, ptr @a1, align 8, !tbaa !14
  %302 = fcmp ogt double %301, 0.000000e+00
  br i1 %302, label %303, label %310

303:                                              ; preds = %300
  %304 = load double, ptr @a2, align 8, !tbaa !14
  %305 = fcmp ogt double %304, 0.000000e+00
  br i1 %305, label %306, label %310

306:                                              ; preds = %303
  %307 = load double, ptr @a1, align 8, !tbaa !14
  %308 = load double, ptr @a2, align 8, !tbaa !14
  %309 = fadd double %307, %308
  store double %309, ptr @mx, align 8, !tbaa !14
  br label %310

310:                                              ; preds = %306, %303, %300, %294
  br label %311

311:                                              ; preds = %310
  %312 = load i32, ptr %9, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %9, align 4, !tbaa !5
  br label %124, !llvm.loop !19

314:                                              ; preds = %128
  br label %315

315:                                              ; preds = %314
  %316 = load i32, ptr %8, align 4, !tbaa !5
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %8, align 4, !tbaa !5
  br label %118, !llvm.loop !20

318:                                              ; preds = %122
  %319 = load double, ptr @mx, align 8, !tbaa !14
  %320 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %319)
  ret i32 0
}

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 uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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

; 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: nounwind
declare double @sqrt(double noundef) #7

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

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 willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }

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

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

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

@n = external dso_local global i32, align 4
@x = external dso_local global i32, align 4
@y = external dso_local global i32, align 4
@pts = external dso_local global [300 x %"struct.std::pair"], align 16
@d = external dso_local local_unnamed_addr global [300 x [300 x double]], align 16
@mx = external dso_local local_unnamed_addr global double, align 8
@a1 = external dso_local local_unnamed_addr global double, align 8
@a2 = external dso_local local_unnamed_addr global double, align 8
@tmp1 = external dso_local local_unnamed_addr global double, align 8
@tmp2 = external dso_local local_unnamed_addr global double, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca %"struct.std::pair", align 8
  %2 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %3 = load i32, ptr @n, align 4, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph, label %._crit_edge97

.preheader84:                                     ; preds = %.lr.ph
  %5 = icmp sgt i32 %11, 0
  br i1 %5, label %.lr.ph89, label %._crit_edge97

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @x)
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) @y)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  %8 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @x, ptr noundef nonnull align 4 dereferenceable(4) @y)
  store i64 %8, ptr %1, align 8
  %9 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %indvars.iv
  %10 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %1) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = icmp slt i64 %indvars.iv.next, %12
  br i1 %13, label %.lr.ph, label %.preheader84, !llvm.loop !9

.loopexit.loopexit:                               ; preds = %22
  %.pre118 = sext i32 %37 to i64
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.lr.ph89
  %.pre-phi = phi i64 [ %.pre118, %.loopexit.loopexit ], [ %18, %.lr.ph89 ]
  %14 = phi i32 [ %37, %.loopexit.loopexit ], [ %17, %.lr.ph89 ]
  %15 = icmp slt i64 %indvars.iv.next106, %.pre-phi
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  br i1 %15, label %.lr.ph89, label %.preheader83, !llvm.loop !11

.preheader83:                                     ; preds = %.loopexit
  %16 = icmp sgt i32 %14, 0
  br i1 %16, label %.preheader, label %._crit_edge97

.lr.ph89:                                         ; preds = %.preheader84, %.loopexit
  %17 = phi i32 [ %14, %.loopexit ], [ %11, %.preheader84 ]
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %.loopexit ], [ 0, %.preheader84 ]
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %.loopexit ], [ 1, %.preheader84 ]
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %18 = sext i32 %17 to i64
  %19 = icmp slt i64 %indvars.iv.next106, %18
  br i1 %19, label %.lr.ph87, label %.loopexit

.lr.ph87:                                         ; preds = %.lr.ph89
  %20 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %indvars.iv105
  %21 = getelementptr inbounds i8, ptr %20, i64 4
  br label %22

22:                                               ; preds = %.lr.ph87, %22
  %indvars.iv102 = phi i64 [ %indvars.iv100, %.lr.ph87 ], [ %indvars.iv.next103, %22 ]
  %23 = load i32, ptr %20, align 8, !tbaa !12
  %24 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %indvars.iv102
  %25 = load i32, ptr %24, align 8, !tbaa !12
  %26 = sub nsw i32 %23, %25
  %27 = mul nsw i32 %26, %26
  %28 = load i32, ptr %21, align 4, !tbaa !14
  %29 = getelementptr inbounds i8, ptr %24, i64 4
  %30 = load i32, ptr %29, align 4, !tbaa !14
  %31 = sub nsw i32 %28, %30
  %32 = mul nsw i32 %31, %31
  %33 = add nuw nsw i32 %32, %27
  %34 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %33)
  %35 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %indvars.iv102, i64 %indvars.iv105
  store double %34, ptr %35, align 8, !tbaa !15
  %36 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %indvars.iv105, i64 %indvars.iv102
  store double %34, ptr %36, align 8, !tbaa !15
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %38 = trunc nuw i64 %indvars.iv.next103 to i32
  %39 = icmp sgt i32 %37, %38
  br i1 %39, label %22, label %.loopexit.loopexit, !llvm.loop !17

.preheader:                                       ; preds = %.preheader83, %._crit_edge94
  %40 = phi i32 [ %45, %._crit_edge94 ], [ %14, %.preheader83 ]
  %indvars.iv114 = phi i64 [ %indvars.iv.next115, %._crit_edge94 ], [ 0, %.preheader83 ]
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph93.split.preheader, label %._crit_edge94

.lr.ph93.split.preheader:                         ; preds = %.preheader
  %42 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %indvars.iv114
  br label %.lr.ph93.split

._crit_edge97:                                    ; preds = %._crit_edge94, %0, %.preheader84, %.preheader83
  %43 = load double, ptr @mx, align 8, !tbaa !15
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %43)
  ret i32 0

._crit_edge94:                                    ; preds = %112, %.preheader
  %45 = phi i32 [ %40, %.preheader ], [ %53, %112 ]
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %46 = sext i32 %45 to i64
  %47 = icmp slt i64 %indvars.iv.next115, %46
  br i1 %47, label %.preheader, label %._crit_edge97, !llvm.loop !18

.lr.ph93.split:                                   ; preds = %.lr.ph93.split.preheader, %112
  %48 = phi i32 [ %40, %.lr.ph93.split.preheader ], [ %53, %112 ]
  %49 = phi i32 [ %40, %.lr.ph93.split.preheader ], [ %54, %112 ]
  %indvars.iv111 = phi i64 [ 0, %.lr.ph93.split.preheader ], [ %indvars.iv.next112, %112 ]
  store double 0.000000e+00, ptr @a2, align 8, !tbaa !15
  store double 0.000000e+00, ptr @a1, align 8, !tbaa !15
  %50 = icmp sgt i32 %49, 0
  br i1 %50, label %.lr.ph91, label %._crit_edge

.lr.ph91:                                         ; preds = %.lr.ph93.split
  %51 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %indvars.iv111
  %52 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %indvars.iv111, i64 %indvars.iv114
  br label %62

._crit_edge.loopexit:                             ; preds = %107
  %.pre = load double, ptr @a1, align 8
  %.pre117 = load double, ptr @a2, align 8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph93.split
  %53 = phi i32 [ %108, %._crit_edge.loopexit ], [ %48, %.lr.ph93.split ]
  %54 = phi i32 [ %108, %._crit_edge.loopexit ], [ %49, %.lr.ph93.split ]
  %55 = phi double [ %.pre117, %._crit_edge.loopexit ], [ 0.000000e+00, %.lr.ph93.split ]
  %56 = phi double [ %.pre, %._crit_edge.loopexit ], [ 0.000000e+00, %.lr.ph93.split ]
  %57 = fadd double %56, %55
  %58 = load double, ptr @mx, align 8, !tbaa !15
  %59 = fcmp ogt double %57, %58
  %60 = fcmp ogt double %56, 0.000000e+00
  %or.cond = and i1 %60, %59
  %61 = fcmp ogt double %55, 0.000000e+00
  %or.cond3 = and i1 %61, %or.cond
  br i1 %or.cond3, label %111, label %112

62:                                               ; preds = %.lr.ph91, %107
  %indvars.iv108 = phi i64 [ 0, %.lr.ph91 ], [ %indvars.iv.next109, %107 ]
  %.not = icmp eq i64 %indvars.iv108, %indvars.iv114
  %.not81 = icmp eq i64 %indvars.iv108, %indvars.iv111
  %or.cond82 = or i1 %.not, %.not81
  br i1 %or.cond82, label %107, label %63

63:                                               ; preds = %62
  %64 = getelementptr inbounds [300 x %"struct.std::pair"], ptr @pts, i64 0, i64 %indvars.iv108
  %.sroa.012.0.copyload = load i64, ptr %64, align 8
  %.sroa.011.0.copyload = load i64, ptr %42, align 8
  %.sroa.0.0.copyload = load i64, ptr %51, align 8
  %65 = call noundef i32 @_Z3ccwSt4pairIiiES0_S0_(i64 %.sroa.012.0.copyload, i64 %.sroa.011.0.copyload, i64 %.sroa.0.0.copyload)
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %67, label %86

67:                                               ; preds = %63
  %68 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %indvars.iv114, i64 %indvars.iv108
  %69 = load double, ptr %68, align 8, !tbaa !15
  %70 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %indvars.iv108, i64 %indvars.iv111
  %71 = load double, ptr %70, align 8, !tbaa !15
  %72 = fadd double %69, %71
  %73 = load double, ptr %52, align 8, !tbaa !15
  %74 = fadd double %72, %73
  %75 = fmul double %74, 5.000000e-01
  %76 = fsub double %75, %69
  %77 = fmul double %75, %76
  %78 = fsub double %75, %71
  %79 = fmul double %78, %77
  %80 = fsub double %75, %73
  %81 = fmul double %80, %79
  %82 = call double @sqrt(double noundef %81) #8
  store double %82, ptr @tmp1, align 8, !tbaa !15
  %83 = load double, ptr @a1, align 8
  %84 = fcmp ogt double %82, %83
  br i1 %84, label %85, label %107

85:                                               ; preds = %67
  store double %82, ptr @a1, align 8, !tbaa !15
  br label %107

86:                                               ; preds = %63
  %87 = icmp slt i32 %65, 0
  br i1 %87, label %88, label %107

88:                                               ; preds = %86
  %89 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %indvars.iv114, i64 %indvars.iv108
  %90 = load double, ptr %89, align 8, !tbaa !15
  %91 = getelementptr inbounds [300 x [300 x double]], ptr @d, i64 0, i64 %indvars.iv108, i64 %indvars.iv111
  %92 = load double, ptr %91, align 8, !tbaa !15
  %93 = fadd double %90, %92
  %94 = load double, ptr %52, align 8, !tbaa !15
  %95 = fadd double %93, %94
  %96 = fmul double %95, 5.000000e-01
  %97 = fsub double %96, %90
  %98 = fmul double %96, %97
  %99 = fsub double %96, %92
  %100 = fmul double %99, %98
  %101 = fsub double %96, %94
  %102 = fmul double %101, %100
  %103 = call double @sqrt(double noundef %102) #8
  store double %103, ptr @tmp2, align 8, !tbaa !15
  %104 = load double, ptr @a2, align 8
  %105 = fcmp ogt double %103, %104
  br i1 %105, label %106, label %107

106:                                              ; preds = %88
  store double %103, ptr @a2, align 8, !tbaa !15
  br label %107

107:                                              ; preds = %86, %85, %67, %106, %88, %62
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %108 = load i32, ptr @n, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = icmp slt i64 %indvars.iv.next109, %109
  br i1 %110, label %62, label %._crit_edge.loopexit, !llvm.loop !20

111:                                              ; preds = %._crit_edge
  store double %57, ptr @mx, align 8, !tbaa !15
  br label %112

112:                                              ; preds = %._crit_edge, %111
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %113 = sext i32 %54 to i64
  %114 = icmp slt i64 %indvars.iv.next112, %113
  br i1 %114, label %.lr.ph93.split, label %._crit_edge94, !llvm.loop !21
}

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 uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

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

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

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass