; LLVM IR from tangjz/acm-icpc :: hdu (6250)

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@p = external dso_local global [101 x [101 x double]], align 16
@mat = external dso_local global [101 x [101 x double]], align 16
@vis = external dso_local global [101 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [62 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgnd(double noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %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 double, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %467, %0
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = load i32, ptr @t, align 4, !tbaa !5
  %32 = icmp sle i32 %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %470

34:                                               ; preds = %29
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @m)
  %36 = load i32, ptr @n, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = mul i64 %37, 1
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 %38, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %173, %34
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = load i32, ptr @m, align 4, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %176

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %77, %44
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = load i32, ptr @n, align 4, !tbaa !5
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %80

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %51 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %6)
  %52 = load double, ptr %6, align 8, !tbaa !9
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %54
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [101 x double], ptr %55, i64 0, i64 %57
  store double %52, ptr %58, align 8, !tbaa !9
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %60
  %62 = load i32, ptr %5, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [101 x double], ptr %61, i64 0, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [101 x double], ptr @p, i64 0, i64 %67
  %69 = load double, ptr %68, align 8, !tbaa !9
  %70 = fsub double %65, %69
  %71 = load i32, ptr %4, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %72
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [101 x double], ptr %73, i64 0, i64 %75
  store double %70, ptr %76, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %77

77:                                               ; preds = %50
  %78 = load i32, ptr %5, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %5, align 4, !tbaa !5
  br label %45, !llvm.loop !11

80:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %169, %80
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = icmp sle i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %172

86:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %109, %86
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = load i32, ptr @n, align 4, !tbaa !5
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %112

92:                                               ; preds = %87
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %94
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [101 x double], ptr %95, i64 0, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = load i32, ptr %7, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %101
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [101 x double], ptr %102, i64 0, i64 %104
  %106 = load double, ptr %105, align 8, !tbaa !9
  %107 = load double, ptr %8, align 8, !tbaa !9
  %108 = call double @llvm.fmuladd.f64(double %99, double %106, double %107)
  store double %108, ptr %8, align 8, !tbaa !9
  br label %109

109:                                              ; preds = %92
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %9, align 4, !tbaa !5
  br label %87, !llvm.loop !13

112:                                              ; preds = %91
  %113 = load i32, ptr %7, align 4, !tbaa !5
  %114 = load i32, ptr %4, align 4, !tbaa !5
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %116, label %144

116:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %140, %116
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = load i32, ptr @n, align 4, !tbaa !5
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %143

122:                                              ; preds = %117
  %123 = load double, ptr %8, align 8, !tbaa !9
  %124 = load i32, ptr %7, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %125
  %127 = load i32, ptr %10, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [101 x double], ptr %126, i64 0, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !9
  %131 = load i32, ptr %4, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %132
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [101 x double], ptr %133, i64 0, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = fneg double %123
  %139 = call double @llvm.fmuladd.f64(double %138, double %130, double %137)
  store double %139, ptr %136, align 8, !tbaa !9
  br label %140

140:                                              ; preds = %122
  %141 = load i32, ptr %10, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %10, align 4, !tbaa !5
  br label %117, !llvm.loop !14

143:                                              ; preds = %121
  br label %168

144:                                              ; preds = %112
  %145 = load double, ptr %8, align 8, !tbaa !9
  %146 = fpext double %145 to x86_fp80
  %147 = call x86_fp80 @sqrtl(x86_fp80 noundef %146) #8
  %148 = fptrunc x86_fp80 %147 to double
  store double %148, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %164, %144
  %150 = load i32, ptr %11, align 4, !tbaa !5
  %151 = load i32, ptr @n, align 4, !tbaa !5
  %152 = icmp slt i32 %150, %151
  br i1 %152, label %154, label %153

153:                                              ; preds = %149
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %167

154:                                              ; preds = %149
  %155 = load double, ptr %8, align 8, !tbaa !9
  %156 = load i32, ptr %4, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %157
  %159 = load i32, ptr %11, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [101 x double], ptr %158, i64 0, i64 %160
  %162 = load double, ptr %161, align 8, !tbaa !9
  %163 = fdiv double %162, %155
  store double %163, ptr %161, align 8, !tbaa !9
  br label %164

164:                                              ; preds = %154
  %165 = load i32, ptr %11, align 4, !tbaa !5
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %11, align 4, !tbaa !5
  br label %149, !llvm.loop !15

167:                                              ; preds = %153
  br label %168

168:                                              ; preds = %167, %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %169

169:                                              ; preds = %168
  %170 = load i32, ptr %7, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %7, align 4, !tbaa !5
  br label %81, !llvm.loop !16

172:                                              ; preds = %85
  br label %173

173:                                              ; preds = %172
  %174 = load i32, ptr %4, align 4, !tbaa !5
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %4, align 4, !tbaa !5
  br label %39, !llvm.loop !17

176:                                              ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %177 = load i32, ptr @m, align 4, !tbaa !5
  store i32 %177, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %178

178:                                              ; preds = %420, %176
  %179 = load i32, ptr %12, align 4, !tbaa !5
  %180 = load i32, ptr @n, align 4, !tbaa !5
  %181 = icmp sle i32 %179, %180
  br i1 %181, label %183, label %182

182:                                              ; preds = %178
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %423

183:                                              ; preds = %178
  br label %184

184:                                              ; preds = %322, %183
  br label %185

185:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #8
  store i8 0, ptr %14, align 1, !tbaa !18
  %186 = load i32, ptr %13, align 4, !tbaa !5
  %187 = load i32, ptr @n, align 4, !tbaa !5
  %188 = icmp slt i32 %186, %187
  br i1 %188, label %189, label %190

189:                                              ; preds = %185
  br label %192

190:                                              ; preds = %185
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 41, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

191:                                              ; No predecessors!
  br label %192

192:                                              ; preds = %191, %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %193

193:                                              ; preds = %209, %192
  %194 = load i32, ptr %15, align 4, !tbaa !5
  %195 = load i32, ptr @n, align 4, !tbaa !5
  %196 = icmp slt i32 %194, %195
  br i1 %196, label %198, label %197

197:                                              ; preds = %193
  store i32 28, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %212

198:                                              ; preds = %193
  %199 = load i32, ptr %15, align 4, !tbaa !5
  %200 = load i32, ptr %13, align 4, !tbaa !5
  %201 = icmp eq i32 %199, %200
  %202 = uitofp i1 %201 to double
  %203 = load i32, ptr %12, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %204
  %206 = load i32, ptr %15, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [101 x double], ptr %205, i64 0, i64 %207
  store double %202, ptr %208, align 8, !tbaa !9
  br label %209

209:                                              ; preds = %198
  %210 = load i32, ptr %15, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %15, align 4, !tbaa !5
  br label %193, !llvm.loop !20

212:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %309, %212
  %214 = load i32, ptr %16, align 4, !tbaa !5
  %215 = load i32, ptr %12, align 4, !tbaa !5
  %216 = icmp sle i32 %214, %215
  br i1 %216, label %218, label %217

217:                                              ; preds = %213
  store i32 31, ptr %3, align 4
  br label %312

218:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store double 0.000000e+00, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %219

219:                                              ; preds = %241, %218
  %220 = load i32, ptr %18, align 4, !tbaa !5
  %221 = load i32, ptr @n, align 4, !tbaa !5
  %222 = icmp slt i32 %220, %221
  br i1 %222, label %224, label %223

223:                                              ; preds = %219
  store i32 34, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %244

224:                                              ; preds = %219
  %225 = load i32, ptr %12, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %226
  %228 = load i32, ptr %18, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [101 x double], ptr %227, i64 0, i64 %229
  %231 = load double, ptr %230, align 8, !tbaa !9
  %232 = load i32, ptr %16, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %233
  %235 = load i32, ptr %18, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [101 x double], ptr %234, i64 0, i64 %236
  %238 = load double, ptr %237, align 8, !tbaa !9
  %239 = load double, ptr %17, align 8, !tbaa !9
  %240 = call double @llvm.fmuladd.f64(double %231, double %238, double %239)
  store double %240, ptr %17, align 8, !tbaa !9
  br label %241

241:                                              ; preds = %224
  %242 = load i32, ptr %18, align 4, !tbaa !5
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %18, align 4, !tbaa !5
  br label %219, !llvm.loop !21

244:                                              ; preds = %223
  %245 = load i32, ptr %16, align 4, !tbaa !5
  %246 = load i32, ptr %12, align 4, !tbaa !5
  %247 = icmp slt i32 %245, %246
  br i1 %247, label %248, label %276

248:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %249

249:                                              ; preds = %272, %248
  %250 = load i32, ptr %19, align 4, !tbaa !5
  %251 = load i32, ptr @n, align 4, !tbaa !5
  %252 = icmp slt i32 %250, %251
  br i1 %252, label %254, label %253

253:                                              ; preds = %249
  store i32 37, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %275

254:                                              ; preds = %249
  %255 = load double, ptr %17, align 8, !tbaa !9
  %256 = load i32, ptr %16, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %257
  %259 = load i32, ptr %19, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [101 x double], ptr %258, i64 0, i64 %260
  %262 = load double, ptr %261, align 8, !tbaa !9
  %263 = load i32, ptr %12, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %264
  %266 = load i32, ptr %19, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [101 x double], ptr %265, i64 0, i64 %267
  %269 = load double, ptr %268, align 8, !tbaa !9
  %270 = fneg double %255
  %271 = call double @llvm.fmuladd.f64(double %270, double %262, double %269)
  store double %271, ptr %268, align 8, !tbaa !9
  br label %272

272:                                              ; preds = %254
  %273 = load i32, ptr %19, align 4, !tbaa !5
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %19, align 4, !tbaa !5
  br label %249, !llvm.loop !22

275:                                              ; preds = %253
  br label %305

276:                                              ; preds = %244
  %277 = load double, ptr %17, align 8, !tbaa !9
  %278 = fpext double %277 to x86_fp80
  %279 = call x86_fp80 @sqrtl(x86_fp80 noundef %278) #8
  %280 = fptrunc x86_fp80 %279 to double
  store double %280, ptr %17, align 8, !tbaa !9
  %281 = load double, ptr %17, align 8, !tbaa !9
  %282 = call noundef i32 @_Z3sgnd(double noundef %281)
  %283 = icmp ne i32 %282, 0
  br i1 %283, label %285, label %284

284:                                              ; preds = %276
  store i32 31, ptr %3, align 4
  br label %306

285:                                              ; preds = %276
  store i8 1, ptr %14, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %286

286:                                              ; preds = %301, %285
  %287 = load i32, ptr %20, align 4, !tbaa !5
  %288 = load i32, ptr @n, align 4, !tbaa !5
  %289 = icmp slt i32 %287, %288
  br i1 %289, label %291, label %290

290:                                              ; preds = %286
  store i32 40, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %304

291:                                              ; preds = %286
  %292 = load double, ptr %17, align 8, !tbaa !9
  %293 = load i32, ptr %12, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %294
  %296 = load i32, ptr %20, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [101 x double], ptr %295, i64 0, i64 %297
  %299 = load double, ptr %298, align 8, !tbaa !9
  %300 = fdiv double %299, %292
  store double %300, ptr %298, align 8, !tbaa !9
  br label %301

301:                                              ; preds = %291
  %302 = load i32, ptr %20, align 4, !tbaa !5
  %303 = add nsw i32 %302, 1
  store i32 %303, ptr %20, align 4, !tbaa !5
  br label %286, !llvm.loop !23

304:                                              ; preds = %290
  br label %305

305:                                              ; preds = %304, %275
  store i32 0, ptr %3, align 4
  br label %306

306:                                              ; preds = %305, %284
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  %307 = load i32, ptr %3, align 4
  switch i32 %307, label %312 [
    i32 0, label %308
  ]

308:                                              ; preds = %306
  br label %309

309:                                              ; preds = %308
  %310 = load i32, ptr %16, align 4, !tbaa !5
  %311 = add nsw i32 %310, 1
  store i32 %311, ptr %16, align 4, !tbaa !5
  br label %213, !llvm.loop !24

312:                                              ; preds = %306, %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %313

313:                                              ; preds = %312
  %314 = load i8, ptr %14, align 1, !tbaa !18, !range !25, !noundef !26
  %315 = trunc i8 %314 to i1
  br i1 %315, label %316, label %317

316:                                              ; preds = %313
  store i32 27, ptr %3, align 4
  br label %320

317:                                              ; preds = %313
  %318 = load i32, ptr %13, align 4, !tbaa !5
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %13, align 4, !tbaa !5
  store i32 0, ptr %3, align 4
  br label %320

320:                                              ; preds = %317, %316
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  %321 = load i32, ptr %3, align 4
  switch i32 %321, label %471 [
    i32 0, label %322
    i32 27, label %323
  ]

322:                                              ; preds = %320
  br label %184, !llvm.loop !27

323:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %324

324:                                              ; preds = %336, %323
  %325 = load i32, ptr %21, align 4, !tbaa !5
  %326 = load i32, ptr @n, align 4, !tbaa !5
  %327 = icmp slt i32 %325, %326
  br i1 %327, label %329, label %328

328:                                              ; preds = %324
  store i32 43, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %339

329:                                              ; preds = %324
  %330 = load i32, ptr %12, align 4, !tbaa !5
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %331
  %333 = load i32, ptr %21, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [101 x double], ptr %332, i64 0, i64 %334
  store double 0.000000e+00, ptr %335, align 8, !tbaa !9
  br label %336

336:                                              ; preds = %329
  %337 = load i32, ptr %21, align 4, !tbaa !5
  %338 = add nsw i32 %337, 1
  store i32 %338, ptr %21, align 4, !tbaa !5
  br label %324, !llvm.loop !28

339:                                              ; preds = %328
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %340

340:                                              ; preds = %371, %339
  %341 = load i32, ptr %22, align 4, !tbaa !5
  %342 = load i32, ptr %12, align 4, !tbaa !5
  %343 = icmp slt i32 %341, %342
  br i1 %343, label %345, label %344

344:                                              ; preds = %340
  store i32 46, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %374

345:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %346

346:                                              ; preds = %367, %345
  %347 = load i32, ptr %23, align 4, !tbaa !5
  %348 = load i32, ptr @n, align 4, !tbaa !5
  %349 = icmp slt i32 %347, %348
  br i1 %349, label %351, label %350

350:                                              ; preds = %346
  store i32 49, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %370

351:                                              ; preds = %346
  %352 = load i32, ptr %22, align 4, !tbaa !5
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %353
  %355 = load i32, ptr %23, align 4, !tbaa !5
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [101 x double], ptr %354, i64 0, i64 %356
  %358 = load double, ptr %357, align 8, !tbaa !9
  %359 = load i32, ptr %12, align 4, !tbaa !5
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %360
  %362 = load i32, ptr %23, align 4, !tbaa !5
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [101 x double], ptr %361, i64 0, i64 %363
  %365 = load double, ptr %364, align 8, !tbaa !9
  %366 = fadd double %365, %358
  store double %366, ptr %364, align 8, !tbaa !9
  br label %367

367:                                              ; preds = %351
  %368 = load i32, ptr %23, align 4, !tbaa !5
  %369 = add nsw i32 %368, 1
  store i32 %369, ptr %23, align 4, !tbaa !5
  br label %346, !llvm.loop !29

370:                                              ; preds = %350
  br label %371

371:                                              ; preds = %370
  %372 = load i32, ptr %22, align 4, !tbaa !5
  %373 = add nsw i32 %372, 1
  store i32 %373, ptr %22, align 4, !tbaa !5
  br label %340, !llvm.loop !30

374:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %375 = load i32, ptr %12, align 4, !tbaa !5
  %376 = sitofp i32 %375 to double
  %377 = fadd double %376, 1.000000e+00
  %378 = load i32, ptr %12, align 4, !tbaa !5
  %379 = shl i32 %378, 1
  %380 = sitofp i32 %379 to double
  %381 = fdiv double %377, %380
  %382 = fpext double %381 to x86_fp80
  %383 = call x86_fp80 @sqrtl(x86_fp80 noundef %382) #8
  %384 = fptrunc x86_fp80 %383 to double
  store double %384, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %385

385:                                              ; preds = %416, %374
  %386 = load i32, ptr %25, align 4, !tbaa !5
  %387 = load i32, ptr @n, align 4, !tbaa !5
  %388 = icmp slt i32 %386, %387
  br i1 %388, label %390, label %389

389:                                              ; preds = %385
  store i32 52, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %419

390:                                              ; preds = %385
  %391 = load i32, ptr %12, align 4, !tbaa !5
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %392
  %394 = load i32, ptr %25, align 4, !tbaa !5
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds [101 x double], ptr %393, i64 0, i64 %395
  %397 = load double, ptr %396, align 8, !tbaa !9
  %398 = load i32, ptr %12, align 4, !tbaa !5
  %399 = sitofp i32 %398 to double
  %400 = fdiv double %397, %399
  %401 = load i32, ptr %12, align 4, !tbaa !5
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %402
  %404 = load i32, ptr %25, align 4, !tbaa !5
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds [101 x double], ptr %403, i64 0, i64 %405
  %407 = load double, ptr %406, align 8, !tbaa !9
  %408 = load double, ptr %24, align 8, !tbaa !9
  %409 = call double @llvm.fmuladd.f64(double %407, double %408, double %400)
  %410 = load i32, ptr %12, align 4, !tbaa !5
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %411
  %413 = load i32, ptr %25, align 4, !tbaa !5
  %414 = sext i32 %413 to i64
  %415 = getelementptr inbounds [101 x double], ptr %412, i64 0, i64 %414
  store double %409, ptr %415, align 8, !tbaa !9
  br label %416

416:                                              ; preds = %390
  %417 = load i32, ptr %25, align 4, !tbaa !5
  %418 = add nsw i32 %417, 1
  store i32 %418, ptr %25, align 4, !tbaa !5
  br label %385, !llvm.loop !31

419:                                              ; preds = %389
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %420

420:                                              ; preds = %419
  %421 = load i32, ptr %12, align 4, !tbaa !5
  %422 = add nsw i32 %421, 1
  store i32 %422, ptr %12, align 4, !tbaa !5
  br label %178, !llvm.loop !32

423:                                              ; preds = %182
  %424 = load i32, ptr %2, align 4, !tbaa !5
  %425 = load i32, ptr @n, align 4, !tbaa !5
  %426 = add nsw i32 %425, 1
  %427 = load i32, ptr @m, align 4, !tbaa !5
  %428 = sub nsw i32 %426, %427
  %429 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %424, i32 noundef %428)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %430 = load i32, ptr @m, align 4, !tbaa !5
  store i32 %430, ptr %26, align 4, !tbaa !5
  br label %431

431:                                              ; preds = %463, %423
  %432 = load i32, ptr %26, align 4, !tbaa !5
  %433 = load i32, ptr @n, align 4, !tbaa !5
  %434 = icmp sle i32 %432, %433
  br i1 %434, label %436, label %435

435:                                              ; preds = %431
  store i32 55, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %466

436:                                              ; preds = %431
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %437

437:                                              ; preds = %459, %436
  %438 = load i32, ptr %27, align 4, !tbaa !5
  %439 = load i32, ptr @n, align 4, !tbaa !5
  %440 = icmp slt i32 %438, %439
  br i1 %440, label %442, label %441

441:                                              ; preds = %437
  store i32 58, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %462

442:                                              ; preds = %437
  %443 = load i32, ptr %26, align 4, !tbaa !5
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %444
  %446 = load i32, ptr %27, align 4, !tbaa !5
  %447 = sext i32 %446 to i64
  %448 = getelementptr inbounds [101 x double], ptr %445, i64 0, i64 %447
  %449 = load double, ptr %448, align 8, !tbaa !9
  %450 = load i32, ptr %27, align 4, !tbaa !5
  %451 = load i32, ptr @n, align 4, !tbaa !5
  %452 = sub nsw i32 %451, 1
  %453 = icmp eq i32 %450, %452
  %454 = zext i1 %453 to i64
  %455 = getelementptr inbounds [3 x i8], ptr @.str.7, i64 0, i64 %454
  %456 = load i8, ptr %455, align 1, !tbaa !33
  %457 = sext i8 %456 to i32
  %458 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %449, i32 noundef %457)
  br label %459

459:                                              ; preds = %442
  %460 = load i32, ptr %27, align 4, !tbaa !5
  %461 = add nsw i32 %460, 1
  store i32 %461, ptr %27, align 4, !tbaa !5
  br label %437, !llvm.loop !34

462:                                              ; preds = %441
  br label %463

463:                                              ; preds = %462
  %464 = load i32, ptr %26, align 4, !tbaa !5
  %465 = add nsw i32 %464, 1
  store i32 %465, ptr %26, align 4, !tbaa !5
  br label %431, !llvm.loop !35

466:                                              ; preds = %435
  br label %467

467:                                              ; preds = %466
  %468 = load i32, ptr %2, align 4, !tbaa !5
  %469 = add nsw i32 %468, 1
  store i32 %469, ptr %2, align 4, !tbaa !5
  br label %29, !llvm.loop !36

470:                                              ; preds = %33
  ret i32 0

471:                                              ; preds = %320
  unreachable
}

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

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

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

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

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

; Function Attrs: nounwind
declare x86_fp80 @sqrtl(x86_fp80 noundef) #6

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #7

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

attributes #0 = { 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 #1 = { 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 #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 willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { noreturn 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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12}
!30 = distinct !{!30, !12}
!31 = distinct !{!31, !12}
!32 = distinct !{!32, !12}
!33 = !{!7, !7, i64 0}
!34 = distinct !{!34, !12}
!35 = distinct !{!35, !12}
!36 = distinct !{!36, !12}


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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@p = external dso_local local_unnamed_addr global [101 x [101 x double]], align 16
@mat = external dso_local local_unnamed_addr global [101 x [101 x double]], align 16
@vis = external dso_local local_unnamed_addr global [101 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [62 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgnd(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca double, align 8
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %3 = load i32, ptr @t, align 4, !tbaa !5
  %.not228 = icmp slt i32 %3, 1
  br i1 %.not228, label %._crit_edge232, label %.lr.ph231

._crit_edge232:                                   ; preds = %._crit_edge227, %0
  ret i32 0

.lr.ph231:                                        ; preds = %0, %._crit_edge227
  %.0111229 = phi i32 [ %250, %._crit_edge227 ], [ 1, %0 ]
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %6 = sext i32 %5 to i64
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @vis, i8 0, i64 %6, i1 false)
  %7 = load i32, ptr @m, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.preheader161, label %.preheader162

.preheader162:                                    ; preds = %._crit_edge181, %.lr.ph231
  %9 = phi i32 [ %5, %.lr.ph231 ], [ %31, %._crit_edge181 ]
  %.lcssa163 = phi i32 [ %7, %.lr.ph231 ], [ %33, %._crit_edge181 ]
  %.not138216 = icmp sgt i32 %.lcssa163, %9
  br i1 %.not138216, label %._crit_edge220, label %.preheader159.preheader

.preheader159.preheader:                          ; preds = %.preheader162
  %10 = sext i32 %.lcssa163 to i64
  br label %.preheader159

.preheader161:                                    ; preds = %.lr.ph231, %._crit_edge181
  %11 = phi i32 [ %31, %._crit_edge181 ], [ %5, %.lr.ph231 ]
  %12 = phi i32 [ %32, %._crit_edge181 ], [ %5, %.lr.ph231 ]
  %indvars.iv264 = phi i64 [ %indvars.iv.next265, %._crit_edge181 ], [ 0, %.lr.ph231 ]
  %indvars.iv262 = phi i64 [ %indvars.iv.next263, %._crit_edge181 ], [ 1, %.lr.ph231 ]
  %13 = mul nuw nsw i64 %indvars.iv264, 808
  %scevgep416 = getelementptr i8, ptr @mat, i64 %13
  %14 = icmp sgt i32 %12, 0
  br i1 %14, label %.lr.ph, label %.preheader160

.preheader160:                                    ; preds = %.lr.ph, %.preheader161
  %15 = phi i32 [ %11, %.preheader161 ], [ %24, %.lr.ph ]
  %16 = phi i32 [ %12, %.preheader161 ], [ %24, %.lr.ph ]
  %.not142178 = icmp eq i64 %indvars.iv264, 0
  br i1 %.not142178, label %._crit_edge181, label %.preheader155

.lr.ph:                                           ; preds = %.preheader161, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader161 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1)
  %18 = load double, ptr %1, align 8, !tbaa !9
  %19 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %indvars.iv264, i64 %indvars.iv
  store double %18, ptr %19, align 8, !tbaa !9
  %20 = getelementptr inbounds [101 x double], ptr @p, i64 0, i64 %indvars.iv
  %21 = load double, ptr %20, align 8, !tbaa !9
  %22 = fsub double %18, %21
  %23 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv264, i64 %indvars.iv
  store double %22, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %24 = load i32, ptr @n, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = icmp slt i64 %indvars.iv.next, %25
  br i1 %26, label %.lr.ph, label %.preheader160, !llvm.loop !11

.preheader155:                                    ; preds = %.preheader160, %.loopexit153
  %indvar418 = phi i64 [ %indvar.next419, %.loopexit153 ], [ 0, %.preheader160 ]
  %27 = phi i32 [ %92, %.loopexit153 ], [ %15, %.preheader160 ]
  %indvars.iv255 = phi i64 [ %indvars.iv.next256, %.loopexit153 ], [ 1, %.preheader160 ]
  %28 = mul nuw nsw i64 %indvar418, 808
  %gep = getelementptr i8, ptr getelementptr (i8, ptr @mat, i64 808), i64 %28
  %29 = icmp sgt i32 %27, 0
  br i1 %29, label %.lr.ph171, label %._crit_edge.thread

.lr.ph171:                                        ; preds = %.preheader155
  %wide.trip.count = zext nneg i32 %27 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %30 = icmp eq i32 %27, 1
  br i1 %30, label %._crit_edge.unr-lcssa, label %.lr.ph171.new

.lr.ph171.new:                                    ; preds = %.lr.ph171
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %59

._crit_edge181:                                   ; preds = %.loopexit153, %.preheader160
  %31 = phi i32 [ %15, %.preheader160 ], [ %92, %.loopexit153 ]
  %32 = phi i32 [ %16, %.preheader160 ], [ %92, %.loopexit153 ]
  %indvars.iv.next265 = add nuw nsw i64 %indvars.iv264, 1
  %33 = load i32, ptr @m, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = icmp slt i64 %indvars.iv.next265, %34
  %indvars.iv.next263 = add nuw nsw i64 %indvars.iv262, 1
  br i1 %35, label %.preheader161, label %.preheader162, !llvm.loop !13

._crit_edge.unr-lcssa:                            ; preds = %59, %.lr.ph171
  %.lcssa460.ph = phi double [ poison, %.lr.ph171 ], [ %69, %59 ]
  %indvars.iv242.unr = phi i64 [ 0, %.lr.ph171 ], [ %indvars.iv.next243.1, %59 ]
  %.0129169.unr = phi double [ 0.000000e+00, %.lr.ph171 ], [ %69, %59 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.epilog-lcssa

._crit_edge.epilog-lcssa:                         ; preds = %._crit_edge.unr-lcssa
  %36 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv264, i64 %indvars.iv242.unr
  %37 = load double, ptr %36, align 8, !tbaa !9
  %38 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv255, i64 %indvars.iv242.unr
  %39 = load double, ptr %38, align 8, !tbaa !9
  %40 = call double @llvm.fmuladd.f64(double %37, double %39, double %.0129169.unr)
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %.lcssa460 = phi double [ %.lcssa460.ph, %._crit_edge.unr-lcssa ], [ %40, %._crit_edge.epilog-lcssa ]
  %41 = icmp ult i64 %indvars.iv255, %indvars.iv264
  br i1 %41, label %.preheader152, label %80

._crit_edge.thread:                               ; preds = %.preheader155
  %42 = icmp ult i64 %indvars.iv255, %indvars.iv264
  br i1 %42, label %.loopexit153, label %80

.preheader152:                                    ; preds = %._crit_edge
  br i1 %29, label %.lr.ph177, label %.loopexit153

.lr.ph177:                                        ; preds = %.preheader152
  %43 = fneg double %.lcssa460
  %wide.trip.count253 = zext nneg i32 %27 to i64
  %min.iters.check427 = icmp ult i32 %27, 4
  br i1 %min.iters.check427, label %scalar.ph426.preheader, label %vector.memcheck415

scalar.ph426.preheader:                           ; preds = %middle.block425, %vector.memcheck415, %.lr.ph177
  %indvars.iv250.ph = phi i64 [ 0, %vector.memcheck415 ], [ 0, %.lr.ph177 ], [ %n.vec430, %middle.block425 ]
  %xtraiter470 = and i64 %wide.trip.count, 1
  %lcmp.mod471.not = icmp eq i64 %xtraiter470, 0
  br i1 %lcmp.mod471.not, label %scalar.ph426.prol.loopexit, label %scalar.ph426.prol

scalar.ph426.prol:                                ; preds = %scalar.ph426.preheader
  %44 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv255, i64 %indvars.iv250.ph
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv264, i64 %indvars.iv250.ph
  %47 = load double, ptr %46, align 8, !tbaa !9
  %48 = call double @llvm.fmuladd.f64(double %43, double %45, double %47)
  store double %48, ptr %46, align 8, !tbaa !9
  %indvars.iv.next251.prol = or disjoint i64 %indvars.iv250.ph, 1
  br label %scalar.ph426.prol.loopexit

scalar.ph426.prol.loopexit:                       ; preds = %scalar.ph426.prol, %scalar.ph426.preheader
  %indvars.iv250.unr = phi i64 [ %indvars.iv250.ph, %scalar.ph426.preheader ], [ %indvars.iv.next251.prol, %scalar.ph426.prol ]
  %49 = add nsw i64 %wide.trip.count, -1
  %50 = icmp eq i64 %indvars.iv250.ph, %49
  br i1 %50, label %.loopexit153, label %scalar.ph426

vector.memcheck415:                               ; preds = %.lr.ph177
  %51 = shl nuw nsw i64 %wide.trip.count, 3
  %scevgep417 = getelementptr i8, ptr %scevgep416, i64 %51
  %scevgep421 = getelementptr i8, ptr %gep, i64 %51
  %bound0422 = icmp ult ptr %scevgep416, %scevgep421
  %bound1423 = icmp ult ptr %gep, %scevgep417
  %found.conflict424 = and i1 %bound0422, %bound1423
  br i1 %found.conflict424, label %scalar.ph426.preheader, label %vector.ph428

vector.ph428:                                     ; preds = %vector.memcheck415
  %n.vec430 = and i64 %wide.trip.count, 2147483644
  %broadcast.splatinsert438 = insertelement <2 x double> poison, double %43, i64 0
  %broadcast.splat439 = shufflevector <2 x double> %broadcast.splatinsert438, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body432

vector.body432:                                   ; preds = %vector.body432, %vector.ph428
  %index433 = phi i64 [ 0, %vector.ph428 ], [ %index.next440, %vector.body432 ]
  %52 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv255, i64 %index433
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %wide.load434 = load <2 x double>, ptr %52, align 8, !tbaa !9, !alias.scope !14
  %wide.load435 = load <2 x double>, ptr %53, align 8, !tbaa !9, !alias.scope !14
  %54 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv264, i64 %index433
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %wide.load436 = load <2 x double>, ptr %54, align 8, !tbaa !9, !alias.scope !17, !noalias !14
  %wide.load437 = load <2 x double>, ptr %55, align 8, !tbaa !9, !alias.scope !17, !noalias !14
  %56 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat439, <2 x double> %wide.load434, <2 x double> %wide.load436)
  %57 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat439, <2 x double> %wide.load435, <2 x double> %wide.load437)
  store <2 x double> %56, ptr %54, align 8, !tbaa !9, !alias.scope !17, !noalias !14
  store <2 x double> %57, ptr %55, align 8, !tbaa !9, !alias.scope !17, !noalias !14
  %index.next440 = add nuw i64 %index433, 4
  %58 = icmp eq i64 %index.next440, %n.vec430
  br i1 %58, label %middle.block425, label %vector.body432, !llvm.loop !19

middle.block425:                                  ; preds = %vector.body432
  %cmp.n441 = icmp eq i64 %n.vec430, %wide.trip.count
  br i1 %cmp.n441, label %.loopexit153, label %scalar.ph426.preheader

59:                                               ; preds = %59, %.lr.ph171.new
  %indvars.iv242 = phi i64 [ 0, %.lr.ph171.new ], [ %indvars.iv.next243.1, %59 ]
  %.0129169 = phi double [ 0.000000e+00, %.lr.ph171.new ], [ %69, %59 ]
  %niter = phi i64 [ 0, %.lr.ph171.new ], [ %niter.next.1, %59 ]
  %60 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv264, i64 %indvars.iv242
  %61 = load double, ptr %60, align 8, !tbaa !9
  %62 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv255, i64 %indvars.iv242
  %63 = load double, ptr %62, align 8, !tbaa !9
  %64 = call double @llvm.fmuladd.f64(double %61, double %63, double %.0129169)
  %indvars.iv.next243 = or disjoint i64 %indvars.iv242, 1
  %65 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv264, i64 %indvars.iv.next243
  %66 = load double, ptr %65, align 8, !tbaa !9
  %67 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv255, i64 %indvars.iv.next243
  %68 = load double, ptr %67, align 8, !tbaa !9
  %69 = call double @llvm.fmuladd.f64(double %66, double %68, double %64)
  %indvars.iv.next243.1 = add nuw nsw i64 %indvars.iv242, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %59, !llvm.loop !22

scalar.ph426:                                     ; preds = %scalar.ph426.prol.loopexit, %scalar.ph426
  %indvars.iv250 = phi i64 [ %indvars.iv.next251.1, %scalar.ph426 ], [ %indvars.iv250.unr, %scalar.ph426.prol.loopexit ]
  %70 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv255, i64 %indvars.iv250
  %71 = load double, ptr %70, align 8, !tbaa !9
  %72 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv264, i64 %indvars.iv250
  %73 = load double, ptr %72, align 8, !tbaa !9
  %74 = call double @llvm.fmuladd.f64(double %43, double %71, double %73)
  store double %74, ptr %72, align 8, !tbaa !9
  %indvars.iv.next251 = add nuw nsw i64 %indvars.iv250, 1
  %75 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv255, i64 %indvars.iv.next251
  %76 = load double, ptr %75, align 8, !tbaa !9
  %77 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv264, i64 %indvars.iv.next251
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = call double @llvm.fmuladd.f64(double %43, double %76, double %78)
  store double %79, ptr %77, align 8, !tbaa !9
  %indvars.iv.next251.1 = add nuw nsw i64 %indvars.iv250, 2
  %exitcond254.not.1 = icmp eq i64 %indvars.iv.next251.1, %wide.trip.count253
  br i1 %exitcond254.not.1, label %.loopexit153, label %scalar.ph426, !llvm.loop !23

80:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %.0129.lcssa324 = phi double [ 0.000000e+00, %._crit_edge.thread ], [ %.lcssa460, %._crit_edge ]
  %81 = fpext double %.0129.lcssa324 to x86_fp80
  %82 = call x86_fp80 @sqrtl(x86_fp80 noundef %81) #9
  %83 = fptrunc x86_fp80 %82 to double
  %84 = load i32, ptr @n, align 4, !tbaa !5
  %85 = icmp sgt i32 %84, 0
  br i1 %85, label %.lr.ph175.preheader, label %.loopexit153

.lr.ph175.preheader:                              ; preds = %80
  %wide.trip.count248 = zext nneg i32 %84 to i64
  %min.iters.check444 = icmp eq i32 %84, 1
  br i1 %min.iters.check444, label %.lr.ph175.preheader458, label %vector.ph445

vector.ph445:                                     ; preds = %.lr.ph175.preheader
  %n.vec447 = and i64 %wide.trip.count248, 2147483646
  %broadcast.splatinsert452 = insertelement <2 x double> poison, double %83, i64 0
  %broadcast.splat453 = shufflevector <2 x double> %broadcast.splatinsert452, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body449

vector.body449:                                   ; preds = %vector.body449, %vector.ph445
  %index450 = phi i64 [ 0, %vector.ph445 ], [ %index.next454, %vector.body449 ]
  %86 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv264, i64 %index450
  %wide.load451 = load <2 x double>, ptr %86, align 8, !tbaa !9
  %87 = fdiv <2 x double> %wide.load451, %broadcast.splat453
  store <2 x double> %87, ptr %86, align 8, !tbaa !9
  %index.next454 = add nuw i64 %index450, 2
  %88 = icmp eq i64 %index.next454, %n.vec447
  br i1 %88, label %middle.block442, label %vector.body449, !llvm.loop !24

middle.block442:                                  ; preds = %vector.body449
  %cmp.n455 = icmp eq i64 %n.vec447, %wide.trip.count248
  br i1 %cmp.n455, label %.loopexit153, label %.lr.ph175.preheader458

.lr.ph175.preheader458:                           ; preds = %middle.block442, %.lr.ph175.preheader
  %indvars.iv245.ph = phi i64 [ 0, %.lr.ph175.preheader ], [ %n.vec447, %middle.block442 ]
  br label %.lr.ph175

.lr.ph175:                                        ; preds = %.lr.ph175.preheader458, %.lr.ph175
  %indvars.iv245 = phi i64 [ %indvars.iv.next246, %.lr.ph175 ], [ %indvars.iv245.ph, %.lr.ph175.preheader458 ]
  %89 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv264, i64 %indvars.iv245
  %90 = load double, ptr %89, align 8, !tbaa !9
  %91 = fdiv double %90, %83
  store double %91, ptr %89, align 8, !tbaa !9
  %indvars.iv.next246 = add nuw nsw i64 %indvars.iv245, 1
  %exitcond249.not = icmp eq i64 %indvars.iv.next246, %wide.trip.count248
  br i1 %exitcond249.not, label %.loopexit153, label %.lr.ph175, !llvm.loop !25

.loopexit153:                                     ; preds = %.lr.ph175, %scalar.ph426.prol.loopexit, %scalar.ph426, %middle.block442, %middle.block425, %._crit_edge.thread, %80, %.preheader152
  %92 = phi i32 [ %84, %80 ], [ %27, %.preheader152 ], [ %27, %._crit_edge.thread ], [ %27, %middle.block425 ], [ %84, %middle.block442 ], [ %27, %scalar.ph426 ], [ %27, %scalar.ph426.prol.loopexit ], [ %84, %.lr.ph175 ]
  %indvars.iv.next256 = add nuw nsw i64 %indvars.iv255, 1
  %exitcond261.not = icmp eq i64 %indvars.iv.next256, %indvars.iv262
  %indvar.next419 = add i64 %indvar418, 1
  br i1 %exitcond261.not, label %._crit_edge181, label %.preheader155, !llvm.loop !26

.preheader159:                                    ; preds = %.preheader159.preheader, %._crit_edge215
  %indvars.iv313 = phi i64 [ %10, %.preheader159.preheader ], [ %indvars.iv.next314, %._crit_edge215 ]
  %indvar = phi i64 [ 0, %.preheader159.preheader ], [ %indvar.next, %._crit_edge215 ]
  %indvars.iv291.in = phi i32 [ %.lcssa163, %.preheader159.preheader ], [ %indvars.iv291, %._crit_edge215 ]
  %.0122219 = phi i32 [ 0, %.preheader159.preheader ], [ %.1123, %._crit_edge215 ]
  %93 = add i64 %indvar, %10
  %94 = mul i64 %93, 808
  %scevgep375 = getelementptr i8, ptr @mat, i64 %94
  %95 = add i64 %indvar, %10
  %96 = mul i64 %95, 808
  %scevgep356 = getelementptr i8, ptr @p, i64 %96
  %97 = zext i32 %indvars.iv291.in to i64
  %98 = mul nuw nsw i64 %97, 808
  %indvars.iv291 = add i32 %indvars.iv291.in, 1
  %99 = add i64 %indvar, %10
  %100 = mul i64 %99, 808
  %scevgep = getelementptr i8, ptr @p, i64 %100
  %.not140196 = icmp slt i64 %indvars.iv313, 1
  %wide.trip.count293 = zext i32 %indvars.iv291 to i64
  br label %109

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

._crit_edge220:                                   ; preds = %._crit_edge220.loopexit, %.preheader162
  %101 = phi i32 [ %.lcssa163, %.preheader162 ], [ %.pre, %._crit_edge220.loopexit ]
  %.lcssa166 = phi i32 [ %9, %.preheader162 ], [ %234, %._crit_edge220.loopexit ]
  %102 = add nsw i32 %.lcssa166, 1
  %103 = sub i32 %102, %101
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %.0111229, i32 noundef %103)
  %105 = load i32, ptr @m, align 4, !tbaa !5
  %106 = load i32, ptr @n, align 4, !tbaa !5
  %.not139225 = icmp sle i32 %105, %106
  %107 = icmp sgt i32 %106, 0
  %or.cond = and i1 %.not139225, %107
  br i1 %or.cond, label %.preheader156.preheader, label %._crit_edge227

.preheader156.preheader:                          ; preds = %._crit_edge220
  %108 = sext i32 %105 to i64
  br label %.preheader156

109:                                              ; preds = %.preheader159, %._crit_edge200
  %.1123 = phi i32 [ %193, %._crit_edge200 ], [ %.0122219, %.preheader159 ]
  %110 = load i32, ptr @n, align 4, !tbaa !5
  %111 = icmp slt i32 %.1123, %110
  br i1 %111, label %.preheader151, label %115

.preheader151:                                    ; preds = %109
  %112 = icmp sgt i32 %110, 0
  br i1 %112, label %.lr.ph185.preheader, label %.preheader150

.lr.ph185.preheader:                              ; preds = %.preheader151
  %113 = zext i32 %.1123 to i64
  %wide.trip.count272 = zext nneg i32 %110 to i64
  %xtraiter472 = and i64 %wide.trip.count272, 3
  %114 = icmp ult i32 %110, 4
  br i1 %114, label %.preheader150.loopexit.unr-lcssa, label %.lr.ph185.preheader.new

.lr.ph185.preheader.new:                          ; preds = %.lr.ph185.preheader
  %unroll_iter474 = and i64 %wide.trip.count272, 2147483644
  br label %.lr.ph185

115:                                              ; preds = %109
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 41, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

.preheader150.loopexit.unr-lcssa:                 ; preds = %.lr.ph185, %.lr.ph185.preheader
  %indvars.iv269.unr = phi i64 [ 0, %.lr.ph185.preheader ], [ %indvars.iv.next270.3, %.lr.ph185 ]
  %lcmp.mod473.not = icmp eq i64 %xtraiter472, 0
  br i1 %lcmp.mod473.not, label %.preheader150, label %.lr.ph185.epil

.lr.ph185.epil:                                   ; preds = %.preheader150.loopexit.unr-lcssa, %.lr.ph185.epil
  %indvars.iv269.epil = phi i64 [ %indvars.iv.next270.epil, %.lr.ph185.epil ], [ %indvars.iv269.unr, %.preheader150.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph185.epil ], [ 0, %.preheader150.loopexit.unr-lcssa ]
  %116 = icmp eq i64 %indvars.iv269.epil, %113
  %117 = uitofp i1 %116 to double
  %118 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %indvars.iv269.epil
  store double %117, ptr %118, align 8, !tbaa !9
  %indvars.iv.next270.epil = add nuw nsw i64 %indvars.iv269.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter472
  br i1 %epil.iter.cmp.not, label %.preheader150, label %.lr.ph185.epil, !llvm.loop !27

.preheader150:                                    ; preds = %.preheader150.loopexit.unr-lcssa, %.lr.ph185.epil, %.preheader151
  br i1 %.not140196, label %._crit_edge200, label %.preheader148

.lr.ph185:                                        ; preds = %.lr.ph185, %.lr.ph185.preheader.new
  %indvars.iv269 = phi i64 [ 0, %.lr.ph185.preheader.new ], [ %indvars.iv.next270.3, %.lr.ph185 ]
  %niter475 = phi i64 [ 0, %.lr.ph185.preheader.new ], [ %niter475.next.3, %.lr.ph185 ]
  %119 = icmp eq i64 %indvars.iv269, %113
  %120 = uitofp i1 %119 to double
  %121 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %indvars.iv269
  store double %120, ptr %121, align 8, !tbaa !9
  %indvars.iv.next270 = or disjoint i64 %indvars.iv269, 1
  %122 = icmp eq i64 %indvars.iv.next270, %113
  %123 = uitofp i1 %122 to double
  %124 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %indvars.iv.next270
  store double %123, ptr %124, align 8, !tbaa !9
  %indvars.iv.next270.1 = or disjoint i64 %indvars.iv269, 2
  %125 = icmp eq i64 %indvars.iv.next270.1, %113
  %126 = uitofp i1 %125 to double
  %127 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %indvars.iv.next270.1
  store double %126, ptr %127, align 8, !tbaa !9
  %indvars.iv.next270.2 = or disjoint i64 %indvars.iv269, 3
  %128 = icmp eq i64 %indvars.iv.next270.2, %113
  %129 = uitofp i1 %128 to double
  %130 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %indvars.iv.next270.2
  store double %129, ptr %130, align 8, !tbaa !9
  %indvars.iv.next270.3 = add nuw nsw i64 %indvars.iv269, 4
  %niter475.next.3 = add i64 %niter475, 4
  %niter475.ncmp.3 = icmp eq i64 %niter475.next.3, %unroll_iter474
  br i1 %niter475.ncmp.3, label %.preheader150.loopexit.unr-lcssa, label %.lr.ph185, !llvm.loop !29

.preheader148:                                    ; preds = %.preheader150, %.loopexit
  %indvar377 = phi i64 [ %indvar.next378, %.loopexit ], [ 0, %.preheader150 ]
  %131 = phi i32 [ %192, %.loopexit ], [ %110, %.preheader150 ]
  %indvars.iv289 = phi i64 [ %indvars.iv.next290, %.loopexit ], [ 1, %.preheader150 ]
  %.0121197 = phi i1 [ %.2.ph, %.loopexit ], [ false, %.preheader150 ]
  %132 = mul i64 %indvar377, 808
  %gep496 = getelementptr i8, ptr getelementptr (i8, ptr @mat, i64 808), i64 %132
  %133 = icmp sgt i32 %131, 0
  br i1 %133, label %.lr.ph188, label %._crit_edge189.thread

.lr.ph188:                                        ; preds = %.preheader148
  %wide.trip.count277 = zext nneg i32 %131 to i64
  %xtraiter477 = and i64 %wide.trip.count277, 1
  %134 = icmp eq i32 %131, 1
  br i1 %134, label %._crit_edge189.unr-lcssa, label %.lr.ph188.new

.lr.ph188.new:                                    ; preds = %.lr.ph188
  %unroll_iter481 = and i64 %wide.trip.count277, 2147483646
  br label %158

._crit_edge189.unr-lcssa:                         ; preds = %158, %.lr.ph188
  %.lcssa464.ph = phi double [ poison, %.lr.ph188 ], [ %168, %158 ]
  %indvars.iv274.unr = phi i64 [ 0, %.lr.ph188 ], [ %indvars.iv.next275.1, %158 ]
  %.0118186.unr = phi double [ 0.000000e+00, %.lr.ph188 ], [ %168, %158 ]
  %lcmp.mod479.not = icmp eq i64 %xtraiter477, 0
  br i1 %lcmp.mod479.not, label %._crit_edge189, label %._crit_edge189.epilog-lcssa

._crit_edge189.epilog-lcssa:                      ; preds = %._crit_edge189.unr-lcssa
  %135 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %indvars.iv274.unr
  %136 = load double, ptr %135, align 8, !tbaa !9
  %137 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv289, i64 %indvars.iv274.unr
  %138 = load double, ptr %137, align 8, !tbaa !9
  %139 = call double @llvm.fmuladd.f64(double %136, double %138, double %.0118186.unr)
  br label %._crit_edge189

._crit_edge189:                                   ; preds = %._crit_edge189.unr-lcssa, %._crit_edge189.epilog-lcssa
  %.lcssa464 = phi double [ %.lcssa464.ph, %._crit_edge189.unr-lcssa ], [ %139, %._crit_edge189.epilog-lcssa ]
  %140 = icmp slt i64 %indvars.iv289, %indvars.iv313
  br i1 %140, label %.preheader, label %179

._crit_edge189.thread:                            ; preds = %.preheader148
  %141 = icmp slt i64 %indvars.iv289, %indvars.iv313
  br i1 %141, label %.loopexit, label %179

.preheader:                                       ; preds = %._crit_edge189
  br i1 %133, label %.lr.ph195, label %.loopexit

.lr.ph195:                                        ; preds = %.preheader
  %142 = fneg double %.lcssa464
  %wide.trip.count287 = zext nneg i32 %131 to i64
  %min.iters.check386 = icmp ult i32 %131, 4
  br i1 %min.iters.check386, label %scalar.ph385.preheader, label %vector.memcheck374

scalar.ph385.preheader:                           ; preds = %middle.block384, %vector.memcheck374, %.lr.ph195
  %indvars.iv284.ph = phi i64 [ 0, %vector.memcheck374 ], [ 0, %.lr.ph195 ], [ %n.vec389, %middle.block384 ]
  %xtraiter483 = and i64 %wide.trip.count277, 1
  %lcmp.mod484.not = icmp eq i64 %xtraiter483, 0
  br i1 %lcmp.mod484.not, label %scalar.ph385.prol.loopexit, label %scalar.ph385.prol

scalar.ph385.prol:                                ; preds = %scalar.ph385.preheader
  %143 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv289, i64 %indvars.iv284.ph
  %144 = load double, ptr %143, align 8, !tbaa !9
  %145 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %indvars.iv284.ph
  %146 = load double, ptr %145, align 8, !tbaa !9
  %147 = call double @llvm.fmuladd.f64(double %142, double %144, double %146)
  store double %147, ptr %145, align 8, !tbaa !9
  %indvars.iv.next285.prol = or disjoint i64 %indvars.iv284.ph, 1
  br label %scalar.ph385.prol.loopexit

scalar.ph385.prol.loopexit:                       ; preds = %scalar.ph385.prol, %scalar.ph385.preheader
  %indvars.iv284.unr = phi i64 [ %indvars.iv284.ph, %scalar.ph385.preheader ], [ %indvars.iv.next285.prol, %scalar.ph385.prol ]
  %148 = add nsw i64 %wide.trip.count277, -1
  %149 = icmp eq i64 %indvars.iv284.ph, %148
  br i1 %149, label %.loopexit, label %scalar.ph385

vector.memcheck374:                               ; preds = %.lr.ph195
  %150 = shl nuw nsw i64 %wide.trip.count277, 3
  %scevgep376 = getelementptr i8, ptr %scevgep375, i64 %150
  %scevgep380 = getelementptr i8, ptr %gep496, i64 %150
  %bound0381 = icmp ult ptr %scevgep375, %scevgep380
  %bound1382 = icmp ult ptr %gep496, %scevgep376
  %found.conflict383 = and i1 %bound0381, %bound1382
  br i1 %found.conflict383, label %scalar.ph385.preheader, label %vector.ph387

vector.ph387:                                     ; preds = %vector.memcheck374
  %n.vec389 = and i64 %wide.trip.count277, 2147483644
  %broadcast.splatinsert397 = insertelement <2 x double> poison, double %142, i64 0
  %broadcast.splat398 = shufflevector <2 x double> %broadcast.splatinsert397, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body391

vector.body391:                                   ; preds = %vector.body391, %vector.ph387
  %index392 = phi i64 [ 0, %vector.ph387 ], [ %index.next399, %vector.body391 ]
  %151 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv289, i64 %index392
  %152 = getelementptr inbounds i8, ptr %151, i64 16
  %wide.load393 = load <2 x double>, ptr %151, align 8, !tbaa !9, !alias.scope !30
  %wide.load394 = load <2 x double>, ptr %152, align 8, !tbaa !9, !alias.scope !30
  %153 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %index392
  %154 = getelementptr inbounds i8, ptr %153, i64 16
  %wide.load395 = load <2 x double>, ptr %153, align 8, !tbaa !9, !alias.scope !33, !noalias !30
  %wide.load396 = load <2 x double>, ptr %154, align 8, !tbaa !9, !alias.scope !33, !noalias !30
  %155 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat398, <2 x double> %wide.load393, <2 x double> %wide.load395)
  %156 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat398, <2 x double> %wide.load394, <2 x double> %wide.load396)
  store <2 x double> %155, ptr %153, align 8, !tbaa !9, !alias.scope !33, !noalias !30
  store <2 x double> %156, ptr %154, align 8, !tbaa !9, !alias.scope !33, !noalias !30
  %index.next399 = add nuw i64 %index392, 4
  %157 = icmp eq i64 %index.next399, %n.vec389
  br i1 %157, label %middle.block384, label %vector.body391, !llvm.loop !35

middle.block384:                                  ; preds = %vector.body391
  %cmp.n400 = icmp eq i64 %n.vec389, %wide.trip.count277
  br i1 %cmp.n400, label %.loopexit, label %scalar.ph385.preheader

158:                                              ; preds = %158, %.lr.ph188.new
  %indvars.iv274 = phi i64 [ 0, %.lr.ph188.new ], [ %indvars.iv.next275.1, %158 ]
  %.0118186 = phi double [ 0.000000e+00, %.lr.ph188.new ], [ %168, %158 ]
  %niter482 = phi i64 [ 0, %.lr.ph188.new ], [ %niter482.next.1, %158 ]
  %159 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %indvars.iv274
  %160 = load double, ptr %159, align 8, !tbaa !9
  %161 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv289, i64 %indvars.iv274
  %162 = load double, ptr %161, align 8, !tbaa !9
  %163 = call double @llvm.fmuladd.f64(double %160, double %162, double %.0118186)
  %indvars.iv.next275 = or disjoint i64 %indvars.iv274, 1
  %164 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %indvars.iv.next275
  %165 = load double, ptr %164, align 8, !tbaa !9
  %166 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv289, i64 %indvars.iv.next275
  %167 = load double, ptr %166, align 8, !tbaa !9
  %168 = call double @llvm.fmuladd.f64(double %165, double %167, double %163)
  %indvars.iv.next275.1 = add nuw nsw i64 %indvars.iv274, 2
  %niter482.next.1 = add i64 %niter482, 2
  %niter482.ncmp.1 = icmp eq i64 %niter482.next.1, %unroll_iter481
  br i1 %niter482.ncmp.1, label %._crit_edge189.unr-lcssa, label %158, !llvm.loop !36

scalar.ph385:                                     ; preds = %scalar.ph385.prol.loopexit, %scalar.ph385
  %indvars.iv284 = phi i64 [ %indvars.iv.next285.1, %scalar.ph385 ], [ %indvars.iv284.unr, %scalar.ph385.prol.loopexit ]
  %169 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv289, i64 %indvars.iv284
  %170 = load double, ptr %169, align 8, !tbaa !9
  %171 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %indvars.iv284
  %172 = load double, ptr %171, align 8, !tbaa !9
  %173 = call double @llvm.fmuladd.f64(double %142, double %170, double %172)
  store double %173, ptr %171, align 8, !tbaa !9
  %indvars.iv.next285 = add nuw nsw i64 %indvars.iv284, 1
  %174 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv289, i64 %indvars.iv.next285
  %175 = load double, ptr %174, align 8, !tbaa !9
  %176 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %indvars.iv.next285
  %177 = load double, ptr %176, align 8, !tbaa !9
  %178 = call double @llvm.fmuladd.f64(double %142, double %175, double %177)
  store double %178, ptr %176, align 8, !tbaa !9
  %indvars.iv.next285.1 = add nuw nsw i64 %indvars.iv284, 2
  %exitcond288.not.1 = icmp eq i64 %indvars.iv.next285.1, %wide.trip.count287
  br i1 %exitcond288.not.1, label %.loopexit, label %scalar.ph385, !llvm.loop !37

179:                                              ; preds = %._crit_edge189.thread, %._crit_edge189
  %.0118.lcssa328 = phi double [ 0.000000e+00, %._crit_edge189.thread ], [ %.lcssa464, %._crit_edge189 ]
  %180 = fpext double %.0118.lcssa328 to x86_fp80
  %181 = call x86_fp80 @sqrtl(x86_fp80 noundef %180) #9
  %182 = fptrunc x86_fp80 %181 to double
  %183 = call noundef i32 @_Z3sgnd(double noundef %182)
  %.not141 = icmp eq i32 %183, 0
  br i1 %.not141, label %._crit_edge200, label %.preheader146

.preheader146:                                    ; preds = %179
  %184 = load i32, ptr @n, align 4, !tbaa !5
  %185 = icmp sgt i32 %184, 0
  br i1 %185, label %.lr.ph193.preheader, label %.loopexit

.lr.ph193.preheader:                              ; preds = %.preheader146
  %wide.trip.count282 = zext nneg i32 %184 to i64
  %min.iters.check403 = icmp eq i32 %184, 1
  br i1 %min.iters.check403, label %.lr.ph193.preheader456, label %vector.ph404

vector.ph404:                                     ; preds = %.lr.ph193.preheader
  %n.vec406 = and i64 %wide.trip.count282, 2147483646
  %broadcast.splatinsert411 = insertelement <2 x double> poison, double %182, i64 0
  %broadcast.splat412 = shufflevector <2 x double> %broadcast.splatinsert411, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body408

vector.body408:                                   ; preds = %vector.body408, %vector.ph404
  %index409 = phi i64 [ 0, %vector.ph404 ], [ %index.next413, %vector.body408 ]
  %186 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %index409
  %wide.load410 = load <2 x double>, ptr %186, align 8, !tbaa !9
  %187 = fdiv <2 x double> %wide.load410, %broadcast.splat412
  store <2 x double> %187, ptr %186, align 8, !tbaa !9
  %index.next413 = add nuw i64 %index409, 2
  %188 = icmp eq i64 %index.next413, %n.vec406
  br i1 %188, label %middle.block401, label %vector.body408, !llvm.loop !38

middle.block401:                                  ; preds = %vector.body408
  %cmp.n414 = icmp eq i64 %n.vec406, %wide.trip.count282
  br i1 %cmp.n414, label %.loopexit, label %.lr.ph193.preheader456

.lr.ph193.preheader456:                           ; preds = %middle.block401, %.lr.ph193.preheader
  %indvars.iv279.ph = phi i64 [ 0, %.lr.ph193.preheader ], [ %n.vec406, %middle.block401 ]
  br label %.lr.ph193

.lr.ph193:                                        ; preds = %.lr.ph193.preheader456, %.lr.ph193
  %indvars.iv279 = phi i64 [ %indvars.iv.next280, %.lr.ph193 ], [ %indvars.iv279.ph, %.lr.ph193.preheader456 ]
  %189 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %indvars.iv279
  %190 = load double, ptr %189, align 8, !tbaa !9
  %191 = fdiv double %190, %182
  store double %191, ptr %189, align 8, !tbaa !9
  %indvars.iv.next280 = add nuw nsw i64 %indvars.iv279, 1
  %exitcond283.not = icmp eq i64 %indvars.iv.next280, %wide.trip.count282
  br i1 %exitcond283.not, label %.loopexit, label %.lr.ph193, !llvm.loop !39

.loopexit:                                        ; preds = %.lr.ph193, %scalar.ph385.prol.loopexit, %scalar.ph385, %middle.block401, %middle.block384, %._crit_edge189.thread, %.preheader146, %.preheader
  %192 = phi i32 [ %131, %.preheader ], [ %184, %.preheader146 ], [ %131, %._crit_edge189.thread ], [ %131, %middle.block384 ], [ %184, %middle.block401 ], [ %131, %scalar.ph385 ], [ %131, %scalar.ph385.prol.loopexit ], [ %184, %.lr.ph193 ]
  %.2.ph = phi i1 [ %.0121197, %.preheader ], [ true, %.preheader146 ], [ %.0121197, %._crit_edge189.thread ], [ %.0121197, %middle.block384 ], [ true, %middle.block401 ], [ %.0121197, %scalar.ph385 ], [ %.0121197, %scalar.ph385.prol.loopexit ], [ true, %.lr.ph193 ]
  %indvars.iv.next290 = add nuw nsw i64 %indvars.iv289, 1
  %exitcond294.not = icmp eq i64 %indvars.iv.next290, %wide.trip.count293
  %indvar.next378 = add i64 %indvar377, 1
  br i1 %exitcond294.not, label %._crit_edge200, label %.preheader148, !llvm.loop !40

._crit_edge200:                                   ; preds = %.loopexit, %179, %.preheader150
  %.0121.lcssa = phi i1 [ false, %.preheader150 ], [ %.0121197, %179 ], [ %.2.ph, %.loopexit ]
  %193 = add nsw i32 %.1123, 1
  br i1 %.0121.lcssa, label %.preheader158, label %109

.preheader158:                                    ; preds = %._crit_edge200
  %194 = load i32, ptr @n, align 4, !tbaa !5
  %195 = icmp sgt i32 %194, 0
  br i1 %195, label %.preheader157, label %._crit_edge211

.preheader157:                                    ; preds = %.preheader158
  %196 = zext nneg i32 %194 to i64
  %197 = shl nuw nsw i64 %196, 3
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep, i8 0, i64 %197, i1 false), !tbaa !9
  %198 = icmp sgt i64 %indvars.iv313, 0
  br i1 %198, label %.preheader149.us.preheader, label %._crit_edge211

.preheader149.us.preheader:                       ; preds = %.preheader157
  %wide.trip.count306 = and i64 %indvars.iv313, 4294967295
  %wide.trip.count301 = zext nneg i32 %194 to i64
  %199 = shl nuw nsw i64 %wide.trip.count301, 3
  %scevgep357 = getelementptr i8, ptr %scevgep356, i64 %199
  %200 = getelementptr i8, ptr getelementptr (i8, ptr @p, i64 -808), i64 %98
  %scevgep358 = getelementptr i8, ptr %200, i64 %199
  %min.iters.check361 = icmp ult i32 %194, 4
  %bound0 = icmp ult ptr %scevgep356, %scevgep358
  %bound1 = icmp ugt ptr %scevgep357, @p
  %found.conflict = and i1 %bound0, %bound1
  %n.vec364 = and i64 %wide.trip.count301, 2147483644
  %cmp.n373 = icmp eq i64 %n.vec364, %wide.trip.count301
  %xtraiter485 = and i64 %wide.trip.count301, 1
  %lcmp.mod486.not = icmp eq i64 %xtraiter485, 0
  %201 = add nsw i64 %wide.trip.count301, -1
  br label %.preheader149.us

.preheader149.us:                                 ; preds = %.preheader149.us.preheader, %._crit_edge209.us
  %indvars.iv303 = phi i64 [ 0, %.preheader149.us.preheader ], [ %indvars.iv.next304, %._crit_edge209.us ]
  %brmerge = select i1 %min.iters.check361, i1 true, i1 %found.conflict
  br i1 %brmerge, label %scalar.ph360.preheader, label %vector.body366

vector.body366:                                   ; preds = %.preheader149.us, %vector.body366
  %index367 = phi i64 [ %index.next372, %vector.body366 ], [ 0, %.preheader149.us ]
  %202 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %indvars.iv303, i64 %index367
  %203 = getelementptr inbounds i8, ptr %202, i64 16
  %wide.load368 = load <2 x double>, ptr %202, align 8, !tbaa !9, !alias.scope !41
  %wide.load369 = load <2 x double>, ptr %203, align 8, !tbaa !9, !alias.scope !41
  %204 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %indvars.iv313, i64 %index367
  %205 = getelementptr inbounds i8, ptr %204, i64 16
  %wide.load370 = load <2 x double>, ptr %204, align 8, !tbaa !9, !alias.scope !44, !noalias !41
  %wide.load371 = load <2 x double>, ptr %205, align 8, !tbaa !9, !alias.scope !44, !noalias !41
  %206 = fadd <2 x double> %wide.load368, %wide.load370
  %207 = fadd <2 x double> %wide.load369, %wide.load371
  store <2 x double> %206, ptr %204, align 8, !tbaa !9, !alias.scope !44, !noalias !41
  store <2 x double> %207, ptr %205, align 8, !tbaa !9, !alias.scope !44, !noalias !41
  %index.next372 = add nuw i64 %index367, 4
  %208 = icmp eq i64 %index.next372, %n.vec364
  br i1 %208, label %middle.block359, label %vector.body366, !llvm.loop !46

middle.block359:                                  ; preds = %vector.body366
  br i1 %cmp.n373, label %._crit_edge209.us, label %scalar.ph360.preheader

scalar.ph360.preheader:                           ; preds = %.preheader149.us, %middle.block359
  %indvars.iv298.ph = phi i64 [ 0, %.preheader149.us ], [ %n.vec364, %middle.block359 ]
  br i1 %lcmp.mod486.not, label %scalar.ph360.prol.loopexit, label %scalar.ph360.prol

scalar.ph360.prol:                                ; preds = %scalar.ph360.preheader
  %209 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %indvars.iv303, i64 %indvars.iv298.ph
  %210 = load double, ptr %209, align 8, !tbaa !9
  %211 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %indvars.iv313, i64 %indvars.iv298.ph
  %212 = load double, ptr %211, align 8, !tbaa !9
  %213 = fadd double %210, %212
  store double %213, ptr %211, align 8, !tbaa !9
  %indvars.iv.next299.prol = or disjoint i64 %indvars.iv298.ph, 1
  br label %scalar.ph360.prol.loopexit

scalar.ph360.prol.loopexit:                       ; preds = %scalar.ph360.prol, %scalar.ph360.preheader
  %indvars.iv298.unr = phi i64 [ %indvars.iv298.ph, %scalar.ph360.preheader ], [ %indvars.iv.next299.prol, %scalar.ph360.prol ]
  %214 = icmp eq i64 %indvars.iv298.ph, %201
  br i1 %214, label %._crit_edge209.us, label %scalar.ph360

scalar.ph360:                                     ; preds = %scalar.ph360.prol.loopexit, %scalar.ph360
  %indvars.iv298 = phi i64 [ %indvars.iv.next299.1, %scalar.ph360 ], [ %indvars.iv298.unr, %scalar.ph360.prol.loopexit ]
  %215 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %indvars.iv303, i64 %indvars.iv298
  %216 = load double, ptr %215, align 8, !tbaa !9
  %217 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %indvars.iv313, i64 %indvars.iv298
  %218 = load double, ptr %217, align 8, !tbaa !9
  %219 = fadd double %216, %218
  store double %219, ptr %217, align 8, !tbaa !9
  %indvars.iv.next299 = add nuw nsw i64 %indvars.iv298, 1
  %220 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %indvars.iv303, i64 %indvars.iv.next299
  %221 = load double, ptr %220, align 8, !tbaa !9
  %222 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %indvars.iv313, i64 %indvars.iv.next299
  %223 = load double, ptr %222, align 8, !tbaa !9
  %224 = fadd double %221, %223
  store double %224, ptr %222, align 8, !tbaa !9
  %indvars.iv.next299.1 = add nuw nsw i64 %indvars.iv298, 2
  %exitcond302.not.1 = icmp eq i64 %indvars.iv.next299.1, %wide.trip.count301
  br i1 %exitcond302.not.1, label %._crit_edge209.us, label %scalar.ph360, !llvm.loop !47

._crit_edge209.us:                                ; preds = %scalar.ph360.prol.loopexit, %scalar.ph360, %middle.block359
  %indvars.iv.next304 = add nuw nsw i64 %indvars.iv303, 1
  %exitcond307.not = icmp eq i64 %indvars.iv.next304, %wide.trip.count306
  br i1 %exitcond307.not, label %._crit_edge211, label %.preheader149.us, !llvm.loop !48

._crit_edge211:                                   ; preds = %._crit_edge209.us, %.preheader158, %.preheader157
  %225 = trunc nsw i64 %indvars.iv313 to i32
  %226 = sitofp i32 %225 to double
  %227 = fadd double %226, 1.000000e+00
  %228 = shl i32 %225, 1
  %229 = sitofp i32 %228 to double
  %230 = fdiv double %227, %229
  %231 = fpext double %230 to x86_fp80
  %232 = call x86_fp80 @sqrtl(x86_fp80 noundef %231) #9
  %233 = fptrunc x86_fp80 %232 to double
  %234 = load i32, ptr @n, align 4, !tbaa !5
  %235 = icmp sgt i32 %234, 0
  br i1 %235, label %.lr.ph214, label %._crit_edge215

.lr.ph214:                                        ; preds = %._crit_edge211
  %wide.trip.count311 = zext nneg i32 %234 to i64
  %min.iters.check = icmp eq i32 %234, 1
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph214
  %indvars.iv308.ph = phi i64 [ 0, %.lr.ph214 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph214
  %n.vec = and i64 %wide.trip.count311, 2147483646
  %broadcast.splatinsert = insertelement <2 x double> poison, double %226, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert354 = insertelement <2 x double> poison, double %233, i64 0
  %broadcast.splat355 = shufflevector <2 x double> %broadcast.splatinsert354, <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 ]
  %236 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %indvars.iv313, i64 %index
  %wide.load = load <2 x double>, ptr %236, align 8, !tbaa !9
  %237 = fdiv <2 x double> %wide.load, %broadcast.splat
  %238 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %index
  %wide.load353 = load <2 x double>, ptr %238, align 8, !tbaa !9
  %239 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load353, <2 x double> %broadcast.splat355, <2 x double> %237)
  store <2 x double> %239, ptr %236, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 2
  %240 = icmp eq i64 %index.next, %n.vec
  br i1 %240, label %middle.block, label %vector.body, !llvm.loop !49

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count311
  br i1 %cmp.n, label %._crit_edge215, label %scalar.ph.preheader

._crit_edge215:                                   ; preds = %scalar.ph, %middle.block, %._crit_edge211
  %indvars.iv.next314 = add nsw i64 %indvars.iv313, 1
  %241 = sext i32 %234 to i64
  %.not138.not = icmp slt i64 %indvars.iv313, %241
  %indvar.next = add nuw nsw i64 %indvar, 1
  br i1 %.not138.not, label %.preheader159, label %._crit_edge220.loopexit, !llvm.loop !50

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv308 = phi i64 [ %indvars.iv.next309, %scalar.ph ], [ %indvars.iv308.ph, %scalar.ph.preheader ]
  %242 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %indvars.iv313, i64 %indvars.iv308
  %243 = load double, ptr %242, align 8, !tbaa !9
  %244 = fdiv double %243, %226
  %245 = getelementptr inbounds [101 x [101 x double]], ptr @mat, i64 0, i64 %indvars.iv313, i64 %indvars.iv308
  %246 = load double, ptr %245, align 8, !tbaa !9
  %247 = call double @llvm.fmuladd.f64(double %246, double %233, double %244)
  store double %247, ptr %242, align 8, !tbaa !9
  %indvars.iv.next309 = add nuw nsw i64 %indvars.iv308, 1
  %exitcond312.not = icmp eq i64 %indvars.iv.next309, %wide.trip.count311
  br i1 %exitcond312.not, label %._crit_edge215, label %scalar.ph, !llvm.loop !51

.preheader156:                                    ; preds = %.preheader156.preheader, %._crit_edge224
  %248 = phi i32 [ %106, %.preheader156.preheader ], [ %252, %._crit_edge224 ]
  %indvars.iv319 = phi i64 [ %108, %.preheader156.preheader ], [ %indvars.iv.next320, %._crit_edge224 ]
  %249 = icmp sgt i32 %248, 0
  br i1 %249, label %.lr.ph223, label %.preheader156.._crit_edge224_crit_edge

.preheader156.._crit_edge224_crit_edge:           ; preds = %.preheader156
  %.pre322 = sext i32 %248 to i64
  br label %._crit_edge224

._crit_edge227:                                   ; preds = %._crit_edge224, %._crit_edge220
  %250 = add nuw nsw i32 %.0111229, 1
  %251 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.0111229, %251
  br i1 %.not.not, label %.lr.ph231, label %._crit_edge232, !llvm.loop !52

._crit_edge224:                                   ; preds = %.lr.ph223, %.preheader156.._crit_edge224_crit_edge
  %.pre-phi = phi i64 [ %.pre322, %.preheader156.._crit_edge224_crit_edge ], [ %265, %.lr.ph223 ]
  %252 = phi i32 [ %248, %.preheader156.._crit_edge224_crit_edge ], [ %264, %.lr.ph223 ]
  %indvars.iv.next320 = add nsw i64 %indvars.iv319, 1
  %.not139.not = icmp slt i64 %indvars.iv319, %.pre-phi
  br i1 %.not139.not, label %.preheader156, label %._crit_edge227, !llvm.loop !53

.lr.ph223:                                        ; preds = %.preheader156, %.lr.ph223
  %indvars.iv316 = phi i64 [ %indvars.iv.next317, %.lr.ph223 ], [ 0, %.preheader156 ]
  %253 = phi i32 [ %264, %.lr.ph223 ], [ %248, %.preheader156 ]
  %254 = getelementptr inbounds [101 x [101 x double]], ptr @p, i64 0, i64 %indvars.iv319, i64 %indvars.iv316
  %255 = load double, ptr %254, align 8, !tbaa !9
  %256 = add nsw i32 %253, -1
  %257 = zext i32 %256 to i64
  %258 = icmp eq i64 %indvars.iv316, %257
  %259 = zext i1 %258 to i64
  %260 = getelementptr inbounds [3 x i8], ptr @.str.7, i64 0, i64 %259
  %261 = load i8, ptr %260, align 1, !tbaa !55
  %262 = sext i8 %261 to i32
  %263 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %255, i32 noundef %262)
  %indvars.iv.next317 = add nuw nsw i64 %indvars.iv316, 1
  %264 = load i32, ptr @n, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = icmp slt i64 %indvars.iv.next317, %265
  br i1 %266, label %.lr.ph223, label %._crit_edge224, !llvm.loop !56
}

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

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare x86_fp80 @sqrtl(x86_fp80 noundef) local_unnamed_addr #6

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

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

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

attributes #0 = { 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 #1 = { 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 #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 willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { noreturn 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { noreturn 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 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15}
!15 = distinct !{!15, !16}
!16 = distinct !{!16, !"LVerDomain"}
!17 = !{!18}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !12, !20, !21}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12, !20}
!24 = distinct !{!24, !12, !20, !21}
!25 = distinct !{!25, !12, !21, !20}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.unroll.disable"}
!29 = distinct !{!29, !12}
!30 = !{!31}
!31 = distinct !{!31, !32}
!32 = distinct !{!32, !"LVerDomain"}
!33 = !{!34}
!34 = distinct !{!34, !32}
!35 = distinct !{!35, !12, !20, !21}
!36 = distinct !{!36, !12}
!37 = distinct !{!37, !12, !20}
!38 = distinct !{!38, !12, !20, !21}
!39 = distinct !{!39, !12, !21, !20}
!40 = distinct !{!40, !12}
!41 = !{!42}
!42 = distinct !{!42, !43}
!43 = distinct !{!43, !"LVerDomain"}
!44 = !{!45}
!45 = distinct !{!45, !43}
!46 = distinct !{!46, !12, !20, !21}
!47 = distinct !{!47, !12, !20}
!48 = distinct !{!48, !12}
!49 = distinct !{!49, !12, !20, !21}
!50 = distinct !{!50, !12}
!51 = distinct !{!51, !12, !21, !20}
!52 = distinct !{!52, !12}
!53 = distinct !{!53, !12, !54}
!54 = !{!"llvm.loop.unswitch.partial.disable"}
!55 = !{!7, !7, i64 0}
!56 = distinct !{!56, !12}


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