; LLVM IR from tangjz/acm-icpc :: lydsy/3452.ll (Z5solvev)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@e = external dso_local global i32, align 4
@sz = external dso_local global i32, align 4
@idx = external dso_local global [11 x i32], align 16
@fail = external dso_local global [11 x i32], align 16
@nxt = external dso_local global [11 x [11 x i32]], align 16
@lpw = external dso_local global [11 x [15 x double]], align 16
@c = external dso_local global [15 x [15 x double]], align 16
@f = external dso_local global [15 x double], align 16
@mat = external dso_local global [15 x [31 x double]], align 16
@ans = external dso_local global double, align 8
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #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 double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %39, %0
  %20 = load i32, ptr %1, align 4, !tbaa !5
  %21 = load i32, ptr @sz, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %42

24:                                               ; preds = %19
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %26
  %28 = load i32, ptr @sz, align 4, !tbaa !5
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %30 = add nsw i32 %28, %29
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [31 x double], ptr %27, i64 0, i64 %31
  store double 1.000000e+00, ptr %32, align 8, !tbaa !9
  %33 = load i32, ptr %1, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %34
  %36 = load i32, ptr %1, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [31 x double], ptr %35, i64 0, i64 %37
  store double 1.000000e+00, ptr %38, align 8, !tbaa !9
  br label %39

39:                                               ; preds = %24
  %40 = load i32, ptr %1, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %1, align 4, !tbaa !5
  br label %19, !llvm.loop !11

42:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %188, %42
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = load i32, ptr @n, 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 %2) #6
  br label %191

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [11 x i32], ptr @idx, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  store i32 %52, ptr %4, align 4, !tbaa !5
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = icmp eq i32 %53, -1
  br i1 %54, label %55, label %56

55:                                               ; preds = %48
  store i32 7, ptr %3, align 4
  br label %185

56:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %181, %56
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = icmp slt i32 %58, 10
  br i1 %59, label %61, label %60

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

61:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %62 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %62, ptr %6, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %79, %61
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %76

66:                                               ; preds = %63
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [11 x [11 x i32]], ptr @nxt, i64 0, i64 %68
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [11 x i32], ptr %69, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = icmp ne i32 %73, 0
  %75 = xor i1 %74, true
  br label %76

76:                                               ; preds = %66, %63
  %77 = phi i1 [ false, %63 ], [ %75, %66 ]
  br i1 %77, label %78, label %84

78:                                               ; preds = %76
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [11 x i32], ptr @fail, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  store i32 %83, ptr %6, align 4, !tbaa !5
  br label %63, !llvm.loop !13

84:                                               ; preds = %76
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [11 x [11 x i32]], ptr @nxt, i64 0, i64 %86
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [11 x i32], ptr %87, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  store i32 %91, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %92 = load i32, ptr %6, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [11 x i32], ptr @idx, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  store i32 %95, ptr %7, align 4, !tbaa !5
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = icmp eq i32 %96, -1
  br i1 %97, label %98, label %99

98:                                               ; preds = %84
  store i32 10, ptr %3, align 4
  br label %178

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

100:                                              ; preds = %174, %99
  %101 = load i32, ptr %8, align 4, !tbaa !5
  %102 = load i32, ptr @e, align 4, !tbaa !5
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %177

105:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %170, %105
  %107 = load i32, ptr %9, align 4, !tbaa !5
  %108 = load i32, ptr %8, align 4, !tbaa !5
  %109 = icmp sle i32 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %106
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %173

111:                                              ; preds = %106
  %112 = load i32, ptr %5, align 4, !tbaa !5
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %119, label %114

114:                                              ; preds = %111
  %115 = load i32, ptr %9, align 4, !tbaa !5
  %116 = load i32, ptr %8, align 4, !tbaa !5
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %118, label %119

118:                                              ; preds = %114
  br label %170

119:                                              ; preds = %114, %111
  %120 = load i32, ptr %8, align 4, !tbaa !5
  %121 = load i32, ptr %9, align 4, !tbaa !5
  %122 = sub nsw i32 %120, %121
  %123 = and i32 %122, 1
  %124 = icmp ne i32 %123, 0
  %125 = zext i1 %124 to i64
  %126 = select i1 %124, i32 -1, i32 1
  %127 = sitofp i32 %126 to double
  %128 = load i32, ptr %8, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [15 x [15 x double]], ptr @c, i64 0, i64 %129
  %131 = load i32, ptr %9, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [15 x double], ptr %130, i64 0, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !9
  %135 = call double @log(double noundef %134) #6
  %136 = load i32, ptr %5, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [11 x [15 x double]], ptr @lpw, i64 0, i64 %137
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = load i32, ptr %9, align 4, !tbaa !5
  %141 = sub nsw i32 %139, %140
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [15 x double], ptr %138, i64 0, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !9
  %145 = fadd double %135, %144
  %146 = load i32, ptr %8, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [15 x double], ptr getelementptr inbounds ([11 x [15 x double]], ptr @lpw, i64 0, i64 10), i64 0, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !9
  %151 = fsub double %145, %150
  %152 = call double @exp(double noundef %151) #6
  %153 = load i32, ptr %8, align 4, !tbaa !5
  %154 = load i32, ptr @m, align 4, !tbaa !5
  %155 = mul nsw i32 %153, %154
  %156 = load i32, ptr %4, align 4, !tbaa !5
  %157 = add nsw i32 %155, %156
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %158
  %160 = load i32, ptr %9, align 4, !tbaa !5
  %161 = load i32, ptr @m, align 4, !tbaa !5
  %162 = mul nsw i32 %160, %161
  %163 = load i32, ptr %7, align 4, !tbaa !5
  %164 = add nsw i32 %162, %163
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [31 x double], ptr %159, i64 0, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !9
  %168 = fneg double %127
  %169 = call double @llvm.fmuladd.f64(double %168, double %152, double %167)
  store double %169, ptr %166, align 8, !tbaa !9
  br label %170

170:                                              ; preds = %119, %118
  %171 = load i32, ptr %9, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %9, align 4, !tbaa !5
  br label %106, !llvm.loop !14

173:                                              ; preds = %110
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %8, align 4, !tbaa !5
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %8, align 4, !tbaa !5
  br label %100, !llvm.loop !15

177:                                              ; preds = %104
  store i32 0, ptr %3, align 4
  br label %178

178:                                              ; preds = %177, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %179 = load i32, ptr %3, align 4
  switch i32 %179, label %374 [
    i32 0, label %180
    i32 10, label %181
  ]

180:                                              ; preds = %178
  br label %181

181:                                              ; preds = %180, %178
  %182 = load i32, ptr %5, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %5, align 4, !tbaa !5
  br label %57, !llvm.loop !16

184:                                              ; preds = %60
  store i32 0, ptr %3, align 4
  br label %185

185:                                              ; preds = %184, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %186 = load i32, ptr %3, align 4
  switch i32 %186, label %374 [
    i32 0, label %187
    i32 7, label %188
  ]

187:                                              ; preds = %185
  br label %188

188:                                              ; preds = %187, %185
  %189 = load i32, ptr %2, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %2, align 4, !tbaa !5
  br label %43, !llvm.loop !17

191:                                              ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  br label %192

192:                                              ; preds = %319, %191
  %193 = load i32, ptr %10, align 4, !tbaa !5
  %194 = load i32, ptr @sz, align 4, !tbaa !5
  %195 = icmp slt i32 %193, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %192
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %322

197:                                              ; preds = %192
  %198 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %198, ptr %11, align 4, !tbaa !5
  %199 = load i32, ptr %11, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %12, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %226, %197
  %202 = load i32, ptr %12, align 4, !tbaa !5
  %203 = load i32, ptr @sz, align 4, !tbaa !5
  %204 = icmp slt i32 %202, %203
  br i1 %204, label %205, label %229

205:                                              ; preds = %201
  %206 = load i32, ptr %12, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %207
  %209 = load i32, ptr %10, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [31 x double], ptr %208, i64 0, i64 %210
  %212 = load double, ptr %211, align 8, !tbaa !9
  %213 = call double @llvm.fabs.f64(double %212)
  %214 = load i32, ptr %11, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %215
  %217 = load i32, ptr %10, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [31 x double], ptr %216, i64 0, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !9
  %221 = call double @llvm.fabs.f64(double %220)
  %222 = fcmp ogt double %213, %221
  br i1 %222, label %223, label %225

223:                                              ; preds = %205
  %224 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %224, ptr %11, align 4, !tbaa !5
  br label %225

225:                                              ; preds = %223, %205
  br label %226

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

229:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %230 = load i32, ptr %11, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %231
  %233 = load i32, ptr %10, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [31 x double], ptr %232, i64 0, i64 %234
  %236 = load double, ptr %235, align 8, !tbaa !9
  store double %236, ptr %13, align 8, !tbaa !9
  %237 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %237, ptr %12, align 4, !tbaa !5
  br label %238

238:                                              ; preds = %265, %229
  %239 = load i32, ptr %12, align 4, !tbaa !5
  %240 = load i32, ptr @sz, align 4, !tbaa !5
  %241 = shl i32 %240, 1
  %242 = icmp slt i32 %239, %241
  br i1 %242, label %243, label %268

243:                                              ; preds = %238
  %244 = load i32, ptr %11, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %245
  %247 = load i32, ptr %12, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [31 x double], ptr %246, i64 0, i64 %248
  %250 = load i32, ptr %10, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %251
  %253 = load i32, ptr %12, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [31 x double], ptr %252, i64 0, i64 %254
  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) %249, ptr noundef nonnull align 8 dereferenceable(8) %255) #6
  %256 = load double, ptr %13, align 8, !tbaa !9
  %257 = load i32, ptr %10, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %258
  %260 = load i32, ptr %12, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [31 x double], ptr %259, i64 0, i64 %261
  %263 = load double, ptr %262, align 8, !tbaa !9
  %264 = fdiv double %263, %256
  store double %264, ptr %262, align 8, !tbaa !9
  br label %265

265:                                              ; preds = %243
  %266 = load i32, ptr %12, align 4, !tbaa !5
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %12, align 4, !tbaa !5
  br label %238, !llvm.loop !19

268:                                              ; preds = %238
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %269

269:                                              ; preds = %315, %268
  %270 = load i32, ptr %11, align 4, !tbaa !5
  %271 = load i32, ptr @sz, align 4, !tbaa !5
  %272 = icmp slt i32 %270, %271
  br i1 %272, label %273, label %318

273:                                              ; preds = %269
  %274 = load i32, ptr %10, align 4, !tbaa !5
  %275 = load i32, ptr %11, align 4, !tbaa !5
  %276 = icmp eq i32 %274, %275
  br i1 %276, label %277, label %278

277:                                              ; preds = %273
  br label %315

278:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %279 = load i32, ptr %11, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %280
  %282 = load i32, ptr %10, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [31 x double], ptr %281, i64 0, i64 %283
  %285 = load double, ptr %284, align 8, !tbaa !9
  store double %285, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %286 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %286, ptr %15, align 4, !tbaa !5
  br label %287

287:                                              ; preds = %311, %278
  %288 = load i32, ptr %15, align 4, !tbaa !5
  %289 = load i32, ptr @sz, align 4, !tbaa !5
  %290 = shl i32 %289, 1
  %291 = icmp slt i32 %288, %290
  br i1 %291, label %293, label %292

292:                                              ; preds = %287
  store i32 32, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %314

293:                                              ; preds = %287
  %294 = load double, ptr %14, align 8, !tbaa !9
  %295 = load i32, ptr %10, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %296
  %298 = load i32, ptr %15, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [31 x double], ptr %297, i64 0, i64 %299
  %301 = load double, ptr %300, align 8, !tbaa !9
  %302 = load i32, ptr %11, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %303
  %305 = load i32, ptr %15, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [31 x double], ptr %304, i64 0, i64 %306
  %308 = load double, ptr %307, align 8, !tbaa !9
  %309 = fneg double %294
  %310 = call double @llvm.fmuladd.f64(double %309, double %301, double %308)
  store double %310, ptr %307, align 8, !tbaa !9
  br label %311

311:                                              ; preds = %293
  %312 = load i32, ptr %15, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %15, align 4, !tbaa !5
  br label %287, !llvm.loop !20

314:                                              ; preds = %292
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %315

315:                                              ; preds = %314, %277
  %316 = load i32, ptr %11, align 4, !tbaa !5
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %11, align 4, !tbaa !5
  br label %269, !llvm.loop !21

318:                                              ; preds = %269
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %319

319:                                              ; preds = %318
  %320 = load i32, ptr %10, align 4, !tbaa !5
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %10, align 4, !tbaa !5
  br label %192, !llvm.loop !22

322:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %323

323:                                              ; preds = %333, %322
  %324 = load i32, ptr %16, align 4, !tbaa !5
  %325 = icmp slt i32 %324, 10
  br i1 %325, label %327, label %326

326:                                              ; preds = %323
  store i32 35, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %336

327:                                              ; preds = %323
  %328 = load i32, ptr %16, align 4, !tbaa !5
  %329 = load i32, ptr %16, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [11 x i32], ptr @nxt, i64 0, i64 %330
  %332 = load i32, ptr %331, align 4, !tbaa !5
  call void @_Z3dfsiii(i32 noundef 1, i32 noundef %328, i32 noundef %332)
  br label %333

333:                                              ; preds = %327
  %334 = load i32, ptr %16, align 4, !tbaa !5
  %335 = add nsw i32 %334, 1
  store i32 %335, ptr %16, align 4, !tbaa !5
  br label %323, !llvm.loop !23

336:                                              ; preds = %326
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %337

337:                                              ; preds = %368, %336
  %338 = load i32, ptr %17, align 4, !tbaa !5
  %339 = load i32, ptr @sz, align 4, !tbaa !5
  %340 = icmp slt i32 %338, %339
  br i1 %340, label %342, label %341

341:                                              ; preds = %337
  store i32 38, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %371

342:                                              ; preds = %337
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %343

343:                                              ; preds = %364, %342
  %344 = load i32, ptr %18, align 4, !tbaa !5
  %345 = load i32, ptr @m, align 4, !tbaa !5
  %346 = icmp slt i32 %344, %345
  br i1 %346, label %348, label %347

347:                                              ; preds = %343
  store i32 41, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %367

348:                                              ; preds = %343
  %349 = load i32, ptr %17, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [15 x double], ptr @f, i64 0, i64 %350
  %352 = load double, ptr %351, align 8, !tbaa !9
  %353 = load i32, ptr %17, align 4, !tbaa !5
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %354
  %356 = load i32, ptr @sz, align 4, !tbaa !5
  %357 = load i32, ptr %18, align 4, !tbaa !5
  %358 = add nsw i32 %356, %357
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds [31 x double], ptr %355, i64 0, i64 %359
  %361 = load double, ptr %360, align 8, !tbaa !9
  %362 = load double, ptr @ans, align 8, !tbaa !9
  %363 = call double @llvm.fmuladd.f64(double %352, double %361, double %362)
  store double %363, ptr @ans, align 8, !tbaa !9
  br label %364

364:                                              ; preds = %348
  %365 = load i32, ptr %18, align 4, !tbaa !5
  %366 = add nsw i32 %365, 1
  store i32 %366, ptr %18, align 4, !tbaa !5
  br label %343, !llvm.loop !24

367:                                              ; preds = %347
  br label %368

368:                                              ; preds = %367
  %369 = load i32, ptr %17, align 4, !tbaa !5
  %370 = add nsw i32 %369, 1
  store i32 %370, ptr %17, align 4, !tbaa !5
  br label %337, !llvm.loop !25

371:                                              ; preds = %341
  %372 = load double, ptr @ans, align 8, !tbaa !9
  %373 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %372)
  ret void

374:                                              ; preds = %185, %178
  unreachable
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare 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)) #4

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

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


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

@n = external dso_local local_unnamed_addr global i32, align 4
@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
@idx = external dso_local local_unnamed_addr global [11 x i32], align 16
@fail = external dso_local local_unnamed_addr global [11 x i32], align 16
@nxt = external dso_local local_unnamed_addr global [11 x [11 x i32]], align 16
@lpw = external dso_local local_unnamed_addr global [11 x [15 x double]], align 16
@c = external dso_local local_unnamed_addr global [15 x [15 x double]], align 16
@f = external dso_local local_unnamed_addr global [15 x double], align 16
@mat = external dso_local global [15 x [31 x double]], align 16
@ans = external dso_local local_unnamed_addr global double, align 8
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #1 {
  %1 = load i32, ptr @sz, align 4, !tbaa !5
  %2 = icmp sgt i32 %1, 0
  br i1 %2, label %.lr.ph.preheader, label %.preheader119

.lr.ph.preheader:                                 ; preds = %0
  %3 = zext nneg i32 %1 to i64
  %xtraiter = and i64 %3, 1
  %4 = icmp eq i32 %1, 1
  br i1 %4, label %.preheader119.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %3, 2147483646
  br label %.lr.ph

.preheader119.loopexit.unr-lcssa:                 ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader119, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader119.loopexit.unr-lcssa
  %5 = add nuw nsw i64 %indvars.iv.unr, %3
  %6 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv.unr, i64 %5
  store double 1.000000e+00, ptr %6, align 8, !tbaa !9
  %7 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv.unr, i64 %indvars.iv.unr
  store double 1.000000e+00, ptr %7, align 8, !tbaa !9
  br label %.preheader119

.preheader119:                                    ; preds = %.lr.ph.epil, %.preheader119.loopexit.unr-lcssa, %0
  %8 = load i32, ptr @n, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph136, label %.preheader112

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %10 = add nuw nsw i64 %indvars.iv, %3
  %11 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv, i64 %10
  store double 1.000000e+00, ptr %11, align 8, !tbaa !9
  %12 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv, i64 %indvars.iv
  store double 1.000000e+00, ptr %12, align 16, !tbaa !9
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %13 = add nuw nsw i64 %indvars.iv.next, %3
  %14 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv.next, i64 %13
  store double 1.000000e+00, ptr %14, align 8, !tbaa !9
  %15 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv.next, i64 %indvars.iv.next
  store double 1.000000e+00, ptr %15, align 16, !tbaa !9
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 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 %.preheader119.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !11

.preheader112.loopexit:                           ; preds = %.loopexit118
  %.pre241 = load i32, ptr @sz, align 4, !tbaa !5
  br label %.preheader112

.preheader112:                                    ; preds = %.preheader112.loopexit, %.preheader119
  %16 = phi i32 [ %.pre241, %.preheader112.loopexit ], [ %1, %.preheader119 ]
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph152, label %.preheader109

.lr.ph136:                                        ; preds = %.preheader119, %.loopexit118
  %18 = phi i32 [ %99, %.loopexit118 ], [ %8, %.preheader119 ]
  %indvars.iv203 = phi i64 [ %indvars.iv.next204, %.loopexit118 ], [ 0, %.preheader119 ]
  %19 = getelementptr inbounds [11 x i32], ptr @idx, i64 0, i64 %indvars.iv203
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = icmp eq i32 %20, -1
  br i1 %21, label %.loopexit118, label %.preheader117

.preheader117:                                    ; preds = %.lr.ph136
  %.not122 = icmp eq i64 %indvars.iv203, 0
  %22 = trunc nuw nsw i64 %indvars.iv203 to i32
  br label %.preheader116

.preheader116:                                    ; preds = %.preheader117, %.loopexit115
  %indvars.iv199 = phi i64 [ 0, %.preheader117 ], [ %indvars.iv.next200, %.loopexit115 ]
  br i1 %.not122, label %.critedge, label %.lr.ph124

.lr.ph124:                                        ; preds = %.preheader116, %26
  %.099123 = phi i32 [ %28, %26 ], [ %22, %.preheader116 ]
  %23 = sext i32 %.099123 to i64
  %24 = getelementptr inbounds [11 x [11 x i32]], ptr @nxt, i64 0, i64 %23, i64 %indvars.iv199
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %.not104 = icmp eq i32 %25, 0
  br i1 %.not104, label %26, label %.critedge

26:                                               ; preds = %.lr.ph124
  %27 = getelementptr inbounds [11 x i32], ptr @fail, i64 0, i64 %23
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %.not = icmp eq i32 %28, 0
  br i1 %.not, label %.critedge, label %.lr.ph124, !llvm.loop !13

.critedge:                                        ; preds = %.lr.ph124, %26, %.preheader116
  %.099.lcssa = phi i32 [ 0, %.preheader116 ], [ 0, %26 ], [ %.099123, %.lr.ph124 ]
  %29 = sext i32 %.099.lcssa to i64
  %30 = getelementptr inbounds [11 x [11 x i32]], ptr @nxt, i64 0, i64 %29, i64 %indvars.iv199
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [11 x i32], ptr @idx, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = icmp ne i32 %34, -1
  %36 = load i32, ptr @e, align 4
  %37 = icmp sgt i32 %36, 0
  %or.cond = select i1 %35, i1 %37, i1 false
  br i1 %or.cond, label %.preheader113.lr.ph, label %.loopexit115

.preheader113.lr.ph:                              ; preds = %.critedge
  %.not106 = icmp eq i64 %indvars.iv199, 0
  br i1 %.not106, label %.preheader113.us, label %.preheader113

.preheader113.us:                                 ; preds = %.preheader113.lr.ph, %.split.us132
  %indvars.iv194 = phi i64 [ %indvars.iv.next195, %.split.us132 ], [ 0, %.preheader113.lr.ph ]
  %indvars.iv192 = phi i64 [ %indvars.iv.next193, %.split.us132 ], [ 1, %.preheader113.lr.ph ]
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %38 = getelementptr inbounds [15 x double], ptr getelementptr inbounds (i8, ptr @lpw, i64 1200), i64 0, i64 %indvars.iv.next195
  %39 = trunc nuw nsw i64 %indvars.iv194 to i32
  br label %40

40:                                               ; preds = %.preheader113.us, %66
  %indvars.iv185 = phi i64 [ 0, %.preheader113.us ], [ %indvars.iv.next186, %66 ]
  %41 = icmp ult i64 %indvars.iv185, %indvars.iv194
  br i1 %41, label %66, label %42

42:                                               ; preds = %40
  %43 = sub nsw i64 %indvars.iv194, %indvars.iv185
  %44 = and i64 %43, 1
  %.not107.us130 = icmp eq i64 %44, 0
  %45 = getelementptr inbounds [15 x [15 x double]], ptr @c, i64 0, i64 %indvars.iv194, i64 %indvars.iv185
  %46 = load double, ptr %45, align 8, !tbaa !9
  %47 = tail call double @log(double noundef %46) #6
  %48 = getelementptr inbounds [11 x [15 x double]], ptr @lpw, i64 0, i64 0, i64 %43
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = fadd double %47, %49
  %51 = load double, ptr %38, align 8, !tbaa !9
  %52 = fsub double %50, %51
  %53 = tail call double @exp(double noundef %52) #6
  %54 = load i32, ptr @m, align 4, !tbaa !5
  %55 = mul nsw i32 %54, %39
  %56 = add nsw i32 %55, %20
  %57 = sext i32 %56 to i64
  %58 = trunc nuw nsw i64 %indvars.iv185 to i32
  %59 = mul nsw i32 %54, %58
  %60 = add nsw i32 %59, %34
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %57, i64 %61
  %63 = load double, ptr %62, align 8, !tbaa !9
  %64 = select i1 %.not107.us130, double -1.000000e+00, double 1.000000e+00
  %65 = tail call double @llvm.fmuladd.f64(double %64, double %53, double %63)
  store double %65, ptr %62, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %42, %40
  %indvars.iv.next186 = add nuw nsw i64 %indvars.iv185, 1
  %exitcond191.not = icmp eq i64 %indvars.iv.next186, %indvars.iv192
  br i1 %exitcond191.not, label %.split.us132, label %40, !llvm.loop !14

.split.us132:                                     ; preds = %66
  %67 = load i32, ptr @e, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = icmp slt i64 %indvars.iv.next195, %68
  %indvars.iv.next193 = add nuw nsw i64 %indvars.iv192, 1
  br i1 %69, label %.preheader113.us, label %.loopexit115, !llvm.loop !15

.preheader113:                                    ; preds = %.preheader113.lr.ph, %.split.us
  %indvars.iv180 = phi i64 [ %indvars.iv.next181, %.split.us ], [ 0, %.preheader113.lr.ph ]
  %indvars.iv178 = phi i64 [ %indvars.iv.next179, %.split.us ], [ 1, %.preheader113.lr.ph ]
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %70 = getelementptr inbounds [15 x double], ptr getelementptr inbounds (i8, ptr @lpw, i64 1200), i64 0, i64 %indvars.iv.next181
  %71 = trunc nuw nsw i64 %indvars.iv180 to i32
  br label %72

72:                                               ; preds = %72, %.preheader113
  %indvars.iv171 = phi i64 [ %indvars.iv.next172, %72 ], [ 0, %.preheader113 ]
  %73 = sub nsw i64 %indvars.iv180, %indvars.iv171
  %74 = and i64 %73, 1
  %.not107.us = icmp eq i64 %74, 0
  %75 = getelementptr inbounds [15 x [15 x double]], ptr @c, i64 0, i64 %indvars.iv180, i64 %indvars.iv171
  %76 = load double, ptr %75, align 8, !tbaa !9
  %77 = tail call double @log(double noundef %76) #6
  %78 = getelementptr inbounds [11 x [15 x double]], ptr @lpw, i64 0, i64 %indvars.iv199, i64 %73
  %79 = load double, ptr %78, align 8, !tbaa !9
  %80 = fadd double %77, %79
  %81 = load double, ptr %70, align 8, !tbaa !9
  %82 = fsub double %80, %81
  %83 = tail call double @exp(double noundef %82) #6
  %84 = load i32, ptr @m, align 4, !tbaa !5
  %85 = mul nsw i32 %84, %71
  %86 = add nsw i32 %85, %20
  %87 = sext i32 %86 to i64
  %88 = trunc nuw nsw i64 %indvars.iv171 to i32
  %89 = mul nsw i32 %84, %88
  %90 = add nsw i32 %89, %34
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %87, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !9
  %94 = select i1 %.not107.us, double -1.000000e+00, double 1.000000e+00
  %95 = tail call double @llvm.fmuladd.f64(double %94, double %83, double %93)
  store double %95, ptr %92, align 8, !tbaa !9
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %exitcond177.not = icmp eq i64 %indvars.iv.next172, %indvars.iv178
  br i1 %exitcond177.not, label %.split.us, label %72, !llvm.loop !14

.split.us:                                        ; preds = %72
  %96 = load i32, ptr @e, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = icmp slt i64 %indvars.iv.next181, %97
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  br i1 %98, label %.preheader113, label %.loopexit115, !llvm.loop !15

.loopexit115:                                     ; preds = %.split.us, %.split.us132, %.critedge
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %exitcond202.not = icmp eq i64 %indvars.iv.next200, 10
  br i1 %exitcond202.not, label %.loopexit118.loopexit, label %.preheader116, !llvm.loop !16

.loopexit118.loopexit:                            ; preds = %.loopexit115
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %.loopexit118

.loopexit118:                                     ; preds = %.loopexit118.loopexit, %.lr.ph136
  %99 = phi i32 [ %.pre, %.loopexit118.loopexit ], [ %18, %.lr.ph136 ]
  %indvars.iv.next204 = add nuw nsw i64 %indvars.iv203, 1
  %100 = sext i32 %99 to i64
  %101 = icmp slt i64 %indvars.iv.next204, %100
  br i1 %101, label %.lr.ph136, label %.preheader112.loopexit, !llvm.loop !17

.loopexit111:                                     ; preds = %..loopexit_crit_edge.us, %.lr.ph150, %.preheader110
  %102 = sext i32 %.lcssa120 to i64
  %103 = icmp slt i64 %indvars.iv.next214, %102
  %indvars.iv.next207 = add nuw nsw i64 %indvars.iv206, 1
  br i1 %103, label %.lr.ph152, label %.preheader109, !llvm.loop !18

.preheader109:                                    ; preds = %.loopexit111, %.preheader112
  %104 = load i32, ptr getelementptr inbounds (i8, ptr @nxt, i64 4), align 4, !tbaa !5
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 1, i32 noundef %104)
  %105 = load i32, ptr getelementptr inbounds (i8, ptr @nxt, i64 8), align 8, !tbaa !5
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 2, i32 noundef %105)
  %106 = load i32, ptr getelementptr inbounds (i8, ptr @nxt, i64 12), align 4, !tbaa !5
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 3, i32 noundef %106)
  %107 = load i32, ptr getelementptr inbounds (i8, ptr @nxt, i64 16), align 16, !tbaa !5
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 4, i32 noundef %107)
  %108 = load i32, ptr getelementptr inbounds (i8, ptr @nxt, i64 20), align 4, !tbaa !5
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 5, i32 noundef %108)
  %109 = load i32, ptr getelementptr inbounds (i8, ptr @nxt, i64 24), align 8, !tbaa !5
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 6, i32 noundef %109)
  %110 = load i32, ptr getelementptr inbounds (i8, ptr @nxt, i64 28), align 4, !tbaa !5
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 7, i32 noundef %110)
  %111 = load i32, ptr getelementptr inbounds (i8, ptr @nxt, i64 32), align 16, !tbaa !5
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 8, i32 noundef %111)
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @nxt, i64 36), align 4, !tbaa !5
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef 9, i32 noundef %112)
  %113 = load i32, ptr @sz, align 4, !tbaa !5
  %114 = icmp sgt i32 %113, 0
  %ans.promoted158 = load double, ptr @ans, align 8, !tbaa !9
  br i1 %114, label %.preheader.lr.ph, label %._crit_edge163

.lr.ph152:                                        ; preds = %.preheader112, %.loopexit111
  %115 = phi i32 [ %.lcssa120, %.loopexit111 ], [ %16, %.preheader112 ]
  %indvars.iv213 = phi i64 [ %indvars.iv.next214, %.loopexit111 ], [ 0, %.preheader112 ]
  %indvars.iv206 = phi i64 [ %indvars.iv.next207, %.loopexit111 ], [ 1, %.preheader112 ]
  %116 = add nuw i64 %indvars.iv213, 1
  %117 = shl nuw nsw i64 %indvars.iv213, 3
  %scevgep = getelementptr i8, ptr @mat, i64 %117
  %gep = getelementptr i8, ptr getelementptr (i8, ptr @mat, i64 -240), i64 %117
  %118 = add nuw i64 %indvars.iv213, 1
  %119 = xor i64 %indvars.iv213, -1
  %120 = shl nuw nsw i64 %indvars.iv213, 8
  %scevgep253 = getelementptr i8, ptr @mat, i64 %120
  %121 = or disjoint i64 %120, 8
  %scevgep254 = getelementptr i8, ptr @mat, i64 %121
  %indvars.iv.next214 = add nuw nsw i64 %indvars.iv213, 1
  %122 = sext i32 %115 to i64
  %123 = icmp slt i64 %indvars.iv.next214, %122
  %124 = trunc nuw nsw i64 %indvars.iv213 to i32
  br i1 %123, label %.lr.ph139, label %._crit_edge

.lr.ph139:                                        ; preds = %.lr.ph152
  %wide.trip.count211 = zext i32 %115 to i64
  br label %125

125:                                              ; preds = %.lr.ph139, %125
  %indvars.iv208 = phi i64 [ %indvars.iv206, %.lr.ph139 ], [ %indvars.iv.next209, %125 ]
  %.094137 = phi i32 [ %124, %.lr.ph139 ], [ %.195, %125 ]
  %126 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv208, i64 %indvars.iv213
  %127 = load double, ptr %126, align 8, !tbaa !9
  %128 = tail call double @llvm.fabs.f64(double %127)
  %129 = sext i32 %.094137 to i64
  %130 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %129, i64 %indvars.iv213
  %131 = load double, ptr %130, align 8, !tbaa !9
  %132 = tail call double @llvm.fabs.f64(double %131)
  %133 = fcmp ogt double %128, %132
  %134 = trunc nuw nsw i64 %indvars.iv208 to i32
  %.195 = select i1 %133, i32 %134, i32 %.094137
  %indvars.iv.next209 = add nuw nsw i64 %indvars.iv208, 1
  %exitcond212.not = icmp eq i64 %indvars.iv.next209, %wide.trip.count211
  br i1 %exitcond212.not, label %._crit_edge, label %125, !llvm.loop !19

._crit_edge:                                      ; preds = %125, %.lr.ph152
  %.094.lcssa = phi i32 [ %124, %.lr.ph152 ], [ %.195, %125 ]
  %135 = sext i32 %.094.lcssa to i64
  %136 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %135, i64 %indvars.iv213
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = shl i32 %115, 1
  %139 = sext i32 %138 to i64
  %140 = icmp slt i64 %indvars.iv213, %139
  br i1 %140, label %.lr.ph143, label %.preheader110

.preheader110:                                    ; preds = %.lr.ph143, %._crit_edge
  %.lcssa120 = phi i32 [ %115, %._crit_edge ], [ %170, %.lr.ph143 ]
  %.lcssa = phi i32 [ %138, %._crit_edge ], [ %171, %.lr.ph143 ]
  %141 = icmp sgt i32 %.lcssa120, 0
  br i1 %141, label %.lr.ph150, label %.loopexit111

.lr.ph150:                                        ; preds = %.preheader110
  %142 = sext i32 %.lcssa to i64
  %143 = icmp slt i64 %indvars.iv213, %142
  %.fr = freeze i1 %143
  br i1 %.fr, label %.lr.ph150.split.us.preheader, label %.loopexit111

.lr.ph150.split.us.preheader:                     ; preds = %.lr.ph150
  %wide.trip.count224 = zext nneg i32 %.lcssa120 to i64
  %144 = mul nuw nsw i64 %wide.trip.count224, 248
  %smax = tail call i64 @llvm.smax.i64(i64 %118, i64 %142)
  %145 = add i64 %smax, %119
  %146 = shl nsw i64 %145, 3
  %147 = getelementptr i8, ptr %gep, i64 %144
  %scevgep252 = getelementptr i8, ptr %147, i64 %146
  %scevgep255 = getelementptr i8, ptr %scevgep254, i64 %146
  %smax256 = tail call i64 @llvm.smax.i64(i64 %116, i64 %142)
  %148 = sub i64 %smax256, %indvars.iv213
  %min.iters.check = icmp ult i64 %148, 4
  %bound0 = icmp ult ptr %scevgep, %scevgep255
  %bound1 = icmp ult ptr %scevgep253, %scevgep252
  %found.conflict = and i1 %bound0, %bound1
  %n.vec = and i64 %148, -4
  %ind.end = add i64 %indvars.iv213, %n.vec
  %cmp.n = icmp eq i64 %148, %n.vec
  br label %.lr.ph150.split.us

.lr.ph150.split.us:                               ; preds = %.lr.ph150.split.us.preheader, %..loopexit_crit_edge.us
  %indvars.iv221 = phi i64 [ 0, %.lr.ph150.split.us.preheader ], [ %indvars.iv.next222, %..loopexit_crit_edge.us ]
  %149 = icmp eq i64 %indvars.iv213, %indvars.iv221
  br i1 %149, label %..loopexit_crit_edge.us, label %.lr.ph148.us

.lr.ph148.us:                                     ; preds = %.lr.ph150.split.us
  %150 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv221, i64 %indvars.iv213
  %151 = load double, ptr %150, align 8, !tbaa !9
  %152 = fneg double %151
  %brmerge = select i1 %min.iters.check, i1 true, i1 %found.conflict
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.ph

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %indvars.iv213, %index
  %153 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv213, i64 %offset.idx
  %154 = getelementptr inbounds i8, ptr %153, i64 16
  %wide.load = load <2 x double>, ptr %153, align 8, !tbaa !9, !alias.scope !20
  %wide.load257 = load <2 x double>, ptr %154, align 8, !tbaa !9, !alias.scope !20
  %155 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv221, i64 %offset.idx
  %156 = getelementptr inbounds i8, ptr %155, i64 16
  %wide.load258 = load <2 x double>, ptr %155, align 8, !tbaa !9, !alias.scope !23, !noalias !20
  %wide.load259 = load <2 x double>, ptr %156, align 8, !tbaa !9, !alias.scope !23, !noalias !20
  %157 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %wide.load258)
  %158 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load257, <2 x double> %wide.load259)
  store <2 x double> %157, ptr %155, align 8, !tbaa !9, !alias.scope !23, !noalias !20
  store <2 x double> %158, ptr %156, align 8, !tbaa !9, !alias.scope !23, !noalias !20
  %index.next = add nuw i64 %index, 4
  %159 = icmp eq i64 %index.next, %n.vec
  br i1 %159, label %middle.block, label %vector.body, !llvm.loop !25

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

scalar.ph.preheader:                              ; preds = %.lr.ph148.us, %middle.block
  %indvars.iv218.ph = phi i64 [ %indvars.iv213, %.lr.ph148.us ], [ %ind.end, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv218 = phi i64 [ %indvars.iv.next219, %scalar.ph ], [ %indvars.iv218.ph, %scalar.ph.preheader ]
  %160 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv213, i64 %indvars.iv218
  %161 = load double, ptr %160, align 8, !tbaa !9
  %162 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv221, i64 %indvars.iv218
  %163 = load double, ptr %162, align 8, !tbaa !9
  %164 = tail call double @llvm.fmuladd.f64(double %152, double %161, double %163)
  store double %164, ptr %162, align 8, !tbaa !9
  %indvars.iv.next219 = add nuw nsw i64 %indvars.iv218, 1
  %165 = icmp slt i64 %indvars.iv.next219, %142
  br i1 %165, label %scalar.ph, label %..loopexit_crit_edge.us, !llvm.loop !28

..loopexit_crit_edge.us:                          ; preds = %scalar.ph, %middle.block, %.lr.ph150.split.us
  %indvars.iv.next222 = add nuw nsw i64 %indvars.iv221, 1
  %exitcond225.not = icmp eq i64 %indvars.iv.next222, %wide.trip.count224
  br i1 %exitcond225.not, label %.loopexit111, label %.lr.ph150.split.us, !llvm.loop !29

.lr.ph143:                                        ; preds = %._crit_edge, %.lr.ph143
  %indvars.iv215 = phi i64 [ %indvars.iv.next216, %.lr.ph143 ], [ %indvars.iv213, %._crit_edge ]
  %166 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %135, i64 %indvars.iv215
  %167 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv213, i64 %indvars.iv215
  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) %166, ptr noundef nonnull align 8 dereferenceable(8) %167) #6
  %168 = load double, ptr %167, align 8, !tbaa !9
  %169 = fdiv double %168, %137
  store double %169, ptr %167, align 8, !tbaa !9
  %indvars.iv.next216 = add nuw nsw i64 %indvars.iv215, 1
  %170 = load i32, ptr @sz, align 4, !tbaa !5
  %171 = shl i32 %170, 1
  %172 = trunc nuw i64 %indvars.iv.next216 to i32
  %173 = icmp sgt i32 %171, %172
  br i1 %173, label %.lr.ph143, label %.preheader110, !llvm.loop !30

.preheader.lr.ph:                                 ; preds = %.preheader109
  %174 = load i32, ptr @m, align 4, !tbaa !5
  %175 = icmp sgt i32 %174, 0
  br i1 %175, label %.preheader.us.preheader, label %._crit_edge163

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %176 = zext nneg i32 %113 to i64
  %wide.trip.count234 = zext nneg i32 %174 to i64
  %xtraiter264 = and i64 %wide.trip.count234, 3
  %177 = icmp ult i32 %174, 4
  %unroll_iter267 = and i64 %wide.trip.count234, 2147483644
  %lcmp.mod265.not = icmp eq i64 %xtraiter264, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge156.us
  %indvars.iv236 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next237, %._crit_edge156.us ]
  %.lcssa157160161.us = phi double [ %ans.promoted158, %.preheader.us.preheader ], [ %.lcssa260, %._crit_edge156.us ]
  %178 = getelementptr inbounds [15 x double], ptr @f, i64 0, i64 %indvars.iv236
  %179 = load double, ptr %178, align 8, !tbaa !9
  br i1 %177, label %._crit_edge156.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %indvars.iv231 = phi i64 [ %indvars.iv.next232.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %180 = phi double [ %196, %.preheader.us.new ], [ %.lcssa157160161.us, %.preheader.us ]
  %niter268 = phi i64 [ %niter268.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %181 = add nuw nsw i64 %indvars.iv231, %176
  %182 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv236, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !9
  %184 = tail call double @llvm.fmuladd.f64(double %179, double %183, double %180)
  %indvars.iv.next232 = or disjoint i64 %indvars.iv231, 1
  %185 = add nuw nsw i64 %indvars.iv.next232, %176
  %186 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv236, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !9
  %188 = tail call double @llvm.fmuladd.f64(double %179, double %187, double %184)
  %indvars.iv.next232.1 = or disjoint i64 %indvars.iv231, 2
  %189 = add nuw nsw i64 %indvars.iv.next232.1, %176
  %190 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv236, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !9
  %192 = tail call double @llvm.fmuladd.f64(double %179, double %191, double %188)
  %indvars.iv.next232.2 = or disjoint i64 %indvars.iv231, 3
  %193 = add nuw nsw i64 %indvars.iv.next232.2, %176
  %194 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv236, i64 %193
  %195 = load double, ptr %194, align 8, !tbaa !9
  %196 = tail call double @llvm.fmuladd.f64(double %179, double %195, double %192)
  %indvars.iv.next232.3 = add nuw nsw i64 %indvars.iv231, 4
  %niter268.next.3 = add i64 %niter268, 4
  %niter268.ncmp.3 = icmp eq i64 %niter268.next.3, %unroll_iter267
  br i1 %niter268.ncmp.3, label %._crit_edge156.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !31

._crit_edge156.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.lcssa260.ph = phi double [ poison, %.preheader.us ], [ %196, %.preheader.us.new ]
  %indvars.iv231.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next232.3, %.preheader.us.new ]
  %.unr = phi double [ %.lcssa157160161.us, %.preheader.us ], [ %196, %.preheader.us.new ]
  br i1 %lcmp.mod265.not, label %._crit_edge156.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge156.us.unr-lcssa, %.epil.preheader
  %indvars.iv231.epil = phi i64 [ %indvars.iv.next232.epil, %.epil.preheader ], [ %indvars.iv231.unr, %._crit_edge156.us.unr-lcssa ]
  %197 = phi double [ %201, %.epil.preheader ], [ %.unr, %._crit_edge156.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge156.us.unr-lcssa ]
  %198 = add nuw nsw i64 %indvars.iv231.epil, %176
  %199 = getelementptr inbounds [15 x [31 x double]], ptr @mat, i64 0, i64 %indvars.iv236, i64 %198
  %200 = load double, ptr %199, align 8, !tbaa !9
  %201 = tail call double @llvm.fmuladd.f64(double %179, double %200, double %197)
  %indvars.iv.next232.epil = add nuw nsw i64 %indvars.iv231.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter264
  br i1 %epil.iter.cmp.not, label %._crit_edge156.us, label %.epil.preheader, !llvm.loop !32

._crit_edge156.us:                                ; preds = %.epil.preheader, %._crit_edge156.us.unr-lcssa
  %.lcssa260 = phi double [ %.lcssa260.ph, %._crit_edge156.us.unr-lcssa ], [ %201, %.epil.preheader ]
  %indvars.iv.next237 = add nuw nsw i64 %indvars.iv236, 1
  %exitcond240.not = icmp eq i64 %indvars.iv.next237, %176
  br i1 %exitcond240.not, label %._crit_edge163.split.us, label %.preheader.us, !llvm.loop !34

._crit_edge163.split.us:                          ; preds = %._crit_edge156.us
  store double %.lcssa260, ptr @ans, align 8, !tbaa !9
  br label %._crit_edge163

._crit_edge163:                                   ; preds = %.preheader109, %.preheader.lr.ph, %._crit_edge163.split.us
  %202 = phi double [ %.lcssa260, %._crit_edge163.split.us ], [ %ans.promoted158, %.preheader.lr.ph ], [ %ans.promoted158, %.preheader109 ]
  %203 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %202)
  ret void
}

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!21}
!21 = distinct !{!21, !22}
!22 = distinct !{!22, !"LVerDomain"}
!23 = !{!24}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !12, !26, !27}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = distinct !{!28, !12, !26}
!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: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass