; LLVM IR from VastoLorde95/Competitive-Programming :: SPOJ/DP Level 2/Menu (menu)

; 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_ostream" = type { ptr, %"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 }

@cost = external dso_local global [51 x i32], align 16
@value = external dso_local global [51 x i32], align 16
@k = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@i = external dso_local global i32, align 4
@j = external dso_local global i32, align 4
@d = external dso_local global i32, align 4
@e = external dso_local global i32, align 4
@dp = external dso_local global [22 x [101 x [51 x [3 x float]]]], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca float, 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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @k, ptr noundef @n, ptr noundef @m)
  br label %9

9:                                                ; preds = %517, %0
  %10 = load i32, ptr @k, align 4, !tbaa !5
  %11 = icmp ne i32 %10, 0
  br i1 %11, label %18, label %12

12:                                               ; preds = %9
  %13 = load i32, ptr @n, align 4, !tbaa !5
  %14 = icmp ne i32 %13, 0
  br i1 %14, label %18, label %15

15:                                               ; preds = %12
  %16 = load i32, ptr @m, align 4, !tbaa !5
  %17 = icmp ne i32 %16, 0
  br label %18

18:                                               ; preds = %15, %12, %9
  %19 = phi i1 [ true, %12 ], [ true, %9 ], [ %17, %15 ]
  br i1 %19, label %20, label %520

20:                                               ; preds = %18
  call void @llvm.memset.p0.i64(ptr align 16 @cost, i8 0, i64 204, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @value, i8 0, i64 204, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @dp, i8 0, i64 1359864, i1 false)
  store i32 1, ptr @i, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %33, %20
  %22 = load i32, ptr @i, align 4, !tbaa !5
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = icmp sle i32 %22, %23
  br i1 %24, label %25, label %36

25:                                               ; preds = %21
  %26 = load i32, ptr @i, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %27
  %29 = load i32, ptr @i, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [51 x i32], ptr @value, i64 0, i64 %30
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %28, ptr noundef %31)
  br label %33

33:                                               ; preds = %25
  %34 = load i32, ptr @i, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr @i, align 4, !tbaa !5
  br label %21, !llvm.loop !9

36:                                               ; preds = %21
  store i32 0, ptr @i, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %107, %36
  %38 = load i32, ptr @i, align 4, !tbaa !5
  %39 = load i32, ptr @m, align 4, !tbaa !5
  %40 = icmp sle i32 %38, %39
  br i1 %40, label %41, label %110

41:                                               ; preds = %37
  store i32 1, ptr @j, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %103, %41
  %43 = load i32, ptr @j, align 4, !tbaa !5
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = icmp sle i32 %43, %44
  br i1 %45, label %46, label %106

46:                                               ; preds = %42
  %47 = load i32, ptr @j, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = load i32, ptr @i, align 4, !tbaa !5
  %52 = icmp sle i32 %50, %51
  br i1 %52, label %53, label %80

53:                                               ; preds = %46
  %54 = load i32, ptr @j, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [51 x i32], ptr @value, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = sitofp i32 %57 to float
  %59 = load i32, ptr @i, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr getelementptr inbounds ([22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 1), i64 0, i64 %60
  %62 = load i32, ptr @j, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [51 x [3 x float]], ptr %61, i64 0, i64 %63
  %65 = getelementptr inbounds [3 x float], ptr %64, i64 0, i64 0
  store float %58, ptr %65, align 4, !tbaa !11
  %66 = load i32, ptr @i, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr getelementptr inbounds ([22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 1), i64 0, i64 %67
  %69 = load i32, ptr @j, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [51 x [3 x float]], ptr %68, i64 0, i64 %70
  %72 = getelementptr inbounds [3 x float], ptr %71, i64 0, i64 1
  store float 0.000000e+00, ptr %72, align 4, !tbaa !11
  %73 = load i32, ptr @i, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr getelementptr inbounds ([22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 1), i64 0, i64 %74
  %76 = load i32, ptr @j, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [51 x [3 x float]], ptr %75, i64 0, i64 %77
  %79 = getelementptr inbounds [3 x float], ptr %78, i64 0, i64 2
  store float 1.000000e+00, ptr %79, align 4, !tbaa !11
  br label %102

80:                                               ; preds = %46
  %81 = load i32, ptr @i, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr getelementptr inbounds ([22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 1), i64 0, i64 %82
  %84 = load i32, ptr @j, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [51 x [3 x float]], ptr %83, i64 0, i64 %85
  %87 = getelementptr inbounds [3 x float], ptr %86, i64 0, i64 0
  store float 0.000000e+00, ptr %87, align 4, !tbaa !11
  %88 = load i32, ptr @i, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr getelementptr inbounds ([22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 1), i64 0, i64 %89
  %91 = load i32, ptr @j, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [51 x [3 x float]], ptr %90, i64 0, i64 %92
  %94 = getelementptr inbounds [3 x float], ptr %93, i64 0, i64 1
  store float 0.000000e+00, ptr %94, align 4, !tbaa !11
  %95 = load i32, ptr @i, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr getelementptr inbounds ([22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 1), i64 0, i64 %96
  %98 = load i32, ptr @j, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [51 x [3 x float]], ptr %97, i64 0, i64 %99
  %101 = getelementptr inbounds [3 x float], ptr %100, i64 0, i64 2
  store float 0.000000e+00, ptr %101, align 4, !tbaa !11
  br label %102

102:                                              ; preds = %80, %53
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr @j, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr @j, align 4, !tbaa !5
  br label %42, !llvm.loop !13

106:                                              ; preds = %42
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr @i, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr @i, align 4, !tbaa !5
  br label %37, !llvm.loop !14

110:                                              ; preds = %37
  store i32 2, ptr @i, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %429, %110
  %112 = load i32, ptr @i, align 4, !tbaa !5
  %113 = load i32, ptr @k, align 4, !tbaa !5
  %114 = icmp sle i32 %112, %113
  br i1 %114, label %115, label %432

115:                                              ; preds = %111
  store i32 0, ptr @j, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %425, %115
  %117 = load i32, ptr @j, align 4, !tbaa !5
  %118 = load i32, ptr @m, align 4, !tbaa !5
  %119 = icmp sle i32 %117, %118
  br i1 %119, label %120, label %428

120:                                              ; preds = %116
  store i32 1, ptr @d, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %421, %120
  %122 = load i32, ptr @d, align 4, !tbaa !5
  %123 = load i32, ptr @n, align 4, !tbaa !5
  %124 = icmp sle i32 %122, %123
  br i1 %124, label %125, label %424

125:                                              ; preds = %121
  store float 0.000000e+00, ptr %2, align 4, !tbaa !11
  store i32 0, ptr %3, align 4, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !5
  %126 = load i32, ptr @d, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = load i32, ptr @j, align 4, !tbaa !5
  %131 = icmp sle i32 %129, %130
  br i1 %131, label %132, label %389

132:                                              ; preds = %125
  store i32 1, ptr @e, align 4, !tbaa !5
  br label %133

133:                                              ; preds = %350, %132
  %134 = load i32, ptr @e, align 4, !tbaa !5
  %135 = load i32, ptr @n, align 4, !tbaa !5
  %136 = icmp sle i32 %134, %135
  br i1 %136, label %137, label %353

137:                                              ; preds = %133
  %138 = load i32, ptr @i, align 4, !tbaa !5
  %139 = sub nsw i32 %138, 1
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %140
  %142 = load i32, ptr @j, align 4, !tbaa !5
  %143 = load i32, ptr @d, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = sub nsw i32 %142, %146
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %141, i64 0, i64 %148
  %150 = load i32, ptr @e, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [51 x [3 x float]], ptr %149, i64 0, i64 %151
  %153 = getelementptr inbounds [3 x float], ptr %152, i64 0, i64 0
  %154 = load float, ptr %153, align 4, !tbaa !11
  %155 = fcmp une float %154, 0.000000e+00
  br i1 %155, label %156, label %349

156:                                              ; preds = %137
  %157 = load i32, ptr @e, align 4, !tbaa !5
  %158 = load i32, ptr @d, align 4, !tbaa !5
  %159 = icmp eq i32 %157, %158
  br i1 %159, label %160, label %296

160:                                              ; preds = %156
  %161 = load i32, ptr @i, align 4, !tbaa !5
  %162 = sub nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %163
  %165 = load i32, ptr @j, align 4, !tbaa !5
  %166 = load i32, ptr @d, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = sub nsw i32 %165, %169
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %164, i64 0, i64 %171
  %173 = load i32, ptr @e, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [51 x [3 x float]], ptr %172, i64 0, i64 %174
  %176 = getelementptr inbounds [3 x float], ptr %175, i64 0, i64 2
  %177 = load float, ptr %176, align 4, !tbaa !11
  %178 = fcmp oeq float %177, 2.000000e+00
  br i1 %178, label %179, label %219

179:                                              ; preds = %160
  %180 = load i32, ptr @i, align 4, !tbaa !5
  %181 = sub nsw i32 %180, 1
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %182
  %184 = load i32, ptr @j, align 4, !tbaa !5
  %185 = load i32, ptr @d, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = sub nsw i32 %184, %188
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %183, i64 0, i64 %190
  %192 = load i32, ptr @e, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [51 x [3 x float]], ptr %191, i64 0, i64 %193
  %195 = getelementptr inbounds [3 x float], ptr %194, i64 0, i64 0
  %196 = load float, ptr %195, align 4, !tbaa !11
  %197 = load float, ptr %2, align 4, !tbaa !11
  %198 = fcmp ogt float %196, %197
  br i1 %198, label %199, label %218

199:                                              ; preds = %179
  %200 = load i32, ptr @i, align 4, !tbaa !5
  %201 = sub nsw i32 %200, 1
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %202
  %204 = load i32, ptr @j, align 4, !tbaa !5
  %205 = load i32, ptr @d, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %209 = sub nsw i32 %204, %208
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %203, i64 0, i64 %210
  %212 = load i32, ptr @e, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [51 x [3 x float]], ptr %211, i64 0, i64 %213
  %215 = getelementptr inbounds [3 x float], ptr %214, i64 0, i64 0
  %216 = load float, ptr %215, align 4, !tbaa !11
  store float %216, ptr %2, align 4, !tbaa !11
  %217 = load i32, ptr @e, align 4, !tbaa !5
  store i32 %217, ptr %3, align 4, !tbaa !5
  store i32 2, ptr %4, align 4, !tbaa !5
  br label %218

218:                                              ; preds = %199, %179
  br label %295

219:                                              ; preds = %160
  %220 = load i32, ptr @i, align 4, !tbaa !5
  %221 = sub nsw i32 %220, 1
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %222
  %224 = load i32, ptr @j, align 4, !tbaa !5
  %225 = load i32, ptr @d, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %226
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = sub nsw i32 %224, %228
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %223, i64 0, i64 %230
  %232 = load i32, ptr @e, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [51 x [3 x float]], ptr %231, i64 0, i64 %233
  %235 = getelementptr inbounds [3 x float], ptr %234, i64 0, i64 2
  %236 = load float, ptr %235, align 4, !tbaa !11
  %237 = fcmp oeq float %236, 1.000000e+00
  br i1 %237, label %238, label %294

238:                                              ; preds = %219
  %239 = load i32, ptr @i, align 4, !tbaa !5
  %240 = sub nsw i32 %239, 1
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %241
  %243 = load i32, ptr @j, align 4, !tbaa !5
  %244 = load i32, ptr @d, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %245
  %247 = load i32, ptr %246, align 4, !tbaa !5
  %248 = sub nsw i32 %243, %247
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %242, i64 0, i64 %249
  %251 = load i32, ptr @e, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [51 x [3 x float]], ptr %250, i64 0, i64 %252
  %254 = getelementptr inbounds [3 x float], ptr %253, i64 0, i64 0
  %255 = load float, ptr %254, align 4, !tbaa !11
  %256 = load i32, ptr @d, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [51 x i32], ptr @value, i64 0, i64 %257
  %259 = load i32, ptr %258, align 4, !tbaa !5
  %260 = sitofp i32 %259 to double
  %261 = fmul double 5.000000e-01, %260
  %262 = fptrunc double %261 to float
  %263 = fadd float %255, %262
  %264 = load float, ptr %2, align 4, !tbaa !11
  %265 = fcmp ogt float %263, %264
  br i1 %265, label %266, label %293

266:                                              ; preds = %238
  %267 = load i32, ptr @i, align 4, !tbaa !5
  %268 = sub nsw i32 %267, 1
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %269
  %271 = load i32, ptr @j, align 4, !tbaa !5
  %272 = load i32, ptr @d, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %273
  %275 = load i32, ptr %274, align 4, !tbaa !5
  %276 = sub nsw i32 %271, %275
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %270, i64 0, i64 %277
  %279 = load i32, ptr @e, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [51 x [3 x float]], ptr %278, i64 0, i64 %280
  %282 = getelementptr inbounds [3 x float], ptr %281, i64 0, i64 0
  %283 = load float, ptr %282, align 4, !tbaa !11
  %284 = load i32, ptr @d, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [51 x i32], ptr @value, i64 0, i64 %285
  %287 = load i32, ptr %286, align 4, !tbaa !5
  %288 = sitofp i32 %287 to double
  %289 = fmul double 5.000000e-01, %288
  %290 = fptrunc double %289 to float
  %291 = fadd float %283, %290
  store float %291, ptr %2, align 4, !tbaa !11
  %292 = load i32, ptr @e, align 4, !tbaa !5
  store i32 %292, ptr %3, align 4, !tbaa !5
  store i32 2, ptr %4, align 4, !tbaa !5
  br label %293

293:                                              ; preds = %266, %238
  br label %294

294:                                              ; preds = %293, %219
  br label %295

295:                                              ; preds = %294, %218
  br label %348

296:                                              ; preds = %156
  %297 = load i32, ptr @i, align 4, !tbaa !5
  %298 = sub nsw i32 %297, 1
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %299
  %301 = load i32, ptr @j, align 4, !tbaa !5
  %302 = load i32, ptr @d, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %303
  %305 = load i32, ptr %304, align 4, !tbaa !5
  %306 = sub nsw i32 %301, %305
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %300, i64 0, i64 %307
  %309 = load i32, ptr @e, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [51 x [3 x float]], ptr %308, i64 0, i64 %310
  %312 = getelementptr inbounds [3 x float], ptr %311, i64 0, i64 0
  %313 = load float, ptr %312, align 4, !tbaa !11
  %314 = load i32, ptr @d, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [51 x i32], ptr @value, i64 0, i64 %315
  %317 = load i32, ptr %316, align 4, !tbaa !5
  %318 = sitofp i32 %317 to float
  %319 = fadd float %313, %318
  %320 = load float, ptr %2, align 4, !tbaa !11
  %321 = fcmp ogt float %319, %320
  br i1 %321, label %322, label %347

322:                                              ; preds = %296
  %323 = load i32, ptr @i, align 4, !tbaa !5
  %324 = sub nsw i32 %323, 1
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %325
  %327 = load i32, ptr @j, align 4, !tbaa !5
  %328 = load i32, ptr @d, align 4, !tbaa !5
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %329
  %331 = load i32, ptr %330, align 4, !tbaa !5
  %332 = sub nsw i32 %327, %331
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %326, i64 0, i64 %333
  %335 = load i32, ptr @e, align 4, !tbaa !5
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [51 x [3 x float]], ptr %334, i64 0, i64 %336
  %338 = getelementptr inbounds [3 x float], ptr %337, i64 0, i64 0
  %339 = load float, ptr %338, align 4, !tbaa !11
  %340 = load i32, ptr @d, align 4, !tbaa !5
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [51 x i32], ptr @value, i64 0, i64 %341
  %343 = load i32, ptr %342, align 4, !tbaa !5
  %344 = sitofp i32 %343 to float
  %345 = fadd float %339, %344
  store float %345, ptr %2, align 4, !tbaa !11
  %346 = load i32, ptr @e, align 4, !tbaa !5
  store i32 %346, ptr %3, align 4, !tbaa !5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %347

347:                                              ; preds = %322, %296
  br label %348

348:                                              ; preds = %347, %295
  br label %349

349:                                              ; preds = %348, %137
  br label %350

350:                                              ; preds = %349
  %351 = load i32, ptr @e, align 4, !tbaa !5
  %352 = add nsw i32 %351, 1
  store i32 %352, ptr @e, align 4, !tbaa !5
  br label %133, !llvm.loop !15

353:                                              ; preds = %133
  %354 = load float, ptr %2, align 4, !tbaa !11
  %355 = load i32, ptr @i, align 4, !tbaa !5
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %356
  %358 = load i32, ptr @j, align 4, !tbaa !5
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %357, i64 0, i64 %359
  %361 = load i32, ptr @d, align 4, !tbaa !5
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [51 x [3 x float]], ptr %360, i64 0, i64 %362
  %364 = getelementptr inbounds [3 x float], ptr %363, i64 0, i64 0
  store float %354, ptr %364, align 4, !tbaa !11
  %365 = load i32, ptr %3, align 4, !tbaa !5
  %366 = sitofp i32 %365 to float
  %367 = load i32, ptr @i, align 4, !tbaa !5
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %368
  %370 = load i32, ptr @j, align 4, !tbaa !5
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %369, i64 0, i64 %371
  %373 = load i32, ptr @d, align 4, !tbaa !5
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [51 x [3 x float]], ptr %372, i64 0, i64 %374
  %376 = getelementptr inbounds [3 x float], ptr %375, i64 0, i64 1
  store float %366, ptr %376, align 4, !tbaa !11
  %377 = load i32, ptr %4, align 4, !tbaa !5
  %378 = sitofp i32 %377 to float
  %379 = load i32, ptr @i, align 4, !tbaa !5
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %380
  %382 = load i32, ptr @j, align 4, !tbaa !5
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %381, i64 0, i64 %383
  %385 = load i32, ptr @d, align 4, !tbaa !5
  %386 = sext i32 %385 to i64
  %387 = getelementptr inbounds [51 x [3 x float]], ptr %384, i64 0, i64 %386
  %388 = getelementptr inbounds [3 x float], ptr %387, i64 0, i64 2
  store float %378, ptr %388, align 4, !tbaa !11
  br label %420

389:                                              ; preds = %125
  %390 = load i32, ptr @i, align 4, !tbaa !5
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %391
  %393 = load i32, ptr @j, align 4, !tbaa !5
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %392, i64 0, i64 %394
  %396 = load i32, ptr @d, align 4, !tbaa !5
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [51 x [3 x float]], ptr %395, i64 0, i64 %397
  %399 = getelementptr inbounds [3 x float], ptr %398, i64 0, i64 0
  store float 0.000000e+00, ptr %399, align 4, !tbaa !11
  %400 = load i32, ptr @i, align 4, !tbaa !5
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %401
  %403 = load i32, ptr @j, align 4, !tbaa !5
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %402, i64 0, i64 %404
  %406 = load i32, ptr @d, align 4, !tbaa !5
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds [51 x [3 x float]], ptr %405, i64 0, i64 %407
  %409 = getelementptr inbounds [3 x float], ptr %408, i64 0, i64 1
  store float 0.000000e+00, ptr %409, align 4, !tbaa !11
  %410 = load i32, ptr @i, align 4, !tbaa !5
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %411
  %413 = load i32, ptr @j, align 4, !tbaa !5
  %414 = sext i32 %413 to i64
  %415 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %412, i64 0, i64 %414
  %416 = load i32, ptr @d, align 4, !tbaa !5
  %417 = sext i32 %416 to i64
  %418 = getelementptr inbounds [51 x [3 x float]], ptr %415, i64 0, i64 %417
  %419 = getelementptr inbounds [3 x float], ptr %418, i64 0, i64 2
  store float 0.000000e+00, ptr %419, align 4, !tbaa !11
  br label %420

420:                                              ; preds = %389, %353
  br label %421

421:                                              ; preds = %420
  %422 = load i32, ptr @d, align 4, !tbaa !5
  %423 = add nsw i32 %422, 1
  store i32 %423, ptr @d, align 4, !tbaa !5
  br label %121, !llvm.loop !16

424:                                              ; preds = %121
  br label %425

425:                                              ; preds = %424
  %426 = load i32, ptr @j, align 4, !tbaa !5
  %427 = add nsw i32 %426, 1
  store i32 %427, ptr @j, align 4, !tbaa !5
  br label %116, !llvm.loop !17

428:                                              ; preds = %116
  br label %429

429:                                              ; preds = %428
  %430 = load i32, ptr @i, align 4, !tbaa !5
  %431 = add nsw i32 %430, 1
  store i32 %431, ptr @i, align 4, !tbaa !5
  br label %111, !llvm.loop !18

432:                                              ; preds = %111
  store float 0.000000e+00, ptr %2, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %433 = load i32, ptr @m, align 4, !tbaa !5
  store i32 %433, ptr %7, align 4, !tbaa !5
  store i32 0, ptr @j, align 4, !tbaa !5
  br label %434

434:                                              ; preds = %475, %432
  %435 = load i32, ptr @j, align 4, !tbaa !5
  %436 = load i32, ptr @m, align 4, !tbaa !5
  %437 = icmp sle i32 %435, %436
  br i1 %437, label %438, label %478

438:                                              ; preds = %434
  store i32 1, ptr @i, align 4, !tbaa !5
  br label %439

439:                                              ; preds = %471, %438
  %440 = load i32, ptr @i, align 4, !tbaa !5
  %441 = icmp sle i32 %440, 50
  br i1 %441, label %442, label %474

442:                                              ; preds = %439
  %443 = load i32, ptr @k, align 4, !tbaa !5
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %444
  %446 = load i32, ptr @j, align 4, !tbaa !5
  %447 = sext i32 %446 to i64
  %448 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %445, i64 0, i64 %447
  %449 = load i32, ptr @i, align 4, !tbaa !5
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds [51 x [3 x float]], ptr %448, i64 0, i64 %450
  %452 = getelementptr inbounds [3 x float], ptr %451, i64 0, i64 0
  %453 = load float, ptr %452, align 4, !tbaa !11
  %454 = load float, ptr %2, align 4, !tbaa !11
  %455 = fcmp ogt float %453, %454
  br i1 %455, label %456, label %470

456:                                              ; preds = %442
  %457 = load i32, ptr @k, align 4, !tbaa !5
  %458 = sext i32 %457 to i64
  %459 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %458
  %460 = load i32, ptr @j, align 4, !tbaa !5
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %459, i64 0, i64 %461
  %463 = load i32, ptr @i, align 4, !tbaa !5
  %464 = sext i32 %463 to i64
  %465 = getelementptr inbounds [51 x [3 x float]], ptr %462, i64 0, i64 %464
  %466 = getelementptr inbounds [3 x float], ptr %465, i64 0, i64 0
  %467 = load float, ptr %466, align 4, !tbaa !11
  store float %467, ptr %2, align 4, !tbaa !11
  %468 = load i32, ptr @i, align 4, !tbaa !5
  store i32 %468, ptr %5, align 4, !tbaa !5
  %469 = load i32, ptr @j, align 4, !tbaa !5
  store i32 %469, ptr %7, align 4, !tbaa !5
  br label %470

470:                                              ; preds = %456, %442
  br label %471

471:                                              ; preds = %470
  %472 = load i32, ptr @i, align 4, !tbaa !5
  %473 = add nsw i32 %472, 1
  store i32 %473, ptr @i, align 4, !tbaa !5
  br label %439, !llvm.loop !19

474:                                              ; preds = %439
  br label %475

475:                                              ; preds = %474
  %476 = load i32, ptr @j, align 4, !tbaa !5
  %477 = add nsw i32 %476, 1
  store i32 %477, ptr @j, align 4, !tbaa !5
  br label %434, !llvm.loop !20

478:                                              ; preds = %434
  %479 = load float, ptr %2, align 4, !tbaa !11
  %480 = fpext float %479 to double
  %481 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %480)
  %482 = load i32, ptr %5, align 4, !tbaa !5
  %483 = icmp ne i32 %482, 0
  br i1 %483, label %484, label %517

484:                                              ; preds = %478
  %485 = load i32, ptr @k, align 4, !tbaa !5
  store i32 %485, ptr @i, align 4, !tbaa !5
  br label %486

486:                                              ; preds = %512, %484
  %487 = load i32, ptr @i, align 4, !tbaa !5
  %488 = icmp sge i32 %487, 1
  br i1 %488, label %489, label %515

489:                                              ; preds = %486
  %490 = load i32, ptr %5, align 4, !tbaa !5
  %491 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %490)
  %492 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %491, ptr noundef @.str.3)
  %493 = load i32, ptr @i, align 4, !tbaa !5
  %494 = sext i32 %493 to i64
  %495 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %494
  %496 = load i32, ptr %7, align 4, !tbaa !5
  %497 = sext i32 %496 to i64
  %498 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr %495, i64 0, i64 %497
  %499 = load i32, ptr %5, align 4, !tbaa !5
  %500 = sext i32 %499 to i64
  %501 = getelementptr inbounds [51 x [3 x float]], ptr %498, i64 0, i64 %500
  %502 = getelementptr inbounds [3 x float], ptr %501, i64 0, i64 1
  %503 = load float, ptr %502, align 4, !tbaa !11
  %504 = fptosi float %503 to i32
  store i32 %504, ptr %6, align 4, !tbaa !5
  %505 = load i32, ptr %7, align 4, !tbaa !5
  %506 = load i32, ptr %5, align 4, !tbaa !5
  %507 = sext i32 %506 to i64
  %508 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %507
  %509 = load i32, ptr %508, align 4, !tbaa !5
  %510 = sub nsw i32 %505, %509
  store i32 %510, ptr %7, align 4, !tbaa !5
  %511 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %511, ptr %5, align 4, !tbaa !5
  br label %512

512:                                              ; preds = %489
  %513 = load i32, ptr @i, align 4, !tbaa !5
  %514 = add nsw i32 %513, -1
  store i32 %514, ptr @i, align 4, !tbaa !5
  br label %486, !llvm.loop !21

515:                                              ; preds = %486
  %516 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %517

517:                                              ; preds = %515, %478
  %518 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %519 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @k, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %9, !llvm.loop !22

520:                                              ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  ret i32 0
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"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 }

@cost = external dso_local global [51 x i32], align 16
@value = external dso_local global [51 x i32], align 16
@k = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@i = external dso_local local_unnamed_addr global i32, align 4
@j = external dso_local local_unnamed_addr global i32, align 4
@d = external dso_local local_unnamed_addr global i32, align 4
@e = external dso_local local_unnamed_addr global i32, align 4
@dp = external dso_local local_unnamed_addr global [22 x [101 x [51 x [3 x float]]]], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @k, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %2 = load i32, ptr @k, align 4, !tbaa !5
  %3 = icmp ne i32 %2, 0
  %4 = load i32, ptr @n, align 4
  %5 = icmp ne i32 %4, 0
  %or.cond142 = select i1 %3, i1 true, i1 %5
  %6 = load i32, ptr @m, align 4
  %7 = icmp ne i32 %6, 0
  %or.cond3143 = select i1 %or.cond142, i1 true, i1 %7
  br i1 %or.cond3143, label %.critedge, label %._crit_edge144

.critedge:                                        ; preds = %0, %128
  %8 = phi i32 [ %135, %128 ], [ %6, %0 ]
  %9 = phi i32 [ %133, %128 ], [ %4, %0 ]
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(204) @cost, i8 0, i64 204, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(204) @value, i8 0, i64 204, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1359864) @dp, i8 0, i64 1359864, i1 false)
  store i32 1, ptr @i, align 4, !tbaa !5
  %.not70 = icmp slt i32 %9, 1
  br i1 %.not70, label %.preheader67, label %.lr.ph

.preheader67.loopexit:                            ; preds = %.lr.ph
  %.pre = load i32, ptr @m, align 4, !tbaa !5
  br label %.preheader67

.preheader67:                                     ; preds = %.preheader67.loopexit, %.critedge
  %10 = phi i32 [ %8, %.critedge ], [ %.pre, %.preheader67.loopexit ]
  %.lcssa = phi i32 [ %9, %.critedge ], [ %19, %.preheader67.loopexit ]
  %.not4376 = icmp slt i32 %10, 0
  br i1 %.not4376, label %.preheader66.thread, label %.preheader64.lr.ph

.preheader64.lr.ph:                               ; preds = %.preheader67
  %.not5972 = icmp slt i32 %.lcssa, 1
  br i1 %.not5972, label %.preheader66.thread200, label %.preheader64.preheader

.preheader64.preheader:                           ; preds = %.preheader64.lr.ph
  %11 = add nuw i32 %.lcssa, 1
  %12 = add nuw i32 %10, 1
  %wide.trip.count164 = zext i32 %12 to i64
  %wide.trip.count = zext i32 %11 to i64
  br label %.preheader64

.lr.ph:                                           ; preds = %.critedge, %.lr.ph
  %storemerge71 = phi i32 [ %18, %.lr.ph ], [ 1, %.critedge ]
  %13 = sext i32 %storemerge71 to i64
  %14 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %13
  %15 = getelementptr inbounds [51 x i32], ptr @value, i64 0, i64 %13
  %16 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %14, ptr noundef nonnull %15)
  %17 = load i32, ptr @i, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr @i, align 4, !tbaa !5
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %.not.not = icmp slt i32 %17, %19
  br i1 %.not.not, label %.lr.ph, label %.preheader67.loopexit, !llvm.loop !9

.preheader66:                                     ; preds = %._crit_edge
  %20 = load i32, ptr @k, align 4, !tbaa !5
  %.not45106 = icmp slt i32 %20, 2
  br i1 %.not45106, label %.preheader65, label %.preheader63.lr.ph

.preheader66.thread200:                           ; preds = %.preheader64.lr.ph
  store i32 1, ptr @j, align 4, !tbaa !5
  %21 = load i32, ptr @k, align 4, !tbaa !5
  %.not45106203 = icmp slt i32 %21, 2
  br i1 %.not45106203, label %.preheader62.lr.ph, label %.preheader63.us113.preheader

.preheader66.thread:                              ; preds = %.preheader67
  %22 = load i32, ptr @k, align 4, !tbaa !5
  %.not45106198 = icmp slt i32 %22, 2
  br i1 %.not45106198, label %.sink.split, label %.preheader63.us.preheader

.preheader63.lr.ph:                               ; preds = %.preheader66
  br i1 %.not4376, label %.preheader63.us.preheader, label %.preheader63.preheader

.preheader63.us.preheader:                        ; preds = %.preheader66.thread, %.preheader63.lr.ph
  %23 = phi i32 [ %20, %.preheader63.lr.ph ], [ %22, %.preheader66.thread ]
  %24 = add nuw i32 %23, 1
  br label %.preheader65

.preheader63.preheader:                           ; preds = %.preheader63.lr.ph
  %25 = add nuw i32 %.lcssa, 1
  %26 = add nuw i32 %.lcssa, 1
  %27 = add nuw i32 %10, 1
  %28 = add nuw i32 %20, 1
  %wide.trip.count184 = zext i32 %28 to i64
  %wide.trip.count179 = zext i32 %27 to i64
  %wide.trip.count174 = zext i32 %26 to i64
  br label %.preheader63

.preheader63.us113.preheader:                     ; preds = %.preheader66.thread200
  %29 = add nuw i32 %21, 1
  br label %..preheader65_crit_edge.split

.preheader64:                                     ; preds = %.preheader64.preheader, %._crit_edge
  %indvars.iv161 = phi i64 [ 0, %.preheader64.preheader ], [ %indvars.iv.next162, %._crit_edge ]
  br label %30

30:                                               ; preds = %.preheader64, %38
  %indvars.iv = phi i64 [ 1, %.preheader64 ], [ %indvars.iv.next, %38 ]
  %31 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %indvars.iv
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %.not60 = icmp slt i64 %indvars.iv161, %33
  br i1 %.not60, label %38, label %34

34:                                               ; preds = %30
  %35 = getelementptr inbounds [51 x i32], ptr @value, i64 0, i64 %indvars.iv
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = sitofp i32 %36 to float
  br label %38

38:                                               ; preds = %30, %34
  %.sink196 = phi float [ %37, %34 ], [ 0.000000e+00, %30 ]
  %.sink = phi float [ 1.000000e+00, %34 ], [ 0.000000e+00, %30 ]
  %39 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr getelementptr inbounds (i8, ptr @dp, i64 61812), i64 0, i64 %indvars.iv161, i64 %indvars.iv
  store float %.sink196, ptr %39, align 4
  %40 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr getelementptr inbounds (i8, ptr @dp, i64 61812), i64 0, i64 %indvars.iv161, i64 %indvars.iv, i64 1
  store float 0.000000e+00, ptr %40, align 4
  %41 = getelementptr inbounds [101 x [51 x [3 x float]]], ptr getelementptr inbounds (i8, ptr @dp, i64 61812), i64 0, i64 %indvars.iv161, i64 %indvars.iv, i64 2
  store float %.sink, ptr %41, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %30, !llvm.loop !11

._crit_edge:                                      ; preds = %38
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %exitcond165.not = icmp eq i64 %indvars.iv.next162, %wide.trip.count164
  br i1 %exitcond165.not, label %.preheader66, label %.preheader64, !llvm.loop !12

..preheader65_crit_edge.split:                    ; preds = %._crit_edge102.split, %.preheader63.us113.preheader
  %42 = phi i32 [ %21, %.preheader63.us113.preheader ], [ %20, %._crit_edge102.split ]
  %.us-phi119 = phi i32 [ 1, %.preheader63.us113.preheader ], [ %26, %._crit_edge102.split ]
  %.us-phi121 = phi i32 [ %29, %.preheader63.us113.preheader ], [ %28, %._crit_edge102.split ]
  store i32 %.us-phi119, ptr @d, align 4, !tbaa !5
  br label %.preheader65

.preheader65:                                     ; preds = %..preheader65_crit_edge.split, %.preheader63.us.preheader, %.preheader66
  %43 = phi i32 [ %20, %.preheader66 ], [ %42, %..preheader65_crit_edge.split ], [ %23, %.preheader63.us.preheader ]
  %storemerge44.lcssa = phi i32 [ 2, %.preheader66 ], [ %.us-phi121, %..preheader65_crit_edge.split ], [ %24, %.preheader63.us.preheader ]
  store i32 %storemerge44.lcssa, ptr @i, align 4, !tbaa !5
  br i1 %.not4376, label %107, label %.preheader62.lr.ph

.preheader62.lr.ph:                               ; preds = %.preheader66.thread200, %.preheader65
  %44 = phi i32 [ %43, %.preheader65 ], [ %21, %.preheader66.thread200 ]
  %45 = sext i32 %44 to i64
  %46 = add nuw i32 %10, 1
  %wide.trip.count194 = zext i32 %46 to i64
  br label %.preheader62

.preheader63:                                     ; preds = %.preheader63.preheader, %._crit_edge102.split
  %indvars.iv181 = phi i64 [ 2, %.preheader63.preheader ], [ %indvars.iv.next182, %._crit_edge102.split ]
  %47 = add nsw i64 %indvars.iv181, -1
  br label %.preheader61

.preheader61:                                     ; preds = %.preheader63, %._crit_edge97.split
  %indvars.iv176 = phi i64 [ 0, %.preheader63 ], [ %indvars.iv.next177, %._crit_edge97.split ]
  %48 = trunc nuw nsw i64 %indvars.iv176 to i32
  br label %49

49:                                               ; preds = %.preheader61, %93
  %indvars.iv171 = phi i64 [ 1, %.preheader61 ], [ %indvars.iv.next172, %93 ]
  %50 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %indvars.iv171
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %.not55 = icmp slt i64 %indvars.iv176, %52
  br i1 %.not55, label %91, label %.preheader

.preheader:                                       ; preds = %49
  %53 = sub nsw i32 %48, %51
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [51 x i32], ptr @value, i64 0, i64 %indvars.iv171
  br label %56

56:                                               ; preds = %.preheader, %86
  %indvars.iv166 = phi i64 [ 1, %.preheader ], [ %indvars.iv.next167, %86 ]
  %.02186 = phi i32 [ 0, %.preheader ], [ %.122, %86 ]
  %.02385 = phi i32 [ 0, %.preheader ], [ %.124, %86 ]
  %.02584 = phi float [ 0.000000e+00, %.preheader ], [ %.126, %86 ]
  %57 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %47, i64 %54, i64 %indvars.iv166
  %58 = load float, ptr %57, align 4, !tbaa !13
  %59 = fcmp une float %58, 0.000000e+00
  br i1 %59, label %60, label %86

60:                                               ; preds = %56
  %61 = icmp eq i64 %indvars.iv166, %indvars.iv171
  %62 = trunc nuw nsw i64 %indvars.iv166 to i32
  br i1 %61, label %63, label %80

63:                                               ; preds = %60
  %64 = getelementptr inbounds i8, ptr %57, i64 8
  %65 = load float, ptr %64, align 4, !tbaa !13
  %66 = fcmp oeq float %65, 2.000000e+00
  br i1 %66, label %67, label %70

67:                                               ; preds = %63
  %68 = fcmp ogt float %58, %.02584
  br i1 %68, label %69, label %86

69:                                               ; preds = %67
  br label %86

70:                                               ; preds = %63
  %71 = fcmp oeq float %65, 1.000000e+00
  br i1 %71, label %72, label %86

72:                                               ; preds = %70
  %73 = load i32, ptr %55, align 4, !tbaa !5
  %74 = sitofp i32 %73 to double
  %75 = fmul double %74, 5.000000e-01
  %76 = fptrunc double %75 to float
  %77 = fadd float %58, %76
  %78 = fcmp ogt float %77, %.02584
  br i1 %78, label %79, label %86

79:                                               ; preds = %72
  br label %86

80:                                               ; preds = %60
  %81 = load i32, ptr %55, align 4, !tbaa !5
  %82 = sitofp i32 %81 to float
  %83 = fadd float %58, %82
  %84 = fcmp ogt float %83, %.02584
  br i1 %84, label %85, label %86

85:                                               ; preds = %80
  br label %86

86:                                               ; preds = %56, %80, %85, %69, %67, %72, %79, %70
  %.126 = phi float [ %58, %69 ], [ %.02584, %67 ], [ %77, %79 ], [ %.02584, %72 ], [ %.02584, %70 ], [ %83, %85 ], [ %.02584, %80 ], [ %.02584, %56 ]
  %.124 = phi i32 [ %62, %69 ], [ %.02385, %67 ], [ %62, %79 ], [ %.02385, %72 ], [ %.02385, %70 ], [ %62, %85 ], [ %.02385, %80 ], [ %.02385, %56 ]
  %.122 = phi i32 [ 2, %69 ], [ %.02186, %67 ], [ 2, %79 ], [ %.02186, %72 ], [ %.02186, %70 ], [ 1, %85 ], [ %.02186, %80 ], [ %.02186, %56 ]
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %exitcond170.not = icmp eq i64 %indvars.iv.next167, %wide.trip.count174
  br i1 %exitcond170.not, label %._crit_edge88, label %56, !llvm.loop !15

._crit_edge88:                                    ; preds = %86
  store i32 %25, ptr @e, align 4, !tbaa !5
  %87 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %indvars.iv181, i64 %indvars.iv176, i64 %indvars.iv171
  store float %.126, ptr %87, align 4, !tbaa !13
  %88 = sitofp i32 %.124 to float
  %89 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %indvars.iv181, i64 %indvars.iv176, i64 %indvars.iv171, i64 1
  store float %88, ptr %89, align 4, !tbaa !13
  %90 = uitofp nneg i32 %.122 to float
  br label %93

91:                                               ; preds = %49
  %92 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %indvars.iv181, i64 %indvars.iv176, i64 %indvars.iv171
  store <2 x float> zeroinitializer, ptr %92, align 4, !tbaa !13
  br label %93

93:                                               ; preds = %._crit_edge88, %91
  %.sink209 = phi float [ %90, %._crit_edge88 ], [ 0.000000e+00, %91 ]
  %94 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %indvars.iv181, i64 %indvars.iv176, i64 %indvars.iv171, i64 2
  store float %.sink209, ptr %94, align 4, !tbaa !13
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %exitcond175.not = icmp eq i64 %indvars.iv.next172, %wide.trip.count174
  br i1 %exitcond175.not, label %._crit_edge97.split, label %49, !llvm.loop !16

._crit_edge97.split:                              ; preds = %93
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %exitcond180.not = icmp eq i64 %indvars.iv.next177, %wide.trip.count179
  br i1 %exitcond180.not, label %._crit_edge102.split, label %.preheader61, !llvm.loop !17

._crit_edge102.split:                             ; preds = %._crit_edge97.split
  %indvars.iv.next182 = add nuw nsw i64 %indvars.iv181, 1
  %exitcond185.not = icmp eq i64 %indvars.iv.next182, %wide.trip.count184
  br i1 %exitcond185.not, label %..preheader65_crit_edge.split, label %.preheader63, !llvm.loop !18

.preheader62:                                     ; preds = %.preheader62.lr.ph, %106
  %indvars.iv191 = phi i64 [ 0, %.preheader62.lr.ph ], [ %indvars.iv.next192, %106 ]
  %.0131 = phi i32 [ %10, %.preheader62.lr.ph ], [ %.2.1, %106 ]
  %.017130 = phi i32 [ 0, %.preheader62.lr.ph ], [ %.219.1, %106 ]
  %.227129 = phi float [ 0.000000e+00, %.preheader62.lr.ph ], [ %.4.1, %106 ]
  %95 = trunc nuw nsw i64 %indvars.iv191 to i32
  br label %96

96:                                               ; preds = %96, %.preheader62
  %indvars.iv187 = phi i64 [ 1, %.preheader62 ], [ %indvars.iv.next188.1, %96 ]
  %.1126 = phi i32 [ %.0131, %.preheader62 ], [ %.2.1, %96 ]
  %.118125 = phi i32 [ %.017130, %.preheader62 ], [ %.219.1, %96 ]
  %.328124 = phi float [ %.227129, %.preheader62 ], [ %.4.1, %96 ]
  %97 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %45, i64 %indvars.iv191, i64 %indvars.iv187
  %98 = load float, ptr %97, align 4, !tbaa !13
  %99 = fcmp ogt float %98, %.328124
  %.4 = select i1 %99, float %98, float %.328124
  %100 = trunc nuw nsw i64 %indvars.iv187 to i32
  %.219 = select i1 %99, i32 %100, i32 %.118125
  %indvars.iv.next188 = add nuw nsw i64 %indvars.iv187, 1
  %101 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %45, i64 %indvars.iv191, i64 %indvars.iv.next188
  %102 = load float, ptr %101, align 4, !tbaa !13
  %103 = fcmp ogt float %102, %.4
  %.4.1 = select i1 %103, float %102, float %.4
  %104 = trunc nuw nsw i64 %indvars.iv.next188 to i32
  %.219.1 = select i1 %103, i32 %104, i32 %.219
  %105 = or i1 %103, %99
  %.2.1 = select i1 %105, i32 %95, i32 %.1126
  %indvars.iv.next188.1 = add nuw nsw i64 %indvars.iv187, 2
  %exitcond190.not.1 = icmp eq i64 %indvars.iv.next188.1, 51
  br i1 %exitcond190.not.1, label %106, label %96, !llvm.loop !19

106:                                              ; preds = %96
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, 1
  %exitcond195.not = icmp eq i64 %indvars.iv.next192, %wide.trip.count194
  br i1 %exitcond195.not, label %._crit_edge132, label %.preheader62, !llvm.loop !20

._crit_edge132:                                   ; preds = %106
  %narrow = add nuw i32 %10, 1
  br label %.sink.split

.sink.split:                                      ; preds = %.preheader66.thread, %._crit_edge132
  %.sink211 = phi i32 [ 51, %._crit_edge132 ], [ 2, %.preheader66.thread ]
  %storemerge46.lcssa.ph = phi i32 [ %narrow, %._crit_edge132 ], [ 0, %.preheader66.thread ]
  %.227.lcssa.ph = phi float [ %.4.1, %._crit_edge132 ], [ 0.000000e+00, %.preheader66.thread ]
  %.017.lcssa.ph = phi i32 [ %.219.1, %._crit_edge132 ], [ 0, %.preheader66.thread ]
  %.0.lcssa.ph = phi i32 [ %.2.1, %._crit_edge132 ], [ %10, %.preheader66.thread ]
  store i32 %.sink211, ptr @i, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %.sink.split, %.preheader65
  %storemerge46.lcssa = phi i32 [ 0, %.preheader65 ], [ %storemerge46.lcssa.ph, %.sink.split ]
  %.227.lcssa = phi float [ 0.000000e+00, %.preheader65 ], [ %.227.lcssa.ph, %.sink.split ]
  %.017.lcssa = phi i32 [ 0, %.preheader65 ], [ %.017.lcssa.ph, %.sink.split ]
  %.0.lcssa = phi i32 [ %10, %.preheader65 ], [ %.0.lcssa.ph, %.sink.split ]
  store i32 %storemerge46.lcssa, ptr @j, align 4, !tbaa !5
  %108 = fpext float %.227.lcssa to double
  %109 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %108)
  %.not48 = icmp eq i32 %.017.lcssa, 0
  br i1 %.not48, label %128, label %110

110:                                              ; preds = %107
  %111 = load i32, ptr @k, align 4, !tbaa !5
  store i32 %111, ptr @i, align 4, !tbaa !5
  %112 = icmp sgt i32 %111, 0
  br i1 %112, label %.lr.ph140, label %._crit_edge141

.lr.ph140:                                        ; preds = %110, %.lr.ph140
  %.3138 = phi i32 [ %124, %.lr.ph140 ], [ %.0.lcssa, %110 ]
  %.320137 = phi i32 [ %121, %.lr.ph140 ], [ %.017.lcssa, %110 ]
  %113 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.320137)
  %114 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef nonnull @.str.3)
  %115 = load i32, ptr @i, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = sext i32 %.3138 to i64
  %118 = sext i32 %.320137 to i64
  %119 = getelementptr inbounds [22 x [101 x [51 x [3 x float]]]], ptr @dp, i64 0, i64 %116, i64 %117, i64 %118, i64 1
  %120 = load float, ptr %119, align 4, !tbaa !13
  %121 = fptosi float %120 to i32
  %122 = getelementptr inbounds [51 x i32], ptr @cost, i64 0, i64 %118
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = sub nsw i32 %.3138, %123
  %125 = add nsw i32 %115, -1
  store i32 %125, ptr @i, align 4, !tbaa !5
  %126 = icmp sgt i32 %115, 1
  br i1 %126, label %.lr.ph140, label %._crit_edge141, !llvm.loop !21

._crit_edge141:                                   ; preds = %.lr.ph140, %110
  %127 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %128

128:                                              ; preds = %._crit_edge141, %107
  %129 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %130 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @k, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %131 = load i32, ptr @k, align 4, !tbaa !5
  %132 = icmp ne i32 %131, 0
  %133 = load i32, ptr @n, align 4
  %134 = icmp ne i32 %133, 0
  %or.cond = select i1 %132, i1 true, i1 %134
  %135 = load i32, ptr @m, align 4
  %136 = icmp ne i32 %135, 0
  %or.cond3 = select i1 %or.cond, i1 true, i1 %136
  br i1 %or.cond3, label %.critedge, label %._crit_edge144, !llvm.loop !22

._crit_edge144:                                   ; preds = %128, %0
  ret i32 0
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

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

; 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 #5 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)) #3

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

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

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


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