; LLVM IR from tangjz/acm-icpc :: lydsy (1013)

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

@n = external dso_local global i32, align 4
@a = external dso_local global [13 x [13 x double]], align 16
@b = external dso_local global [13 x [13 x double]], align 16
@x = external dso_local global [13 x double], align 16
@m = external dso_local global double, align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %6

6:                                                ; preds = %28, %0
  %7 = load i32, ptr %2, align 4, !tbaa !5
  %8 = load i32, ptr @n, align 4, !tbaa !5
  %9 = add nsw i32 %8, 1
  %10 = icmp sle i32 %7, %9
  br i1 %10, label %11, label %31

11:                                               ; preds = %6
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %24, %11
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = load i32, ptr @n, align 4, !tbaa !5
  %15 = icmp sle i32 %13, %14
  br i1 %15, label %16, label %27

16:                                               ; preds = %12
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [13 x [13 x double]], ptr @b, i64 0, i64 %18
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [13 x double], ptr %19, i64 0, i64 %21
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %22)
  br label %24

24:                                               ; preds = %16
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %3, align 4, !tbaa !5
  br label %12, !llvm.loop !9

27:                                               ; preds = %12
  br label %28

28:                                               ; preds = %27
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %2, align 4, !tbaa !5
  br label %6, !llvm.loop !11

31:                                               ; preds = %6
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %111, %31
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = load i32, ptr @n, align 4, !tbaa !5
  %35 = icmp sle i32 %33, %34
  br i1 %35, label %36, label %114

36:                                               ; preds = %32
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %37

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

41:                                               ; preds = %37
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [13 x [13 x double]], ptr @b, i64 0, i64 %44
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [13 x double], ptr %45, i64 0, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !12
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [13 x [13 x double]], ptr @b, i64 0, i64 %51
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [13 x double], ptr %52, i64 0, i64 %54
  %56 = load double, ptr %55, align 8, !tbaa !12
  %57 = fsub double %49, %56
  %58 = fmul double %57, 2.000000e+00
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %60
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [13 x double], ptr %61, i64 0, i64 %63
  store double %58, ptr %64, align 8, !tbaa !12
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [13 x [13 x double]], ptr @b, i64 0, i64 %67
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [13 x double], ptr %68, i64 0, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !12
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [13 x [13 x double]], ptr @b, i64 0, i64 %75
  %77 = load i32, ptr %3, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [13 x double], ptr %76, i64 0, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !12
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [13 x [13 x double]], ptr @b, i64 0, i64 %82
  %84 = load i32, ptr %3, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [13 x double], ptr %83, i64 0, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !12
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [13 x [13 x double]], ptr @b, i64 0, i64 %89
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [13 x double], ptr %90, i64 0, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !12
  %95 = fmul double %87, %94
  %96 = fneg double %95
  %97 = call double @llvm.fmuladd.f64(double %72, double %80, double %96)
  %98 = load i32, ptr %2, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %99
  %101 = load i32, ptr @n, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [13 x double], ptr %100, i64 0, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !12
  %106 = fadd double %105, %97
  store double %106, ptr %104, align 8, !tbaa !12
  br label %107

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

110:                                              ; preds = %37
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %2, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %2, align 4, !tbaa !5
  br label %32, !llvm.loop !15

114:                                              ; preds = %32
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %233, %114
  %116 = load i32, ptr %2, align 4, !tbaa !5
  %117 = load i32, ptr @n, align 4, !tbaa !5
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %119, label %236

119:                                              ; preds = %115
  %120 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %120, ptr %4, align 4, !tbaa !5
  %121 = load i32, ptr %2, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %3, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %146, %119
  %124 = load i32, ptr %3, align 4, !tbaa !5
  %125 = load i32, ptr @n, align 4, !tbaa !5
  %126 = icmp sle i32 %124, %125
  br i1 %126, label %127, label %149

127:                                              ; preds = %123
  %128 = load i32, ptr %3, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %129
  %131 = load i32, ptr %2, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [13 x double], ptr %130, i64 0, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !12
  %135 = load i32, ptr %4, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %136
  %138 = load i32, ptr %2, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [13 x double], ptr %137, i64 0, i64 %139
  %141 = load double, ptr %140, align 8, !tbaa !12
  %142 = fcmp ogt double %134, %141
  br i1 %142, label %143, label %145

143:                                              ; preds = %127
  %144 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %144, ptr %4, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %143, %127
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %3, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %3, align 4, !tbaa !5
  br label %123, !llvm.loop !16

149:                                              ; preds = %123
  %150 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %150, ptr %3, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %169, %149
  %152 = load i32, ptr %3, align 4, !tbaa !5
  %153 = load i32, ptr @n, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  %155 = icmp sle i32 %152, %154
  br i1 %155, label %156, label %172

156:                                              ; preds = %151
  %157 = load i32, ptr %2, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %158
  %160 = load i32, ptr %3, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [13 x double], ptr %159, i64 0, i64 %161
  %163 = load i32, ptr %4, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %164
  %166 = load i32, ptr %3, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [13 x double], ptr %165, i64 0, i64 %167
  call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef nonnull align 8 dereferenceable(8) %168) #5
  br label %169

169:                                              ; preds = %156
  %170 = load i32, ptr %3, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %3, align 4, !tbaa !5
  br label %151, !llvm.loop !17

172:                                              ; preds = %151
  %173 = load i32, ptr %2, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %3, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %229, %172
  %176 = load i32, ptr %3, align 4, !tbaa !5
  %177 = load i32, ptr @n, align 4, !tbaa !5
  %178 = icmp sle i32 %176, %177
  br i1 %178, label %179, label %232

179:                                              ; preds = %175
  %180 = load i32, ptr %3, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %181
  %183 = load i32, ptr %2, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [13 x double], ptr %182, i64 0, i64 %184
  %186 = load double, ptr %185, align 8, !tbaa !12
  %187 = load i32, ptr %2, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %188
  %190 = load i32, ptr %2, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [13 x double], ptr %189, i64 0, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !12
  %194 = fdiv double %186, %193
  store double %194, ptr @m, align 8, !tbaa !12
  %195 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %195, ptr %4, align 4, !tbaa !5
  br label %196

196:                                              ; preds = %225, %179
  %197 = load i32, ptr %4, align 4, !tbaa !5
  %198 = load i32, ptr @n, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  %200 = icmp sle i32 %197, %199
  br i1 %200, label %201, label %228

201:                                              ; preds = %196
  %202 = load i32, ptr %2, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %203
  %205 = load i32, ptr %4, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [13 x double], ptr %204, i64 0, i64 %206
  %208 = load double, ptr %207, align 8, !tbaa !12
  %209 = load double, ptr @m, align 8, !tbaa !12
  %210 = load i32, ptr %3, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %211
  %213 = load i32, ptr %4, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [13 x double], ptr %212, i64 0, i64 %214
  %216 = load double, ptr %215, align 8, !tbaa !12
  %217 = fneg double %216
  %218 = call double @llvm.fmuladd.f64(double %208, double %209, double %217)
  %219 = load i32, ptr %3, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %220
  %222 = load i32, ptr %4, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [13 x double], ptr %221, i64 0, i64 %223
  store double %218, ptr %224, align 8, !tbaa !12
  br label %225

225:                                              ; preds = %201
  %226 = load i32, ptr %4, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %4, align 4, !tbaa !5
  br label %196, !llvm.loop !18

228:                                              ; preds = %196
  br label %229

229:                                              ; preds = %228
  %230 = load i32, ptr %3, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %3, align 4, !tbaa !5
  br label %175, !llvm.loop !19

232:                                              ; preds = %175
  br label %233

233:                                              ; preds = %232
  %234 = load i32, ptr %2, align 4, !tbaa !5
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %2, align 4, !tbaa !5
  br label %115, !llvm.loop !20

236:                                              ; preds = %115
  %237 = load i32, ptr @n, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %238
  %240 = load i32, ptr @n, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [13 x double], ptr %239, i64 0, i64 %242
  %244 = load double, ptr %243, align 8, !tbaa !12
  %245 = load i32, ptr @n, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %246
  %248 = load i32, ptr @n, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [13 x double], ptr %247, i64 0, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !12
  %252 = fdiv double %244, %251
  %253 = load i32, ptr @n, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [13 x double], ptr @x, i64 0, i64 %254
  store double %252, ptr %255, align 8, !tbaa !12
  %256 = load i32, ptr @n, align 4, !tbaa !5
  %257 = sub nsw i32 %256, 1
  store i32 %257, ptr %2, align 4, !tbaa !5
  br label %258

258:                                              ; preds = %307, %236
  %259 = load i32, ptr %2, align 4, !tbaa !5
  %260 = icmp sge i32 %259, 1
  br i1 %260, label %261, label %310

261:                                              ; preds = %258
  store double 0.000000e+00, ptr @m, align 8, !tbaa !12
  %262 = load i32, ptr %2, align 4, !tbaa !5
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %3, align 4, !tbaa !5
  br label %264

264:                                              ; preds = %282, %261
  %265 = load i32, ptr %3, align 4, !tbaa !5
  %266 = load i32, ptr @n, align 4, !tbaa !5
  %267 = icmp sle i32 %265, %266
  br i1 %267, label %268, label %285

268:                                              ; preds = %264
  %269 = load i32, ptr %2, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %270
  %272 = load i32, ptr %3, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [13 x double], ptr %271, i64 0, i64 %273
  %275 = load double, ptr %274, align 8, !tbaa !12
  %276 = load i32, ptr %3, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [13 x double], ptr @x, i64 0, i64 %277
  %279 = load double, ptr %278, align 8, !tbaa !12
  %280 = load double, ptr @m, align 8, !tbaa !12
  %281 = call double @llvm.fmuladd.f64(double %275, double %279, double %280)
  store double %281, ptr @m, align 8, !tbaa !12
  br label %282

282:                                              ; preds = %268
  %283 = load i32, ptr %3, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %3, align 4, !tbaa !5
  br label %264, !llvm.loop !21

285:                                              ; preds = %264
  %286 = load i32, ptr %2, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %287
  %289 = load i32, ptr @n, align 4, !tbaa !5
  %290 = add nsw i32 %289, 1
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [13 x double], ptr %288, i64 0, i64 %291
  %293 = load double, ptr %292, align 8, !tbaa !12
  %294 = load double, ptr @m, align 8, !tbaa !12
  %295 = fsub double %293, %294
  %296 = load i32, ptr %2, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %297
  %299 = load i32, ptr %2, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [13 x double], ptr %298, i64 0, i64 %300
  %302 = load double, ptr %301, align 8, !tbaa !12
  %303 = fdiv double %295, %302
  %304 = load i32, ptr %2, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [13 x double], ptr @x, i64 0, i64 %305
  store double %303, ptr %306, align 8, !tbaa !12
  br label %307

307:                                              ; preds = %285
  %308 = load i32, ptr %2, align 4, !tbaa !5
  %309 = add nsw i32 %308, -1
  store i32 %309, ptr %2, align 4, !tbaa !5
  br label %258, !llvm.loop !22

310:                                              ; preds = %258
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %311

311:                                              ; preds = %322, %310
  %312 = load i32, ptr %2, align 4, !tbaa !5
  %313 = load i32, ptr @n, align 4, !tbaa !5
  %314 = sub nsw i32 %313, 1
  %315 = icmp sle i32 %312, %314
  br i1 %315, label %316, label %325

316:                                              ; preds = %311
  %317 = load i32, ptr %2, align 4, !tbaa !5
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [13 x double], ptr @x, i64 0, i64 %318
  %320 = load double, ptr %319, align 8, !tbaa !12
  %321 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %320)
  br label %322

322:                                              ; preds = %316
  %323 = load i32, ptr %2, align 4, !tbaa !5
  %324 = add nsw i32 %323, 1
  store i32 %324, ptr %2, align 4, !tbaa !5
  br label %311, !llvm.loop !23

325:                                              ; preds = %311
  %326 = load i32, ptr %2, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [13 x double], ptr @x, i64 0, i64 %327
  %329 = load double, ptr %328, align 8, !tbaa !12
  %330 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %329)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  ret i32 0
}

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

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

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

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

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

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

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


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

@n = external dso_local global i32, align 4
@a = external dso_local global [13 x [13 x double]], align 16
@b = external dso_local global [13 x [13 x double]], align 16
@x = external dso_local local_unnamed_addr global [13 x double], align 16
@m = external dso_local local_unnamed_addr global double, align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %.not106 = icmp slt i32 %2, 0
  br i1 %.not106, label %.preheader96.._crit_edge143_crit_edge, label %.preheader99.lr.ph

.preheader99.lr.ph:                               ; preds = %0
  %3 = icmp eq i32 %2, 0
  br i1 %3, label %.preheader96.._crit_edge143_crit_edge, label %.preheader99

.preheader99:                                     ; preds = %.preheader99.lr.ph, %._crit_edge
  %4 = phi i32 [ %10, %._crit_edge ], [ %2, %.preheader99.lr.ph ]
  %indvars.iv172 = phi i64 [ %indvars.iv.next173, %._crit_edge ], [ 1, %.preheader99.lr.ph ]
  %.not93104 = icmp slt i32 %4, 1
  br i1 %.not93104, label %.preheader99.._crit_edge_crit_edge, label %.lr.ph

.preheader99.._crit_edge_crit_edge:               ; preds = %.preheader99
  %.pre218 = sext i32 %4 to i64
  br label %._crit_edge

.preheader98:                                     ; preds = %._crit_edge
  %.not85114 = icmp slt i32 %10, 1
  br i1 %.not85114, label %.preheader96.._crit_edge143_crit_edge, label %.preheader97.lr.ph

.preheader97.lr.ph:                               ; preds = %.preheader98
  %.lcssa102 = add nuw nsw i32 %10, 1
  %5 = zext nneg i32 %.lcssa102 to i64
  br label %.preheader97

.lr.ph:                                           ; preds = %.preheader99, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.preheader99 ]
  %6 = getelementptr inbounds [13 x [13 x double]], ptr @b, i64 0, i64 %indvars.iv172, i64 %indvars.iv
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %8 = load i32, ptr @n, align 4, !tbaa !5
  %9 = sext i32 %8 to i64
  %.not93.not = icmp slt i64 %indvars.iv, %9
  br i1 %.not93.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %.preheader99.._crit_edge_crit_edge
  %.pre-phi219 = phi i64 [ %.pre218, %.preheader99.._crit_edge_crit_edge ], [ %9, %.lr.ph ]
  %10 = phi i32 [ %4, %.preheader99.._crit_edge_crit_edge ], [ %8, %.lr.ph ]
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %.not = icmp sgt i64 %indvars.iv172, %.pre-phi219
  br i1 %.not, label %.preheader98, label %.preheader99, !llvm.loop !11

.preheader97:                                     ; preds = %.preheader97.lr.ph, %._crit_edge113
  %indvars.iv178 = phi i64 [ 1, %.preheader97.lr.ph ], [ %indvars.iv.next179, %._crit_edge113 ]
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %11 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv178, i64 %5
  br label %13

.preheader96:                                     ; preds = %._crit_edge113
  %.not230 = icmp eq i32 %10, 1
  br i1 %.not230, label %.preheader96.._crit_edge143_crit_edge, label %.lr.ph142

.preheader96.._crit_edge143_crit_edge:            ; preds = %.preheader99.lr.ph, %0, %.preheader98, %.preheader96
  %12 = phi i32 [ %10, %.preheader96 ], [ %10, %.preheader98 ], [ %2, %0 ], [ 0, %.preheader99.lr.ph ]
  %.pre216 = sext i32 %12 to i64
  br label %._crit_edge143

13:                                               ; preds = %.preheader97, %13
  %indvars.iv175 = phi i64 [ 1, %.preheader97 ], [ %indvars.iv.next176, %13 ]
  %14 = getelementptr inbounds [13 x [13 x double]], ptr @b, i64 0, i64 %indvars.iv.next179, i64 %indvars.iv175
  %15 = load double, ptr %14, align 8, !tbaa !13
  %16 = getelementptr inbounds [13 x [13 x double]], ptr @b, i64 0, i64 %indvars.iv178, i64 %indvars.iv175
  %17 = load double, ptr %16, align 8, !tbaa !13
  %18 = fsub double %15, %17
  %19 = fmul double %18, 2.000000e+00
  %20 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv178, i64 %indvars.iv175
  store double %19, ptr %20, align 8, !tbaa !13
  %21 = fneg double %17
  %22 = fmul double %17, %21
  %23 = tail call double @llvm.fmuladd.f64(double %15, double %15, double %22)
  %24 = load double, ptr %11, align 8, !tbaa !13
  %25 = fadd double %24, %23
  store double %25, ptr %11, align 8, !tbaa !13
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next176, %5
  br i1 %exitcond.not, label %._crit_edge113, label %13, !llvm.loop !15

._crit_edge113:                                   ; preds = %13
  %exitcond182.not = icmp eq i64 %indvars.iv.next179, %5
  br i1 %exitcond182.not, label %.preheader96, label %.preheader97, !llvm.loop !16

..loopexit_crit_edge:                             ; preds = %._crit_edge131, %.lr.ph134.split.us.preheader
  %.us-phi136 = phi double [ %60, %.lr.ph134.split.us.preheader ], [ %69, %._crit_edge131 ]
  store double %.us-phi136, ptr @m, align 8, !tbaa !13
  br label %.loopexit

.loopexit:                                        ; preds = %..loopexit_crit_edge, %.preheader94
  %26 = sext i32 %45 to i64
  %27 = icmp slt i64 %indvars.iv.next191, %26
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %indvar.next = add i64 %indvar, 1
  br i1 %27, label %.lr.ph142, label %._crit_edge143, !llvm.loop !17

.lr.ph142:                                        ; preds = %.preheader96, %.loopexit
  %indvar = phi i64 [ %indvar.next, %.loopexit ], [ 0, %.preheader96 ]
  %28 = phi i32 [ %45, %.loopexit ], [ %10, %.preheader96 ]
  %indvars.iv190 = phi i64 [ %indvars.iv.next191, %.loopexit ], [ 1, %.preheader96 ]
  %indvars.iv183 = phi i64 [ %indvars.iv.next184, %.loopexit ], [ 2, %.preheader96 ]
  %29 = xor i64 %indvar, -1
  %30 = mul nuw nsw i64 %indvar, 112
  %gep = getelementptr i8, ptr getelementptr (i8, ptr @a, i64 216), i64 %30
  %gep267 = getelementptr i8, ptr getelementptr (i8, ptr @a, i64 112), i64 %30
  %gep268 = getelementptr i8, ptr getelementptr (i8, ptr @a, i64 120), i64 %30
  %indvars.iv.next191 = add nuw nsw i64 %indvars.iv190, 1
  %31 = sext i32 %28 to i64
  %.not88116.not = icmp slt i64 %indvars.iv190, %31
  %32 = trunc nuw nsw i64 %indvars.iv190 to i32
  %33 = add i32 %28, 1
  br i1 %.not88116.not, label %.lr.ph120, label %.preheader95

.lr.ph120:                                        ; preds = %.lr.ph142
  %wide.trip.count188 = zext i32 %33 to i64
  br label %36

.preheader95:                                     ; preds = %36, %.lr.ph142
  %.0.lcssa = phi i32 [ %32, %.lr.ph142 ], [ %.1, %36 ]
  %34 = sext i32 %33 to i64
  %.not89122 = icmp sgt i64 %indvars.iv190, %34
  br i1 %.not89122, label %.preheader94, label %.lr.ph124

.lr.ph124:                                        ; preds = %.preheader95
  %35 = sext i32 %.0.lcssa to i64
  br label %61

36:                                               ; preds = %.lr.ph120, %36
  %indvars.iv185 = phi i64 [ %indvars.iv183, %.lr.ph120 ], [ %indvars.iv.next186, %36 ]
  %.0118 = phi i32 [ %32, %.lr.ph120 ], [ %.1, %36 ]
  %37 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv185, i64 %indvars.iv190
  %38 = load double, ptr %37, align 8, !tbaa !13
  %39 = sext i32 %.0118 to i64
  %40 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %39, i64 %indvars.iv190
  %41 = load double, ptr %40, align 8, !tbaa !13
  %42 = fcmp ogt double %38, %41
  %43 = trunc nuw nsw i64 %indvars.iv185 to i32
  %.1 = select i1 %42, i32 %43, i32 %.0118
  %indvars.iv.next186 = add nuw nsw i64 %indvars.iv185, 1
  %exitcond189.not = icmp eq i64 %indvars.iv.next186, %wide.trip.count188
  br i1 %exitcond189.not, label %.preheader95, label %36, !llvm.loop !18

.preheader94.loopexit:                            ; preds = %61
  %44 = add nsw i32 %64, 1
  br label %.preheader94

.preheader94:                                     ; preds = %.preheader94.loopexit, %.preheader95
  %.pre-phi = phi i64 [ %65, %.preheader94.loopexit ], [ %31, %.preheader95 ]
  %45 = phi i32 [ %64, %.preheader94.loopexit ], [ %28, %.preheader95 ]
  %.lcssa = phi i32 [ %44, %.preheader94.loopexit ], [ %33, %.preheader95 ]
  %.not90132.not = icmp slt i64 %indvars.iv190, %.pre-phi
  br i1 %.not90132.not, label %.lr.ph134, label %.loopexit

.lr.ph134:                                        ; preds = %.preheader94
  %46 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv190, i64 %indvars.iv190
  %47 = sext i32 %.lcssa to i64
  %.not91127 = icmp sgt i64 %indvars.iv190, %47
  br i1 %.not91127, label %.lr.ph134.split.us.preheader, label %.lr.ph130.preheader

.lr.ph130.preheader:                              ; preds = %.lr.ph134
  %48 = add i32 %.lcssa, 1
  %49 = add i32 %45, 1
  %wide.trip.count203 = zext i32 %49 to i64
  %wide.trip.count198 = zext i32 %48 to i64
  %reass.sub = sub i64 %wide.trip.count203, %indvar
  %50 = mul i64 %reass.sub, 104
  %reass.sub248 = sub i64 %wide.trip.count198, %indvar
  %51 = shl i64 %reass.sub248, 3
  %52 = add i64 %51, -16
  %gep269 = getelementptr i8, ptr getelementptr (i8, ptr @a, i64 -88), i64 %30
  %53 = getelementptr i8, ptr %gep269, i64 %50
  %scevgep241 = getelementptr i8, ptr %53, i64 %52
  %scevgep244 = getelementptr i8, ptr %gep268, i64 %52
  %54 = add i64 %29, %wide.trip.count198
  %min.iters.check = icmp ult i64 %54, 4
  %bound0 = icmp ult ptr %gep, %scevgep244
  %bound1 = icmp ult ptr %gep267, %scevgep241
  %found.conflict = and i1 %bound0, %bound1
  %n.vec = and i64 %54, -4
  %ind.end = add i64 %indvars.iv190, %n.vec
  %cmp.n = icmp eq i64 %54, %n.vec
  %55 = add nsw i64 %wide.trip.count198, -1
  br label %.lr.ph130

.lr.ph134.split.us.preheader:                     ; preds = %.lr.ph134
  %56 = zext nneg i32 %45 to i64
  %57 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %56, i64 %indvars.iv190
  %58 = load double, ptr %57, align 8, !tbaa !13
  %59 = load double, ptr %46, align 8, !tbaa !13
  %60 = fdiv double %58, %59
  br label %..loopexit_crit_edge

61:                                               ; preds = %.lr.ph124, %61
  %indvars.iv192 = phi i64 [ %indvars.iv190, %.lr.ph124 ], [ %indvars.iv.next193, %61 ]
  %62 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv190, i64 %indvars.iv192
  %63 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %35, i64 %indvars.iv192
  tail call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(8) %63) #5
  %indvars.iv.next193 = add nuw nsw i64 %indvars.iv192, 1
  %64 = load i32, ptr @n, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %.not89 = icmp sgt i64 %indvars.iv192, %65
  br i1 %.not89, label %.preheader94.loopexit, label %61, !llvm.loop !19

.lr.ph130:                                        ; preds = %.lr.ph130.preheader, %._crit_edge131
  %indvars.iv200 = phi i64 [ %indvars.iv183, %.lr.ph130.preheader ], [ %indvars.iv.next201, %._crit_edge131 ]
  %66 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv200, i64 %indvars.iv190
  %67 = load double, ptr %66, align 8, !tbaa !13
  %68 = load double, ptr %46, align 8, !tbaa !13
  %69 = fdiv double %67, %68
  %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.ph130
  %broadcast.splatinsert = insertelement <2 x double> poison, double %69, 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 = add i64 %indvars.iv190, %index
  %70 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv190, i64 %offset.idx
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %wide.load = load <2 x double>, ptr %70, align 8, !tbaa !13, !alias.scope !20
  %wide.load245 = load <2 x double>, ptr %71, align 8, !tbaa !13, !alias.scope !20
  %72 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv200, i64 %offset.idx
  %73 = getelementptr inbounds i8, ptr %72, i64 16
  %wide.load246 = load <2 x double>, ptr %72, align 8, !tbaa !13, !alias.scope !23, !noalias !20
  %wide.load247 = load <2 x double>, ptr %73, align 8, !tbaa !13, !alias.scope !23, !noalias !20
  %74 = fneg <2 x double> %wide.load246
  %75 = fneg <2 x double> %wide.load247
  %76 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load, <2 x double> %broadcast.splat, <2 x double> %74)
  %77 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load245, <2 x double> %broadcast.splat, <2 x double> %75)
  store <2 x double> %76, ptr %72, align 8, !tbaa !13, !alias.scope !23, !noalias !20
  store <2 x double> %77, ptr %73, align 8, !tbaa !13, !alias.scope !23, !noalias !20
  %index.next = add nuw i64 %index, 4
  %78 = icmp eq i64 %index.next, %n.vec
  br i1 %78, label %middle.block, label %vector.body, !llvm.loop !25

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

scalar.ph.preheader:                              ; preds = %.lr.ph130, %middle.block
  %indvars.iv195.ph = phi i64 [ %indvars.iv190, %.lr.ph130 ], [ %ind.end, %middle.block ]
  %79 = sub i64 %wide.trip.count198, %indvars.iv195.ph
  %xtraiter = and i64 %79, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %80 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv190, i64 %indvars.iv195.ph
  %81 = load double, ptr %80, align 8, !tbaa !13
  %82 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv200, i64 %indvars.iv195.ph
  %83 = load double, ptr %82, align 8, !tbaa !13
  %84 = fneg double %83
  %85 = tail call double @llvm.fmuladd.f64(double %81, double %69, double %84)
  store double %85, ptr %82, align 8, !tbaa !13
  %indvars.iv.next196.prol = add nuw nsw i64 %indvars.iv195.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv195.unr = phi i64 [ %indvars.iv195.ph, %scalar.ph.preheader ], [ %indvars.iv.next196.prol, %scalar.ph.prol ]
  %86 = icmp eq i64 %indvars.iv195.ph, %55
  br i1 %86, label %._crit_edge131, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv195 = phi i64 [ %indvars.iv.next196.1, %scalar.ph ], [ %indvars.iv195.unr, %scalar.ph.prol.loopexit ]
  %87 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv190, i64 %indvars.iv195
  %88 = load double, ptr %87, align 8, !tbaa !13
  %89 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv200, i64 %indvars.iv195
  %90 = load double, ptr %89, align 8, !tbaa !13
  %91 = fneg double %90
  %92 = tail call double @llvm.fmuladd.f64(double %88, double %69, double %91)
  store double %92, ptr %89, align 8, !tbaa !13
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  %93 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv190, i64 %indvars.iv.next196
  %94 = load double, ptr %93, align 8, !tbaa !13
  %95 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv200, i64 %indvars.iv.next196
  %96 = load double, ptr %95, align 8, !tbaa !13
  %97 = fneg double %96
  %98 = tail call double @llvm.fmuladd.f64(double %94, double %69, double %97)
  store double %98, ptr %95, align 8, !tbaa !13
  %indvars.iv.next196.1 = add nuw nsw i64 %indvars.iv195, 2
  %exitcond199.not.1 = icmp eq i64 %indvars.iv.next196.1, %wide.trip.count198
  br i1 %exitcond199.not.1, label %._crit_edge131, label %scalar.ph, !llvm.loop !28

._crit_edge131:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next201 = add nuw nsw i64 %indvars.iv200, 1
  %exitcond204.not = icmp eq i64 %indvars.iv.next201, %wide.trip.count203
  br i1 %exitcond204.not, label %..loopexit_crit_edge, label %.lr.ph130, !llvm.loop !29

._crit_edge143:                                   ; preds = %.loopexit, %.preheader96.._crit_edge143_crit_edge
  %.pre-phi217 = phi i64 [ %.pre216, %.preheader96.._crit_edge143_crit_edge ], [ %26, %.loopexit ]
  %99 = phi i32 [ %12, %.preheader96.._crit_edge143_crit_edge ], [ %45, %.loopexit ]
  %100 = add nsw i32 %99, 1
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %.pre-phi217, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !13
  %104 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %.pre-phi217, i64 %.pre-phi217
  %105 = load double, ptr %104, align 8, !tbaa !13
  %106 = fdiv double %103, %105
  %107 = getelementptr inbounds [13 x double], ptr @x, i64 0, i64 %.pre-phi217
  store double %106, ptr %107, align 8, !tbaa !13
  %108 = icmp sgt i32 %99, 1
  br i1 %108, label %.lr.ph157.preheader, label %._crit_edge161

.lr.ph157.preheader:                              ; preds = %._crit_edge143
  %109 = zext nneg i32 %99 to i64
  br label %.lr.ph157

.preheader:                                       ; preds = %._crit_edge149
  store double %.lcssa150152, ptr @m, align 8, !tbaa !13
  br i1 %108, label %.lr.ph160, label %._crit_edge161

.lr.ph157:                                        ; preds = %.lr.ph157.preheader, %._crit_edge149
  %indvars.iv206 = phi i64 [ %109, %.lr.ph157.preheader ], [ %indvars.iv.next207, %._crit_edge149 ]
  %indvars.iv.next207 = add nsw i64 %indvars.iv206, -1
  %.not87145 = icmp sgt i64 %indvars.iv206, %.pre-phi217
  br i1 %.not87145, label %._crit_edge149, label %.lr.ph148

.lr.ph148:                                        ; preds = %.lr.ph157, %.lr.ph148
  %indvars.iv208 = phi i64 [ %indvars.iv.next209, %.lr.ph148 ], [ %indvars.iv206, %.lr.ph157 ]
  %110 = phi double [ %115, %.lr.ph148 ], [ 0.000000e+00, %.lr.ph157 ]
  %111 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv.next207, i64 %indvars.iv208
  %112 = load double, ptr %111, align 8, !tbaa !13
  %113 = getelementptr inbounds [13 x double], ptr @x, i64 0, i64 %indvars.iv208
  %114 = load double, ptr %113, align 8, !tbaa !13
  %115 = tail call double @llvm.fmuladd.f64(double %112, double %114, double %110)
  %indvars.iv.next209 = add nuw nsw i64 %indvars.iv208, 1
  %116 = trunc nuw i64 %indvars.iv208 to i32
  %.not87.not = icmp sgt i32 %99, %116
  br i1 %.not87.not, label %.lr.ph148, label %._crit_edge149, !llvm.loop !30

._crit_edge149:                                   ; preds = %.lr.ph148, %.lr.ph157
  %.lcssa150152 = phi double [ 0.000000e+00, %.lr.ph157 ], [ %115, %.lr.ph148 ]
  %117 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv.next207, i64 %101
  %118 = load double, ptr %117, align 8, !tbaa !13
  %119 = fsub double %118, %.lcssa150152
  %120 = getelementptr inbounds [13 x [13 x double]], ptr @a, i64 0, i64 %indvars.iv.next207, i64 %indvars.iv.next207
  %121 = load double, ptr %120, align 8, !tbaa !13
  %122 = fdiv double %119, %121
  %123 = getelementptr inbounds [13 x double], ptr @x, i64 0, i64 %indvars.iv.next207
  store double %122, ptr %123, align 8, !tbaa !13
  %124 = icmp sgt i64 %indvars.iv206, 2
  br i1 %124, label %.lr.ph157, label %.preheader, !llvm.loop !31

.lr.ph160:                                        ; preds = %.preheader, %.lr.ph160
  %indvars.iv212 = phi i64 [ %indvars.iv.next213, %.lr.ph160 ], [ 1, %.preheader ]
  %125 = getelementptr inbounds [13 x double], ptr @x, i64 0, i64 %indvars.iv212
  %126 = load double, ptr %125, align 8, !tbaa !13
  %127 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %126)
  %indvars.iv.next213 = add nuw nsw i64 %indvars.iv212, 1
  %128 = load i32, ptr @n, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %.not86.not = icmp slt i64 %indvars.iv.next213, %129
  br i1 %.not86.not, label %.lr.ph160, label %._crit_edge161.loopexit, !llvm.loop !32

._crit_edge161.loopexit:                          ; preds = %.lr.ph160
  %130 = and i64 %indvars.iv.next213, 4294967295
  br label %._crit_edge161

._crit_edge161:                                   ; preds = %._crit_edge143, %._crit_edge161.loopexit, %.preheader
  %.482.lcssa = phi i64 [ 1, %.preheader ], [ %130, %._crit_edge161.loopexit ], [ 1, %._crit_edge143 ]
  %131 = getelementptr inbounds [13 x double], ptr @x, i64 0, i64 %.482.lcssa
  %132 = load double, ptr %131, align 8, !tbaa !13
  %133 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %132)
  ret i32 0
}

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

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

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

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

; 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 = { mustprogress norecurse 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 = { 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10, !12}
!12 = !{!"llvm.loop.unswitch.partial.disable"}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = !{!21}
!21 = distinct !{!21, !22}
!22 = distinct !{!22, !"LVerDomain"}
!23 = !{!24}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !10, !26, !27}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = distinct !{!28, !10, !26}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}
!32 = distinct !{!32, !10}


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