; LLVM IR from tangjz/acm-icpc :: projecteuler (368)

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

@m = external dso_local global i32, align 4
@e = external dso_local global i32, align 4
@sz = external dso_local global i32, align 4
@lpw = external dso_local global [11 x [101 x double]], align 16
@c = external dso_local global [101 x [101 x double]], align 16
@f = external dso_local global [101 x double], align 16
@mat = external dso_local global [101 x [203 x double]], align 16
@ans = external dso_local global double, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsiii(i32 noundef, i32 noundef, i32 noundef) #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %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
  store i32 0, ptr %1, align 4
  store i32 20, ptr @m, align 4, !tbaa !5
  %22 = load i32, ptr @m, align 4, !tbaa !5
  %23 = sdiv i32 100, %22
  store i32 %23, ptr @e, align 4, !tbaa !5
  %24 = load i32, ptr @e, align 4, !tbaa !5
  %25 = load i32, ptr @m, align 4, !tbaa !5
  %26 = mul nsw i32 %24, %25
  store i32 %26, ptr @sz, align 4, !tbaa !5
  store double 0.000000e+00, ptr @lpw, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %73, %0
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = icmp sle i32 %28, 10
  br i1 %29, label %31, label %30

30:                                               ; preds = %27
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %76

31:                                               ; preds = %27
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [11 x [101 x double]], ptr @lpw, i64 0, i64 %33
  %35 = getelementptr inbounds [101 x double], ptr %34, i64 0, i64 0
  store double 0.000000e+00, ptr %35, align 8, !tbaa !9
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = sitofp i32 %36 to double
  %38 = call double @log(double noundef %37) #7
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [11 x [101 x double]], ptr @lpw, i64 0, i64 %40
  %42 = getelementptr inbounds [101 x double], ptr %41, i64 0, i64 1
  store double %38, ptr %42, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 2, ptr %4, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %69, %31
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = load i32, ptr @e, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

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

48:                                               ; preds = %43
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [11 x [101 x double]], ptr @lpw, i64 0, i64 %50
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = sub nsw i32 %52, 1
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [101 x double], ptr %51, i64 0, i64 %54
  %56 = load double, ptr %55, align 8, !tbaa !9
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [11 x [101 x double]], ptr @lpw, i64 0, i64 %58
  %60 = getelementptr inbounds [101 x double], ptr %59, i64 0, i64 1
  %61 = load double, ptr %60, align 8, !tbaa !9
  %62 = fadd double %56, %61
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [11 x [101 x double]], ptr @lpw, i64 0, i64 %64
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [101 x double], ptr %65, i64 0, i64 %67
  store double %62, ptr %68, align 8, !tbaa !9
  br label %69

69:                                               ; preds = %48
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %4, align 4, !tbaa !5
  br label %43, !llvm.loop !11

72:                                               ; preds = %47
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %2, align 4, !tbaa !5
  br label %27, !llvm.loop !13

76:                                               ; preds = %30
  %77 = load i32, ptr @e, align 4, !tbaa !5
  %78 = sub nsw i32 %77, 1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [101 x double], ptr getelementptr inbounds ([11 x [101 x double]], ptr @lpw, i64 0, i64 10), i64 0, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = load double, ptr getelementptr inbounds ([101 x double], ptr getelementptr inbounds ([11 x [101 x double]], ptr @lpw, i64 0, i64 10), i64 0, i64 1), align 8, !tbaa !9
  %83 = fadd double %81, %82
  %84 = load i32, ptr @e, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [101 x double], ptr getelementptr inbounds ([11 x [101 x double]], ptr @lpw, i64 0, i64 10), i64 0, i64 %85
  store double %83, ptr %86, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %137, %76
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = load i32, ptr @e, align 4, !tbaa !5
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

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

92:                                               ; preds = %87
  %93 = load i32, ptr %5, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 %94
  %96 = load i32, ptr %5, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [101 x double], ptr %95, i64 0, i64 %97
  store double 1.000000e+00, ptr %98, align 8, !tbaa !9
  %99 = load i32, ptr %5, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 %100
  %102 = getelementptr inbounds [101 x double], ptr %101, i64 0, i64 0
  store double 1.000000e+00, ptr %102, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %133, %92
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = load i32, ptr %5, align 4, !tbaa !5
  %106 = icmp slt i32 %104, %105
  br i1 %106, label %108, label %107

107:                                              ; preds = %103
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %136

108:                                              ; preds = %103
  %109 = load i32, ptr %5, align 4, !tbaa !5
  %110 = sub nsw i32 %109, 1
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 %111
  %113 = load i32, ptr %6, align 4, !tbaa !5
  %114 = sub nsw i32 %113, 1
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [101 x double], ptr %112, i64 0, i64 %115
  %117 = load double, ptr %116, align 8, !tbaa !9
  %118 = load i32, ptr %5, align 4, !tbaa !5
  %119 = sub nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 %120
  %122 = load i32, ptr %6, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [101 x double], ptr %121, i64 0, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !9
  %126 = fadd double %117, %125
  %127 = load i32, ptr %5, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 %128
  %130 = load i32, ptr %6, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [101 x double], ptr %129, i64 0, i64 %131
  store double %126, ptr %132, align 8, !tbaa !9
  br label %133

133:                                              ; preds = %108
  %134 = load i32, ptr %6, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %6, align 4, !tbaa !5
  br label %103, !llvm.loop !14

136:                                              ; preds = %107
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %5, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %5, align 4, !tbaa !5
  br label %87, !llvm.loop !15

140:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %161, %140
  %142 = load i32, ptr %7, align 4, !tbaa !5
  %143 = load i32, ptr @sz, align 4, !tbaa !5
  %144 = icmp slt i32 %142, %143
  br i1 %144, label %146, label %145

145:                                              ; preds = %141
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %164

146:                                              ; preds = %141
  %147 = load i32, ptr %7, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %148
  %150 = load i32, ptr @sz, align 4, !tbaa !5
  %151 = load i32, ptr %7, align 4, !tbaa !5
  %152 = add nsw i32 %150, %151
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [203 x double], ptr %149, i64 0, i64 %153
  store double 1.000000e+00, ptr %154, align 8, !tbaa !9
  %155 = load i32, ptr %7, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %156
  %158 = load i32, ptr %7, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [203 x double], ptr %157, i64 0, i64 %159
  store double 1.000000e+00, ptr %160, align 8, !tbaa !9
  br label %161

161:                                              ; preds = %146
  %162 = load i32, ptr %7, align 4, !tbaa !5
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %7, align 4, !tbaa !5
  br label %141, !llvm.loop !16

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

165:                                              ; preds = %276, %164
  %166 = load i32, ptr %8, align 4, !tbaa !5
  %167 = load i32, ptr @m, align 4, !tbaa !5
  %168 = icmp slt i32 %166, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %165
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %279

170:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %171

171:                                              ; preds = %272, %170
  %172 = load i32, ptr %9, align 4, !tbaa !5
  %173 = icmp slt i32 %172, 10
  br i1 %173, label %175, label %174

174:                                              ; preds = %171
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %275

175:                                              ; preds = %171
  %176 = load i32, ptr %8, align 4, !tbaa !5
  %177 = and i32 %176, 1
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %179, label %185

179:                                              ; preds = %175
  %180 = load i32, ptr %8, align 4, !tbaa !5
  %181 = ashr i32 %180, 1
  %182 = load i32, ptr %9, align 4, !tbaa !5
  %183 = icmp eq i32 %181, %182
  br i1 %183, label %184, label %185

184:                                              ; preds = %179
  br label %272

185:                                              ; preds = %179, %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %186 = load i32, ptr %9, align 4, !tbaa !5
  %187 = shl i32 %186, 1
  %188 = load i32, ptr %8, align 4, !tbaa !5
  %189 = ashr i32 %188, 1
  %190 = load i32, ptr %9, align 4, !tbaa !5
  %191 = icmp eq i32 %189, %190
  %192 = zext i1 %191 to i32
  %193 = or i32 %187, %192
  store i32 %193, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %268, %185
  %195 = load i32, ptr %11, align 4, !tbaa !5
  %196 = load i32, ptr @e, align 4, !tbaa !5
  %197 = icmp slt i32 %195, %196
  br i1 %197, label %199, label %198

198:                                              ; preds = %194
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %271

199:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %200

200:                                              ; preds = %264, %199
  %201 = load i32, ptr %12, align 4, !tbaa !5
  %202 = load i32, ptr %11, align 4, !tbaa !5
  %203 = icmp sle i32 %201, %202
  br i1 %203, label %205, label %204

204:                                              ; preds = %200
  store i32 26, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %267

205:                                              ; preds = %200
  %206 = load i32, ptr %9, align 4, !tbaa !5
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %213, label %208

208:                                              ; preds = %205
  %209 = load i32, ptr %12, align 4, !tbaa !5
  %210 = load i32, ptr %11, align 4, !tbaa !5
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %212, label %213

212:                                              ; preds = %208
  br label %264

213:                                              ; preds = %208, %205
  %214 = load i32, ptr %11, align 4, !tbaa !5
  %215 = load i32, ptr %12, align 4, !tbaa !5
  %216 = sub nsw i32 %214, %215
  %217 = and i32 %216, 1
  %218 = icmp ne i32 %217, 0
  %219 = zext i1 %218 to i64
  %220 = select i1 %218, i32 -1, i32 1
  %221 = sitofp i32 %220 to double
  %222 = load i32, ptr %11, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 %223
  %225 = load i32, ptr %12, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [101 x double], ptr %224, i64 0, i64 %226
  %228 = load double, ptr %227, align 8, !tbaa !9
  %229 = call double @log(double noundef %228) #7
  %230 = load i32, ptr %9, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [11 x [101 x double]], ptr @lpw, i64 0, i64 %231
  %233 = load i32, ptr %11, align 4, !tbaa !5
  %234 = load i32, ptr %12, align 4, !tbaa !5
  %235 = sub nsw i32 %233, %234
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [101 x double], ptr %232, i64 0, i64 %236
  %238 = load double, ptr %237, align 8, !tbaa !9
  %239 = fadd double %229, %238
  %240 = load i32, ptr %11, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [101 x double], ptr getelementptr inbounds ([11 x [101 x double]], ptr @lpw, i64 0, i64 10), i64 0, i64 %242
  %244 = load double, ptr %243, align 8, !tbaa !9
  %245 = fsub double %239, %244
  %246 = call double @exp(double noundef %245) #7
  %247 = load i32, ptr %11, align 4, !tbaa !5
  %248 = load i32, ptr @m, align 4, !tbaa !5
  %249 = mul nsw i32 %247, %248
  %250 = load i32, ptr %8, align 4, !tbaa !5
  %251 = add nsw i32 %249, %250
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %252
  %254 = load i32, ptr %12, align 4, !tbaa !5
  %255 = load i32, ptr @m, align 4, !tbaa !5
  %256 = mul nsw i32 %254, %255
  %257 = load i32, ptr %10, align 4, !tbaa !5
  %258 = add nsw i32 %256, %257
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [203 x double], ptr %253, i64 0, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !9
  %262 = fneg double %221
  %263 = call double @llvm.fmuladd.f64(double %262, double %246, double %261)
  store double %263, ptr %260, align 8, !tbaa !9
  br label %264

264:                                              ; preds = %213, %212
  %265 = load i32, ptr %12, align 4, !tbaa !5
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %12, align 4, !tbaa !5
  br label %200, !llvm.loop !17

267:                                              ; preds = %204
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %11, align 4, !tbaa !5
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %11, align 4, !tbaa !5
  br label %194, !llvm.loop !18

271:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %272

272:                                              ; preds = %271, %184
  %273 = load i32, ptr %9, align 4, !tbaa !5
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %9, align 4, !tbaa !5
  br label %171, !llvm.loop !19

275:                                              ; preds = %174
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %8, align 4, !tbaa !5
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %8, align 4, !tbaa !5
  br label %165, !llvm.loop !20

279:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  br label %280

280:                                              ; preds = %407, %279
  %281 = load i32, ptr %13, align 4, !tbaa !5
  %282 = load i32, ptr @sz, align 4, !tbaa !5
  %283 = icmp slt i32 %281, %282
  br i1 %283, label %285, label %284

284:                                              ; preds = %280
  store i32 29, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %410

285:                                              ; preds = %280
  %286 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %286, ptr %14, align 4, !tbaa !5
  %287 = load i32, ptr %14, align 4, !tbaa !5
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %15, align 4, !tbaa !5
  br label %289

289:                                              ; preds = %314, %285
  %290 = load i32, ptr %15, align 4, !tbaa !5
  %291 = load i32, ptr @sz, align 4, !tbaa !5
  %292 = icmp slt i32 %290, %291
  br i1 %292, label %293, label %317

293:                                              ; preds = %289
  %294 = load i32, ptr %15, align 4, !tbaa !5
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %295
  %297 = load i32, ptr %13, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [203 x double], ptr %296, i64 0, i64 %298
  %300 = load double, ptr %299, align 8, !tbaa !9
  %301 = call double @llvm.fabs.f64(double %300)
  %302 = load i32, ptr %14, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %303
  %305 = load i32, ptr %13, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [203 x double], ptr %304, i64 0, i64 %306
  %308 = load double, ptr %307, align 8, !tbaa !9
  %309 = call double @llvm.fabs.f64(double %308)
  %310 = fcmp ogt double %301, %309
  br i1 %310, label %311, label %313

311:                                              ; preds = %293
  %312 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %312, ptr %14, align 4, !tbaa !5
  br label %313

313:                                              ; preds = %311, %293
  br label %314

314:                                              ; preds = %313
  %315 = load i32, ptr %15, align 4, !tbaa !5
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %15, align 4, !tbaa !5
  br label %289, !llvm.loop !21

317:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %318 = load i32, ptr %14, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %319
  %321 = load i32, ptr %13, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [203 x double], ptr %320, i64 0, i64 %322
  %324 = load double, ptr %323, align 8, !tbaa !9
  store double %324, ptr %16, align 8, !tbaa !9
  %325 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %325, ptr %15, align 4, !tbaa !5
  br label %326

326:                                              ; preds = %353, %317
  %327 = load i32, ptr %15, align 4, !tbaa !5
  %328 = load i32, ptr @sz, align 4, !tbaa !5
  %329 = shl i32 %328, 1
  %330 = icmp slt i32 %327, %329
  br i1 %330, label %331, label %356

331:                                              ; preds = %326
  %332 = load i32, ptr %14, align 4, !tbaa !5
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %333
  %335 = load i32, ptr %15, align 4, !tbaa !5
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [203 x double], ptr %334, i64 0, i64 %336
  %338 = load i32, ptr %13, align 4, !tbaa !5
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %339
  %341 = load i32, ptr %15, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [203 x double], ptr %340, i64 0, i64 %342
  call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %337, ptr noundef nonnull align 8 dereferenceable(8) %343) #7
  %344 = load double, ptr %16, align 8, !tbaa !9
  %345 = load i32, ptr %13, align 4, !tbaa !5
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %346
  %348 = load i32, ptr %15, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [203 x double], ptr %347, i64 0, i64 %349
  %351 = load double, ptr %350, align 8, !tbaa !9
  %352 = fdiv double %351, %344
  store double %352, ptr %350, align 8, !tbaa !9
  br label %353

353:                                              ; preds = %331
  %354 = load i32, ptr %15, align 4, !tbaa !5
  %355 = add nsw i32 %354, 1
  store i32 %355, ptr %15, align 4, !tbaa !5
  br label %326, !llvm.loop !22

356:                                              ; preds = %326
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %357

357:                                              ; preds = %403, %356
  %358 = load i32, ptr %14, align 4, !tbaa !5
  %359 = load i32, ptr @sz, align 4, !tbaa !5
  %360 = icmp slt i32 %358, %359
  br i1 %360, label %361, label %406

361:                                              ; preds = %357
  %362 = load i32, ptr %13, align 4, !tbaa !5
  %363 = load i32, ptr %14, align 4, !tbaa !5
  %364 = icmp eq i32 %362, %363
  br i1 %364, label %365, label %366

365:                                              ; preds = %361
  br label %403

366:                                              ; preds = %361
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %367 = load i32, ptr %14, align 4, !tbaa !5
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %368
  %370 = load i32, ptr %13, align 4, !tbaa !5
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [203 x double], ptr %369, i64 0, i64 %371
  %373 = load double, ptr %372, align 8, !tbaa !9
  store double %373, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %374 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %374, ptr %18, align 4, !tbaa !5
  br label %375

375:                                              ; preds = %399, %366
  %376 = load i32, ptr %18, align 4, !tbaa !5
  %377 = load i32, ptr @sz, align 4, !tbaa !5
  %378 = shl i32 %377, 1
  %379 = icmp slt i32 %376, %378
  br i1 %379, label %381, label %380

380:                                              ; preds = %375
  store i32 41, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %402

381:                                              ; preds = %375
  %382 = load double, ptr %17, align 8, !tbaa !9
  %383 = load i32, ptr %13, align 4, !tbaa !5
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %384
  %386 = load i32, ptr %18, align 4, !tbaa !5
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds [203 x double], ptr %385, i64 0, i64 %387
  %389 = load double, ptr %388, align 8, !tbaa !9
  %390 = load i32, ptr %14, align 4, !tbaa !5
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %391
  %393 = load i32, ptr %18, align 4, !tbaa !5
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [203 x double], ptr %392, i64 0, i64 %394
  %396 = load double, ptr %395, align 8, !tbaa !9
  %397 = fneg double %382
  %398 = call double @llvm.fmuladd.f64(double %397, double %389, double %396)
  store double %398, ptr %395, align 8, !tbaa !9
  br label %399

399:                                              ; preds = %381
  %400 = load i32, ptr %18, align 4, !tbaa !5
  %401 = add nsw i32 %400, 1
  store i32 %401, ptr %18, align 4, !tbaa !5
  br label %375, !llvm.loop !23

402:                                              ; preds = %380
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %403

403:                                              ; preds = %402, %365
  %404 = load i32, ptr %14, align 4, !tbaa !5
  %405 = add nsw i32 %404, 1
  store i32 %405, ptr %14, align 4, !tbaa !5
  br label %357, !llvm.loop !24

406:                                              ; preds = %357
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %407

407:                                              ; preds = %406
  %408 = load i32, ptr %13, align 4, !tbaa !5
  %409 = add nsw i32 %408, 1
  store i32 %409, ptr %13, align 4, !tbaa !5
  br label %280, !llvm.loop !25

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

411:                                              ; preds = %419, %410
  %412 = load i32, ptr %19, align 4, !tbaa !5
  %413 = icmp slt i32 %412, 10
  br i1 %413, label %415, label %414

414:                                              ; preds = %411
  store i32 44, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %422

415:                                              ; preds = %411
  %416 = load i32, ptr %19, align 4, !tbaa !5
  %417 = load i32, ptr %19, align 4, !tbaa !5
  %418 = shl i32 %417, 1
  call void @_Z3dfsiii(i32 noundef 1, i32 noundef %416, i32 noundef %418)
  br label %419

419:                                              ; preds = %415
  %420 = load i32, ptr %19, align 4, !tbaa !5
  %421 = add nsw i32 %420, 1
  store i32 %421, ptr %19, align 4, !tbaa !5
  br label %411, !llvm.loop !26

422:                                              ; preds = %414
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %423

423:                                              ; preds = %454, %422
  %424 = load i32, ptr %20, align 4, !tbaa !5
  %425 = load i32, ptr @sz, align 4, !tbaa !5
  %426 = icmp slt i32 %424, %425
  br i1 %426, label %428, label %427

427:                                              ; preds = %423
  store i32 47, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %457

428:                                              ; preds = %423
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %429

429:                                              ; preds = %450, %428
  %430 = load i32, ptr %21, align 4, !tbaa !5
  %431 = load i32, ptr @m, align 4, !tbaa !5
  %432 = icmp slt i32 %430, %431
  br i1 %432, label %434, label %433

433:                                              ; preds = %429
  store i32 50, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %453

434:                                              ; preds = %429
  %435 = load i32, ptr %20, align 4, !tbaa !5
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds [101 x double], ptr @f, i64 0, i64 %436
  %438 = load double, ptr %437, align 8, !tbaa !9
  %439 = load i32, ptr %20, align 4, !tbaa !5
  %440 = sext i32 %439 to i64
  %441 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %440
  %442 = load i32, ptr @sz, align 4, !tbaa !5
  %443 = load i32, ptr %21, align 4, !tbaa !5
  %444 = add nsw i32 %442, %443
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds [203 x double], ptr %441, i64 0, i64 %445
  %447 = load double, ptr %446, align 8, !tbaa !9
  %448 = load double, ptr @ans, align 8, !tbaa !9
  %449 = call double @llvm.fmuladd.f64(double %438, double %447, double %448)
  store double %449, ptr @ans, align 8, !tbaa !9
  br label %450

450:                                              ; preds = %434
  %451 = load i32, ptr %21, align 4, !tbaa !5
  %452 = add nsw i32 %451, 1
  store i32 %452, ptr %21, align 4, !tbaa !5
  br label %429, !llvm.loop !27

453:                                              ; preds = %433
  br label %454

454:                                              ; preds = %453
  %455 = load i32, ptr %20, align 4, !tbaa !5
  %456 = add nsw i32 %455, 1
  store i32 %456, ptr %20, align 4, !tbaa !5
  br label %423, !llvm.loop !28

457:                                              ; preds = %427
  %458 = load double, ptr @ans, align 8, !tbaa !9
  %459 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %458)
  ret i32 0
}

; Function Attrs: nounwind
declare double @log(double noundef) #3

; Function Attrs: nounwind
declare double @exp(double noundef) #3

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "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 = { 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 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !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"

@m = external dso_local local_unnamed_addr global i32, align 4
@e = external dso_local local_unnamed_addr global i32, align 4
@sz = external dso_local local_unnamed_addr global i32, align 4
@lpw = external dso_local local_unnamed_addr global [11 x [101 x double]], align 16
@c = external dso_local local_unnamed_addr global [101 x [101 x double]], align 16
@f = external dso_local local_unnamed_addr global [101 x double], align 16
@mat = external dso_local global [101 x [203 x double]], align 16
@ans = external dso_local local_unnamed_addr global double, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
.lr.ph.preheader:
  store i32 20, ptr @m, align 4, !tbaa !5
  store i32 5, ptr @e, align 4, !tbaa !5
  store i32 100, ptr @sz, align 4, !tbaa !5
  store double 0.000000e+00, ptr @lpw, align 16, !tbaa !9
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @lpw, i64 808), i8 0, i64 16, i1 false)
  %0 = load double, ptr getelementptr inbounds (i8, ptr @lpw, i64 816), align 16, !tbaa !9
  %1 = fadd double %0, 0.000000e+00
  store double %1, ptr getelementptr inbounds (i8, ptr @lpw, i64 824), align 8, !tbaa !9
  %2 = fadd double %1, %0
  store double %2, ptr getelementptr inbounds (i8, ptr @lpw, i64 832), align 16, !tbaa !9
  %3 = fadd double %2, %0
  store double %3, ptr getelementptr inbounds (i8, ptr @lpw, i64 840), align 8, !tbaa !9
  store <2 x double> <double 0.000000e+00, double 0x3FE62E42FEFA39EF>, ptr getelementptr inbounds (i8, ptr @lpw, i64 1616), align 16, !tbaa !9
  %4 = load double, ptr getelementptr inbounds (i8, ptr @lpw, i64 1624), align 8, !tbaa !9
  %5 = fadd double %4, 0x3FE62E42FEFA39EF
  store double %5, ptr getelementptr inbounds (i8, ptr @lpw, i64 1632), align 16, !tbaa !9
  %6 = fadd double %5, %4
  store double %6, ptr getelementptr inbounds (i8, ptr @lpw, i64 1640), align 8, !tbaa !9
  %7 = fadd double %6, %4
  store double %7, ptr getelementptr inbounds (i8, ptr @lpw, i64 1648), align 16, !tbaa !9
  store <2 x double> <double 0.000000e+00, double 0x3FF193EA7AAD030B>, ptr getelementptr inbounds (i8, ptr @lpw, i64 2424), align 8, !tbaa !9
  %8 = load double, ptr getelementptr inbounds (i8, ptr @lpw, i64 2432), align 16, !tbaa !9
  %9 = fadd double %8, 0x3FF193EA7AAD030B
  store double %9, ptr getelementptr inbounds (i8, ptr @lpw, i64 2440), align 8, !tbaa !9
  %10 = fadd double %9, %8
  store double %10, ptr getelementptr inbounds (i8, ptr @lpw, i64 2448), align 16, !tbaa !9
  %11 = fadd double %10, %8
  store double %11, ptr getelementptr inbounds (i8, ptr @lpw, i64 2456), align 8, !tbaa !9
  store <2 x double> <double 0.000000e+00, double 0x3FF62E42FEFA39EF>, ptr getelementptr inbounds (i8, ptr @lpw, i64 3232), align 16, !tbaa !9
  %12 = load double, ptr getelementptr inbounds (i8, ptr @lpw, i64 3240), align 8, !tbaa !9
  %13 = fadd double %12, 0x3FF62E42FEFA39EF
  store double %13, ptr getelementptr inbounds (i8, ptr @lpw, i64 3248), align 16, !tbaa !9
  %14 = fadd double %13, %12
  store double %14, ptr getelementptr inbounds (i8, ptr @lpw, i64 3256), align 8, !tbaa !9
  %15 = fadd double %14, %12
  store double %15, ptr getelementptr inbounds (i8, ptr @lpw, i64 3264), align 16, !tbaa !9
  store <2 x double> <double 0.000000e+00, double 0x3FF9C041F7ED8D33>, ptr getelementptr inbounds (i8, ptr @lpw, i64 4040), align 8, !tbaa !9
  %16 = load double, ptr getelementptr inbounds (i8, ptr @lpw, i64 4048), align 16, !tbaa !9
  %17 = fadd double %16, 0x3FF9C041F7ED8D33
  store double %17, ptr getelementptr inbounds (i8, ptr @lpw, i64 4056), align 8, !tbaa !9
  %18 = fadd double %17, %16
  store double %18, ptr getelementptr inbounds (i8, ptr @lpw, i64 4064), align 16, !tbaa !9
  %19 = fadd double %18, %16
  store double %19, ptr getelementptr inbounds (i8, ptr @lpw, i64 4072), align 8, !tbaa !9
  store <2 x double> <double 0.000000e+00, double 0x3FFCAB0BFA2A2002>, ptr getelementptr inbounds (i8, ptr @lpw, i64 4848), align 16, !tbaa !9
  %20 = load double, ptr getelementptr inbounds (i8, ptr @lpw, i64 4856), align 8, !tbaa !9
  %21 = fadd double %20, 0x3FFCAB0BFA2A2002
  store double %21, ptr getelementptr inbounds (i8, ptr @lpw, i64 4864), align 16, !tbaa !9
  %22 = fadd double %21, %20
  store double %22, ptr getelementptr inbounds (i8, ptr @lpw, i64 4872), align 8, !tbaa !9
  %23 = fadd double %22, %20
  store double %23, ptr getelementptr inbounds (i8, ptr @lpw, i64 4880), align 16, !tbaa !9
  store <2 x double> <double 0.000000e+00, double 0x3FFF2272AE325A57>, ptr getelementptr inbounds (i8, ptr @lpw, i64 5656), align 8, !tbaa !9
  %24 = load double, ptr getelementptr inbounds (i8, ptr @lpw, i64 5664), align 16, !tbaa !9
  %25 = fadd double %24, 0x3FFF2272AE325A57
  store double %25, ptr getelementptr inbounds (i8, ptr @lpw, i64 5672), align 8, !tbaa !9
  %26 = fadd double %25, %24
  store double %26, ptr getelementptr inbounds (i8, ptr @lpw, i64 5680), align 16, !tbaa !9
  %27 = fadd double %26, %24
  store double %27, ptr getelementptr inbounds (i8, ptr @lpw, i64 5688), align 8, !tbaa !9
  store <2 x double> <double 0.000000e+00, double 0x4000A2B23F3BAB73>, ptr getelementptr inbounds (i8, ptr @lpw, i64 6464), align 16, !tbaa !9
  %28 = load double, ptr getelementptr inbounds (i8, ptr @lpw, i64 6472), align 8, !tbaa !9
  %29 = fadd double %28, 0x4000A2B23F3BAB73
  store double %29, ptr getelementptr inbounds (i8, ptr @lpw, i64 6480), align 16, !tbaa !9
  %30 = fadd double %29, %28
  store double %30, ptr getelementptr inbounds (i8, ptr @lpw, i64 6488), align 8, !tbaa !9
  %31 = fadd double %30, %28
  store double %31, ptr getelementptr inbounds (i8, ptr @lpw, i64 6496), align 16, !tbaa !9
  store <2 x double> <double 0.000000e+00, double 0x400193EA7AAD030B>, ptr getelementptr inbounds (i8, ptr @lpw, i64 7272), align 8, !tbaa !9
  %32 = load double, ptr getelementptr inbounds (i8, ptr @lpw, i64 7280), align 16, !tbaa !9
  %33 = fadd double %32, 0x400193EA7AAD030B
  store double %33, ptr getelementptr inbounds (i8, ptr @lpw, i64 7288), align 8, !tbaa !9
  %34 = fadd double %33, %32
  store double %34, ptr getelementptr inbounds (i8, ptr @lpw, i64 7296), align 16, !tbaa !9
  %35 = fadd double %34, %32
  store double %35, ptr getelementptr inbounds (i8, ptr @lpw, i64 7304), align 8, !tbaa !9
  store <2 x double> <double 0.000000e+00, double 0x40026BB1BBB55516>, ptr getelementptr inbounds (i8, ptr @lpw, i64 8080), align 16, !tbaa !9
  %36 = load double, ptr getelementptr inbounds (i8, ptr @lpw, i64 8088), align 8, !tbaa !9
  %37 = fadd double %36, 0x40026BB1BBB55516
  store double %37, ptr getelementptr inbounds (i8, ptr @lpw, i64 8096), align 16, !tbaa !9
  %38 = fadd double %37, %36
  store double %38, ptr getelementptr inbounds (i8, ptr @lpw, i64 8104), align 8, !tbaa !9
  %39 = fadd double %38, %36
  store double %39, ptr getelementptr inbounds (i8, ptr @lpw, i64 8112), align 16, !tbaa !9
  %.pre = load double, ptr getelementptr inbounds (i8, ptr @lpw, i64 8088), align 8, !tbaa !9
  %40 = fadd double %39, %.pre
  store double %40, ptr getelementptr inbounds (i8, ptr @lpw, i64 8120), align 8, !tbaa !9
  store double 1.000000e+00, ptr @c, align 16, !tbaa !9
  store double 1.000000e+00, ptr getelementptr inbounds (i8, ptr @c, i64 816), align 16, !tbaa !9
  store double 1.000000e+00, ptr getelementptr inbounds (i8, ptr @c, i64 808), align 8, !tbaa !9
  store double 1.000000e+00, ptr getelementptr inbounds (i8, ptr @c, i64 1632), align 16, !tbaa !9
  store double 1.000000e+00, ptr getelementptr inbounds (i8, ptr @c, i64 1616), align 16, !tbaa !9
  %.pre280.2 = load double, ptr getelementptr inbounds (i8, ptr @c, i64 808), align 8, !tbaa !9
  br label %scalar.ph.2

scalar.ph.2:                                      ; preds = %scalar.ph.2, %.lr.ph.preheader
  %41 = phi double [ %43, %scalar.ph.2 ], [ %.pre280.2, %.lr.ph.preheader ]
  %indvars.iv201.2 = phi i64 [ %indvars.iv.next202.2, %scalar.ph.2 ], [ 1, %.lr.ph.preheader ]
  %42 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 1, i64 %indvars.iv201.2
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = fadd double %41, %43
  %45 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 2, i64 %indvars.iv201.2
  store double %44, ptr %45, align 8, !tbaa !9
  %indvars.iv.next202.2 = add nuw nsw i64 %indvars.iv201.2, 1
  %exitcond205.not.2 = icmp eq i64 %indvars.iv.next202.2, 2
  br i1 %exitcond205.not.2, label %._crit_edge147.2, label %scalar.ph.2, !llvm.loop !11

._crit_edge147.2:                                 ; preds = %scalar.ph.2
  store double 1.000000e+00, ptr getelementptr inbounds (i8, ptr @c, i64 2448), align 16, !tbaa !9
  store double 1.000000e+00, ptr getelementptr inbounds (i8, ptr @c, i64 2424), align 8, !tbaa !9
  %.pre280.3 = load double, ptr getelementptr inbounds (i8, ptr @c, i64 1616), align 16, !tbaa !9
  br label %scalar.ph.3

scalar.ph.3:                                      ; preds = %scalar.ph.3, %._crit_edge147.2
  %46 = phi double [ %48, %scalar.ph.3 ], [ %.pre280.3, %._crit_edge147.2 ]
  %indvars.iv201.3 = phi i64 [ %indvars.iv.next202.3, %scalar.ph.3 ], [ 1, %._crit_edge147.2 ]
  %47 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 2, i64 %indvars.iv201.3
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = fadd double %46, %48
  %50 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 3, i64 %indvars.iv201.3
  store double %49, ptr %50, align 8, !tbaa !9
  %indvars.iv.next202.3 = add nuw nsw i64 %indvars.iv201.3, 1
  %exitcond205.not.3 = icmp eq i64 %indvars.iv.next202.3, 3
  br i1 %exitcond205.not.3, label %._crit_edge147.3, label %scalar.ph.3, !llvm.loop !11

._crit_edge147.3:                                 ; preds = %scalar.ph.3
  store double 1.000000e+00, ptr getelementptr inbounds (i8, ptr @c, i64 3264), align 16, !tbaa !9
  store double 1.000000e+00, ptr getelementptr inbounds (i8, ptr @c, i64 3232), align 16, !tbaa !9
  %.pre280.4 = load double, ptr getelementptr inbounds (i8, ptr @c, i64 2424), align 8, !tbaa !9
  br label %scalar.ph.4

scalar.ph.4:                                      ; preds = %scalar.ph.4, %._crit_edge147.3
  %51 = phi double [ %53, %scalar.ph.4 ], [ %.pre280.4, %._crit_edge147.3 ]
  %indvars.iv201.4 = phi i64 [ %indvars.iv.next202.4, %scalar.ph.4 ], [ 1, %._crit_edge147.3 ]
  %52 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 3, i64 %indvars.iv201.4
  %53 = load double, ptr %52, align 8, !tbaa !9
  %54 = fadd double %51, %53
  %55 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 4, i64 %indvars.iv201.4
  store double %54, ptr %55, align 8, !tbaa !9
  %indvars.iv.next202.4 = add nuw nsw i64 %indvars.iv201.4, 1
  %exitcond205.not.4 = icmp eq i64 %indvars.iv.next202.4, 4
  br i1 %exitcond205.not.4, label %.lr.ph152, label %scalar.ph.4, !llvm.loop !11

.lr.ph152:                                        ; preds = %scalar.ph.4, %.lr.ph152
  %indvars.iv211 = phi i64 [ %indvars.iv.next212.1, %.lr.ph152 ], [ 0, %scalar.ph.4 ]
  %56 = add nuw nsw i64 %indvars.iv211, 100
  %57 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv211, i64 %56
  store double 1.000000e+00, ptr %57, align 16, !tbaa !9
  %58 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv211, i64 %indvars.iv211
  store double 1.000000e+00, ptr %58, align 16, !tbaa !9
  %indvars.iv.next212 = or disjoint i64 %indvars.iv211, 1
  %59 = add nuw nsw i64 %indvars.iv211, 101
  %60 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv.next212, i64 %59
  store double 1.000000e+00, ptr %60, align 16, !tbaa !9
  %61 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv.next212, i64 %indvars.iv.next212
  store double 1.000000e+00, ptr %61, align 16, !tbaa !9
  %indvars.iv.next212.1 = add nuw nsw i64 %indvars.iv211, 2
  %exitcond215.not.1 = icmp eq i64 %indvars.iv.next212.1, 100
  br i1 %exitcond215.not.1, label %.preheader138, label %.lr.ph152, !llvm.loop !15

.preheader138:                                    ; preds = %.lr.ph152, %68
  %62 = phi i32 [ %144, %68 ], [ 20, %.lr.ph152 ]
  %63 = phi i32 [ %145, %68 ], [ 5, %.lr.ph152 ]
  %.0121162 = phi i32 [ %69, %68 ], [ 0, %.lr.ph152 ]
  %64 = and i32 %.0121162, 1
  %.not = icmp ne i32 %64, 0
  %65 = lshr i32 %.0121162, 1
  %66 = zext nneg i32 %65 to i64
  br label %71

.preheader135:                                    ; preds = %68
  %.pre281 = load i32, ptr @sz, align 4, !tbaa !5
  %67 = icmp sgt i32 %.pre281, 0
  br i1 %67, label %.lr.ph179, label %.preheader132

68:                                               ; preds = %.loopexit137
  %69 = add nuw nsw i32 %.0121162, 1
  %70 = icmp slt i32 %69, %144
  br i1 %70, label %.preheader138, label %.preheader135, !llvm.loop !16

71:                                               ; preds = %.preheader138, %.loopexit137
  %72 = phi i32 [ %62, %.preheader138 ], [ %144, %.loopexit137 ]
  %73 = phi i32 [ %63, %.preheader138 ], [ %145, %.loopexit137 ]
  %indvars.iv244 = phi i64 [ 0, %.preheader138 ], [ %indvars.iv.next245, %.loopexit137 ]
  %74 = icmp eq i64 %indvars.iv244, %66
  %or.cond = and i1 %.not, %74
  br i1 %or.cond, label %.loopexit137, label %75

75:                                               ; preds = %71
  %76 = zext i1 %74 to i32
  %indvars.iv244.tr = trunc i64 %indvars.iv244 to i32
  %77 = shl i32 %indvars.iv244.tr, 1
  %78 = or disjoint i32 %77, %76
  %79 = icmp sgt i32 %73, 0
  br i1 %79, label %.preheader136.lr.ph, label %.loopexit137

.preheader136.lr.ph:                              ; preds = %75
  %.not127 = icmp eq i64 %indvars.iv244, 0
  br i1 %.not127, label %.preheader136.us, label %.preheader136

.preheader136.us:                                 ; preds = %.preheader136.lr.ph, %.split.us158
  %80 = phi i32 [ %111, %.split.us158 ], [ %72, %.preheader136.lr.ph ]
  %indvars.iv239 = phi i64 [ %indvars.iv.next240, %.split.us158 ], [ 0, %.preheader136.lr.ph ]
  %indvars.iv237 = phi i64 [ %indvars.iv.next238, %.split.us158 ], [ 1, %.preheader136.lr.ph ]
  %indvars.iv.next240 = add nuw nsw i64 %indvars.iv239, 1
  %81 = getelementptr inbounds [101 x double], ptr getelementptr inbounds (i8, ptr @lpw, i64 8080), i64 0, i64 %indvars.iv.next240
  %82 = trunc nuw nsw i64 %indvars.iv239 to i32
  br label %83

83:                                               ; preds = %.preheader136.us, %110
  %84 = phi i32 [ %80, %.preheader136.us ], [ %111, %110 ]
  %indvars.iv230 = phi i64 [ 0, %.preheader136.us ], [ %indvars.iv.next231, %110 ]
  %85 = icmp ult i64 %indvars.iv230, %indvars.iv239
  br i1 %85, label %110, label %86

86:                                               ; preds = %83
  %87 = sub nsw i64 %indvars.iv239, %indvars.iv230
  %88 = and i64 %87, 1
  %.not128.us156 = icmp eq i64 %88, 0
  %89 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 %indvars.iv239, i64 %indvars.iv230
  %90 = load double, ptr %89, align 8, !tbaa !9
  %91 = tail call double @log(double noundef %90) #8
  %92 = getelementptr inbounds [11 x [101 x double]], ptr @lpw, i64 0, i64 0, i64 %87
  %93 = load double, ptr %92, align 8, !tbaa !9
  %94 = fadd double %91, %93
  %95 = load double, ptr %81, align 8, !tbaa !9
  %96 = fsub double %94, %95
  %97 = tail call double @exp(double noundef %96) #8
  %98 = load i32, ptr @m, align 4, !tbaa !5
  %99 = mul nsw i32 %98, %82
  %100 = add nsw i32 %99, %.0121162
  %101 = sext i32 %100 to i64
  %102 = trunc nuw nsw i64 %indvars.iv230 to i32
  %103 = mul nsw i32 %98, %102
  %104 = add nsw i32 %78, %103
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %101, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !9
  %108 = select i1 %.not128.us156, double -1.000000e+00, double 1.000000e+00
  %109 = tail call double @llvm.fmuladd.f64(double %108, double %97, double %107)
  store double %109, ptr %106, align 8, !tbaa !9
  br label %110

110:                                              ; preds = %86, %83
  %111 = phi i32 [ %98, %86 ], [ %84, %83 ]
  %indvars.iv.next231 = add nuw nsw i64 %indvars.iv230, 1
  %exitcond236.not = icmp eq i64 %indvars.iv.next231, %indvars.iv237
  br i1 %exitcond236.not, label %.split.us158, label %83, !llvm.loop !17

.split.us158:                                     ; preds = %110
  %112 = load i32, ptr @e, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = icmp slt i64 %indvars.iv.next240, %113
  %indvars.iv.next238 = add nuw nsw i64 %indvars.iv237, 1
  br i1 %114, label %.preheader136.us, label %.loopexit137, !llvm.loop !18

.preheader136:                                    ; preds = %.preheader136.lr.ph, %.split.us
  %indvars.iv225 = phi i64 [ %indvars.iv.next226, %.split.us ], [ 0, %.preheader136.lr.ph ]
  %indvars.iv223 = phi i64 [ %indvars.iv.next224, %.split.us ], [ 1, %.preheader136.lr.ph ]
  %indvars.iv.next226 = add nuw nsw i64 %indvars.iv225, 1
  %115 = getelementptr inbounds [101 x double], ptr getelementptr inbounds (i8, ptr @lpw, i64 8080), i64 0, i64 %indvars.iv.next226
  %116 = trunc nuw nsw i64 %indvars.iv225 to i32
  br label %117

117:                                              ; preds = %117, %.preheader136
  %indvars.iv216 = phi i64 [ %indvars.iv.next217, %117 ], [ 0, %.preheader136 ]
  %118 = sub nsw i64 %indvars.iv225, %indvars.iv216
  %119 = and i64 %118, 1
  %.not128.us = icmp eq i64 %119, 0
  %120 = getelementptr inbounds [101 x [101 x double]], ptr @c, i64 0, i64 %indvars.iv225, i64 %indvars.iv216
  %121 = load double, ptr %120, align 8, !tbaa !9
  %122 = tail call double @log(double noundef %121) #8
  %123 = getelementptr inbounds [11 x [101 x double]], ptr @lpw, i64 0, i64 %indvars.iv244, i64 %118
  %124 = load double, ptr %123, align 8, !tbaa !9
  %125 = fadd double %122, %124
  %126 = load double, ptr %115, align 8, !tbaa !9
  %127 = fsub double %125, %126
  %128 = tail call double @exp(double noundef %127) #8
  %129 = load i32, ptr @m, align 4, !tbaa !5
  %130 = mul nsw i32 %129, %116
  %131 = add nsw i32 %130, %.0121162
  %132 = sext i32 %131 to i64
  %133 = trunc nuw nsw i64 %indvars.iv216 to i32
  %134 = mul nsw i32 %129, %133
  %135 = add nsw i32 %78, %134
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %132, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !9
  %139 = select i1 %.not128.us, double -1.000000e+00, double 1.000000e+00
  %140 = tail call double @llvm.fmuladd.f64(double %139, double %128, double %138)
  store double %140, ptr %137, align 8, !tbaa !9
  %indvars.iv.next217 = add nuw nsw i64 %indvars.iv216, 1
  %exitcond222.not = icmp eq i64 %indvars.iv.next217, %indvars.iv223
  br i1 %exitcond222.not, label %.split.us, label %117, !llvm.loop !17

.split.us:                                        ; preds = %117
  %141 = load i32, ptr @e, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = icmp slt i64 %indvars.iv.next226, %142
  %indvars.iv.next224 = add nuw nsw i64 %indvars.iv223, 1
  br i1 %143, label %.preheader136, label %.loopexit137, !llvm.loop !18

.loopexit137:                                     ; preds = %.split.us, %.split.us158, %75, %71
  %144 = phi i32 [ %72, %75 ], [ %72, %71 ], [ %111, %.split.us158 ], [ %129, %.split.us ]
  %145 = phi i32 [ %73, %75 ], [ %73, %71 ], [ %112, %.split.us158 ], [ %141, %.split.us ]
  %indvars.iv.next245 = add nuw nsw i64 %indvars.iv244, 1
  %exitcond247.not = icmp eq i64 %indvars.iv.next245, 10
  br i1 %exitcond247.not, label %68, label %71, !llvm.loop !19

.loopexit134:                                     ; preds = %..loopexit_crit_edge.us, %.lr.ph177, %.preheader133
  %146 = sext i32 %.lcssa141 to i64
  %147 = icmp slt i64 %indvars.iv.next256, %146
  %indvars.iv.next249 = add nuw nsw i64 %indvars.iv248, 1
  br i1 %147, label %.lr.ph179, label %.preheader132, !llvm.loop !20

.preheader132:                                    ; preds = %.loopexit134, %.preheader135
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 1, i32 noundef 2)
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 2, i32 noundef 4)
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 3, i32 noundef 6)
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 4, i32 noundef 8)
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 5, i32 noundef 10)
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 6, i32 noundef 12)
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 7, i32 noundef 14)
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 8, i32 noundef 16)
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 9, i32 noundef 18)
  %148 = load i32, ptr @sz, align 4, !tbaa !5
  %149 = icmp sgt i32 %148, 0
  %ans.promoted185 = load double, ptr @ans, align 8, !tbaa !9
  br i1 %149, label %.preheader.lr.ph, label %._crit_edge190

.lr.ph179:                                        ; preds = %.preheader135, %.loopexit134
  %150 = phi i32 [ %.lcssa141, %.loopexit134 ], [ %.pre281, %.preheader135 ]
  %indvars.iv255 = phi i64 [ %indvars.iv.next256, %.loopexit134 ], [ 0, %.preheader135 ]
  %indvars.iv248 = phi i64 [ %indvars.iv.next249, %.loopexit134 ], [ 1, %.preheader135 ]
  %151 = add nuw i64 %indvars.iv255, 1
  %152 = shl nuw nsw i64 %indvars.iv255, 3
  %scevgep = getelementptr i8, ptr @mat, i64 %152
  %gep = getelementptr i8, ptr getelementptr (i8, ptr @mat, i64 -1616), i64 %152
  %153 = add nuw i64 %indvars.iv255, 1
  %154 = xor i64 %indvars.iv255, -1
  %155 = mul nuw nsw i64 %indvars.iv255, 1632
  %scevgep306 = getelementptr i8, ptr @mat, i64 %155
  %156 = or disjoint i64 %155, 8
  %scevgep307 = getelementptr i8, ptr @mat, i64 %156
  %indvars.iv.next256 = add nuw nsw i64 %indvars.iv255, 1
  %157 = sext i32 %150 to i64
  %158 = icmp slt i64 %indvars.iv.next256, %157
  %159 = trunc nuw nsw i64 %indvars.iv255 to i32
  br i1 %158, label %.lr.ph166, label %._crit_edge167

.lr.ph166:                                        ; preds = %.lr.ph179
  %wide.trip.count253 = zext i32 %150 to i64
  br label %160

160:                                              ; preds = %.lr.ph166, %160
  %indvars.iv250 = phi i64 [ %indvars.iv248, %.lr.ph166 ], [ %indvars.iv.next251, %160 ]
  %.0114163 = phi i32 [ %159, %.lr.ph166 ], [ %.1115, %160 ]
  %161 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv250, i64 %indvars.iv255
  %162 = load double, ptr %161, align 8, !tbaa !9
  %163 = tail call double @llvm.fabs.f64(double %162)
  %164 = sext i32 %.0114163 to i64
  %165 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %164, i64 %indvars.iv255
  %166 = load double, ptr %165, align 8, !tbaa !9
  %167 = tail call double @llvm.fabs.f64(double %166)
  %168 = fcmp ogt double %163, %167
  %169 = trunc nuw nsw i64 %indvars.iv250 to i32
  %.1115 = select i1 %168, i32 %169, i32 %.0114163
  %indvars.iv.next251 = add nuw nsw i64 %indvars.iv250, 1
  %exitcond254.not = icmp eq i64 %indvars.iv.next251, %wide.trip.count253
  br i1 %exitcond254.not, label %._crit_edge167, label %160, !llvm.loop !21

._crit_edge167:                                   ; preds = %160, %.lr.ph179
  %.0114.lcssa = phi i32 [ %159, %.lr.ph179 ], [ %.1115, %160 ]
  %170 = sext i32 %.0114.lcssa to i64
  %171 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %170, i64 %indvars.iv255
  %172 = load double, ptr %171, align 8, !tbaa !9
  %173 = shl i32 %150, 1
  %174 = sext i32 %173 to i64
  %175 = icmp slt i64 %indvars.iv255, %174
  br i1 %175, label %.lr.ph170, label %.preheader133

.preheader133:                                    ; preds = %.lr.ph170, %._crit_edge167
  %.lcssa141 = phi i32 [ %150, %._crit_edge167 ], [ %205, %.lr.ph170 ]
  %.lcssa = phi i32 [ %173, %._crit_edge167 ], [ %206, %.lr.ph170 ]
  %176 = icmp sgt i32 %.lcssa141, 0
  br i1 %176, label %.lr.ph177, label %.loopexit134

.lr.ph177:                                        ; preds = %.preheader133
  %177 = sext i32 %.lcssa to i64
  %178 = icmp slt i64 %indvars.iv255, %177
  %.fr = freeze i1 %178
  br i1 %.fr, label %.lr.ph177.split.us.preheader, label %.loopexit134

.lr.ph177.split.us.preheader:                     ; preds = %.lr.ph177
  %wide.trip.count266 = zext nneg i32 %.lcssa141 to i64
  %179 = mul nuw nsw i64 %wide.trip.count266, 1624
  %smax = tail call i64 @llvm.smax.i64(i64 %153, i64 %177)
  %180 = add i64 %smax, %154
  %181 = shl nsw i64 %180, 3
  %182 = getelementptr i8, ptr %gep, i64 %179
  %scevgep305 = getelementptr i8, ptr %182, i64 %181
  %scevgep308 = getelementptr i8, ptr %scevgep307, i64 %181
  %smax309 = tail call i64 @llvm.smax.i64(i64 %151, i64 %177)
  %183 = sub i64 %smax309, %indvars.iv255
  %min.iters.check312 = icmp ult i64 %183, 4
  %bound0 = icmp ult ptr %scevgep, %scevgep308
  %bound1 = icmp ult ptr %scevgep306, %scevgep305
  %found.conflict = and i1 %bound0, %bound1
  %n.vec315 = and i64 %183, -4
  %ind.end316 = add i64 %indvars.iv255, %n.vec315
  %cmp.n326 = icmp eq i64 %183, %n.vec315
  br label %.lr.ph177.split.us

.lr.ph177.split.us:                               ; preds = %.lr.ph177.split.us.preheader, %..loopexit_crit_edge.us
  %indvars.iv263 = phi i64 [ 0, %.lr.ph177.split.us.preheader ], [ %indvars.iv.next264, %..loopexit_crit_edge.us ]
  %184 = icmp eq i64 %indvars.iv255, %indvars.iv263
  br i1 %184, label %..loopexit_crit_edge.us, label %.lr.ph175.us

.lr.ph175.us:                                     ; preds = %.lr.ph177.split.us
  %185 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv263, i64 %indvars.iv255
  %186 = load double, ptr %185, align 8, !tbaa !9
  %187 = fneg double %186
  %brmerge = select i1 %min.iters.check312, i1 true, i1 %found.conflict
  br i1 %brmerge, label %scalar.ph311.preheader, label %vector.ph313

vector.ph313:                                     ; preds = %.lr.ph175.us
  %broadcast.splatinsert = insertelement <2 x double> poison, double %187, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body318

vector.body318:                                   ; preds = %vector.body318, %vector.ph313
  %index319 = phi i64 [ 0, %vector.ph313 ], [ %index.next325, %vector.body318 ]
  %offset.idx320 = add i64 %indvars.iv255, %index319
  %188 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv255, i64 %offset.idx320
  %189 = getelementptr inbounds i8, ptr %188, i64 16
  %wide.load321 = load <2 x double>, ptr %188, align 8, !tbaa !9, !alias.scope !22
  %wide.load322 = load <2 x double>, ptr %189, align 8, !tbaa !9, !alias.scope !22
  %190 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv263, i64 %offset.idx320
  %191 = getelementptr inbounds i8, ptr %190, i64 16
  %wide.load323 = load <2 x double>, ptr %190, align 8, !tbaa !9, !alias.scope !25, !noalias !22
  %wide.load324 = load <2 x double>, ptr %191, align 8, !tbaa !9, !alias.scope !25, !noalias !22
  %192 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load321, <2 x double> %wide.load323)
  %193 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load322, <2 x double> %wide.load324)
  store <2 x double> %192, ptr %190, align 8, !tbaa !9, !alias.scope !25, !noalias !22
  store <2 x double> %193, ptr %191, align 8, !tbaa !9, !alias.scope !25, !noalias !22
  %index.next325 = add nuw i64 %index319, 4
  %194 = icmp eq i64 %index.next325, %n.vec315
  br i1 %194, label %middle.block310, label %vector.body318, !llvm.loop !27

middle.block310:                                  ; preds = %vector.body318
  br i1 %cmp.n326, label %..loopexit_crit_edge.us, label %scalar.ph311.preheader

scalar.ph311.preheader:                           ; preds = %.lr.ph175.us, %middle.block310
  %indvars.iv260.ph = phi i64 [ %indvars.iv255, %.lr.ph175.us ], [ %ind.end316, %middle.block310 ]
  br label %scalar.ph311

scalar.ph311:                                     ; preds = %scalar.ph311.preheader, %scalar.ph311
  %indvars.iv260 = phi i64 [ %indvars.iv.next261, %scalar.ph311 ], [ %indvars.iv260.ph, %scalar.ph311.preheader ]
  %195 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv255, i64 %indvars.iv260
  %196 = load double, ptr %195, align 8, !tbaa !9
  %197 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv263, i64 %indvars.iv260
  %198 = load double, ptr %197, align 8, !tbaa !9
  %199 = tail call double @llvm.fmuladd.f64(double %187, double %196, double %198)
  store double %199, ptr %197, align 8, !tbaa !9
  %indvars.iv.next261 = add nuw nsw i64 %indvars.iv260, 1
  %200 = icmp slt i64 %indvars.iv.next261, %177
  br i1 %200, label %scalar.ph311, label %..loopexit_crit_edge.us, !llvm.loop !28

..loopexit_crit_edge.us:                          ; preds = %scalar.ph311, %middle.block310, %.lr.ph177.split.us
  %indvars.iv.next264 = add nuw nsw i64 %indvars.iv263, 1
  %exitcond267.not = icmp eq i64 %indvars.iv.next264, %wide.trip.count266
  br i1 %exitcond267.not, label %.loopexit134, label %.lr.ph177.split.us, !llvm.loop !29

.lr.ph170:                                        ; preds = %._crit_edge167, %.lr.ph170
  %indvars.iv257 = phi i64 [ %indvars.iv.next258, %.lr.ph170 ], [ %indvars.iv255, %._crit_edge167 ]
  %201 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %170, i64 %indvars.iv257
  %202 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv255, i64 %indvars.iv257
  tail call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef nonnull align 8 dereferenceable(8) %202) #8
  %203 = load double, ptr %202, align 8, !tbaa !9
  %204 = fdiv double %203, %172
  store double %204, ptr %202, align 8, !tbaa !9
  %indvars.iv.next258 = add nuw nsw i64 %indvars.iv257, 1
  %205 = load i32, ptr @sz, align 4, !tbaa !5
  %206 = shl i32 %205, 1
  %207 = trunc nuw i64 %indvars.iv.next258 to i32
  %208 = icmp sgt i32 %206, %207
  br i1 %208, label %.lr.ph170, label %.preheader133, !llvm.loop !30

.preheader.lr.ph:                                 ; preds = %.preheader132
  %209 = load i32, ptr @m, align 4, !tbaa !5
  %210 = icmp sgt i32 %209, 0
  br i1 %210, label %.preheader.us.preheader, label %._crit_edge190

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %211 = zext nneg i32 %148 to i64
  %wide.trip.count273 = zext nneg i32 %209 to i64
  %xtraiter = and i64 %wide.trip.count273, 3
  %212 = icmp ult i32 %209, 4
  %unroll_iter = and i64 %wide.trip.count273, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge183.us
  %indvars.iv275 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next276, %._crit_edge183.us ]
  %.lcssa184187188.us = phi double [ %ans.promoted185, %.preheader.us.preheader ], [ %.lcssa327, %._crit_edge183.us ]
  %213 = getelementptr inbounds [101 x double], ptr @f, i64 0, i64 %indvars.iv275
  %214 = load double, ptr %213, align 8, !tbaa !9
  br i1 %212, label %._crit_edge183.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %indvars.iv270 = phi i64 [ %indvars.iv.next271.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %215 = phi double [ %231, %.preheader.us.new ], [ %.lcssa184187188.us, %.preheader.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %216 = add nuw nsw i64 %indvars.iv270, %211
  %217 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv275, i64 %216
  %218 = load double, ptr %217, align 8, !tbaa !9
  %219 = tail call double @llvm.fmuladd.f64(double %214, double %218, double %215)
  %indvars.iv.next271 = or disjoint i64 %indvars.iv270, 1
  %220 = add nuw nsw i64 %indvars.iv.next271, %211
  %221 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv275, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !9
  %223 = tail call double @llvm.fmuladd.f64(double %214, double %222, double %219)
  %indvars.iv.next271.1 = or disjoint i64 %indvars.iv270, 2
  %224 = add nuw nsw i64 %indvars.iv.next271.1, %211
  %225 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv275, i64 %224
  %226 = load double, ptr %225, align 8, !tbaa !9
  %227 = tail call double @llvm.fmuladd.f64(double %214, double %226, double %223)
  %indvars.iv.next271.2 = or disjoint i64 %indvars.iv270, 3
  %228 = add nuw nsw i64 %indvars.iv.next271.2, %211
  %229 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv275, i64 %228
  %230 = load double, ptr %229, align 8, !tbaa !9
  %231 = tail call double @llvm.fmuladd.f64(double %214, double %230, double %227)
  %indvars.iv.next271.3 = add nuw nsw i64 %indvars.iv270, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge183.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !31

._crit_edge183.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.lcssa327.ph = phi double [ poison, %.preheader.us ], [ %231, %.preheader.us.new ]
  %indvars.iv270.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next271.3, %.preheader.us.new ]
  %.unr = phi double [ %.lcssa184187188.us, %.preheader.us ], [ %231, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge183.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge183.us.unr-lcssa, %.epil.preheader
  %indvars.iv270.epil = phi i64 [ %indvars.iv.next271.epil, %.epil.preheader ], [ %indvars.iv270.unr, %._crit_edge183.us.unr-lcssa ]
  %232 = phi double [ %236, %.epil.preheader ], [ %.unr, %._crit_edge183.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge183.us.unr-lcssa ]
  %233 = add nuw nsw i64 %indvars.iv270.epil, %211
  %234 = getelementptr inbounds [101 x [203 x double]], ptr @mat, i64 0, i64 %indvars.iv275, i64 %233
  %235 = load double, ptr %234, align 8, !tbaa !9
  %236 = tail call double @llvm.fmuladd.f64(double %214, double %235, double %232)
  %indvars.iv.next271.epil = add nuw nsw i64 %indvars.iv270.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge183.us, label %.epil.preheader, !llvm.loop !32

._crit_edge183.us:                                ; preds = %.epil.preheader, %._crit_edge183.us.unr-lcssa
  %.lcssa327 = phi double [ %.lcssa327.ph, %._crit_edge183.us.unr-lcssa ], [ %236, %.epil.preheader ]
  %indvars.iv.next276 = add nuw nsw i64 %indvars.iv275, 1
  %exitcond279.not = icmp eq i64 %indvars.iv.next276, %211
  br i1 %exitcond279.not, label %._crit_edge190.split.us, label %.preheader.us, !llvm.loop !34

._crit_edge190.split.us:                          ; preds = %._crit_edge183.us
  store double %.lcssa327, ptr @ans, align 8, !tbaa !9
  br label %._crit_edge190

._crit_edge190:                                   ; preds = %.preheader132, %.preheader.lr.ph, %._crit_edge190.split.us
  %237 = phi double [ %.lcssa327, %._crit_edge190.split.us ], [ %ans.promoted185, %.preheader.lr.ph ], [ %ans.promoted185, %.preheader132 ]
  %238 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %237)
  ret i32 0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #7

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = !{!23}
!23 = distinct !{!23, !24}
!24 = distinct !{!24, !"LVerDomain"}
!25 = !{!26}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !12, !14, !13}
!28 = distinct !{!28, !12, !14}
!29 = distinct !{!29, !12}
!30 = distinct !{!30, !12}
!31 = distinct !{!31, !12}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.unroll.disable"}
!34 = distinct !{!34, !12}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass