; LLVM IR from 0r-gh0/NUMERICAL_ANALYSIS :: CODES (G_ELIM)

; 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 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [10 x double], align 16
  %8 = alloca [20 x [20 x double]], align 16
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 3200, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %6)
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %50, %0
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = icmp sle i32 %25, %26
  br i1 %27, label %28, label %53

28:                                               ; preds = %24
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %45, %28
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  %33 = icmp sle i32 %30, %32
  br i1 %33, label %34, label %48

34:                                               ; preds = %29
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %35, i32 noundef %36)
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %39
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [20 x double], ptr %40, i64 0, i64 %42
  %44 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %43)
  br label %45

45:                                               ; preds = %34
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %3, align 4, !tbaa !5
  br label %29, !llvm.loop !9

48:                                               ; preds = %29
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %50

50:                                               ; preds = %48
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %2, align 4, !tbaa !5
  br label %24, !llvm.loop !11

53:                                               ; preds = %24
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %79, %53
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = icmp sle i32 %56, %57
  br i1 %58, label %59, label %82

59:                                               ; preds = %55
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %74, %59
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  %64 = icmp sle i32 %61, %63
  br i1 %64, label %65, label %77

65:                                               ; preds = %60
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %67
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [20 x double], ptr %68, i64 0, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !12
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %72)
  br label %74

74:                                               ; preds = %65
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %3, align 4, !tbaa !5
  br label %60, !llvm.loop !14

77:                                               ; preds = %60
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %79

79:                                               ; preds = %77
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %2, align 4, !tbaa !5
  br label %55, !llvm.loop !15

82:                                               ; preds = %55
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %328, %82
  %84 = load i32, ptr %3, align 4, !tbaa !5
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = icmp sle i32 %84, %85
  br i1 %86, label %87, label %331

87:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store double 0.000000e+00, ptr %12, align 8, !tbaa !12
  %88 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %88, ptr %10, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %114, %87
  %90 = load i32, ptr %10, align 4, !tbaa !5
  %91 = load i32, ptr %6, align 4, !tbaa !5
  %92 = icmp sle i32 %90, %91
  br i1 %92, label %93, label %117

93:                                               ; preds = %89
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %95
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [20 x double], ptr %96, i64 0, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !12
  %101 = call double @llvm.fabs.f64(double %100)
  %102 = load double, ptr %12, align 8, !tbaa !12
  %103 = fcmp ogt double %101, %102
  br i1 %103, label %104, label %113

104:                                              ; preds = %93
  %105 = load i32, ptr %10, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %106
  %108 = load i32, ptr %3, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [20 x double], ptr %107, i64 0, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !12
  store double %111, ptr %12, align 8, !tbaa !12
  %112 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %112, ptr %11, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %104, %93
  br label %114

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

117:                                              ; preds = %89
  %118 = load i32, ptr %11, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %119
  %121 = load i32, ptr %3, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [20 x double], ptr %120, i64 0, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !12
  %125 = fcmp ogt double %124, 0.000000e+00
  br i1 %125, label %126, label %164

126:                                              ; preds = %117
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %160, %126
  %128 = load i32, ptr %5, align 4, !tbaa !5
  %129 = load i32, ptr %6, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  %131 = icmp sle i32 %128, %130
  br i1 %131, label %132, label %163

132:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %133 = load i32, ptr %11, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %134
  %136 = load i32, ptr %5, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [20 x double], ptr %135, i64 0, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !12
  store double %139, ptr %13, align 8, !tbaa !12
  %140 = load i32, ptr %3, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %141
  %143 = load i32, ptr %5, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [20 x double], ptr %142, i64 0, i64 %144
  %146 = load double, ptr %145, align 8, !tbaa !12
  %147 = load i32, ptr %11, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %148
  %150 = load i32, ptr %5, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [20 x double], ptr %149, i64 0, i64 %151
  store double %146, ptr %152, align 8, !tbaa !12
  %153 = load double, ptr %13, align 8, !tbaa !12
  %154 = load i32, ptr %3, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %155
  %157 = load i32, ptr %5, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [20 x double], ptr %156, i64 0, i64 %158
  store double %153, ptr %159, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %160

160:                                              ; preds = %132
  %161 = load i32, ptr %5, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %5, align 4, !tbaa !5
  br label %127, !llvm.loop !17

163:                                              ; preds = %127
  br label %203

164:                                              ; preds = %117
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %199, %164
  %166 = load i32, ptr %5, align 4, !tbaa !5
  %167 = load i32, ptr %6, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  %169 = icmp sle i32 %166, %168
  br i1 %169, label %170, label %202

170:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %171 = load i32, ptr %11, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %172
  %174 = load i32, ptr %5, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [20 x double], ptr %173, i64 0, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !12
  store double %177, ptr %14, align 8, !tbaa !12
  %178 = load i32, ptr %3, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %179
  %181 = load i32, ptr %5, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [20 x double], ptr %180, i64 0, i64 %182
  %184 = load double, ptr %183, align 8, !tbaa !12
  %185 = load i32, ptr %11, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %186
  %188 = load i32, ptr %5, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [20 x double], ptr %187, i64 0, i64 %189
  store double %184, ptr %190, align 8, !tbaa !12
  %191 = load double, ptr %14, align 8, !tbaa !12
  %192 = fmul double -1.000000e+00, %191
  %193 = load i32, ptr %3, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %194
  %196 = load i32, ptr %5, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [20 x double], ptr %195, i64 0, i64 %197
  store double %192, ptr %198, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %199

199:                                              ; preds = %170
  %200 = load i32, ptr %5, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %5, align 4, !tbaa !5
  br label %165, !llvm.loop !18

202:                                              ; preds = %165
  br label %203

203:                                              ; preds = %202, %163
  %204 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %205

205:                                              ; preds = %231, %203
  %206 = load i32, ptr %15, align 4, !tbaa !5
  %207 = load i32, ptr %6, align 4, !tbaa !5
  %208 = icmp sle i32 %206, %207
  br i1 %208, label %210, label %209

209:                                              ; preds = %205
  store i32 26, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %234

210:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %211

211:                                              ; preds = %226, %210
  %212 = load i32, ptr %17, align 4, !tbaa !5
  %213 = load i32, ptr %6, align 4, !tbaa !5
  %214 = add nsw i32 %213, 1
  %215 = icmp sle i32 %212, %214
  br i1 %215, label %217, label %216

216:                                              ; preds = %211
  store i32 29, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %229

217:                                              ; preds = %211
  %218 = load i32, ptr %15, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %219
  %221 = load i32, ptr %17, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [20 x double], ptr %220, i64 0, i64 %222
  %224 = load double, ptr %223, align 8, !tbaa !12
  %225 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %224)
  br label %226

226:                                              ; preds = %217
  %227 = load i32, ptr %17, align 4, !tbaa !5
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %17, align 4, !tbaa !5
  br label %211, !llvm.loop !19

229:                                              ; preds = %216
  %230 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %231

231:                                              ; preds = %229
  %232 = load i32, ptr %15, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %15, align 4, !tbaa !5
  br label %205, !llvm.loop !20

234:                                              ; preds = %209
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %235

235:                                              ; preds = %293, %234
  %236 = load i32, ptr %2, align 4, !tbaa !5
  %237 = load i32, ptr %6, align 4, !tbaa !5
  %238 = icmp sle i32 %236, %237
  br i1 %238, label %239, label %296

239:                                              ; preds = %235
  %240 = load i32, ptr %2, align 4, !tbaa !5
  %241 = load i32, ptr %3, align 4, !tbaa !5
  %242 = icmp sgt i32 %240, %241
  br i1 %242, label %243, label %292

243:                                              ; preds = %239
  %244 = load i32, ptr %2, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %245
  %247 = load i32, ptr %3, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [20 x double], ptr %246, i64 0, i64 %248
  %250 = load double, ptr %249, align 8, !tbaa !12
  %251 = load i32, ptr %3, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %252
  %254 = load i32, ptr %3, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [20 x double], ptr %253, i64 0, i64 %255
  %257 = load double, ptr %256, align 8, !tbaa !12
  %258 = fdiv double %250, %257
  store double %258, ptr %9, align 8, !tbaa !12
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %259

259:                                              ; preds = %288, %243
  %260 = load i32, ptr %4, align 4, !tbaa !5
  %261 = load i32, ptr %6, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  %263 = icmp sle i32 %260, %262
  br i1 %263, label %264, label %291

264:                                              ; preds = %259
  %265 = load i32, ptr %2, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %266
  %268 = load i32, ptr %4, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [20 x double], ptr %267, i64 0, i64 %269
  %271 = load double, ptr %270, align 8, !tbaa !12
  %272 = load double, ptr %9, align 8, !tbaa !12
  %273 = load i32, ptr %3, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %274
  %276 = load i32, ptr %4, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [20 x double], ptr %275, i64 0, i64 %277
  %279 = load double, ptr %278, align 8, !tbaa !12
  %280 = fneg double %272
  %281 = call double @llvm.fmuladd.f64(double %280, double %279, double %271)
  %282 = load i32, ptr %2, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %283
  %285 = load i32, ptr %4, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [20 x double], ptr %284, i64 0, i64 %286
  store double %281, ptr %287, align 8, !tbaa !12
  br label %288

288:                                              ; preds = %264
  %289 = load i32, ptr %4, align 4, !tbaa !5
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %4, align 4, !tbaa !5
  br label %259, !llvm.loop !21

291:                                              ; preds = %259
  br label %292

292:                                              ; preds = %291, %239
  br label %293

293:                                              ; preds = %292
  %294 = load i32, ptr %2, align 4, !tbaa !5
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr %2, align 4, !tbaa !5
  br label %235, !llvm.loop !22

296:                                              ; preds = %235
  %297 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %298

298:                                              ; preds = %324, %296
  %299 = load i32, ptr %18, align 4, !tbaa !5
  %300 = load i32, ptr %6, align 4, !tbaa !5
  %301 = icmp sle i32 %299, %300
  br i1 %301, label %303, label %302

302:                                              ; preds = %298
  store i32 38, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %327

303:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %304

304:                                              ; preds = %319, %303
  %305 = load i32, ptr %19, align 4, !tbaa !5
  %306 = load i32, ptr %6, align 4, !tbaa !5
  %307 = add nsw i32 %306, 1
  %308 = icmp sle i32 %305, %307
  br i1 %308, label %310, label %309

309:                                              ; preds = %304
  store i32 41, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %322

310:                                              ; preds = %304
  %311 = load i32, ptr %18, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %312
  %314 = load i32, ptr %19, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [20 x double], ptr %313, i64 0, i64 %315
  %317 = load double, ptr %316, align 8, !tbaa !12
  %318 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %317)
  br label %319

319:                                              ; preds = %310
  %320 = load i32, ptr %19, align 4, !tbaa !5
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %19, align 4, !tbaa !5
  br label %304, !llvm.loop !23

322:                                              ; preds = %309
  %323 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %324

324:                                              ; preds = %322
  %325 = load i32, ptr %18, align 4, !tbaa !5
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr %18, align 4, !tbaa !5
  br label %298, !llvm.loop !24

327:                                              ; preds = %302
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %328

328:                                              ; preds = %327
  %329 = load i32, ptr %3, align 4, !tbaa !5
  %330 = add nsw i32 %329, 1
  store i32 %330, ptr %3, align 4, !tbaa !5
  br label %83, !llvm.loop !25

331:                                              ; preds = %83
  %332 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %333 = load i32, ptr %6, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %334
  %336 = load i32, ptr %6, align 4, !tbaa !5
  %337 = add nsw i32 %336, 1
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds [20 x double], ptr %335, i64 0, i64 %338
  %340 = load double, ptr %339, align 8, !tbaa !12
  %341 = load i32, ptr %6, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %342
  %344 = load i32, ptr %6, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [20 x double], ptr %343, i64 0, i64 %345
  %347 = load double, ptr %346, align 8, !tbaa !12
  %348 = fdiv double %340, %347
  %349 = load i32, ptr %6, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 %350
  store double %348, ptr %351, align 8, !tbaa !12
  %352 = load i32, ptr %6, align 4, !tbaa !5
  %353 = sub nsw i32 %352, 1
  store i32 %353, ptr %2, align 4, !tbaa !5
  br label %354

354:                                              ; preds = %403, %331
  %355 = load i32, ptr %2, align 4, !tbaa !5
  %356 = icmp sge i32 %355, 1
  br i1 %356, label %357, label %406

357:                                              ; preds = %354
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store double 0.000000e+00, ptr %20, align 8, !tbaa !12
  %358 = load i32, ptr %2, align 4, !tbaa !5
  %359 = add nsw i32 %358, 1
  store i32 %359, ptr %3, align 4, !tbaa !5
  br label %360

360:                                              ; preds = %378, %357
  %361 = load i32, ptr %3, align 4, !tbaa !5
  %362 = load i32, ptr %6, align 4, !tbaa !5
  %363 = icmp sle i32 %361, %362
  br i1 %363, label %364, label %381

364:                                              ; preds = %360
  %365 = load double, ptr %20, align 8, !tbaa !12
  %366 = load i32, ptr %2, align 4, !tbaa !5
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %367
  %369 = load i32, ptr %3, align 4, !tbaa !5
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds [20 x double], ptr %368, i64 0, i64 %370
  %372 = load double, ptr %371, align 8, !tbaa !12
  %373 = load i32, ptr %3, align 4, !tbaa !5
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 %374
  %376 = load double, ptr %375, align 8, !tbaa !12
  %377 = call double @llvm.fmuladd.f64(double %372, double %376, double %365)
  store double %377, ptr %20, align 8, !tbaa !12
  br label %378

378:                                              ; preds = %364
  %379 = load i32, ptr %3, align 4, !tbaa !5
  %380 = add nsw i32 %379, 1
  store i32 %380, ptr %3, align 4, !tbaa !5
  br label %360, !llvm.loop !26

381:                                              ; preds = %360
  %382 = load i32, ptr %2, align 4, !tbaa !5
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %383
  %385 = load i32, ptr %6, align 4, !tbaa !5
  %386 = add nsw i32 %385, 1
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds [20 x double], ptr %384, i64 0, i64 %387
  %389 = load double, ptr %388, align 8, !tbaa !12
  %390 = load double, ptr %20, align 8, !tbaa !12
  %391 = fsub double %389, %390
  %392 = load i32, ptr %2, align 4, !tbaa !5
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds [20 x [20 x double]], ptr %8, i64 0, i64 %393
  %395 = load i32, ptr %2, align 4, !tbaa !5
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds [20 x double], ptr %394, i64 0, i64 %396
  %398 = load double, ptr %397, align 8, !tbaa !12
  %399 = fdiv double %391, %398
  %400 = load i32, ptr %2, align 4, !tbaa !5
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 %401
  store double %399, ptr %402, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %403

403:                                              ; preds = %381
  %404 = load i32, ptr %2, align 4, !tbaa !5
  %405 = add nsw i32 %404, -1
  store i32 %405, ptr %2, align 4, !tbaa !5
  br label %354, !llvm.loop !27

406:                                              ; preds = %354
  %407 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %408

408:                                              ; preds = %419, %406
  %409 = load i32, ptr %2, align 4, !tbaa !5
  %410 = load i32, ptr %6, align 4, !tbaa !5
  %411 = icmp sle i32 %409, %410
  br i1 %411, label %412, label %422

412:                                              ; preds = %408
  %413 = load i32, ptr %2, align 4, !tbaa !5
  %414 = load i32, ptr %2, align 4, !tbaa !5
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 %415
  %417 = load double, ptr %416, align 8, !tbaa !12
  %418 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %413, double noundef %417)
  br label %419

419:                                              ; preds = %412
  %420 = load i32, ptr %2, align 4, !tbaa !5
  %421 = add nsw i32 %420, 1
  store i32 %421, ptr %2, align 4, !tbaa !5
  br label %408, !llvm.loop !28

422:                                              ; preds = %408
  store i32 0, ptr %1, align 4
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 3200, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  %423 = load i32, ptr %1, align 4
  ret i32 %423
}

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

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

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!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}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !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"

@.str = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca [10 x double], align 16
  %3 = alloca [20 x [20 x double]], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 3200, ptr nonnull %3) #5
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %.not143 = icmp slt i32 %7, 1
  br i1 %.not143, label %._crit_edge145, label %.preheader140

.preheader140:                                    ; preds = %0, %._crit_edge
  %8 = phi i32 [ %18, %._crit_edge ], [ %7, %0 ]
  %indvars.iv205 = phi i64 [ %indvars.iv.next206, %._crit_edge ], [ 1, %0 ]
  %.not129141 = icmp slt i32 %8, 0
  br i1 %.not129141, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader140
  %9 = trunc nuw nsw i64 %indvars.iv205 to i32
  br label %10

10:                                               ; preds = %.lr.ph, %10
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %10 ]
  %11 = trunc nuw nsw i64 %indvars.iv to i32
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %9, i32 noundef %11)
  %13 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv205, i64 %indvars.iv
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %13)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %.not129 = icmp sgt i64 %indvars.iv, %16
  br i1 %.not129, label %._crit_edge, label %10, !llvm.loop !9

._crit_edge:                                      ; preds = %10, %.preheader140
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %indvars.iv.next206 = add nuw nsw i64 %indvars.iv205, 1
  %18 = load i32, ptr %1, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %.not.not = icmp slt i64 %indvars.iv205, %19
  br i1 %.not.not, label %.preheader140, label %._crit_edge145, !llvm.loop !11

._crit_edge145:                                   ; preds = %._crit_edge, %0
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %21 = load i32, ptr %1, align 4, !tbaa !5
  %.not115150 = icmp slt i32 %21, 1
  br i1 %.not115150, label %._crit_edge185, label %.preheader139

.preheader139:                                    ; preds = %._crit_edge145, %._crit_edge149
  %22 = phi i32 [ %29, %._crit_edge149 ], [ %21, %._crit_edge145 ]
  %indvars.iv211 = phi i64 [ %indvars.iv.next212, %._crit_edge149 ], [ 1, %._crit_edge145 ]
  %.not128146 = icmp slt i32 %22, 0
  br i1 %.not128146, label %._crit_edge149, label %.lr.ph148

.preheader138:                                    ; preds = %._crit_edge149
  %.not116182 = icmp slt i32 %29, 1
  br i1 %.not116182, label %._crit_edge185, label %.preheader137.preheader

.preheader137.preheader:                          ; preds = %.preheader138
  %scevgep = getelementptr inbounds i8, ptr %3, i64 168
  %scevgep274 = getelementptr i8, ptr %3, i64 -160
  %scevgep283 = getelementptr inbounds i8, ptr %3, i64 8
  %scevgep311 = getelementptr inbounds i8, ptr %3, i64 8
  %invariant.gep = getelementptr i8, ptr %3, i64 168
  %invariant.gep353 = getelementptr i8, ptr %3, i64 160
  %invariant.gep355 = getelementptr i8, ptr %3, i64 168
  %invariant.gep357 = getelementptr i8, ptr %3, i64 160
  %invariant.gep359 = getelementptr i8, ptr %3, i64 168
  %invariant.gep361 = getelementptr i8, ptr %3, i64 160
  br label %.preheader137

.lr.ph148:                                        ; preds = %.preheader139, %.lr.ph148
  %indvars.iv208 = phi i64 [ %indvars.iv.next209, %.lr.ph148 ], [ 1, %.preheader139 ]
  %23 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv211, i64 %indvars.iv208
  %24 = load double, ptr %23, align 8, !tbaa !12
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, double noundef %24)
  %indvars.iv.next209 = add nuw nsw i64 %indvars.iv208, 1
  %26 = load i32, ptr %1, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %.not128 = icmp sgt i64 %indvars.iv208, %27
  br i1 %.not128, label %._crit_edge149, label %.lr.ph148, !llvm.loop !14

._crit_edge149:                                   ; preds = %.lr.ph148, %.preheader139
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %indvars.iv.next212 = add nuw nsw i64 %indvars.iv211, 1
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %.not115.not = icmp slt i64 %indvars.iv211, %30
  br i1 %.not115.not, label %.preheader139, label %.preheader138, !llvm.loop !15

.preheader137:                                    ; preds = %.preheader137.preheader, %._crit_edge181
  %indvar = phi i64 [ 0, %.preheader137.preheader ], [ %indvar.next, %._crit_edge181 ]
  %indvars.iv214 = phi i64 [ 1, %.preheader137.preheader ], [ %indvars.iv.next215, %._crit_edge181 ]
  %31 = phi i32 [ %29, %.preheader137.preheader ], [ %153, %._crit_edge181 ]
  %.0103184 = phi i32 [ undef, %.preheader137.preheader ], [ %.2105, %._crit_edge181 ]
  %32 = mul nuw nsw i64 %indvar, 160
  %gep = getelementptr i8, ptr %invariant.gep, i64 %32
  %gep354 = getelementptr i8, ptr %invariant.gep353, i64 %32
  %33 = mul nuw nsw i64 %indvar, 160
  %gep356 = getelementptr i8, ptr %invariant.gep355, i64 %33
  %gep358 = getelementptr i8, ptr %invariant.gep357, i64 %33
  %34 = mul nuw nsw i64 %indvar, 160
  %gep360 = getelementptr i8, ptr %invariant.gep359, i64 %34
  %gep362 = getelementptr i8, ptr %invariant.gep361, i64 %34
  %35 = sext i32 %31 to i64
  br label %36

36:                                               ; preds = %.preheader137, %36
  %indvars.iv216 = phi i64 [ %indvars.iv214, %.preheader137 ], [ %indvars.iv.next217, %36 ]
  %.0101154 = phi double [ 0.000000e+00, %.preheader137 ], [ %.1102, %36 ]
  %.1104153 = phi i32 [ %.0103184, %.preheader137 ], [ %.2105, %36 ]
  %37 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv216, i64 %indvars.iv214
  %38 = load double, ptr %37, align 8, !tbaa !12
  %39 = call double @llvm.fabs.f64(double %38)
  %40 = fcmp ogt double %39, %.0101154
  %41 = trunc nuw nsw i64 %indvars.iv216 to i32
  %.2105 = select i1 %40, i32 %41, i32 %.1104153
  %.1102 = select i1 %40, double %38, double %.0101154
  %indvars.iv.next217 = add nuw nsw i64 %indvars.iv216, 1
  %.not119.not = icmp slt i64 %indvars.iv216, %35
  br i1 %.not119.not, label %36, label %42, !llvm.loop !16

42:                                               ; preds = %36
  %43 = sext i32 %.2105 to i64
  %44 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %43, i64 %indvars.iv214
  %45 = load double, ptr %44, align 8, !tbaa !12
  %46 = fcmp ogt double %45, 0.000000e+00
  %.not121158 = icmp slt i32 %31, 0
  br i1 %46, label %.preheader133, label %.preheader135

.preheader135:                                    ; preds = %42
  br i1 %.not121158, label %.loopexit134, label %.lr.ph157.preheader

.lr.ph157.preheader:                              ; preds = %.preheader135
  %47 = add nuw i32 %31, 2
  %wide.trip.count = zext i32 %47 to i64
  %48 = add nsw i64 %wide.trip.count, -1
  %min.iters.check323 = icmp ult i32 %31, 5
  br i1 %min.iters.check323, label %.lr.ph157.preheader339, label %vector.memcheck310

.lr.ph157.preheader339:                           ; preds = %middle.block321, %vector.memcheck310, %.lr.ph157.preheader
  %indvars.iv220.ph = phi i64 [ 1, %vector.memcheck310 ], [ 1, %.lr.ph157.preheader ], [ %ind.end327, %middle.block321 ]
  %49 = and i64 %wide.trip.count, 1
  %lcmp.mod.not.not = icmp eq i64 %49, 0
  br i1 %lcmp.mod.not.not, label %.lr.ph157.prol, label %.lr.ph157.prol.loopexit

.lr.ph157.prol:                                   ; preds = %.lr.ph157.preheader339
  %50 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %43, i64 %indvars.iv220.ph
  %51 = load double, ptr %50, align 8, !tbaa !12
  %52 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv214, i64 %indvars.iv220.ph
  %53 = load double, ptr %52, align 8, !tbaa !12
  store double %53, ptr %50, align 8, !tbaa !12
  %54 = fneg double %51
  store double %54, ptr %52, align 8, !tbaa !12
  %indvars.iv.next221.prol = add nuw nsw i64 %indvars.iv220.ph, 1
  br label %.lr.ph157.prol.loopexit

.lr.ph157.prol.loopexit:                          ; preds = %.lr.ph157.prol, %.lr.ph157.preheader339
  %indvars.iv220.unr = phi i64 [ %indvars.iv220.ph, %.lr.ph157.preheader339 ], [ %indvars.iv.next221.prol, %.lr.ph157.prol ]
  %55 = add nsw i64 %wide.trip.count, -1
  %56 = icmp eq i64 %indvars.iv220.ph, %55
  br i1 %56, label %.loopexit134, label %.lr.ph157

vector.memcheck310:                               ; preds = %.lr.ph157.preheader
  %57 = mul nsw i64 %43, 160
  %scevgep312 = getelementptr i8, ptr %scevgep311, i64 %57
  %58 = shl nuw nsw i64 %wide.trip.count, 3
  %scevgep313 = getelementptr i8, ptr %3, i64 %58
  %scevgep314 = getelementptr i8, ptr %scevgep313, i64 %57
  %scevgep317 = getelementptr i8, ptr %gep354, i64 %58
  %bound0318 = icmp ult ptr %scevgep312, %scevgep317
  %bound1319 = icmp ult ptr %gep, %scevgep314
  %found.conflict320 = and i1 %bound0318, %bound1319
  br i1 %found.conflict320, label %.lr.ph157.preheader339, label %vector.ph324

vector.ph324:                                     ; preds = %vector.memcheck310
  %n.vec326 = and i64 %48, -4
  %ind.end327 = or disjoint i64 %n.vec326, 1
  br label %vector.body329

vector.body329:                                   ; preds = %vector.body329, %vector.ph324
  %index330 = phi i64 [ 0, %vector.ph324 ], [ %index.next336, %vector.body329 ]
  %offset.idx331 = or disjoint i64 %index330, 1
  %59 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %43, i64 %offset.idx331
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  %wide.load332 = load <2 x double>, ptr %59, align 8, !tbaa !12, !alias.scope !17, !noalias !20
  %wide.load333 = load <2 x double>, ptr %60, align 8, !tbaa !12, !alias.scope !17, !noalias !20
  %61 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv214, i64 %offset.idx331
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %wide.load334 = load <2 x double>, ptr %61, align 8, !tbaa !12, !alias.scope !20
  %wide.load335 = load <2 x double>, ptr %62, align 8, !tbaa !12, !alias.scope !20
  store <2 x double> %wide.load334, ptr %59, align 8, !tbaa !12, !alias.scope !17, !noalias !20
  store <2 x double> %wide.load335, ptr %60, align 8, !tbaa !12, !alias.scope !17, !noalias !20
  %63 = fneg <2 x double> %wide.load332
  %64 = fneg <2 x double> %wide.load333
  store <2 x double> %63, ptr %61, align 8, !tbaa !12, !alias.scope !20
  store <2 x double> %64, ptr %62, align 8, !tbaa !12, !alias.scope !20
  %index.next336 = add nuw i64 %index330, 4
  %65 = icmp eq i64 %index.next336, %n.vec326
  br i1 %65, label %middle.block321, label %vector.body329, !llvm.loop !22

middle.block321:                                  ; preds = %vector.body329
  %cmp.n337 = icmp eq i64 %48, %n.vec326
  br i1 %cmp.n337, label %.loopexit134, label %.lr.ph157.preheader339

.preheader133:                                    ; preds = %42
  br i1 %.not121158, label %.loopexit134, label %.lr.ph160.preheader

.lr.ph160.preheader:                              ; preds = %.preheader133
  %66 = add nuw i32 %31, 2
  %wide.trip.count227 = zext i32 %66 to i64
  %67 = add nsw i64 %wide.trip.count227, -1
  %min.iters.check295 = icmp ult i32 %31, 5
  br i1 %min.iters.check295, label %.lr.ph160.preheader338, label %vector.memcheck282

vector.memcheck282:                               ; preds = %.lr.ph160.preheader
  %68 = mul nsw i64 %43, 160
  %scevgep284 = getelementptr i8, ptr %scevgep283, i64 %68
  %69 = shl nuw nsw i64 %wide.trip.count227, 3
  %scevgep285 = getelementptr i8, ptr %3, i64 %69
  %scevgep286 = getelementptr i8, ptr %scevgep285, i64 %68
  %scevgep289 = getelementptr i8, ptr %gep358, i64 %69
  %bound0290 = icmp ult ptr %scevgep284, %scevgep289
  %bound1291 = icmp ult ptr %gep356, %scevgep286
  %found.conflict292 = and i1 %bound0290, %bound1291
  br i1 %found.conflict292, label %.lr.ph160.preheader338, label %vector.ph296

vector.ph296:                                     ; preds = %vector.memcheck282
  %n.vec298 = and i64 %67, -4
  %ind.end299 = or disjoint i64 %n.vec298, 1
  br label %vector.body301

vector.body301:                                   ; preds = %vector.body301, %vector.ph296
  %index302 = phi i64 [ 0, %vector.ph296 ], [ %index.next308, %vector.body301 ]
  %offset.idx303 = or disjoint i64 %index302, 1
  %70 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %43, i64 %offset.idx303
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %wide.load304 = load <2 x double>, ptr %70, align 8, !tbaa !12, !alias.scope !25, !noalias !28
  %wide.load305 = load <2 x double>, ptr %71, align 8, !tbaa !12, !alias.scope !25, !noalias !28
  %72 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv214, i64 %offset.idx303
  %73 = getelementptr inbounds i8, ptr %72, i64 16
  %wide.load306 = load <2 x double>, ptr %72, align 8, !tbaa !12, !alias.scope !28
  %wide.load307 = load <2 x double>, ptr %73, align 8, !tbaa !12, !alias.scope !28
  store <2 x double> %wide.load306, ptr %70, align 8, !tbaa !12, !alias.scope !25, !noalias !28
  store <2 x double> %wide.load307, ptr %71, align 8, !tbaa !12, !alias.scope !25, !noalias !28
  store <2 x double> %wide.load304, ptr %72, align 8, !tbaa !12, !alias.scope !28
  store <2 x double> %wide.load305, ptr %73, align 8, !tbaa !12, !alias.scope !28
  %index.next308 = add nuw i64 %index302, 4
  %74 = icmp eq i64 %index.next308, %n.vec298
  br i1 %74, label %middle.block293, label %vector.body301, !llvm.loop !30

middle.block293:                                  ; preds = %vector.body301
  %cmp.n309 = icmp eq i64 %67, %n.vec298
  br i1 %cmp.n309, label %.loopexit134, label %.lr.ph160.preheader338

.lr.ph160.preheader338:                           ; preds = %middle.block293, %vector.memcheck282, %.lr.ph160.preheader
  %indvars.iv224.ph = phi i64 [ 1, %vector.memcheck282 ], [ 1, %.lr.ph160.preheader ], [ %ind.end299, %middle.block293 ]
  %75 = and i64 %wide.trip.count227, 1
  %lcmp.mod346.not.not = icmp eq i64 %75, 0
  br i1 %lcmp.mod346.not.not, label %.lr.ph160.prol, label %.lr.ph160.prol.loopexit

.lr.ph160.prol:                                   ; preds = %.lr.ph160.preheader338
  %76 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %43, i64 %indvars.iv224.ph
  %77 = load double, ptr %76, align 8, !tbaa !12
  %78 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv214, i64 %indvars.iv224.ph
  %79 = load double, ptr %78, align 8, !tbaa !12
  store double %79, ptr %76, align 8, !tbaa !12
  store double %77, ptr %78, align 8, !tbaa !12
  %indvars.iv.next225.prol = add nuw nsw i64 %indvars.iv224.ph, 1
  br label %.lr.ph160.prol.loopexit

.lr.ph160.prol.loopexit:                          ; preds = %.lr.ph160.prol, %.lr.ph160.preheader338
  %indvars.iv224.unr = phi i64 [ %indvars.iv224.ph, %.lr.ph160.preheader338 ], [ %indvars.iv.next225.prol, %.lr.ph160.prol ]
  %80 = add nsw i64 %wide.trip.count227, -1
  %81 = icmp eq i64 %indvars.iv224.ph, %80
  br i1 %81, label %.loopexit134, label %.lr.ph160

.lr.ph160:                                        ; preds = %.lr.ph160.prol.loopexit, %.lr.ph160
  %indvars.iv224 = phi i64 [ %indvars.iv.next225.1, %.lr.ph160 ], [ %indvars.iv224.unr, %.lr.ph160.prol.loopexit ]
  %82 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %43, i64 %indvars.iv224
  %83 = load double, ptr %82, align 8, !tbaa !12
  %84 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv214, i64 %indvars.iv224
  %85 = load double, ptr %84, align 8, !tbaa !12
  store double %85, ptr %82, align 8, !tbaa !12
  store double %83, ptr %84, align 8, !tbaa !12
  %indvars.iv.next225 = add nuw nsw i64 %indvars.iv224, 1
  %86 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %43, i64 %indvars.iv.next225
  %87 = load double, ptr %86, align 8, !tbaa !12
  %88 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv214, i64 %indvars.iv.next225
  %89 = load double, ptr %88, align 8, !tbaa !12
  store double %89, ptr %86, align 8, !tbaa !12
  store double %87, ptr %88, align 8, !tbaa !12
  %indvars.iv.next225.1 = add nuw nsw i64 %indvars.iv224, 2
  %exitcond228.1 = icmp eq i64 %indvars.iv.next225.1, %wide.trip.count227
  br i1 %exitcond228.1, label %.loopexit134, label %.lr.ph160, !llvm.loop !31

.lr.ph157:                                        ; preds = %.lr.ph157.prol.loopexit, %.lr.ph157
  %indvars.iv220 = phi i64 [ %indvars.iv.next221.1, %.lr.ph157 ], [ %indvars.iv220.unr, %.lr.ph157.prol.loopexit ]
  %90 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %43, i64 %indvars.iv220
  %91 = load double, ptr %90, align 8, !tbaa !12
  %92 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv214, i64 %indvars.iv220
  %93 = load double, ptr %92, align 8, !tbaa !12
  store double %93, ptr %90, align 8, !tbaa !12
  %94 = fneg double %91
  store double %94, ptr %92, align 8, !tbaa !12
  %indvars.iv.next221 = add nuw nsw i64 %indvars.iv220, 1
  %95 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %43, i64 %indvars.iv.next221
  %96 = load double, ptr %95, align 8, !tbaa !12
  %97 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv214, i64 %indvars.iv.next221
  %98 = load double, ptr %97, align 8, !tbaa !12
  store double %98, ptr %95, align 8, !tbaa !12
  %99 = fneg double %96
  store double %99, ptr %97, align 8, !tbaa !12
  %indvars.iv.next221.1 = add nuw nsw i64 %indvars.iv220, 2
  %exitcond.1 = icmp eq i64 %indvars.iv.next221.1, %wide.trip.count
  br i1 %exitcond.1, label %.loopexit134, label %.lr.ph157, !llvm.loop !32

.loopexit134:                                     ; preds = %.lr.ph157.prol.loopexit, %.lr.ph157, %.lr.ph160.prol.loopexit, %.lr.ph160, %middle.block321, %middle.block293, %.preheader135, %.preheader133
  %100 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %101 = load i32, ptr %1, align 4, !tbaa !5
  %.not122165 = icmp slt i32 %101, 1
  br i1 %.not122165, label %._crit_edge174, label %.preheader131

.preheader132:                                    ; preds = %._crit_edge164
  %.not123171 = icmp slt i32 %113, 1
  br i1 %.not123171, label %._crit_edge174, label %.lr.ph173

.lr.ph173:                                        ; preds = %.preheader132
  %102 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv214, i64 %indvars.iv214
  %103 = add nuw i32 %113, 2
  %104 = add nuw i32 %113, 1
  %wide.trip.count243 = zext i32 %104 to i64
  %wide.trip.count238 = zext i32 %103 to i64
  %105 = mul nuw nsw i64 %wide.trip.count243, 160
  %106 = shl nuw nsw i64 %wide.trip.count238, 3
  %107 = getelementptr i8, ptr %scevgep274, i64 %105
  %scevgep275 = getelementptr i8, ptr %107, i64 %106
  %scevgep278 = getelementptr i8, ptr %gep362, i64 %106
  %108 = add nsw i64 %wide.trip.count238, -1
  %min.iters.check = icmp ult i32 %113, 3
  %bound0 = icmp ult ptr %scevgep, %scevgep278
  %bound1 = icmp ult ptr %gep360, %scevgep275
  %found.conflict = and i1 %bound0, %bound1
  %n.vec = and i64 %108, -4
  %ind.end = or disjoint i64 %n.vec, 1
  %cmp.n = icmp eq i64 %108, %n.vec
  %109 = and i64 %wide.trip.count238, 1
  %lcmp.mod348.not.not = icmp eq i64 %109, 0
  %110 = add nsw i64 %wide.trip.count238, -1
  br label %120

.preheader131:                                    ; preds = %.loopexit134, %._crit_edge164
  %111 = phi i32 [ %113, %._crit_edge164 ], [ %101, %.loopexit134 ]
  %indvars.iv232 = phi i64 [ %indvars.iv.next233, %._crit_edge164 ], [ 1, %.loopexit134 ]
  %.not127161 = icmp slt i32 %111, 0
  br i1 %.not127161, label %._crit_edge164, label %.lr.ph163

._crit_edge164:                                   ; preds = %.lr.ph163, %.preheader131
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %indvars.iv.next233 = add nuw nsw i64 %indvars.iv232, 1
  %113 = load i32, ptr %1, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %.not122.not = icmp slt i64 %indvars.iv232, %114
  br i1 %.not122.not, label %.preheader131, label %.preheader132, !llvm.loop !33

.lr.ph163:                                        ; preds = %.preheader131, %.lr.ph163
  %indvars.iv229 = phi i64 [ %indvars.iv.next230, %.lr.ph163 ], [ 1, %.preheader131 ]
  %115 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv232, i64 %indvars.iv229
  %116 = load double, ptr %115, align 8, !tbaa !12
  %117 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, double noundef %116)
  %indvars.iv.next230 = add nuw nsw i64 %indvars.iv229, 1
  %118 = load i32, ptr %1, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %.not127 = icmp sgt i64 %indvars.iv229, %119
  br i1 %.not127, label %._crit_edge164, label %.lr.ph163, !llvm.loop !34

120:                                              ; preds = %.lr.ph173, %.loopexit
  %indvars.iv240 = phi i64 [ 1, %.lr.ph173 ], [ %indvars.iv.next241, %.loopexit ]
  %121 = icmp ugt i64 %indvars.iv240, %indvars.iv214
  br i1 %121, label %.lr.ph170, label %.loopexit

.lr.ph170:                                        ; preds = %120
  %122 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv240, i64 %indvars.iv214
  %123 = load double, ptr %122, align 8, !tbaa !12
  %124 = load double, ptr %102, align 8, !tbaa !12
  %125 = fneg double %123
  %126 = fdiv double %125, %124
  %brmerge = select i1 %min.iters.check, i1 true, i1 %found.conflict
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph170
  %broadcast.splatinsert = insertelement <2 x double> poison, double %126, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %127 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv240, i64 %offset.idx
  %128 = getelementptr inbounds i8, ptr %127, i64 16
  %wide.load = load <2 x double>, ptr %127, align 8, !tbaa !12, !alias.scope !35, !noalias !38
  %wide.load279 = load <2 x double>, ptr %128, align 8, !tbaa !12, !alias.scope !35, !noalias !38
  %129 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv214, i64 %offset.idx
  %130 = getelementptr inbounds i8, ptr %129, i64 16
  %wide.load280 = load <2 x double>, ptr %129, align 8, !tbaa !12, !alias.scope !38
  %wide.load281 = load <2 x double>, ptr %130, align 8, !tbaa !12, !alias.scope !38
  %131 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load280, <2 x double> %wide.load)
  %132 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load281, <2 x double> %wide.load279)
  store <2 x double> %131, ptr %127, align 8, !tbaa !12, !alias.scope !35, !noalias !38
  store <2 x double> %132, ptr %128, align 8, !tbaa !12, !alias.scope !35, !noalias !38
  %index.next = add nuw i64 %index, 4
  %133 = icmp eq i64 %index.next, %n.vec
  br i1 %133, label %middle.block, label %vector.body, !llvm.loop !40

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %.lr.ph170, %middle.block
  %indvars.iv235.ph = phi i64 [ 1, %.lr.ph170 ], [ %ind.end, %middle.block ]
  br i1 %lcmp.mod348.not.not, label %scalar.ph.prol, label %scalar.ph.prol.loopexit

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %134 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv240, i64 %indvars.iv235.ph
  %135 = load double, ptr %134, align 8, !tbaa !12
  %136 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv214, i64 %indvars.iv235.ph
  %137 = load double, ptr %136, align 8, !tbaa !12
  %138 = call double @llvm.fmuladd.f64(double %126, double %137, double %135)
  store double %138, ptr %134, align 8, !tbaa !12
  %indvars.iv.next236.prol = add nuw nsw i64 %indvars.iv235.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv235.unr = phi i64 [ %indvars.iv235.ph, %scalar.ph.preheader ], [ %indvars.iv.next236.prol, %scalar.ph.prol ]
  %139 = icmp eq i64 %indvars.iv235.ph, %110
  br i1 %139, label %.loopexit, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv235 = phi i64 [ %indvars.iv.next236.1, %scalar.ph ], [ %indvars.iv235.unr, %scalar.ph.prol.loopexit ]
  %140 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv240, i64 %indvars.iv235
  %141 = load double, ptr %140, align 8, !tbaa !12
  %142 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv214, i64 %indvars.iv235
  %143 = load double, ptr %142, align 8, !tbaa !12
  %144 = call double @llvm.fmuladd.f64(double %126, double %143, double %141)
  store double %144, ptr %140, align 8, !tbaa !12
  %indvars.iv.next236 = add nuw nsw i64 %indvars.iv235, 1
  %145 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv240, i64 %indvars.iv.next236
  %146 = load double, ptr %145, align 8, !tbaa !12
  %147 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv214, i64 %indvars.iv.next236
  %148 = load double, ptr %147, align 8, !tbaa !12
  %149 = call double @llvm.fmuladd.f64(double %126, double %148, double %146)
  store double %149, ptr %145, align 8, !tbaa !12
  %indvars.iv.next236.1 = add nuw nsw i64 %indvars.iv235, 2
  %exitcond239.1 = icmp eq i64 %indvars.iv.next236.1, %wide.trip.count238
  br i1 %exitcond239.1, label %.loopexit, label %scalar.ph, !llvm.loop !41

.loopexit:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %120
  %indvars.iv.next241 = add nuw nsw i64 %indvars.iv240, 1
  %exitcond244.not = icmp eq i64 %indvars.iv.next241, %wide.trip.count243
  br i1 %exitcond244.not, label %._crit_edge174, label %120, !llvm.loop !42

._crit_edge174:                                   ; preds = %.loopexit, %.loopexit134, %.preheader132
  %150 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %151 = load i32, ptr %1, align 4, !tbaa !5
  %.not124179 = icmp slt i32 %151, 1
  br i1 %.not124179, label %._crit_edge174.._crit_edge181_crit_edge, label %.preheader130

._crit_edge174.._crit_edge181_crit_edge:          ; preds = %._crit_edge174
  %.pre = sext i32 %151 to i64
  br label %._crit_edge181

.preheader130:                                    ; preds = %._crit_edge174, %._crit_edge178
  %152 = phi i32 [ %155, %._crit_edge178 ], [ %151, %._crit_edge174 ]
  %indvars.iv248 = phi i64 [ %indvars.iv.next249, %._crit_edge178 ], [ 1, %._crit_edge174 ]
  %.not125175 = icmp slt i32 %152, 0
  br i1 %.not125175, label %._crit_edge178, label %.lr.ph177

._crit_edge181:                                   ; preds = %._crit_edge178, %._crit_edge174.._crit_edge181_crit_edge
  %.pre-phi = phi i64 [ %.pre, %._crit_edge174.._crit_edge181_crit_edge ], [ %156, %._crit_edge178 ]
  %153 = phi i32 [ %151, %._crit_edge174.._crit_edge181_crit_edge ], [ %155, %._crit_edge178 ]
  %indvars.iv.next215 = add nuw nsw i64 %indvars.iv214, 1
  %.not116.not = icmp slt i64 %indvars.iv214, %.pre-phi
  %indvar.next = add i64 %indvar, 1
  br i1 %.not116.not, label %.preheader137, label %._crit_edge185, !llvm.loop !43

._crit_edge178:                                   ; preds = %.lr.ph177, %.preheader130
  %154 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %indvars.iv.next249 = add nuw nsw i64 %indvars.iv248, 1
  %155 = load i32, ptr %1, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %.not124.not = icmp slt i64 %indvars.iv248, %156
  br i1 %.not124.not, label %.preheader130, label %._crit_edge181, !llvm.loop !44

.lr.ph177:                                        ; preds = %.preheader130, %.lr.ph177
  %indvars.iv245 = phi i64 [ %indvars.iv.next246, %.lr.ph177 ], [ 1, %.preheader130 ]
  %157 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv248, i64 %indvars.iv245
  %158 = load double, ptr %157, align 8, !tbaa !12
  %159 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, double noundef %158)
  %indvars.iv.next246 = add nuw nsw i64 %indvars.iv245, 1
  %160 = load i32, ptr %1, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %.not125 = icmp sgt i64 %indvars.iv245, %161
  br i1 %.not125, label %._crit_edge178, label %.lr.ph177, !llvm.loop !45

._crit_edge185:                                   ; preds = %._crit_edge181, %._crit_edge145, %.preheader138
  %162 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %163 = load i32, ptr %1, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = add nsw i32 %163, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %164, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !12
  %169 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %164, i64 %164
  %170 = load double, ptr %169, align 8, !tbaa !12
  %171 = fdiv double %168, %170
  %172 = getelementptr inbounds [10 x double], ptr %2, i64 0, i64 %164
  store double %171, ptr %172, align 8, !tbaa !12
  %173 = icmp sgt i32 %163, 1
  br i1 %173, label %.preheader.preheader, label %._crit_edge195

.preheader.preheader:                             ; preds = %._crit_edge185
  %174 = zext nneg i32 %163 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge190
  %indvars.iv252 = phi i64 [ %174, %.preheader.preheader ], [ %indvars.iv.next253, %._crit_edge190 ]
  %indvars.iv.next253 = add nsw i64 %indvars.iv252, -1
  %.not118186 = icmp sgt i64 %indvars.iv252, %164
  br i1 %.not118186, label %._crit_edge190, label %.lr.ph189

.lr.ph189:                                        ; preds = %.preheader, %.lr.ph189
  %indvars.iv254 = phi i64 [ %indvars.iv.next255, %.lr.ph189 ], [ %indvars.iv252, %.preheader ]
  %.0188 = phi double [ %179, %.lr.ph189 ], [ 0.000000e+00, %.preheader ]
  %175 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv.next253, i64 %indvars.iv254
  %176 = load double, ptr %175, align 8, !tbaa !12
  %177 = getelementptr inbounds [10 x double], ptr %2, i64 0, i64 %indvars.iv254
  %178 = load double, ptr %177, align 8, !tbaa !12
  %179 = call double @llvm.fmuladd.f64(double %176, double %178, double %.0188)
  %indvars.iv.next255 = add nuw nsw i64 %indvars.iv254, 1
  %180 = trunc nuw i64 %indvars.iv254 to i32
  %.not118.not = icmp sgt i32 %163, %180
  br i1 %.not118.not, label %.lr.ph189, label %._crit_edge190, !llvm.loop !46

._crit_edge190:                                   ; preds = %.lr.ph189, %.preheader
  %.0.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %179, %.lr.ph189 ]
  %181 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv.next253, i64 %166
  %182 = load double, ptr %181, align 8, !tbaa !12
  %183 = fsub double %182, %.0.lcssa
  %184 = getelementptr inbounds [20 x [20 x double]], ptr %3, i64 0, i64 %indvars.iv.next253, i64 %indvars.iv.next253
  %185 = load double, ptr %184, align 8, !tbaa !12
  %186 = fdiv double %183, %185
  %187 = getelementptr inbounds [10 x double], ptr %2, i64 0, i64 %indvars.iv.next253
  store double %186, ptr %187, align 8, !tbaa !12
  %188 = icmp sgt i64 %indvars.iv252, 2
  br i1 %188, label %.preheader, label %._crit_edge195, !llvm.loop !47

._crit_edge195:                                   ; preds = %._crit_edge190, %._crit_edge185
  %189 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %190 = load i32, ptr %1, align 4, !tbaa !5
  %.not117196 = icmp slt i32 %190, 1
  br i1 %.not117196, label %._crit_edge200, label %.lr.ph199

.lr.ph199:                                        ; preds = %._crit_edge195, %.lr.ph199
  %indvars.iv258 = phi i64 [ %indvars.iv.next259, %.lr.ph199 ], [ 1, %._crit_edge195 ]
  %191 = getelementptr inbounds [10 x double], ptr %2, i64 0, i64 %indvars.iv258
  %192 = load double, ptr %191, align 8, !tbaa !12
  %193 = trunc nuw nsw i64 %indvars.iv258 to i32
  %194 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %193, double noundef %192)
  %indvars.iv.next259 = add nuw nsw i64 %indvars.iv258, 1
  %195 = load i32, ptr %1, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %.not117.not = icmp slt i64 %indvars.iv258, %196
  br i1 %.not117.not, label %.lr.ph199, label %._crit_edge200, !llvm.loop !48

._crit_edge200:                                   ; preds = %.lr.ph199, %._crit_edge195
  call void @llvm.lifetime.end.p0(i64 3200, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{!18}
!18 = distinct !{!18, !19}
!19 = distinct !{!19, !"LVerDomain"}
!20 = !{!21}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !10, !23, !24}
!23 = !{!"llvm.loop.isvectorized", i32 1}
!24 = !{!"llvm.loop.unroll.runtime.disable"}
!25 = !{!26}
!26 = distinct !{!26, !27}
!27 = distinct !{!27, !"LVerDomain"}
!28 = !{!29}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !10, !23, !24}
!31 = distinct !{!31, !10, !23}
!32 = distinct !{!32, !10, !23}
!33 = distinct !{!33, !10}
!34 = distinct !{!34, !10}
!35 = !{!36}
!36 = distinct !{!36, !37}
!37 = distinct !{!37, !"LVerDomain"}
!38 = !{!39}
!39 = distinct !{!39, !37}
!40 = distinct !{!40, !10, !23, !24}
!41 = distinct !{!41, !10, !23}
!42 = distinct !{!42, !10}
!43 = distinct !{!43, !10}
!44 = distinct !{!44, !10}
!45 = distinct !{!45, !10}
!46 = distinct !{!46, !10}
!47 = distinct !{!47, !10}
!48 = distinct !{!48, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass