; LLVM IR from kazunetakahashi/atcoder :: 201411_201509/0718 (tdpc_D)

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

@N = external dso_local global i32, align 4
@D = external dso_local global i64, align 8
@dp = external dso_local global [110 x [65 x [65 x [65 x double]]]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", 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 i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %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 i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca double, align 8
  %27 = alloca i32, align 4
  %28 = alloca double, align 8
  %29 = alloca i32, align 4
  %30 = alloca %"struct.std::_Setprecision", align 4
  store i32 0, ptr %1, align 4
  %31 = 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)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(8) @D)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  %33 = load i64, ptr @D, align 8, !tbaa !5
  store i64 %33, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %38, %0
  %35 = load i64, ptr %2, align 8, !tbaa !5
  %36 = srem i64 %35, 2
  %37 = icmp eq i64 %36, 0
  br i1 %37, label %38, label %43

38:                                               ; preds = %34
  %39 = load i32, ptr %3, align 4, !tbaa !9
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %3, align 4, !tbaa !9
  %41 = load i64, ptr %2, align 8, !tbaa !5
  %42 = sdiv i64 %41, 2
  store i64 %42, ptr %2, align 8, !tbaa !5
  br label %34, !llvm.loop !11

43:                                               ; preds = %34
  br label %44

44:                                               ; preds = %48, %43
  %45 = load i64, ptr %2, align 8, !tbaa !5
  %46 = srem i64 %45, 3
  %47 = icmp eq i64 %46, 0
  br i1 %47, label %48, label %53

48:                                               ; preds = %44
  %49 = load i32, ptr %4, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %4, align 4, !tbaa !9
  %51 = load i64, ptr %2, align 8, !tbaa !5
  %52 = sdiv i64 %51, 3
  store i64 %52, ptr %2, align 8, !tbaa !5
  br label %44, !llvm.loop !13

53:                                               ; preds = %44
  br label %54

54:                                               ; preds = %58, %53
  %55 = load i64, ptr %2, align 8, !tbaa !5
  %56 = srem i64 %55, 5
  %57 = icmp eq i64 %56, 0
  br i1 %57, label %58, label %63

58:                                               ; preds = %54
  %59 = load i32, ptr %5, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %5, align 4, !tbaa !9
  %61 = load i64, ptr %2, align 8, !tbaa !5
  %62 = sdiv i64 %61, 5
  store i64 %62, ptr %2, align 8, !tbaa !5
  br label %54, !llvm.loop !14

63:                                               ; preds = %54
  %64 = load i64, ptr %2, align 8, !tbaa !5
  %65 = icmp ne i64 %64, 1
  br i1 %65, label %66, label %69

66:                                               ; preds = %63
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %353

69:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @_ZSt4fillIPdiEvT_S1_RKT0_(ptr noundef @dp, ptr noundef getelementptr inbounds (double, ptr @dp, i64 30208750), ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  store double 1.000000e+00, ptr @dp, align 16, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %289, %69
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = load i32, ptr @N, align 4, !tbaa !9
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %292

75:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %285, %75
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = icmp slt i32 %77, 65
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %288

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %281, %80
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = icmp slt i32 %82, 65
  br i1 %83, label %85, label %84

84:                                               ; preds = %81
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %284

85:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %277, %85
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = icmp slt i32 %87, 65
  br i1 %88, label %90, label %89

89:                                               ; preds = %86
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %280

90:                                               ; preds = %86
  %91 = load i32, ptr %8, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %92
  %94 = load i32, ptr %9, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %93, i64 0, i64 %95
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [65 x [65 x double]], ptr %96, i64 0, i64 %98
  %100 = load i32, ptr %11, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [65 x double], ptr %99, i64 0, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !15
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %106
  %108 = load i32, ptr %9, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %107, i64 0, i64 %109
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [65 x [65 x double]], ptr %110, i64 0, i64 %112
  %114 = load i32, ptr %11, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [65 x double], ptr %113, i64 0, i64 %115
  %117 = load double, ptr %116, align 8, !tbaa !15
  %118 = call double @llvm.fmuladd.f64(double 0x3FC5555555555555, double %103, double %117)
  store double %118, ptr %116, align 8, !tbaa !15
  %119 = load i32, ptr %8, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %120
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %121, i64 0, i64 %123
  %125 = load i32, ptr %10, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [65 x [65 x double]], ptr %124, i64 0, i64 %126
  %128 = load i32, ptr %11, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [65 x double], ptr %127, i64 0, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !15
  %132 = load i32, ptr %8, align 4, !tbaa !9
  %133 = add nsw i32 %132, 1
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 64, ptr %13, align 4, !tbaa !9
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %135, i64 0, i64 %140
  %142 = load i32, ptr %10, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [65 x [65 x double]], ptr %141, i64 0, i64 %143
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [65 x double], ptr %144, i64 0, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !15
  %149 = call double @llvm.fmuladd.f64(double 0x3FC5555555555555, double %131, double %148)
  store double %149, ptr %147, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %150 = load i32, ptr %8, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %151
  %153 = load i32, ptr %9, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %152, i64 0, i64 %154
  %156 = load i32, ptr %10, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [65 x [65 x double]], ptr %155, i64 0, i64 %157
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [65 x double], ptr %158, i64 0, i64 %160
  %162 = load double, ptr %161, align 8, !tbaa !15
  %163 = load i32, ptr %8, align 4, !tbaa !9
  %164 = add nsw i32 %163, 1
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %165
  %167 = load i32, ptr %9, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %166, i64 0, i64 %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %170 = load i32, ptr %10, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 64, ptr %15, align 4, !tbaa !9
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %173 = load i32, ptr %172, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [65 x [65 x double]], ptr %169, i64 0, i64 %174
  %176 = load i32, ptr %11, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [65 x double], ptr %175, i64 0, i64 %177
  %179 = load double, ptr %178, align 8, !tbaa !15
  %180 = call double @llvm.fmuladd.f64(double 0x3FC5555555555555, double %162, double %179)
  store double %180, ptr %178, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %181 = load i32, ptr %8, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %182
  %184 = load i32, ptr %9, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %183, i64 0, i64 %185
  %187 = load i32, ptr %10, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [65 x [65 x double]], ptr %186, i64 0, i64 %188
  %190 = load i32, ptr %11, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [65 x double], ptr %189, i64 0, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !15
  %194 = load i32, ptr %8, align 4, !tbaa !9
  %195 = add nsw i32 %194, 1
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %198 = load i32, ptr %9, align 4, !tbaa !9
  %199 = add nsw i32 %198, 2
  store i32 %199, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 64, ptr %17, align 4, !tbaa !9
  %200 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %201 = load i32, ptr %200, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %197, i64 0, i64 %202
  %204 = load i32, ptr %10, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [65 x [65 x double]], ptr %203, i64 0, i64 %205
  %207 = load i32, ptr %11, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [65 x double], ptr %206, i64 0, i64 %208
  %210 = load double, ptr %209, align 8, !tbaa !15
  %211 = call double @llvm.fmuladd.f64(double 0x3FC5555555555555, double %193, double %210)
  store double %211, ptr %209, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  %212 = load i32, ptr %8, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %213
  %215 = load i32, ptr %9, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %214, i64 0, i64 %216
  %218 = load i32, ptr %10, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [65 x [65 x double]], ptr %217, i64 0, i64 %219
  %221 = load i32, ptr %11, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [65 x double], ptr %220, i64 0, i64 %222
  %224 = load double, ptr %223, align 8, !tbaa !15
  %225 = load i32, ptr %8, align 4, !tbaa !9
  %226 = add nsw i32 %225, 1
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %227
  %229 = load i32, ptr %9, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %228, i64 0, i64 %230
  %232 = load i32, ptr %10, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [65 x [65 x double]], ptr %231, i64 0, i64 %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %235 = load i32, ptr %11, align 4, !tbaa !9
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 64, ptr %19, align 4, !tbaa !9
  %237 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %238 = load i32, ptr %237, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [65 x double], ptr %234, i64 0, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !15
  %242 = call double @llvm.fmuladd.f64(double 0x3FC5555555555555, double %224, double %241)
  store double %242, ptr %240, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  %243 = load i32, ptr %8, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %244
  %246 = load i32, ptr %9, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %245, i64 0, i64 %247
  %249 = load i32, ptr %10, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [65 x [65 x double]], ptr %248, i64 0, i64 %250
  %252 = load i32, ptr %11, align 4, !tbaa !9
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [65 x double], ptr %251, i64 0, i64 %253
  %255 = load double, ptr %254, align 8, !tbaa !15
  %256 = load i32, ptr %8, align 4, !tbaa !9
  %257 = add nsw i32 %256, 1
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %258
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %260 = load i32, ptr %9, align 4, !tbaa !9
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 64, ptr %21, align 4, !tbaa !9
  %262 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %263 = load i32, ptr %262, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %259, i64 0, i64 %264
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %266 = load i32, ptr %10, align 4, !tbaa !9
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 64, ptr %23, align 4, !tbaa !9
  %268 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %269 = load i32, ptr %268, align 4, !tbaa !9
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [65 x [65 x double]], ptr %265, i64 0, i64 %270
  %272 = load i32, ptr %11, align 4, !tbaa !9
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [65 x double], ptr %271, i64 0, i64 %273
  %275 = load double, ptr %274, align 8, !tbaa !15
  %276 = call double @llvm.fmuladd.f64(double 0x3FC5555555555555, double %255, double %275)
  store double %276, ptr %274, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %277

277:                                              ; preds = %90
  %278 = load i32, ptr %11, align 4, !tbaa !9
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %11, align 4, !tbaa !9
  br label %86, !llvm.loop !17

280:                                              ; preds = %89
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %10, align 4, !tbaa !9
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %10, align 4, !tbaa !9
  br label %81, !llvm.loop !18

284:                                              ; preds = %84
  br label %285

285:                                              ; preds = %284
  %286 = load i32, ptr %9, align 4, !tbaa !9
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %9, align 4, !tbaa !9
  br label %76, !llvm.loop !19

288:                                              ; preds = %79
  br label %289

289:                                              ; preds = %288
  %290 = load i32, ptr %8, align 4, !tbaa !9
  %291 = add nsw i32 %290, 1
  store i32 %291, ptr %8, align 4, !tbaa !9
  br label %70, !llvm.loop !20

292:                                              ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store double 0.000000e+00, ptr %24, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %293 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %293, ptr %25, align 4, !tbaa !9
  br label %294

294:                                              ; preds = %340, %292
  %295 = load i32, ptr %25, align 4, !tbaa !9
  %296 = icmp slt i32 %295, 65
  br i1 %296, label %298, label %297

297:                                              ; preds = %294
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %343

298:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  store double 0.000000e+00, ptr %26, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %299 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %299, ptr %27, align 4, !tbaa !9
  br label %300

300:                                              ; preds = %333, %298
  %301 = load i32, ptr %27, align 4, !tbaa !9
  %302 = icmp slt i32 %301, 65
  br i1 %302, label %304, label %303

303:                                              ; preds = %300
  store i32 23, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %336

304:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  store double 0.000000e+00, ptr %28, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %305 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %305, ptr %29, align 4, !tbaa !9
  br label %306

306:                                              ; preds = %326, %304
  %307 = load i32, ptr %29, align 4, !tbaa !9
  %308 = icmp slt i32 %307, 65
  br i1 %308, label %310, label %309

309:                                              ; preds = %306
  store i32 26, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %329

310:                                              ; preds = %306
  %311 = load i32, ptr @N, align 4, !tbaa !9
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %312
  %314 = load i32, ptr %25, align 4, !tbaa !9
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %313, i64 0, i64 %315
  %317 = load i32, ptr %27, align 4, !tbaa !9
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [65 x [65 x double]], ptr %316, i64 0, i64 %318
  %320 = load i32, ptr %29, align 4, !tbaa !9
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [65 x double], ptr %319, i64 0, i64 %321
  %323 = load double, ptr %322, align 8, !tbaa !15
  %324 = load double, ptr %28, align 8, !tbaa !15
  %325 = fadd double %324, %323
  store double %325, ptr %28, align 8, !tbaa !15
  br label %326

326:                                              ; preds = %310
  %327 = load i32, ptr %29, align 4, !tbaa !9
  %328 = add nsw i32 %327, 1
  store i32 %328, ptr %29, align 4, !tbaa !9
  br label %306, !llvm.loop !21

329:                                              ; preds = %309
  %330 = load double, ptr %28, align 8, !tbaa !15
  %331 = load double, ptr %26, align 8, !tbaa !15
  %332 = fadd double %331, %330
  store double %332, ptr %26, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %333

333:                                              ; preds = %329
  %334 = load i32, ptr %27, align 4, !tbaa !9
  %335 = add nsw i32 %334, 1
  store i32 %335, ptr %27, align 4, !tbaa !9
  br label %300, !llvm.loop !22

336:                                              ; preds = %303
  %337 = load double, ptr %26, align 8, !tbaa !15
  %338 = load double, ptr %24, align 8, !tbaa !15
  %339 = fadd double %338, %337
  store double %339, ptr %24, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %340

340:                                              ; preds = %336
  %341 = load i32, ptr %25, align 4, !tbaa !9
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr %25, align 4, !tbaa !9
  br label %294, !llvm.loop !23

343:                                              ; preds = %297
  %344 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt5fixedRSt8ios_base)
  %345 = call i32 @_ZSt12setprecisioni(i32 noundef 20)
  %346 = getelementptr inbounds %"struct.std::_Setprecision", ptr %30, i32 0, i32 0
  store i32 %345, ptr %346, align 4
  %347 = getelementptr inbounds %"struct.std::_Setprecision", ptr %30, i32 0, i32 0
  %348 = load i32, ptr %347, align 4
  %349 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %344, i32 %348)
  %350 = load double, ptr %24, align 8, !tbaa !15
  %351 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %349, double noundef %350)
  %352 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %351, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  store i32 0, ptr %6, align 4
  br label %353

353:                                              ; preds = %343, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %354 = load i32, ptr %6, align 4
  switch i32 %354, label %357 [
    i32 0, label %355
    i32 1, label %355
  ]

355:                                              ; preds = %353, %353
  %356 = load i32, ptr %1, align 4
  ret i32 %356

357:                                              ; preds = %353
  unreachable
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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: 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3

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

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

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

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

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

@N = external dso_local global i32, align 4
@D = external dso_local global i64, align 8
@dp = external dso_local global [110 x [65 x [65 x [65 x double]]]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", 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 i32, align 4
  %4 = alloca i32, align 4
  %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 i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) @D)
  %16 = load i64, ptr @D, align 8, !tbaa !5
  %17 = and i64 %16, 1
  %18 = icmp eq i64 %17, 0
  br i1 %18, label %.lr.ph, label %.preheader104

.preheader104:                                    ; preds = %.lr.ph, %0
  %.097.lcssa = phi i64 [ %16, %0 ], [ %22, %.lr.ph ]
  %.096.lcssa = phi i32 [ 0, %0 ], [ %21, %.lr.ph ]
  %19 = srem i64 %.097.lcssa, 3
  %20 = icmp eq i64 %19, 0
  br i1 %20, label %.lr.ph110, label %.preheader103

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.096106 = phi i32 [ %21, %.lr.ph ], [ 0, %0 ]
  %.097105 = phi i64 [ %22, %.lr.ph ], [ %16, %0 ]
  %21 = add nuw nsw i32 %.096106, 1
  %22 = ashr exact i64 %.097105, 1
  %23 = and i64 %.097105, 2
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %.lr.ph, label %.preheader104, !llvm.loop !9

.preheader103:                                    ; preds = %.lr.ph110, %.preheader104
  %.1.lcssa = phi i64 [ %.097.lcssa, %.preheader104 ], [ %28, %.lr.ph110 ]
  %.095.lcssa = phi i32 [ 0, %.preheader104 ], [ %27, %.lr.ph110 ]
  %25 = srem i64 %.1.lcssa, 5
  %26 = icmp eq i64 %25, 0
  br i1 %26, label %.lr.ph115, label %._crit_edge

.lr.ph110:                                        ; preds = %.preheader104, %.lr.ph110
  %.095109 = phi i32 [ %27, %.lr.ph110 ], [ 0, %.preheader104 ]
  %.1108 = phi i64 [ %28, %.lr.ph110 ], [ %.097.lcssa, %.preheader104 ]
  %27 = add nuw nsw i32 %.095109, 1
  %28 = sdiv i64 %.1108, 3
  %29 = srem i64 %28, 3
  %30 = icmp eq i64 %29, 0
  br i1 %30, label %.lr.ph110, label %.preheader103, !llvm.loop !11

.lr.ph115:                                        ; preds = %.preheader103, %.lr.ph115
  %.094114 = phi i32 [ %31, %.lr.ph115 ], [ 0, %.preheader103 ]
  %.2113 = phi i64 [ %32, %.lr.ph115 ], [ %.1.lcssa, %.preheader103 ]
  %31 = add nuw nsw i32 %.094114, 1
  %32 = sdiv i64 %.2113, 5
  %33 = srem i64 %32, 5
  %34 = icmp eq i64 %33, 0
  br i1 %34, label %.lr.ph115, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph115, %.preheader103
  %.2.lcssa = phi i64 [ %.1.lcssa, %.preheader103 ], [ %32, %.lr.ph115 ]
  %.094.lcssa = phi i32 [ 0, %.preheader103 ], [ %31, %.lr.ph115 ]
  %.not = icmp eq i64 %.2.lcssa, 1
  br i1 %.not, label %38, label %35

35:                                               ; preds = %._crit_edge
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %116

38:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 0, ptr %1, align 4, !tbaa !13
  call void @_ZSt4fillIPdiEvT_S1_RKT0_(ptr noundef nonnull @dp, ptr noundef nonnull getelementptr inbounds (i8, ptr @dp, i64 241670000), ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  store double 1.000000e+00, ptr @dp, align 16, !tbaa !15
  %39 = load i32, ptr @N, align 4, !tbaa !13
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.preheader102, label %.preheader99

.preheader102:                                    ; preds = %38, %60
  %indvars.iv162 = phi i64 [ %indvars.iv.next163, %60 ], [ 0, %38 ]
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  br label %.preheader101

.preheader99:                                     ; preds = %60, %38
  %.lcssa = phi i32 [ %39, %38 ], [ %61, %60 ]
  %41 = icmp ult i32 %.096.lcssa, 65
  br i1 %41, label %.preheader98.lr.ph, label %._crit_edge134

.preheader98.lr.ph:                               ; preds = %.preheader99
  %42 = icmp ult i32 %.095.lcssa, 65
  %43 = sext i32 %.lcssa to i64
  %44 = icmp ult i32 %.094.lcssa, 65
  %or.cond = select i1 %42, i1 %44, i1 false
  br i1 %or.cond, label %.preheader98.us.us.preheader, label %._crit_edge134

.preheader98.us.us.preheader:                     ; preds = %.preheader98.lr.ph
  %45 = zext nneg i32 %.094.lcssa to i64
  %46 = zext nneg i32 %.095.lcssa to i64
  %47 = zext nneg i32 %.096.lcssa to i64
  br label %.preheader98.us.us

.preheader98.us.us:                               ; preds = %.preheader98.us.us.preheader, %._crit_edge130.split.us.us.us
  %indvars.iv174 = phi i64 [ %47, %.preheader98.us.us.preheader ], [ %indvars.iv.next175, %._crit_edge130.split.us.us.us ]
  %.089132.us.us = phi double [ 0.000000e+00, %.preheader98.us.us.preheader ], [ %55, %._crit_edge130.split.us.us.us ]
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge126.us.us.us, %.preheader98.us.us
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %._crit_edge126.us.us.us ], [ %46, %.preheader98.us.us ]
  %.087128.us.us.us = phi double [ %53, %._crit_edge126.us.us.us ], [ 0.000000e+00, %.preheader98.us.us ]
  br label %48

48:                                               ; preds = %48, %.preheader.us.us.us
  %indvars.iv165 = phi i64 [ %indvars.iv.next166, %48 ], [ %45, %.preheader.us.us.us ]
  %.085123.us.us.us = phi double [ %51, %48 ], [ 0.000000e+00, %.preheader.us.us.us ]
  %49 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %43, i64 %indvars.iv174, i64 %indvars.iv169, i64 %indvars.iv165
  %50 = load double, ptr %49, align 8, !tbaa !15
  %51 = fadd double %.085123.us.us.us, %50
  %indvars.iv.next166 = add nuw nsw i64 %indvars.iv165, 1
  %52 = and i64 %indvars.iv.next166, 4294967295
  %exitcond168.not = icmp eq i64 %52, 65
  br i1 %exitcond168.not, label %._crit_edge126.us.us.us, label %48, !llvm.loop !17

._crit_edge126.us.us.us:                          ; preds = %48
  %53 = fadd double %.087128.us.us.us, %51
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %54 = and i64 %indvars.iv.next170, 4294967295
  %exitcond173.not = icmp eq i64 %54, 65
  br i1 %exitcond173.not, label %._crit_edge130.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !18

._crit_edge130.split.us.us.us:                    ; preds = %._crit_edge126.us.us.us
  %55 = fadd double %.089132.us.us, %53
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %56 = and i64 %indvars.iv.next175, 4294967295
  %exitcond178.not = icmp eq i64 %56, 65
  br i1 %exitcond178.not, label %._crit_edge134, label %.preheader98.us.us, !llvm.loop !19

.preheader101:                                    ; preds = %.preheader102, %65
  %indvars.iv158 = phi i64 [ 0, %.preheader102 ], [ %indvars.iv.next159, %65 ]
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %57 = trunc nuw nsw i64 %indvars.iv.next159 to i32
  %58 = trunc i64 %indvars.iv158 to i32
  %59 = add i32 %58, 2
  br label %.preheader100

60:                                               ; preds = %65
  %61 = load i32, ptr @N, align 4, !tbaa !13
  %62 = sext i32 %61 to i64
  %63 = icmp slt i64 %indvars.iv.next163, %62
  br i1 %63, label %.preheader102, label %.preheader99, !llvm.loop !20

.preheader100:                                    ; preds = %.preheader101, %66
  %indvars.iv154 = phi i64 [ 0, %.preheader101 ], [ %indvars.iv.next155, %66 ]
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %64 = trunc nuw nsw i64 %indvars.iv.next155 to i32
  br label %67

65:                                               ; preds = %66
  %exitcond161.not = icmp eq i64 %indvars.iv.next159, 65
  br i1 %exitcond161.not, label %60, label %.preheader101, !llvm.loop !21

66:                                               ; preds = %67
  %exitcond157.not = icmp eq i64 %indvars.iv.next155, 65
  br i1 %exitcond157.not, label %65, label %.preheader100, !llvm.loop !22

67:                                               ; preds = %.preheader100, %67
  %indvars.iv = phi i64 [ 0, %.preheader100 ], [ %indvars.iv.next, %67 ]
  %68 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %indvars.iv162, i64 %indvars.iv158, i64 %indvars.iv154, i64 %indvars.iv
  %69 = load double, ptr %68, align 8, !tbaa !15
  %70 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %indvars.iv.next163, i64 %indvars.iv158, i64 %indvars.iv154, i64 %indvars.iv
  %71 = load double, ptr %70, align 8, !tbaa !15
  %72 = call double @llvm.fmuladd.f64(double %69, double 0x3FC5555555555555, double %71)
  store double %72, ptr %70, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 %57, ptr %2, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 64, ptr %3, align 4, !tbaa !13
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %74 = load i32, ptr %73, align 4, !tbaa !13
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %indvars.iv.next163, i64 %75, i64 %indvars.iv154, i64 %indvars.iv
  %77 = load double, ptr %76, align 8, !tbaa !15
  %78 = call double @llvm.fmuladd.f64(double %69, double 0x3FC5555555555555, double %77)
  store double %78, ptr %76, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %79 = load double, ptr %68, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 %64, ptr %4, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 64, ptr %5, align 4, !tbaa !13
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %81 = load i32, ptr %80, align 4, !tbaa !13
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %indvars.iv.next163, i64 %indvars.iv158, i64 %82, i64 %indvars.iv
  %84 = load double, ptr %83, align 8, !tbaa !15
  %85 = call double @llvm.fmuladd.f64(double %79, double 0x3FC5555555555555, double %84)
  store double %85, ptr %83, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %86 = load double, ptr %68, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 %59, ptr %6, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  store i32 64, ptr %7, align 4, !tbaa !13
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %88 = load i32, ptr %87, align 4, !tbaa !13
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %indvars.iv.next163, i64 %89, i64 %indvars.iv154, i64 %indvars.iv
  %91 = load double, ptr %90, align 8, !tbaa !15
  %92 = call double @llvm.fmuladd.f64(double %86, double 0x3FC5555555555555, double %91)
  store double %92, ptr %90, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  %93 = load double, ptr %68, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %94 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %94, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  store i32 64, ptr %9, align 4, !tbaa !13
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %96 = load i32, ptr %95, align 4, !tbaa !13
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %indvars.iv.next163, i64 %indvars.iv158, i64 %indvars.iv154, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !15
  %100 = call double @llvm.fmuladd.f64(double %93, double 0x3FC5555555555555, double %99)
  store double %100, ptr %98, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  %101 = load double, ptr %68, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  store i32 %57, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  store i32 64, ptr %11, align 4, !tbaa !13
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %103 = load i32, ptr %102, align 4, !tbaa !13
  %104 = sext i32 %103 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  store i32 %64, ptr %12, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  store i32 64, ptr %13, align 4, !tbaa !13
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %106 = load i32, ptr %105, align 4, !tbaa !13
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [110 x [65 x [65 x [65 x double]]]], ptr @dp, i64 0, i64 %indvars.iv.next163, i64 %104, i64 %107, i64 %indvars.iv
  %109 = load double, ptr %108, align 8, !tbaa !15
  %110 = call double @llvm.fmuladd.f64(double %101, double 0x3FC5555555555555, double %109)
  store double %110, ptr %108, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  %exitcond.not = icmp eq i64 %indvars.iv.next, 65
  br i1 %exitcond.not, label %66, label %67, !llvm.loop !23

._crit_edge134:                                   ; preds = %._crit_edge130.split.us.us.us, %.preheader98.lr.ph, %.preheader99
  %.089.lcssa = phi double [ 0.000000e+00, %.preheader99 ], [ 0.000000e+00, %.preheader98.lr.ph ], [ %55, %._crit_edge130.split.us.us.us ]
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
  %112 = call i32 @_ZSt12setprecisioni(i32 noundef 20)
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %111, i32 %112)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %113, double noundef %.089.lcssa)
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %116

116:                                              ; preds = %._crit_edge134, %35
  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)) local_unnamed_addr #1

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

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

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

; 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 #2 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: 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3

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

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

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

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long long", !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 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}


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