; LLVM IR from kazunetakahashi/atcoder :: 201411_201509/1224_codethanks_A (G)

; 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::_Setprecision" = type { i32 }

@P = external dso_local global [210 x [210 x [110 x double]]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

17:                                               ; preds = %38, %0
  %18 = load i32, ptr %5, align 4, !tbaa !5
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = icmp sle i32 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %41

22:                                               ; preds = %17
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 %24
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 %28
  %30 = load double, ptr %29, align 8, !tbaa !9
  %31 = fdiv double %30, 1.000000e+02
  store double %31, ptr %29, align 8, !tbaa !9
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !9
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, double noundef %35)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %38

38:                                               ; preds = %22
  %39 = load i32, ptr %5, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %5, align 4, !tbaa !5
  br label %17, !llvm.loop !11

41:                                               ; preds = %21
  %42 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 0
  %43 = getelementptr inbounds double, ptr %42, i64 1
  %44 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 0
  %45 = load i32, ptr %2, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds double, ptr %44, i64 %46
  %48 = getelementptr inbounds double, ptr %47, i64 1
  call void @_ZSt7reverseIPdEvT_S1_(ptr noundef %43, ptr noundef %48)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @_ZSt4fillIPdiEvT_S1_RKT0_(ptr noundef @P, ptr noundef getelementptr inbounds (double, ptr @P, i64 4851000), ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [210 x [110 x double]], ptr @P, i64 0, i64 %50
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [110 x double], ptr %51, i64 0, i64 %53
  store double 1.000000e+00, ptr %54, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %55 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %55, ptr %7, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %387, %41
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %390

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %61 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %61, ptr %9, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %383, %60
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = icmp sge i32 %63, 0
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %386

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %67 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %67, ptr %10, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %379, %66
  %69 = load i32, ptr %10, align 4, !tbaa !5
  %70 = icmp sge i32 %69, 0
  br i1 %70, label %72, label %71

71:                                               ; preds = %68
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %382

72:                                               ; preds = %68
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %74
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [210 x [110 x double]], ptr %75, i64 0, i64 %77
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [110 x double], ptr %78, i64 0, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !9
  %83 = fcmp oeq double %82, 0.000000e+00
  br i1 %83, label %84, label %85

84:                                               ; preds = %72
  br label %379

85:                                               ; preds = %72
  %86 = load i32, ptr %9, align 4, !tbaa !5
  %87 = icmp sge i32 %86, 2
  br i1 %87, label %88, label %116

88:                                               ; preds = %85
  %89 = load i32, ptr %7, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %94
  %96 = load i32, ptr %10, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [210 x [110 x double]], ptr %95, i64 0, i64 %97
  %99 = load i32, ptr %7, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [110 x double], ptr %98, i64 0, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !9
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = sub nsw i32 %103, 1
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %105
  %107 = load i32, ptr %10, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [210 x [110 x double]], ptr %106, i64 0, i64 %108
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = sub nsw i32 %110, 1
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [110 x double], ptr %109, i64 0, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !9
  %115 = call double @llvm.fmuladd.f64(double %92, double %102, double %114)
  store double %115, ptr %113, align 8, !tbaa !9
  br label %284

116:                                              ; preds = %85
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = icmp eq i32 %117, 1
  br i1 %118, label %119, label %150

119:                                              ; preds = %116
  %120 = load i32, ptr %10, align 4, !tbaa !5
  %121 = icmp sge i32 %120, 1
  br i1 %121, label %122, label %150

122:                                              ; preds = %119
  %123 = load i32, ptr %7, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 %124
  %126 = load double, ptr %125, align 8, !tbaa !9
  %127 = load i32, ptr %9, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %128
  %130 = load i32, ptr %10, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [210 x [110 x double]], ptr %129, i64 0, i64 %131
  %133 = load i32, ptr %7, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [110 x double], ptr %132, i64 0, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !9
  %137 = load i32, ptr %9, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %138
  %140 = load i32, ptr %10, align 4, !tbaa !5
  %141 = sub nsw i32 %140, 1
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [210 x [110 x double]], ptr %139, i64 0, i64 %142
  %144 = load i32, ptr %7, align 4, !tbaa !5
  %145 = sub nsw i32 %144, 1
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [110 x double], ptr %143, i64 0, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !9
  %149 = call double @llvm.fmuladd.f64(double %126, double %136, double %148)
  store double %149, ptr %147, align 8, !tbaa !9
  br label %283

150:                                              ; preds = %119, %116
  %151 = load i32, ptr %9, align 4, !tbaa !5
  %152 = icmp eq i32 %151, 1
  br i1 %152, label %153, label %184

153:                                              ; preds = %150
  %154 = load i32, ptr %10, align 4, !tbaa !5
  %155 = icmp eq i32 %154, 0
  br i1 %155, label %156, label %184

156:                                              ; preds = %153
  %157 = load i32, ptr %7, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !9
  %161 = load i32, ptr %9, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %162
  %164 = load i32, ptr %10, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [210 x [110 x double]], ptr %163, i64 0, i64 %165
  %167 = load i32, ptr %7, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [110 x double], ptr %166, i64 0, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !9
  %171 = load i32, ptr %9, align 4, !tbaa !5
  %172 = sub nsw i32 %171, 1
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %173
  %175 = load i32, ptr %10, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [210 x [110 x double]], ptr %174, i64 0, i64 %176
  %178 = load i32, ptr %7, align 4, !tbaa !5
  %179 = sub nsw i32 %178, 1
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [110 x double], ptr %177, i64 0, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !9
  %183 = call double @llvm.fmuladd.f64(double %160, double %170, double %182)
  store double %183, ptr %181, align 8, !tbaa !9
  br label %282

184:                                              ; preds = %153, %150
  %185 = load i32, ptr %9, align 4, !tbaa !5
  %186 = icmp eq i32 %185, 0
  br i1 %186, label %187, label %219

187:                                              ; preds = %184
  %188 = load i32, ptr %10, align 4, !tbaa !5
  %189 = icmp sge i32 %188, 2
  br i1 %189, label %190, label %219

190:                                              ; preds = %187
  %191 = load i32, ptr %7, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 %192
  %194 = load double, ptr %193, align 8, !tbaa !9
  %195 = load i32, ptr %9, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %196
  %198 = load i32, ptr %10, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [210 x [110 x double]], ptr %197, i64 0, i64 %199
  %201 = load i32, ptr %7, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [110 x double], ptr %200, i64 0, i64 %202
  %204 = load double, ptr %203, align 8, !tbaa !9
  %205 = load i32, ptr %9, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %207
  %209 = load i32, ptr %10, align 4, !tbaa !5
  %210 = sub nsw i32 %209, 2
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [210 x [110 x double]], ptr %208, i64 0, i64 %211
  %213 = load i32, ptr %7, align 4, !tbaa !5
  %214 = sub nsw i32 %213, 1
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [110 x double], ptr %212, i64 0, i64 %215
  %217 = load double, ptr %216, align 8, !tbaa !9
  %218 = call double @llvm.fmuladd.f64(double %194, double %204, double %217)
  store double %218, ptr %216, align 8, !tbaa !9
  br label %281

219:                                              ; preds = %187, %184
  %220 = load i32, ptr %9, align 4, !tbaa !5
  %221 = icmp eq i32 %220, 0
  br i1 %221, label %222, label %253

222:                                              ; preds = %219
  %223 = load i32, ptr %10, align 4, !tbaa !5
  %224 = icmp eq i32 %223, 1
  br i1 %224, label %225, label %253

225:                                              ; preds = %222
  %226 = load i32, ptr %7, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !9
  %230 = load i32, ptr %9, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %231
  %233 = load i32, ptr %10, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [210 x [110 x double]], ptr %232, i64 0, i64 %234
  %236 = load i32, ptr %7, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [110 x double], ptr %235, i64 0, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !9
  %240 = load i32, ptr %9, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %241
  %243 = load i32, ptr %10, align 4, !tbaa !5
  %244 = sub nsw i32 %243, 1
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [210 x [110 x double]], ptr %242, i64 0, i64 %245
  %247 = load i32, ptr %7, align 4, !tbaa !5
  %248 = sub nsw i32 %247, 1
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [110 x double], ptr %246, i64 0, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !9
  %252 = call double @llvm.fmuladd.f64(double %229, double %239, double %251)
  store double %252, ptr %250, align 8, !tbaa !9
  br label %280

253:                                              ; preds = %222, %219
  %254 = load i32, ptr %7, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 %255
  %257 = load double, ptr %256, align 8, !tbaa !9
  %258 = load i32, ptr %9, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %259
  %261 = load i32, ptr %10, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [210 x [110 x double]], ptr %260, i64 0, i64 %262
  %264 = load i32, ptr %7, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [110 x double], ptr %263, i64 0, i64 %265
  %267 = load double, ptr %266, align 8, !tbaa !9
  %268 = load i32, ptr %9, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %269
  %271 = load i32, ptr %10, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [210 x [110 x double]], ptr %270, i64 0, i64 %272
  %274 = load i32, ptr %7, align 4, !tbaa !5
  %275 = sub nsw i32 %274, 1
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [110 x double], ptr %273, i64 0, i64 %276
  %278 = load double, ptr %277, align 8, !tbaa !9
  %279 = call double @llvm.fmuladd.f64(double %257, double %267, double %278)
  store double %279, ptr %277, align 8, !tbaa !9
  br label %280

280:                                              ; preds = %253, %225
  br label %281

281:                                              ; preds = %280, %190
  br label %282

282:                                              ; preds = %281, %156
  br label %283

283:                                              ; preds = %282, %122
  br label %284

284:                                              ; preds = %283, %88
  %285 = load i32, ptr %10, align 4, !tbaa !5
  %286 = icmp sge i32 %285, 2
  br i1 %286, label %287, label %317

287:                                              ; preds = %284
  %288 = load i32, ptr %7, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 %289
  %291 = load double, ptr %290, align 8, !tbaa !9
  %292 = fsub double 1.000000e+00, %291
  %293 = load i32, ptr %9, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %294
  %296 = load i32, ptr %10, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [210 x [110 x double]], ptr %295, i64 0, i64 %297
  %299 = load i32, ptr %7, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [110 x double], ptr %298, i64 0, i64 %300
  %302 = load double, ptr %301, align 8, !tbaa !9
  %303 = load i32, ptr %9, align 4, !tbaa !5
  %304 = add nsw i32 %303, 1
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %305
  %307 = load i32, ptr %10, align 4, !tbaa !5
  %308 = sub nsw i32 %307, 2
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [210 x [110 x double]], ptr %306, i64 0, i64 %309
  %311 = load i32, ptr %7, align 4, !tbaa !5
  %312 = sub nsw i32 %311, 1
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [110 x double], ptr %310, i64 0, i64 %313
  %315 = load double, ptr %314, align 8, !tbaa !9
  %316 = call double @llvm.fmuladd.f64(double %292, double %302, double %315)
  store double %316, ptr %314, align 8, !tbaa !9
  br label %378

317:                                              ; preds = %284
  %318 = load i32, ptr %10, align 4, !tbaa !5
  %319 = icmp eq i32 %318, 1
  br i1 %319, label %320, label %349

320:                                              ; preds = %317
  %321 = load i32, ptr %7, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 %322
  %324 = load double, ptr %323, align 8, !tbaa !9
  %325 = fsub double 1.000000e+00, %324
  %326 = load i32, ptr %9, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %327
  %329 = load i32, ptr %10, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [210 x [110 x double]], ptr %328, i64 0, i64 %330
  %332 = load i32, ptr %7, align 4, !tbaa !5
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [110 x double], ptr %331, i64 0, i64 %333
  %335 = load double, ptr %334, align 8, !tbaa !9
  %336 = load i32, ptr %9, align 4, !tbaa !5
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %337
  %339 = load i32, ptr %10, align 4, !tbaa !5
  %340 = sub nsw i32 %339, 1
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [210 x [110 x double]], ptr %338, i64 0, i64 %341
  %343 = load i32, ptr %7, align 4, !tbaa !5
  %344 = sub nsw i32 %343, 1
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [110 x double], ptr %342, i64 0, i64 %345
  %347 = load double, ptr %346, align 8, !tbaa !9
  %348 = call double @llvm.fmuladd.f64(double %325, double %335, double %347)
  store double %348, ptr %346, align 8, !tbaa !9
  br label %377

349:                                              ; preds = %317
  %350 = load i32, ptr %7, align 4, !tbaa !5
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds [110 x double], ptr %4, i64 0, i64 %351
  %353 = load double, ptr %352, align 8, !tbaa !9
  %354 = fsub double 1.000000e+00, %353
  %355 = load i32, ptr %9, align 4, !tbaa !5
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %356
  %358 = load i32, ptr %10, align 4, !tbaa !5
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds [210 x [110 x double]], ptr %357, i64 0, i64 %359
  %361 = load i32, ptr %7, align 4, !tbaa !5
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [110 x double], ptr %360, i64 0, i64 %362
  %364 = load double, ptr %363, align 8, !tbaa !9
  %365 = load i32, ptr %9, align 4, !tbaa !5
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %366
  %368 = load i32, ptr %10, align 4, !tbaa !5
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [210 x [110 x double]], ptr %367, i64 0, i64 %369
  %371 = load i32, ptr %7, align 4, !tbaa !5
  %372 = sub nsw i32 %371, 1
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds [110 x double], ptr %370, i64 0, i64 %373
  %375 = load double, ptr %374, align 8, !tbaa !9
  %376 = call double @llvm.fmuladd.f64(double %354, double %364, double %375)
  store double %376, ptr %374, align 8, !tbaa !9
  br label %377

377:                                              ; preds = %349, %320
  br label %378

378:                                              ; preds = %377, %287
  br label %379

379:                                              ; preds = %378, %84
  %380 = load i32, ptr %10, align 4, !tbaa !5
  %381 = add nsw i32 %380, -1
  store i32 %381, ptr %10, align 4, !tbaa !5
  br label %68, !llvm.loop !13

382:                                              ; preds = %71
  br label %383

383:                                              ; preds = %382
  %384 = load i32, ptr %9, align 4, !tbaa !5
  %385 = add nsw i32 %384, -1
  store i32 %385, ptr %9, align 4, !tbaa !5
  br label %62, !llvm.loop !14

386:                                              ; preds = %65
  br label %387

387:                                              ; preds = %386
  %388 = load i32, ptr %7, align 4, !tbaa !5
  %389 = add nsw i32 %388, -1
  store i32 %389, ptr %7, align 4, !tbaa !5
  br label %56, !llvm.loop !15

390:                                              ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store double 0.000000e+00, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %391 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %391, ptr %12, align 4, !tbaa !5
  br label %392

392:                                              ; preds = %421, %390
  %393 = load i32, ptr %12, align 4, !tbaa !5
  %394 = icmp sge i32 %393, 0
  br i1 %394, label %396, label %395

395:                                              ; preds = %392
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %424

396:                                              ; preds = %392
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %397 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %397, ptr %13, align 4, !tbaa !5
  br label %398

398:                                              ; preds = %417, %396
  %399 = load i32, ptr %13, align 4, !tbaa !5
  %400 = icmp sge i32 %399, 0
  br i1 %400, label %402, label %401

401:                                              ; preds = %398
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %420

402:                                              ; preds = %398
  %403 = load i32, ptr %12, align 4, !tbaa !5
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %404
  %406 = load i32, ptr %13, align 4, !tbaa !5
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds [210 x [110 x double]], ptr %405, i64 0, i64 %407
  %409 = getelementptr inbounds [110 x double], ptr %408, i64 0, i64 0
  %410 = load double, ptr %409, align 16, !tbaa !9
  %411 = load i32, ptr %12, align 4, !tbaa !5
  %412 = load i32, ptr %13, align 4, !tbaa !5
  %413 = add nsw i32 %411, %412
  %414 = sitofp i32 %413 to double
  %415 = load double, ptr %11, align 8, !tbaa !9
  %416 = call double @llvm.fmuladd.f64(double %410, double %414, double %415)
  store double %416, ptr %11, align 8, !tbaa !9
  br label %417

417:                                              ; preds = %402
  %418 = load i32, ptr %13, align 4, !tbaa !5
  %419 = add nsw i32 %418, -1
  store i32 %419, ptr %13, align 4, !tbaa !5
  br label %398, !llvm.loop !16

420:                                              ; preds = %401
  br label %421

421:                                              ; preds = %420
  %422 = load i32, ptr %12, align 4, !tbaa !5
  %423 = add nsw i32 %422, -1
  store i32 %423, ptr %12, align 4, !tbaa !5
  br label %392, !llvm.loop !17

424:                                              ; preds = %395
  %425 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt5fixedRSt8ios_base)
  %426 = call i32 @_ZSt12setprecisioni(i32 noundef 10)
  %427 = getelementptr inbounds %"struct.std::_Setprecision", ptr %14, i32 0, i32 0
  store i32 %426, ptr %427, align 4
  %428 = getelementptr inbounds %"struct.std::_Setprecision", ptr %14, i32 0, i32 0
  %429 = load i32, ptr %428, align 4
  %430 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %425, i32 %429)
  %431 = load double, ptr %11, align 8, !tbaa !9
  %432 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %430, double noundef %431)
  %433 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %432, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 880, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %434 = load i32, ptr %1, align 4
  ret i32 %434
}

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPdiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@P = external dso_local global [210 x [210 x [110 x double]]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [110 x double], align 16
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 880, ptr nonnull %3) #7
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %.not118 = icmp slt i32 %7, 1
  br i1 %.not118, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %0
  %.pre164 = sext i32 %7 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre164, %.._crit_edge_crit_edge ], [ %102, %.lr.ph ]
  %8 = getelementptr inbounds i8, ptr %3, i64 8
  %9 = getelementptr inbounds double, ptr %3, i64 %.pre-phi
  %10 = getelementptr inbounds i8, ptr %9, i64 8
  call void @_ZSt7reverseIPdEvT_S1_(ptr noundef nonnull %8, ptr noundef nonnull %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @_ZSt4fillIPdiEvT_S1_RKT0_(ptr noundef nonnull @P, ptr noundef nonnull getelementptr inbounds (i8, ptr @P, i64 38808000), ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %.fr = freeze i32 %11
  %12 = sext i32 %.fr to i64
  %13 = load i32, ptr %1, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [210 x [110 x double]], ptr @P, i64 0, i64 %12, i64 %14
  store double 1.000000e+00, ptr %15, align 8, !tbaa !9
  %16 = icmp sgt i32 %13, 0
  br i1 %16, label %.preheader117.lr.ph, label %.preheader115

.preheader117.lr.ph:                              ; preds = %._crit_edge
  %17 = icmp sgt i32 %.fr, -1
  br i1 %17, label %.preheader117.us.preheader, label %._crit_edge138

.preheader117.us.preheader:                       ; preds = %.preheader117.lr.ph
  %18 = zext nneg i32 %.fr to i64
  %19 = zext nneg i32 %13 to i64
  br label %.preheader117.us

.preheader117.us:                                 ; preds = %.preheader117.us.preheader, %._crit_edge125.split.us.us
  %indvars.iv154 = phi i64 [ %19, %.preheader117.us.preheader ], [ %indvars.iv.next155, %._crit_edge125.split.us.us ]
  %20 = getelementptr inbounds [110 x double], ptr %3, i64 0, i64 %indvars.iv154
  %indvars.iv.next155 = add nsw i64 %indvars.iv154, -1
  %invariant.gep = getelementptr [110 x double], ptr @P, i64 0, i64 %indvars.iv.next155
  %21 = getelementptr inbounds [210 x [110 x double]], ptr @P, i64 0, i64 0, i64 %indvars.iv.next155
  br label %.preheader116.us.us

.preheader116.us.us:                              ; preds = %._crit_edge123.us.us, %.preheader117.us
  %indvars.iv151 = phi i64 [ %indvars.iv.next152, %._crit_edge123.us.us ], [ %18, %.preheader117.us ]
  %22 = icmp sgt i64 %indvars.iv151, 1
  %23 = icmp eq i64 %indvars.iv151, 1
  %24 = icmp eq i64 %indvars.iv151, 0
  %gep = getelementptr [210 x [210 x [110 x double]]], ptr %invariant.gep, i64 0, i64 %indvars.iv151
  %indvars.iv.next152 = add nsw i64 %indvars.iv151, -1
  %25 = add nuw nsw i64 %indvars.iv151, 1
  br i1 %22, label %.lr.ph122.split.us.us.us, label %.lr.ph122.split.us129.us

.lr.ph122.split.us129.us:                         ; preds = %.preheader116.us.us, %70
  %indvars.iv145 = phi i64 [ %indvars.iv.next146, %70 ], [ %18, %.preheader116.us.us ]
  %26 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %indvars.iv151, i64 %indvars.iv145, i64 %indvars.iv154
  %27 = load double, ptr %26, align 8, !tbaa !9
  %28 = fcmp oeq double %27, 0.000000e+00
  br i1 %28, label %70, label %29

29:                                               ; preds = %.lr.ph122.split.us129.us
  %30 = icmp ne i64 %indvars.iv145, 0
  %or.cond.us.us = and i1 %23, %30
  br i1 %or.cond.us.us, label %50, label %31

31:                                               ; preds = %29
  %32 = icmp eq i64 %indvars.iv145, 0
  %or.cond3.us.us = and i1 %23, %32
  br i1 %or.cond3.us.us, label %.thread.thread114.us.us, label %33

33:                                               ; preds = %31
  %34 = icmp ugt i64 %indvars.iv145, 1
  %or.cond5.us.us = and i1 %24, %34
  br i1 %or.cond5.us.us, label %.thread113.us.us, label %35

35:                                               ; preds = %33
  %36 = icmp eq i64 %indvars.iv145, 1
  %or.cond7.us.us = and i1 %24, %36
  %37 = load double, ptr %20, align 8, !tbaa !9
  br i1 %or.cond7.us.us, label %.thread.thread.us.us, label %38

38:                                               ; preds = %35
  %39 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %indvars.iv151, i64 %indvars.iv145, i64 %indvars.iv.next155
  br label %54

.thread.thread.us.us:                             ; preds = %35
  %40 = load double, ptr %gep, align 8, !tbaa !9
  %41 = call double @llvm.fmuladd.f64(double %37, double %27, double %40)
  br label %59

.thread113.us.us:                                 ; preds = %33
  %42 = load double, ptr %20, align 8, !tbaa !9
  %43 = add nsw i64 %indvars.iv145, -2
  %44 = getelementptr inbounds [210 x [110 x double]], ptr getelementptr inbounds (i8, ptr @P, i64 184800), i64 0, i64 %43, i64 %indvars.iv.next155
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = call double @llvm.fmuladd.f64(double %42, double %27, double %45)
  store double %46, ptr %44, align 8, !tbaa !9
  br label %64

.thread.thread114.us.us:                          ; preds = %31
  %47 = load double, ptr %20, align 8, !tbaa !9
  %48 = load double, ptr %21, align 8, !tbaa !9
  %49 = call double @llvm.fmuladd.f64(double %47, double %27, double %48)
  store double %49, ptr %21, align 8, !tbaa !9
  br label %._crit_edge123.us.us.sink.split

50:                                               ; preds = %29
  %51 = load double, ptr %20, align 8, !tbaa !9
  %52 = add nsw i64 %indvars.iv145, -1
  %53 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 1, i64 %52, i64 %indvars.iv.next155
  br label %54

54:                                               ; preds = %50, %38
  %.sink = phi ptr [ %53, %50 ], [ %39, %38 ]
  %.sink184 = phi double [ %51, %50 ], [ %37, %38 ]
  %55 = load double, ptr %.sink, align 8, !tbaa !9
  %56 = call double @llvm.fmuladd.f64(double %.sink184, double %27, double %55)
  store double %56, ptr %.sink, align 8, !tbaa !9
  %57 = icmp ugt i64 %indvars.iv145, 1
  br i1 %57, label %._crit_edge163, label %.thread.us127.us

._crit_edge163:                                   ; preds = %54
  %.pre165 = add nsw i64 %indvars.iv145, -2
  br label %64

.thread.us127.us:                                 ; preds = %54
  %58 = icmp eq i64 %indvars.iv145, 1
  br i1 %58, label %.thread.us127.us._crit_edge, label %._crit_edge123.us.us.sink.split

.thread.us127.us._crit_edge:                      ; preds = %.thread.us127.us
  %.pre = load double, ptr %gep, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %.thread.us127.us._crit_edge, %.thread.thread.us.us
  %60 = phi double [ %.pre, %.thread.us127.us._crit_edge ], [ %41, %.thread.thread.us.us ]
  %61 = phi double [ %.sink184, %.thread.us127.us._crit_edge ], [ %37, %.thread.thread.us.us ]
  %62 = fsub double 1.000000e+00, %61
  %63 = call double @llvm.fmuladd.f64(double %62, double %27, double %60)
  store double %63, ptr %gep, align 8, !tbaa !9
  br label %70

64:                                               ; preds = %._crit_edge163, %.thread113.us.us
  %.pre-phi166 = phi i64 [ %.pre165, %._crit_edge163 ], [ %43, %.thread113.us.us ]
  %65 = phi double [ %.sink184, %._crit_edge163 ], [ %42, %.thread113.us.us ]
  %66 = fsub double 1.000000e+00, %65
  %67 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %25, i64 %.pre-phi166, i64 %indvars.iv.next155
  %68 = load double, ptr %67, align 8, !tbaa !9
  %69 = call double @llvm.fmuladd.f64(double %66, double %27, double %68)
  store double %69, ptr %67, align 8, !tbaa !9
  br label %70

70:                                               ; preds = %64, %59, %.lr.ph122.split.us129.us
  %indvars.iv.next146 = add nsw i64 %indvars.iv145, -1
  %71 = icmp sgt i64 %indvars.iv145, 0
  br i1 %71, label %.lr.ph122.split.us129.us, label %._crit_edge123.us.us, !llvm.loop !11

._crit_edge123.us.us.sink.split:                  ; preds = %.thread.us127.us, %.thread.us.us.us, %.thread.thread114.us.us
  %.lcssa178.sink = phi double [ %47, %.thread.thread114.us.us ], [ %81, %.thread.us.us.us ], [ %.sink184, %.thread.us127.us ]
  %indvars.iv148.lcssa.sink = phi i64 [ %indvars.iv145, %.thread.thread114.us.us ], [ %indvars.iv148, %.thread.us.us.us ], [ %indvars.iv145, %.thread.us127.us ]
  %.lcssa179.sink = phi double [ %27, %.thread.thread114.us.us ], [ %78, %.thread.us.us.us ], [ %27, %.thread.us127.us ]
  %72 = fsub double 1.000000e+00, %.lcssa178.sink
  %73 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %indvars.iv151, i64 %indvars.iv148.lcssa.sink, i64 %indvars.iv.next155
  %74 = load double, ptr %73, align 8, !tbaa !9
  %75 = call double @llvm.fmuladd.f64(double %72, double %.lcssa179.sink, double %74)
  store double %75, ptr %73, align 8, !tbaa !9
  br label %._crit_edge123.us.us

._crit_edge123.us.us:                             ; preds = %70, %92, %._crit_edge123.us.us.sink.split
  %76 = icmp sgt i64 %indvars.iv151, 0
  br i1 %76, label %.preheader116.us.us, label %._crit_edge125.split.us.us, !llvm.loop !13

.lr.ph122.split.us.us.us:                         ; preds = %.preheader116.us.us, %92
  %indvars.iv148 = phi i64 [ %indvars.iv.next149, %92 ], [ %18, %.preheader116.us.us ]
  %77 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %indvars.iv151, i64 %indvars.iv148, i64 %indvars.iv154
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = fcmp oeq double %78, 0.000000e+00
  br i1 %79, label %92, label %80

80:                                               ; preds = %.lr.ph122.split.us.us.us
  %81 = load double, ptr %20, align 8, !tbaa !9
  %82 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %indvars.iv.next152, i64 %indvars.iv148, i64 %indvars.iv.next155
  %83 = load double, ptr %82, align 8, !tbaa !9
  %84 = call double @llvm.fmuladd.f64(double %81, double %78, double %83)
  store double %84, ptr %82, align 8, !tbaa !9
  %85 = icmp ugt i64 %indvars.iv148, 1
  br i1 %85, label %87, label %.thread.us.us.us

.thread.us.us.us:                                 ; preds = %80
  %86 = icmp eq i64 %indvars.iv148, 1
  br i1 %86, label %.sink.split, label %._crit_edge123.us.us.sink.split

87:                                               ; preds = %80
  %88 = add nsw i64 %indvars.iv148, -2
  %89 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %25, i64 %88, i64 %indvars.iv.next155
  br label %.sink.split

.sink.split:                                      ; preds = %.thread.us.us.us, %87
  %.sink195 = phi ptr [ %89, %87 ], [ %gep, %.thread.us.us.us ]
  %.sink193 = fsub double 1.000000e+00, %81
  %90 = load double, ptr %.sink195, align 8, !tbaa !9
  %91 = call double @llvm.fmuladd.f64(double %.sink193, double %78, double %90)
  store double %91, ptr %.sink195, align 8, !tbaa !9
  br label %92

92:                                               ; preds = %.sink.split, %.lr.ph122.split.us.us.us
  %indvars.iv.next149 = add nsw i64 %indvars.iv148, -1
  %93 = icmp sgt i64 %indvars.iv148, 0
  br i1 %93, label %.lr.ph122.split.us.us.us, label %._crit_edge123.us.us, !llvm.loop !11

._crit_edge125.split.us.us:                       ; preds = %._crit_edge123.us.us
  %94 = icmp sgt i64 %indvars.iv154, 1
  br i1 %94, label %.preheader117.us, label %.preheader115, !llvm.loop !14

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %95 = getelementptr inbounds [110 x double], ptr %3, i64 0, i64 %indvars.iv
  %96 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %95)
  %97 = load double, ptr %95, align 8, !tbaa !9
  %98 = fdiv double %97, 1.000000e+02
  store double %98, ptr %95, align 8, !tbaa !9
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, double noundef %98)
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %101 = load i32, ptr %1, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %.not.not = icmp slt i64 %indvars.iv, %102
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !15

.preheader115:                                    ; preds = %._crit_edge125.split.us.us, %._crit_edge
  %103 = icmp sgt i32 %.fr, -1
  br i1 %103, label %.preheader.us.preheader, label %._crit_edge138

.preheader.us.preheader:                          ; preds = %.preheader115
  %104 = zext nneg i32 %.fr to i64
  %105 = and i64 %104, 1
  %lcmp.mod.not.not = icmp eq i64 %105, 0
  %indvars.iv.next158.prol = add nsw i64 %104, -1
  %106 = icmp eq i32 %.fr, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge134.us
  %indvars.iv160 = phi i64 [ %104, %.preheader.us.preheader ], [ %indvars.iv.next161, %._crit_edge134.us ]
  %.0107136.us = phi double [ 0.000000e+00, %.preheader.us.preheader ], [ %.lcssa, %._crit_edge134.us ]
  br i1 %lcmp.mod.not.not, label %.prol.loopexit.unr-lcssa, label %.prol.loopexit

.prol.loopexit.unr-lcssa:                         ; preds = %.preheader.us
  %107 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %indvars.iv160, i64 %104
  %108 = load double, ptr %107, align 16, !tbaa !9
  %109 = trunc i64 %indvars.iv160 to i32
  %110 = add i32 %.fr, %109
  %111 = uitofp nneg i32 %110 to double
  %112 = call double @llvm.fmuladd.f64(double %108, double %111, double %.0107136.us)
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.preheader.us
  %indvars.iv157.unr = phi i64 [ %104, %.preheader.us ], [ %indvars.iv.next158.prol, %.prol.loopexit.unr-lcssa ]
  %.1131.us.unr = phi double [ %.0107136.us, %.preheader.us ], [ %112, %.prol.loopexit.unr-lcssa ]
  %.lcssa.unr = phi double [ poison, %.preheader.us ], [ %112, %.prol.loopexit.unr-lcssa ]
  br i1 %106, label %._crit_edge134.us, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.prol.loopexit, %.preheader.us.new
  %indvars.iv157 = phi i64 [ %indvars.iv.next158.1, %.preheader.us.new ], [ %indvars.iv157.unr, %.prol.loopexit ]
  %.1131.us = phi double [ %124, %.preheader.us.new ], [ %.1131.us.unr, %.prol.loopexit ]
  %113 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %indvars.iv160, i64 %indvars.iv157
  %114 = load double, ptr %113, align 16, !tbaa !9
  %115 = add nuw nsw i64 %indvars.iv157, %indvars.iv160
  %116 = trunc nuw i64 %115 to i32
  %117 = uitofp nneg i32 %116 to double
  %118 = call double @llvm.fmuladd.f64(double %114, double %117, double %.1131.us)
  %indvars.iv.next158 = add nsw i64 %indvars.iv157, -1
  %119 = getelementptr inbounds [210 x [210 x [110 x double]]], ptr @P, i64 0, i64 %indvars.iv160, i64 %indvars.iv.next158
  %120 = load double, ptr %119, align 16, !tbaa !9
  %121 = add nuw nsw i64 %indvars.iv.next158, %indvars.iv160
  %122 = trunc nuw i64 %121 to i32
  %123 = uitofp nneg i32 %122 to double
  %124 = call double @llvm.fmuladd.f64(double %120, double %123, double %118)
  %indvars.iv.next158.1 = add nsw i64 %indvars.iv157, -2
  %125 = icmp sgt i64 %indvars.iv157, 1
  br i1 %125, label %.preheader.us.new, label %._crit_edge134.us, !llvm.loop !16

._crit_edge134.us:                                ; preds = %.preheader.us.new, %.prol.loopexit
  %.lcssa = phi double [ %.lcssa.unr, %.prol.loopexit ], [ %124, %.preheader.us.new ]
  %indvars.iv.next161 = add nsw i64 %indvars.iv160, -1
  %126 = icmp sgt i64 %indvars.iv160, 0
  br i1 %126, label %.preheader.us, label %._crit_edge138, !llvm.loop !17

._crit_edge138:                                   ; preds = %._crit_edge134.us, %.preheader117.lr.ph, %.preheader115
  %.0107.lcssa = phi double [ 0.000000e+00, %.preheader115 ], [ 0.000000e+00, %.preheader117.lr.ph ], [ %.lcssa, %._crit_edge134.us ]
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
  %128 = call i32 @_ZSt12setprecisioni(i32 noundef 10)
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %127, i32 %128)
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %129, double noundef %.0107.lcssa)
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 880, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPdiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

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

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

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

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

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


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