; LLVM IR from SanketSarmalkar/Numerical_Methods :: System_of_Equation/DirectMethod.ll (Z17back_substitutionPPdiii)

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

@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17back_substitutionPPdiii(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #3 {
  %5 = alloca ptr, align 8
  %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 [100 x i32], align 16
  %14 = alloca [100 x i32], align 16
  %15 = alloca double, align 8
  %16 = alloca [100 x double], align 16
  %17 = alloca [100 x [100 x double]], align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 800, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 80000, ptr %17) #5
  call void @llvm.memset.p0.i64(ptr align 16 %17, i8 0, i64 80000, i1 false)
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %50, %4
  %19 = load i32, ptr %9, align 4, !tbaa !9
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %22, label %53

22:                                               ; preds = %18
  %23 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %23, ptr %10, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %46, %22
  %25 = load i32, ptr %10, align 4, !tbaa !9
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %28, label %49

28:                                               ; preds = %24
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds ptr, ptr %29, i64 %31
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = load i32, ptr %10, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds double, ptr %33, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !11
  %38 = call double @llvm.fabs.f64(double %37)
  %39 = fcmp ogt double %38, 1.000000e-05
  br i1 %39, label %40, label %45

40:                                               ; preds = %28
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100 x i32], ptr %13, i64 0, i64 %43
  store i32 %41, ptr %44, align 4, !tbaa !9
  br label %49

45:                                               ; preds = %28
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %10, align 4, !tbaa !9
  br label %24, !llvm.loop !13

49:                                               ; preds = %40, %24
  br label %50

50:                                               ; preds = %49
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %9, align 4, !tbaa !9
  br label %18, !llvm.loop !15

53:                                               ; preds = %18
  store i32 0, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %79, %53
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %58, label %82

58:                                               ; preds = %54
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [100 x i32], ptr %13, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = icmp eq i32 %59, %63
  br i1 %64, label %65, label %68

65:                                               ; preds = %58
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %10, align 4, !tbaa !9
  br label %78

68:                                               ; preds = %58
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [100 x i32], ptr %14, i64 0, i64 %71
  store i32 %69, ptr %72, align 4, !tbaa !9
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [100 x double], ptr %16, i64 0, i64 %74
  store double 1.000000e+00, ptr %75, align 8, !tbaa !11
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %12, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %68, %65
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %9, align 4, !tbaa !9
  br label %54, !llvm.loop !16

82:                                               ; preds = %54
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %151, %82
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %87, label %154

87:                                               ; preds = %83
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = sub nsw i32 %88, 1
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = sub nsw i32 %89, %90
  store i32 %91, ptr %12, align 4, !tbaa !9
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds ptr, ptr %92, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = load i32, ptr %7, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %96, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !11
  store double %100, ptr %15, align 8, !tbaa !11
  %101 = load i32, ptr %12, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [100 x i32], ptr %13, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %10, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %127, %87
  %107 = load i32, ptr %10, align 4, !tbaa !9
  %108 = load i32, ptr %7, align 4, !tbaa !9
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %110, label %130

110:                                              ; preds = %106
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [100 x double], ptr %16, i64 0, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !11
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %115, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %119, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !11
  %124 = load double, ptr %15, align 8, !tbaa !11
  %125 = fneg double %114
  %126 = call double @llvm.fmuladd.f64(double %125, double %123, double %124)
  store double %126, ptr %15, align 8, !tbaa !11
  br label %127

127:                                              ; preds = %110
  %128 = load i32, ptr %10, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %10, align 4, !tbaa !9
  br label %106, !llvm.loop !17

130:                                              ; preds = %106
  %131 = load double, ptr %15, align 8, !tbaa !11
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = load i32, ptr %12, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds ptr, ptr %132, i64 %134
  %136 = load ptr, ptr %135, align 8, !tbaa !5
  %137 = load i32, ptr %12, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [100 x i32], ptr %13, i64 0, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %136, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !11
  %144 = fdiv double %131, %143
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [100 x i32], ptr %13, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [100 x double], ptr %16, i64 0, i64 %149
  store double %144, ptr %150, align 8, !tbaa !11
  br label %151

151:                                              ; preds = %130
  %152 = load i32, ptr %9, align 4, !tbaa !9
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %9, align 4, !tbaa !9
  br label %83, !llvm.loop !18

154:                                              ; preds = %83
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %171, %154
  %156 = load i32, ptr %9, align 4, !tbaa !9
  %157 = load i32, ptr %7, align 4, !tbaa !9
  %158 = load i32, ptr %8, align 4, !tbaa !9
  %159 = sub nsw i32 %157, %158
  %160 = icmp slt i32 %156, %159
  br i1 %160, label %161, label %174

161:                                              ; preds = %155
  %162 = load i32, ptr %9, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [100 x [100 x double]], ptr %17, i64 0, i64 %163
  %165 = load i32, ptr %9, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [100 x i32], ptr %14, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [100 x double], ptr %164, i64 0, i64 %169
  store double 1.000000e+00, ptr %170, align 8, !tbaa !11
  br label %171

171:                                              ; preds = %161
  %172 = load i32, ptr %9, align 4, !tbaa !9
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %9, align 4, !tbaa !9
  br label %155, !llvm.loop !19

174:                                              ; preds = %155
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %251, %174
  %176 = load i32, ptr %11, align 4, !tbaa !9
  %177 = load i32, ptr %7, align 4, !tbaa !9
  %178 = load i32, ptr %8, align 4, !tbaa !9
  %179 = sub nsw i32 %177, %178
  %180 = icmp slt i32 %176, %179
  br i1 %180, label %181, label %254

181:                                              ; preds = %175
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %247, %181
  %183 = load i32, ptr %9, align 4, !tbaa !9
  %184 = load i32, ptr %8, align 4, !tbaa !9
  %185 = icmp slt i32 %183, %184
  br i1 %185, label %186, label %250

186:                                              ; preds = %182
  %187 = load i32, ptr %8, align 4, !tbaa !9
  %188 = sub nsw i32 %187, 1
  %189 = load i32, ptr %9, align 4, !tbaa !9
  %190 = sub nsw i32 %188, %189
  store i32 %190, ptr %12, align 4, !tbaa !9
  store double 0.000000e+00, ptr %15, align 8, !tbaa !11
  %191 = load i32, ptr %12, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [100 x i32], ptr %13, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !9
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %10, align 4, !tbaa !9
  br label %196

196:                                              ; preds = %220, %186
  %197 = load i32, ptr %10, align 4, !tbaa !9
  %198 = load i32, ptr %7, align 4, !tbaa !9
  %199 = icmp slt i32 %197, %198
  br i1 %199, label %200, label %223

200:                                              ; preds = %196
  %201 = load i32, ptr %11, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [100 x [100 x double]], ptr %17, i64 0, i64 %202
  %204 = load i32, ptr %10, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [100 x double], ptr %203, i64 0, i64 %205
  %207 = load double, ptr %206, align 8, !tbaa !11
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = load i32, ptr %12, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds ptr, ptr %208, i64 %210
  %212 = load ptr, ptr %211, align 8, !tbaa !5
  %213 = load i32, ptr %10, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds double, ptr %212, i64 %214
  %216 = load double, ptr %215, align 8, !tbaa !11
  %217 = load double, ptr %15, align 8, !tbaa !11
  %218 = fneg double %207
  %219 = call double @llvm.fmuladd.f64(double %218, double %216, double %217)
  store double %219, ptr %15, align 8, !tbaa !11
  br label %220

220:                                              ; preds = %200
  %221 = load i32, ptr %10, align 4, !tbaa !9
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %10, align 4, !tbaa !9
  br label %196, !llvm.loop !20

223:                                              ; preds = %196
  %224 = load double, ptr %15, align 8, !tbaa !11
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = load i32, ptr %12, align 4, !tbaa !9
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds ptr, ptr %225, i64 %227
  %229 = load ptr, ptr %228, align 8, !tbaa !5
  %230 = load i32, ptr %12, align 4, !tbaa !9
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [100 x i32], ptr %13, i64 0, i64 %231
  %233 = load i32, ptr %232, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds double, ptr %229, i64 %234
  %236 = load double, ptr %235, align 8, !tbaa !11
  %237 = fdiv double %224, %236
  %238 = load i32, ptr %11, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [100 x [100 x double]], ptr %17, i64 0, i64 %239
  %241 = load i32, ptr %12, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [100 x i32], ptr %13, i64 0, i64 %242
  %244 = load i32, ptr %243, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [100 x double], ptr %240, i64 0, i64 %245
  store double %237, ptr %246, align 8, !tbaa !11
  br label %247

247:                                              ; preds = %223
  %248 = load i32, ptr %9, align 4, !tbaa !9
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %9, align 4, !tbaa !9
  br label %182, !llvm.loop !21

250:                                              ; preds = %182
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %11, align 4, !tbaa !9
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %11, align 4, !tbaa !9
  br label %175, !llvm.loop !22

254:                                              ; preds = %175
  %255 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  %256 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %257

257:                                              ; preds = %267, %254
  %258 = load i32, ptr %9, align 4, !tbaa !9
  %259 = load i32, ptr %7, align 4, !tbaa !9
  %260 = icmp slt i32 %258, %259
  br i1 %260, label %261, label %270

261:                                              ; preds = %257
  %262 = load i32, ptr %9, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [100 x double], ptr %16, i64 0, i64 %263
  %265 = load double, ptr %264, align 8, !tbaa !11
  %266 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef %265)
  br label %267

267:                                              ; preds = %261
  %268 = load i32, ptr %9, align 4, !tbaa !9
  %269 = add nsw i32 %268, 1
  store i32 %269, ptr %9, align 4, !tbaa !9
  br label %257, !llvm.loop !23

270:                                              ; preds = %257
  %271 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %272

272:                                              ; preds = %300, %270
  %273 = load i32, ptr %11, align 4, !tbaa !9
  %274 = load i32, ptr %7, align 4, !tbaa !9
  %275 = load i32, ptr %8, align 4, !tbaa !9
  %276 = sub nsw i32 %274, %275
  %277 = icmp slt i32 %273, %276
  br i1 %277, label %278, label %303

278:                                              ; preds = %272
  %279 = load i32, ptr %11, align 4, !tbaa !9
  %280 = add nsw i32 %279, 1
  %281 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %280)
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %295, %278
  %283 = load i32, ptr %9, align 4, !tbaa !9
  %284 = load i32, ptr %7, align 4, !tbaa !9
  %285 = icmp slt i32 %283, %284
  br i1 %285, label %286, label %298

286:                                              ; preds = %282
  %287 = load i32, ptr %11, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [100 x [100 x double]], ptr %17, i64 0, i64 %288
  %290 = load i32, ptr %9, align 4, !tbaa !9
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [100 x double], ptr %289, i64 0, i64 %291
  %293 = load double, ptr %292, align 8, !tbaa !11
  %294 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef %293)
  br label %295

295:                                              ; preds = %286
  %296 = load i32, ptr %9, align 4, !tbaa !9
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %9, align 4, !tbaa !9
  br label %282, !llvm.loop !24

298:                                              ; preds = %282
  %299 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  br label %300

300:                                              ; preds = %298
  %301 = load i32, ptr %11, align 4, !tbaa !9
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %11, align 4, !tbaa !9
  br label %272, !llvm.loop !25

303:                                              ; preds = %272
  call void @llvm.lifetime.end.p0(i64 80000, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

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

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


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

@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress nofree nounwind uwtable
define dso_local void @_Z17back_substitutionPPdiii(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = alloca [100 x i32], align 16
  %6 = alloca [100 x i32], align 16
  %7 = alloca [100 x double], align 16
  %8 = alloca [100 x [100 x double]], align 16
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 80000, ptr nonnull %8) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %8, i8 0, i64 80000, i1 false)
  %9 = icmp slt i32 %3, 1
  br i1 %9, label %.preheader105, label %.preheader106.preheader

.preheader106.preheader:                          ; preds = %4
  %10 = sext i32 %2 to i64
  %wide.trip.count157 = zext nneg i32 %3 to i64
  %wide.trip.count = zext i32 %2 to i64
  br label %.preheader106

.preheader106:                                    ; preds = %.preheader106.preheader, %.loopexit
  %indvars.iv = phi i64 [ 0, %.preheader106.preheader ], [ %indvars.iv.next, %.loopexit ]
  %11 = icmp slt i64 %indvars.iv, %10
  br i1 %11, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader106
  %12 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  br label %15

.preheader105:                                    ; preds = %.loopexit, %4
  %14 = icmp sgt i32 %2, 0
  br i1 %14, label %.lr.ph115.preheader, label %.preheader104

.lr.ph115.preheader:                              ; preds = %.preheader105
  %wide.trip.count162 = zext nneg i32 %2 to i64
  br label %.lr.ph115

15:                                               ; preds = %.lr.ph, %23
  %indvars.iv153 = phi i64 [ %indvars.iv, %.lr.ph ], [ %indvars.iv.next154, %23 ]
  %16 = getelementptr inbounds double, ptr %13, i64 %indvars.iv153
  %17 = load double, ptr %16, align 8, !tbaa !9
  %18 = tail call double @llvm.fabs.f64(double %17)
  %19 = fcmp ogt double %18, 1.000000e-05
  br i1 %19, label %20, label %23

20:                                               ; preds = %15
  %21 = trunc nuw nsw i64 %indvars.iv153 to i32
  %22 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %indvars.iv
  store i32 %21, ptr %22, align 4, !tbaa !11
  br label %.loopexit

23:                                               ; preds = %15
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next154, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %15, !llvm.loop !13

.loopexit:                                        ; preds = %23, %.preheader106, %20
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond158.not = icmp eq i64 %indvars.iv.next, %wide.trip.count157
  br i1 %exitcond158.not, label %.preheader105, label %.preheader106, !llvm.loop !15

.preheader104:                                    ; preds = %40, %.preheader105
  br i1 %9, label %.preheader103, label %.lr.ph121

.lr.ph121:                                        ; preds = %.preheader104
  %24 = sext i32 %2 to i64
  %25 = zext nneg i32 %3 to i64
  %wide.trip.count171 = zext nneg i32 %3 to i64
  %26 = add i32 %2, -2
  br label %44

.lr.ph115:                                        ; preds = %.lr.ph115.preheader, %40
  %indvars.iv159 = phi i64 [ 0, %.lr.ph115.preheader ], [ %indvars.iv.next160, %40 ]
  %.088114 = phi i32 [ 0, %.lr.ph115.preheader ], [ %.189, %40 ]
  %.193113 = phi i32 [ 0, %.lr.ph115.preheader ], [ %.2, %40 ]
  %27 = sext i32 %.193113 to i64
  %28 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = zext i32 %29 to i64
  %31 = icmp eq i64 %indvars.iv159, %30
  br i1 %31, label %32, label %34

32:                                               ; preds = %.lr.ph115
  %33 = add nsw i32 %.193113, 1
  br label %40

34:                                               ; preds = %.lr.ph115
  %35 = sext i32 %.088114 to i64
  %36 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %35
  %37 = trunc nuw nsw i64 %indvars.iv159 to i32
  store i32 %37, ptr %36, align 4, !tbaa !11
  %38 = getelementptr inbounds [100 x double], ptr %7, i64 0, i64 %indvars.iv159
  store double 1.000000e+00, ptr %38, align 8, !tbaa !9
  %39 = add nsw i32 %.088114, 1
  br label %40

40:                                               ; preds = %32, %34
  %.2 = phi i32 [ %33, %32 ], [ %.193113, %34 ]
  %.189 = phi i32 [ %.088114, %32 ], [ %39, %34 ]
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %exitcond163.not = icmp eq i64 %indvars.iv.next160, %wide.trip.count162
  br i1 %exitcond163.not, label %.preheader104, label %.lr.ph115, !llvm.loop !16

.preheader103:                                    ; preds = %._crit_edge, %.preheader104
  %41 = sub nsw i32 %2, %3
  %42 = icmp slt i32 %41, 1
  br i1 %42, label %._crit_edge136, label %.lr.ph123.preheader

.lr.ph123.preheader:                              ; preds = %.preheader103
  %wide.trip.count176 = zext nneg i32 %41 to i64
  %xtraiter222 = and i64 %wide.trip.count176, 3
  %43 = icmp ult i32 %41, 4
  br i1 %43, label %.preheader102.unr-lcssa, label %.lr.ph123.preheader.new

.lr.ph123.preheader.new:                          ; preds = %.lr.ph123.preheader
  %unroll_iter = and i64 %wide.trip.count176, 2147483644
  br label %.lr.ph123

44:                                               ; preds = %.lr.ph121, %._crit_edge
  %indvars.iv168 = phi i64 [ 0, %.lr.ph121 ], [ %indvars.iv.next169, %._crit_edge ]
  %45 = xor i64 %indvars.iv168, -1
  %46 = add nsw i64 %45, %25
  %47 = getelementptr inbounds ptr, ptr %0, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = getelementptr inbounds double, ptr %48, i64 %24
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %46
  %52 = load i32, ptr %51, align 4, !tbaa !11
  %.3116 = add nsw i32 %52, 1
  %53 = icmp slt i32 %.3116, %2
  %54 = sext i32 %52 to i64
  br i1 %53, label %.lr.ph119.preheader, label %._crit_edge

.lr.ph119.preheader:                              ; preds = %44
  %55 = add nsw i64 %54, 1
  %56 = xor i32 %52, -1
  %57 = add i32 %56, %2
  %58 = sub i32 %26, %52
  %xtraiter = and i32 %57, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph119.prol.loopexit, label %.lr.ph119.prol

.lr.ph119.prol:                                   ; preds = %.lr.ph119.preheader, %.lr.ph119.prol
  %indvars.iv164.prol = phi i64 [ %indvars.iv.next165.prol, %.lr.ph119.prol ], [ %55, %.lr.ph119.preheader ]
  %.0117.prol = phi double [ %64, %.lr.ph119.prol ], [ %50, %.lr.ph119.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph119.prol ], [ 0, %.lr.ph119.preheader ]
  %59 = getelementptr inbounds [100 x double], ptr %7, i64 0, i64 %indvars.iv164.prol
  %60 = load double, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds double, ptr %48, i64 %indvars.iv164.prol
  %62 = load double, ptr %61, align 8, !tbaa !9
  %63 = fneg double %60
  %64 = tail call double @llvm.fmuladd.f64(double %63, double %62, double %.0117.prol)
  %indvars.iv.next165.prol = add nsw i64 %indvars.iv164.prol, 1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph119.prol.loopexit, label %.lr.ph119.prol, !llvm.loop !17

.lr.ph119.prol.loopexit:                          ; preds = %.lr.ph119.prol, %.lr.ph119.preheader
  %.lcssa220.unr = phi double [ poison, %.lr.ph119.preheader ], [ %64, %.lr.ph119.prol ]
  %indvars.iv164.unr = phi i64 [ %55, %.lr.ph119.preheader ], [ %indvars.iv.next165.prol, %.lr.ph119.prol ]
  %.0117.unr = phi double [ %50, %.lr.ph119.preheader ], [ %64, %.lr.ph119.prol ]
  %65 = icmp ult i32 %58, 3
  br i1 %65, label %._crit_edge, label %.lr.ph119

.lr.ph119:                                        ; preds = %.lr.ph119.prol.loopexit, %.lr.ph119
  %indvars.iv164 = phi i64 [ %indvars.iv.next165.3, %.lr.ph119 ], [ %indvars.iv164.unr, %.lr.ph119.prol.loopexit ]
  %.0117 = phi double [ %89, %.lr.ph119 ], [ %.0117.unr, %.lr.ph119.prol.loopexit ]
  %66 = getelementptr inbounds [100 x double], ptr %7, i64 0, i64 %indvars.iv164
  %67 = load double, ptr %66, align 8, !tbaa !9
  %68 = getelementptr inbounds double, ptr %48, i64 %indvars.iv164
  %69 = load double, ptr %68, align 8, !tbaa !9
  %70 = fneg double %67
  %71 = tail call double @llvm.fmuladd.f64(double %70, double %69, double %.0117)
  %indvars.iv.next165 = add nsw i64 %indvars.iv164, 1
  %72 = getelementptr inbounds [100 x double], ptr %7, i64 0, i64 %indvars.iv.next165
  %73 = load double, ptr %72, align 8, !tbaa !9
  %74 = getelementptr inbounds double, ptr %48, i64 %indvars.iv.next165
  %75 = load double, ptr %74, align 8, !tbaa !9
  %76 = fneg double %73
  %77 = tail call double @llvm.fmuladd.f64(double %76, double %75, double %71)
  %indvars.iv.next165.1 = add nsw i64 %indvars.iv164, 2
  %78 = getelementptr inbounds [100 x double], ptr %7, i64 0, i64 %indvars.iv.next165.1
  %79 = load double, ptr %78, align 8, !tbaa !9
  %80 = getelementptr inbounds double, ptr %48, i64 %indvars.iv.next165.1
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = fneg double %79
  %83 = tail call double @llvm.fmuladd.f64(double %82, double %81, double %77)
  %indvars.iv.next165.2 = add nsw i64 %indvars.iv164, 3
  %84 = getelementptr inbounds [100 x double], ptr %7, i64 0, i64 %indvars.iv.next165.2
  %85 = load double, ptr %84, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %48, i64 %indvars.iv.next165.2
  %87 = load double, ptr %86, align 8, !tbaa !9
  %88 = fneg double %85
  %89 = tail call double @llvm.fmuladd.f64(double %88, double %87, double %83)
  %indvars.iv.next165.3 = add nsw i64 %indvars.iv164, 4
  %lftr.wideiv.3 = trunc i64 %indvars.iv.next165.3 to i32
  %exitcond167.not.3 = icmp eq i32 %lftr.wideiv.3, %2
  br i1 %exitcond167.not.3, label %._crit_edge, label %.lr.ph119, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph119.prol.loopexit, %.lr.ph119, %44
  %.0.lcssa = phi double [ %50, %44 ], [ %.lcssa220.unr, %.lr.ph119.prol.loopexit ], [ %89, %.lr.ph119 ]
  %90 = getelementptr inbounds double, ptr %48, i64 %54
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = fdiv double %.0.lcssa, %91
  %93 = getelementptr inbounds [100 x double], ptr %7, i64 0, i64 %54
  store double %92, ptr %93, align 8, !tbaa !9
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %exitcond172.not = icmp eq i64 %indvars.iv.next169, %wide.trip.count171
  br i1 %exitcond172.not, label %.preheader103, label %44, !llvm.loop !20

.preheader102.unr-lcssa:                          ; preds = %.lr.ph123, %.lr.ph123.preheader
  %indvars.iv173.unr = phi i64 [ 0, %.lr.ph123.preheader ], [ %indvars.iv.next174.3, %.lr.ph123 ]
  %lcmp.mod223.not = icmp eq i64 %xtraiter222, 0
  br i1 %lcmp.mod223.not, label %.preheader102, label %.lr.ph123.epil

.lr.ph123.epil:                                   ; preds = %.preheader102.unr-lcssa, %.lr.ph123.epil
  %indvars.iv173.epil = phi i64 [ %indvars.iv.next174.epil, %.lr.ph123.epil ], [ %indvars.iv173.unr, %.preheader102.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph123.epil ], [ 0, %.preheader102.unr-lcssa ]
  %94 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %indvars.iv173.epil
  %95 = load i32, ptr %94, align 4, !tbaa !11
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [100 x [100 x double]], ptr %8, i64 0, i64 %indvars.iv173.epil, i64 %96
  store double 1.000000e+00, ptr %97, align 8, !tbaa !9
  %indvars.iv.next174.epil = add nuw nsw i64 %indvars.iv173.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter222
  br i1 %epil.iter.cmp.not, label %.preheader102, label %.lr.ph123.epil, !llvm.loop !21

.preheader102:                                    ; preds = %.lr.ph123.epil, %.preheader102.unr-lcssa
  %brmerge = or i1 %42, %9
  br i1 %brmerge, label %._crit_edge136, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %.preheader102
  %98 = zext nneg i32 %3 to i64
  %wide.trip.count191 = zext nneg i32 %41 to i64
  %wide.trip.count186 = zext nneg i32 %3 to i64
  %99 = add i32 %2, -2
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge134.us
  %indvars.iv188 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next189, %._crit_edge134.us ]
  br label %100

100:                                              ; preds = %.preheader.us, %._crit_edge130.us
  %indvars.iv183 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next184, %._crit_edge130.us ]
  %101 = xor i64 %indvars.iv183, -1
  %102 = add nsw i64 %101, %98
  %103 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !11
  %.4125.us = add nsw i32 %104, 1
  %105 = icmp slt i32 %.4125.us, %2
  %106 = getelementptr inbounds ptr, ptr %0, i64 %102
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = sext i32 %104 to i64
  br i1 %105, label %.lr.ph129.us, label %._crit_edge130.us

._crit_edge130.us:                                ; preds = %.prol.loopexit, %.lr.ph129.us.new, %100
  %.1.lcssa.us = phi double [ 0.000000e+00, %100 ], [ %.lcssa.unr, %.prol.loopexit ], [ %124, %.lr.ph129.us.new ]
  %109 = getelementptr inbounds double, ptr %107, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !9
  %111 = fdiv double %.1.lcssa.us, %110
  %112 = getelementptr inbounds [100 x [100 x double]], ptr %8, i64 0, i64 %indvars.iv188, i64 %108
  store double %111, ptr %112, align 8, !tbaa !9
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %exitcond187.not = icmp eq i64 %indvars.iv.next184, %wide.trip.count186
  br i1 %exitcond187.not, label %._crit_edge134.us, label %100, !llvm.loop !22

.lr.ph129.us.new:                                 ; preds = %.prol.loopexit, %.lr.ph129.us.new
  %indvars.iv178 = phi i64 [ %indvars.iv.next179.1, %.lr.ph129.us.new ], [ %indvars.iv178.unr, %.prol.loopexit ]
  %.1126.us = phi double [ %124, %.lr.ph129.us.new ], [ %.1126.us.unr, %.prol.loopexit ]
  %113 = getelementptr inbounds [100 x [100 x double]], ptr %8, i64 0, i64 %indvars.iv188, i64 %indvars.iv178
  %114 = load double, ptr %113, align 8, !tbaa !9
  %115 = getelementptr inbounds double, ptr %107, i64 %indvars.iv178
  %116 = load double, ptr %115, align 8, !tbaa !9
  %117 = fneg double %114
  %118 = tail call double @llvm.fmuladd.f64(double %117, double %116, double %.1126.us)
  %indvars.iv.next179 = add nsw i64 %indvars.iv178, 1
  %119 = getelementptr inbounds [100 x [100 x double]], ptr %8, i64 0, i64 %indvars.iv188, i64 %indvars.iv.next179
  %120 = load double, ptr %119, align 8, !tbaa !9
  %121 = getelementptr inbounds double, ptr %107, i64 %indvars.iv.next179
  %122 = load double, ptr %121, align 8, !tbaa !9
  %123 = fneg double %120
  %124 = tail call double @llvm.fmuladd.f64(double %123, double %122, double %118)
  %indvars.iv.next179.1 = add nsw i64 %indvars.iv178, 2
  %lftr.wideiv181.1 = trunc i64 %indvars.iv.next179.1 to i32
  %exitcond182.not.1 = icmp eq i32 %lftr.wideiv181.1, %2
  br i1 %exitcond182.not.1, label %._crit_edge130.us, label %.lr.ph129.us.new, !llvm.loop !23

.lr.ph129.us:                                     ; preds = %100
  %125 = add nsw i64 %108, 1
  %126 = sub i32 %104, %2
  %127 = and i32 %126, 1
  %lcmp.mod225.not.not = icmp eq i32 %127, 0
  br i1 %lcmp.mod225.not.not, label %.prol.loopexit.unr-lcssa, label %.prol.loopexit

.prol.loopexit.unr-lcssa:                         ; preds = %.lr.ph129.us
  %128 = getelementptr inbounds [100 x [100 x double]], ptr %8, i64 0, i64 %indvars.iv188, i64 %125
  %129 = load double, ptr %128, align 8, !tbaa !9
  %130 = getelementptr inbounds double, ptr %107, i64 %125
  %131 = load double, ptr %130, align 8, !tbaa !9
  %132 = fneg double %129
  %133 = tail call double @llvm.fmuladd.f64(double %132, double %131, double 0.000000e+00)
  %indvars.iv.next179.prol = add nsw i64 %108, 2
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph129.us
  %.lcssa.unr = phi double [ poison, %.lr.ph129.us ], [ %133, %.prol.loopexit.unr-lcssa ]
  %indvars.iv178.unr = phi i64 [ %125, %.lr.ph129.us ], [ %indvars.iv.next179.prol, %.prol.loopexit.unr-lcssa ]
  %.1126.us.unr = phi double [ 0.000000e+00, %.lr.ph129.us ], [ %133, %.prol.loopexit.unr-lcssa ]
  %134 = icmp eq i32 %99, %104
  br i1 %134, label %._crit_edge130.us, label %.lr.ph129.us.new

._crit_edge134.us:                                ; preds = %._crit_edge130.us
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %exitcond192.not = icmp eq i64 %indvars.iv.next189, %wide.trip.count191
  br i1 %exitcond192.not, label %._crit_edge136, label %.preheader.us, !llvm.loop !24

.lr.ph123:                                        ; preds = %.lr.ph123, %.lr.ph123.preheader.new
  %indvars.iv173 = phi i64 [ 0, %.lr.ph123.preheader.new ], [ %indvars.iv.next174.3, %.lr.ph123 ]
  %niter = phi i64 [ 0, %.lr.ph123.preheader.new ], [ %niter.next.3, %.lr.ph123 ]
  %135 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %indvars.iv173
  %136 = load i32, ptr %135, align 16, !tbaa !11
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [100 x [100 x double]], ptr %8, i64 0, i64 %indvars.iv173, i64 %137
  store double 1.000000e+00, ptr %138, align 8, !tbaa !9
  %indvars.iv.next174 = or disjoint i64 %indvars.iv173, 1
  %139 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %indvars.iv.next174
  %140 = load i32, ptr %139, align 4, !tbaa !11
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [100 x [100 x double]], ptr %8, i64 0, i64 %indvars.iv.next174, i64 %141
  store double 1.000000e+00, ptr %142, align 8, !tbaa !9
  %indvars.iv.next174.1 = or disjoint i64 %indvars.iv173, 2
  %143 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %indvars.iv.next174.1
  %144 = load i32, ptr %143, align 8, !tbaa !11
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [100 x [100 x double]], ptr %8, i64 0, i64 %indvars.iv.next174.1, i64 %145
  store double 1.000000e+00, ptr %146, align 8, !tbaa !9
  %indvars.iv.next174.2 = or disjoint i64 %indvars.iv173, 3
  %147 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %indvars.iv.next174.2
  %148 = load i32, ptr %147, align 4, !tbaa !11
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [100 x [100 x double]], ptr %8, i64 0, i64 %indvars.iv.next174.2, i64 %149
  store double 1.000000e+00, ptr %150, align 8, !tbaa !9
  %indvars.iv.next174.3 = add nuw nsw i64 %indvars.iv173, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader102.unr-lcssa, label %.lr.ph123, !llvm.loop !25

._crit_edge136:                                   ; preds = %._crit_edge134.us, %.preheader102, %.preheader103
  %151 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  %152 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  br i1 %14, label %.lr.ph139.preheader, label %._crit_edge140.thread

.lr.ph139.preheader:                              ; preds = %._crit_edge136
  %wide.trip.count196 = zext nneg i32 %2 to i64
  br label %.lr.ph139

.lr.ph139:                                        ; preds = %.lr.ph139.preheader, %.lr.ph139
  %indvars.iv193 = phi i64 [ 0, %.lr.ph139.preheader ], [ %indvars.iv.next194, %.lr.ph139 ]
  %153 = getelementptr inbounds [100 x double], ptr %7, i64 0, i64 %indvars.iv193
  %154 = load double, ptr %153, align 8, !tbaa !9
  %155 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %154)
  %indvars.iv.next194 = add nuw nsw i64 %indvars.iv193, 1
  %exitcond197.not = icmp eq i64 %indvars.iv.next194, %wide.trip.count196
  br i1 %exitcond197.not, label %._crit_edge140, label %.lr.ph139, !llvm.loop !26

._crit_edge140:                                   ; preds = %.lr.ph139
  %156 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  br i1 %42, label %._crit_edge148, label %.lr.ph147

._crit_edge140.thread:                            ; preds = %._crit_edge136
  %157 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  br i1 %42, label %._crit_edge148, label %.lr.ph147.split.preheader

.lr.ph147:                                        ; preds = %._crit_edge140
  br i1 %14, label %.lr.ph143.us.preheader, label %.lr.ph147.split.preheader

.lr.ph147.split.preheader:                        ; preds = %._crit_edge140.thread, %.lr.ph147
  br label %.lr.ph147.split

.lr.ph143.us.preheader:                           ; preds = %.lr.ph147
  %wide.trip.count207 = zext nneg i32 %41 to i64
  %wide.trip.count202 = zext nneg i32 %2 to i64
  br label %.lr.ph143.us

.lr.ph143.us:                                     ; preds = %.lr.ph143.us.preheader, %._crit_edge144.us
  %indvars.iv204 = phi i64 [ 0, %.lr.ph143.us.preheader ], [ %indvars.iv.next205, %._crit_edge144.us ]
  %indvars.iv.next205 = add nuw nsw i64 %indvars.iv204, 1
  %158 = trunc nuw nsw i64 %indvars.iv.next205 to i32
  %159 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, i32 noundef %158)
  br label %160

160:                                              ; preds = %.lr.ph143.us, %160
  %indvars.iv199 = phi i64 [ 0, %.lr.ph143.us ], [ %indvars.iv.next200, %160 ]
  %161 = getelementptr inbounds [100 x [100 x double]], ptr %8, i64 0, i64 %indvars.iv204, i64 %indvars.iv199
  %162 = load double, ptr %161, align 8, !tbaa !9
  %163 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %162)
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %exitcond203.not = icmp eq i64 %indvars.iv.next200, %wide.trip.count202
  br i1 %exitcond203.not, label %._crit_edge144.us, label %160, !llvm.loop !27

._crit_edge144.us:                                ; preds = %160
  %164 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %exitcond208.not = icmp eq i64 %indvars.iv.next205, %wide.trip.count207
  br i1 %exitcond208.not, label %._crit_edge148, label %.lr.ph143.us, !llvm.loop !28

.lr.ph147.split:                                  ; preds = %.lr.ph147.split.preheader, %.lr.ph147.split
  %.191145 = phi i32 [ %165, %.lr.ph147.split ], [ 0, %.lr.ph147.split.preheader ]
  %165 = add nuw nsw i32 %.191145, 1
  %166 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, i32 noundef %165)
  %167 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %exitcond198.not = icmp eq i32 %165, %41
  br i1 %exitcond198.not, label %._crit_edge148, label %.lr.ph147.split, !llvm.loop !28

._crit_edge148:                                   ; preds = %.lr.ph147.split, %._crit_edge144.us, %._crit_edge140.thread, %._crit_edge140
  call void @llvm.lifetime.end.p0(i64 80000, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %5) #5
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress nofree 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}


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