; LLVM IR from arasgungore/EE242-projects :: GaussianEliminationWithPartialPivoting/main.ll (Z11solveByGEPPPPdS_s)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZTId = external constant ptr
@.str.7 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [78 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

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z11solveByGEPPPPdS_s(ptr noundef %0, ptr noundef %1, i16 noundef signext %2) #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i16, align 2
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i16, align 2
  %10 = alloca i32, align 4
  %11 = alloca i16, align 2
  %12 = alloca i16, align 2
  %13 = alloca i16, align 2
  %14 = alloca double, align 8
  %15 = alloca i16, align 2
  %16 = alloca double, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i16, align 2
  %20 = alloca i16, align 2
  %21 = alloca double, align 8
  %22 = alloca i16, align 2
  %23 = alloca i16, align 2
  %24 = alloca i16, align 2
  %25 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i16 %2, ptr %6, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %26 = load i16, ptr %6, align 2, !tbaa !9
  %27 = sext i16 %26 to i64
  %28 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %27, i64 8)
  %29 = extractvalue { i64, i1 } %28, 1
  %30 = extractvalue { i64, i1 } %28, 0
  %31 = select i1 %29, i64 -1, i64 %30
  %32 = call noalias noundef nonnull ptr @_Znam(i64 noundef %31) #9
  store ptr %32, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #8
  store i16 0, ptr %9, align 2, !tbaa !9
  br label %33

33:                                               ; preds = %96, %3
  %34 = load i16, ptr %9, align 2, !tbaa !9
  %35 = sext i16 %34 to i32
  %36 = load i16, ptr %6, align 2, !tbaa !9
  %37 = sext i16 %36 to i32
  %38 = icmp slt i32 %35, %37
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %33
  %41 = load i16, ptr %6, align 2, !tbaa !9
  %42 = sext i16 %41 to i32
  %43 = add nsw i32 %42, 1
  %44 = sext i32 %43 to i64
  %45 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %44, i64 8)
  %46 = extractvalue { i64, i1 } %45, 1
  %47 = extractvalue { i64, i1 } %45, 0
  %48 = select i1 %46, i64 -1, i64 %47
  %49 = call noalias noundef nonnull ptr @_Znam(i64 noundef %48) #9
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = load i16, ptr %9, align 2, !tbaa !9
  %52 = sext i16 %51 to i64
  %53 = getelementptr inbounds ptr, ptr %50, i64 %52
  store ptr %49, ptr %53, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #8
  store i16 0, ptr %11, align 2, !tbaa !9
  br label %54

54:                                               ; preds = %79, %40
  %55 = load i16, ptr %11, align 2, !tbaa !9
  %56 = sext i16 %55 to i32
  %57 = load i16, ptr %6, align 2, !tbaa !9
  %58 = sext i16 %57 to i32
  %59 = icmp slt i32 %56, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %54
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #8
  br label %82

61:                                               ; preds = %54
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load i16, ptr %9, align 2, !tbaa !9
  %64 = sext i16 %63 to i64
  %65 = getelementptr inbounds ptr, ptr %62, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = load i16, ptr %11, align 2, !tbaa !9
  %68 = sext i16 %67 to i64
  %69 = getelementptr inbounds double, ptr %66, i64 %68
  %70 = load double, ptr %69, align 8, !tbaa !11
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load i16, ptr %9, align 2, !tbaa !9
  %73 = sext i16 %72 to i64
  %74 = getelementptr inbounds ptr, ptr %71, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = load i16, ptr %11, align 2, !tbaa !9
  %77 = sext i16 %76 to i64
  %78 = getelementptr inbounds double, ptr %75, i64 %77
  store double %70, ptr %78, align 8, !tbaa !11
  br label %79

79:                                               ; preds = %61
  %80 = load i16, ptr %11, align 2, !tbaa !9
  %81 = add i16 %80, 1
  store i16 %81, ptr %11, align 2, !tbaa !9
  br label %54, !llvm.loop !13

82:                                               ; preds = %60
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = load i16, ptr %9, align 2, !tbaa !9
  %85 = sext i16 %84 to i64
  %86 = getelementptr inbounds double, ptr %83, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !11
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = load i16, ptr %9, align 2, !tbaa !9
  %90 = sext i16 %89 to i64
  %91 = getelementptr inbounds ptr, ptr %88, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = load i16, ptr %6, align 2, !tbaa !9
  %94 = sext i16 %93 to i64
  %95 = getelementptr inbounds double, ptr %92, i64 %94
  store double %87, ptr %95, align 8, !tbaa !11
  br label %96

96:                                               ; preds = %82
  %97 = load i16, ptr %9, align 2, !tbaa !9
  %98 = add i16 %97, 1
  store i16 %98, ptr %9, align 2, !tbaa !9
  br label %33, !llvm.loop !15

99:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #8
  store i16 0, ptr %12, align 2, !tbaa !9
  br label %100

100:                                              ; preds = %280, %99
  %101 = load i16, ptr %12, align 2, !tbaa !9
  %102 = sext i16 %101 to i32
  %103 = load i16, ptr %6, align 2, !tbaa !9
  %104 = sext i16 %103 to i32
  %105 = icmp slt i32 %102, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %100
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #8
  br label %283

107:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #8
  %108 = load i16, ptr %12, align 2, !tbaa !9
  store i16 %108, ptr %13, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = load i16, ptr %12, align 2, !tbaa !9
  %111 = sext i16 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %109, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = load i16, ptr %12, align 2, !tbaa !9
  %115 = sext i16 %114 to i64
  %116 = getelementptr inbounds double, ptr %113, i64 %115
  %117 = load double, ptr %116, align 8, !tbaa !11
  %118 = call double @llvm.fabs.f64(double %117)
  store double %118, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #8
  %119 = load i16, ptr %12, align 2, !tbaa !9
  %120 = sext i16 %119 to i32
  %121 = add nsw i32 %120, 1
  %122 = trunc i32 %121 to i16
  store i16 %122, ptr %15, align 2, !tbaa !9
  br label %123

123:                                              ; preds = %148, %107
  %124 = load i16, ptr %15, align 2, !tbaa !9
  %125 = sext i16 %124 to i32
  %126 = load i16, ptr %6, align 2, !tbaa !9
  %127 = sext i16 %126 to i32
  %128 = icmp slt i32 %125, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %123
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #8
  br label %151

130:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = load i16, ptr %15, align 2, !tbaa !9
  %133 = sext i16 %132 to i64
  %134 = getelementptr inbounds ptr, ptr %131, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = load i16, ptr %12, align 2, !tbaa !9
  %137 = sext i16 %136 to i64
  %138 = getelementptr inbounds double, ptr %135, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !11
  %140 = call double @llvm.fabs.f64(double %139)
  store double %140, ptr %16, align 8, !tbaa !11
  %141 = load double, ptr %16, align 8, !tbaa !11
  %142 = load double, ptr %14, align 8, !tbaa !11
  %143 = fcmp ogt double %141, %142
  br i1 %143, label %144, label %147

144:                                              ; preds = %130
  %145 = load double, ptr %16, align 8, !tbaa !11
  store double %145, ptr %14, align 8, !tbaa !11
  %146 = load i16, ptr %15, align 2, !tbaa !9
  store i16 %146, ptr %13, align 2, !tbaa !9
  br label %147

147:                                              ; preds = %144, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %148

148:                                              ; preds = %147
  %149 = load i16, ptr %15, align 2, !tbaa !9
  %150 = add i16 %149, 1
  store i16 %150, ptr %15, align 2, !tbaa !9
  br label %123, !llvm.loop !16

151:                                              ; preds = %129
  %152 = load double, ptr %14, align 8, !tbaa !11
  %153 = fcmp olt double %152, 1.000000e-10
  br i1 %153, label %154, label %161

154:                                              ; preds = %151
  %155 = call ptr @__cxa_allocate_exception(i64 8) #8
  %156 = load double, ptr %14, align 8, !tbaa !11
  store double %156, ptr %155, align 16, !tbaa !11
  invoke void @__cxa_throw(ptr %155, ptr @_ZTId, ptr null) #10
          to label %414 unwind label %157

157:                                              ; preds = %154
  %158 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTId
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %17, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #8
  br label %305

161:                                              ; preds = %151
  %162 = load i16, ptr %13, align 2, !tbaa !9
  %163 = sext i16 %162 to i32
  %164 = load i16, ptr %12, align 2, !tbaa !9
  %165 = sext i16 %164 to i32
  %166 = icmp ne i32 %163, %165
  br i1 %166, label %167, label %198

167:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 2, ptr %19) #8
  %168 = load i16, ptr %12, align 2, !tbaa !9
  store i16 %168, ptr %19, align 2, !tbaa !9
  br label %169

169:                                              ; preds = %194, %167
  %170 = load i16, ptr %19, align 2, !tbaa !9
  %171 = sext i16 %170 to i32
  %172 = load i16, ptr %6, align 2, !tbaa !9
  %173 = sext i16 %172 to i32
  %174 = add nsw i32 %173, 1
  %175 = icmp slt i32 %171, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %169
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %19) #8
  br label %197

177:                                              ; preds = %169
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = load i16, ptr %13, align 2, !tbaa !9
  %180 = sext i16 %179 to i64
  %181 = getelementptr inbounds ptr, ptr %178, i64 %180
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  %183 = load i16, ptr %19, align 2, !tbaa !9
  %184 = sext i16 %183 to i64
  %185 = getelementptr inbounds double, ptr %182, i64 %184
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = load i16, ptr %12, align 2, !tbaa !9
  %188 = sext i16 %187 to i64
  %189 = getelementptr inbounds ptr, ptr %186, i64 %188
  %190 = load ptr, ptr %189, align 8, !tbaa !5
  %191 = load i16, ptr %19, align 2, !tbaa !9
  %192 = sext i16 %191 to i64
  %193 = getelementptr inbounds double, ptr %190, i64 %192
  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) %185, ptr noundef nonnull align 8 dereferenceable(8) %193) #8
  br label %194

194:                                              ; preds = %177
  %195 = load i16, ptr %19, align 2, !tbaa !9
  %196 = add i16 %195, 1
  store i16 %196, ptr %19, align 2, !tbaa !9
  br label %169, !llvm.loop !17

197:                                              ; preds = %176
  br label %198

198:                                              ; preds = %197, %161
  call void @llvm.lifetime.start.p0(i64 2, ptr %20) #8
  %199 = load i16, ptr %12, align 2, !tbaa !9
  %200 = sext i16 %199 to i32
  %201 = add nsw i32 %200, 1
  %202 = trunc i32 %201 to i16
  store i16 %202, ptr %20, align 2, !tbaa !9
  br label %203

203:                                              ; preds = %276, %198
  %204 = load i16, ptr %20, align 2, !tbaa !9
  %205 = sext i16 %204 to i32
  %206 = load i16, ptr %6, align 2, !tbaa !9
  %207 = sext i16 %206 to i32
  %208 = icmp slt i32 %205, %207
  br i1 %208, label %210, label %209

209:                                              ; preds = %203
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #8
  br label %279

210:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = load i16, ptr %20, align 2, !tbaa !9
  %213 = sext i16 %212 to i64
  %214 = getelementptr inbounds ptr, ptr %211, i64 %213
  %215 = load ptr, ptr %214, align 8, !tbaa !5
  %216 = load i16, ptr %12, align 2, !tbaa !9
  %217 = sext i16 %216 to i64
  %218 = getelementptr inbounds double, ptr %215, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !11
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = load i16, ptr %12, align 2, !tbaa !9
  %222 = sext i16 %221 to i64
  %223 = getelementptr inbounds ptr, ptr %220, i64 %222
  %224 = load ptr, ptr %223, align 8, !tbaa !5
  %225 = load i16, ptr %12, align 2, !tbaa !9
  %226 = sext i16 %225 to i64
  %227 = getelementptr inbounds double, ptr %224, i64 %226
  %228 = load double, ptr %227, align 8, !tbaa !11
  %229 = fdiv double %219, %228
  store double %229, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %22) #8
  %230 = load i16, ptr %12, align 2, !tbaa !9
  %231 = sext i16 %230 to i32
  %232 = add nsw i32 %231, 1
  %233 = trunc i32 %232 to i16
  store i16 %233, ptr %22, align 2, !tbaa !9
  br label %234

234:                                              ; preds = %264, %210
  %235 = load i16, ptr %22, align 2, !tbaa !9
  %236 = sext i16 %235 to i32
  %237 = load i16, ptr %6, align 2, !tbaa !9
  %238 = sext i16 %237 to i32
  %239 = add nsw i32 %238, 1
  %240 = icmp slt i32 %236, %239
  br i1 %240, label %242, label %241

241:                                              ; preds = %234
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %22) #8
  br label %267

242:                                              ; preds = %234
  %243 = load double, ptr %21, align 8, !tbaa !11
  %244 = load ptr, ptr %7, align 8, !tbaa !5
  %245 = load i16, ptr %12, align 2, !tbaa !9
  %246 = sext i16 %245 to i64
  %247 = getelementptr inbounds ptr, ptr %244, i64 %246
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = load i16, ptr %22, align 2, !tbaa !9
  %250 = sext i16 %249 to i64
  %251 = getelementptr inbounds double, ptr %248, i64 %250
  %252 = load double, ptr %251, align 8, !tbaa !11
  %253 = load ptr, ptr %7, align 8, !tbaa !5
  %254 = load i16, ptr %20, align 2, !tbaa !9
  %255 = sext i16 %254 to i64
  %256 = getelementptr inbounds ptr, ptr %253, i64 %255
  %257 = load ptr, ptr %256, align 8, !tbaa !5
  %258 = load i16, ptr %22, align 2, !tbaa !9
  %259 = sext i16 %258 to i64
  %260 = getelementptr inbounds double, ptr %257, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !11
  %262 = fneg double %243
  %263 = call double @llvm.fmuladd.f64(double %262, double %252, double %261)
  store double %263, ptr %260, align 8, !tbaa !11
  br label %264

264:                                              ; preds = %242
  %265 = load i16, ptr %22, align 2, !tbaa !9
  %266 = add i16 %265, 1
  store i16 %266, ptr %22, align 2, !tbaa !9
  br label %234, !llvm.loop !18

267:                                              ; preds = %241
  %268 = load ptr, ptr %7, align 8, !tbaa !5
  %269 = load i16, ptr %20, align 2, !tbaa !9
  %270 = sext i16 %269 to i64
  %271 = getelementptr inbounds ptr, ptr %268, i64 %270
  %272 = load ptr, ptr %271, align 8, !tbaa !5
  %273 = load i16, ptr %12, align 2, !tbaa !9
  %274 = sext i16 %273 to i64
  %275 = getelementptr inbounds double, ptr %272, i64 %274
  store double 0.000000e+00, ptr %275, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %276

276:                                              ; preds = %267
  %277 = load i16, ptr %20, align 2, !tbaa !9
  %278 = add i16 %277, 1
  store i16 %278, ptr %20, align 2, !tbaa !9
  br label %203, !llvm.loop !19

279:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #8
  br label %280

280:                                              ; preds = %279
  %281 = load i16, ptr %12, align 2, !tbaa !9
  %282 = add i16 %281, 1
  store i16 %282, ptr %12, align 2, !tbaa !9
  br label %100, !llvm.loop !20

283:                                              ; preds = %106
  %284 = load i16, ptr %6, align 2, !tbaa !9
  %285 = sext i16 %284 to i64
  %286 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %285, i64 8)
  %287 = extractvalue { i64, i1 } %286, 1
  %288 = extractvalue { i64, i1 } %286, 0
  %289 = select i1 %287, i64 -1, i64 %288
  %290 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %289) #9
          to label %291 unwind label %301

291:                                              ; preds = %283
  store ptr %290, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #8
  %292 = load i16, ptr %6, align 2, !tbaa !9
  %293 = sext i16 %292 to i32
  %294 = sub nsw i32 %293, 1
  %295 = trunc i32 %294 to i16
  store i16 %295, ptr %23, align 2, !tbaa !9
  br label %296

296:                                              ; preds = %400, %291
  %297 = load i16, ptr %23, align 2, !tbaa !9
  %298 = sext i16 %297 to i32
  %299 = icmp sge i32 %298, 0
  br i1 %299, label %334, label %300

300:                                              ; preds = %296
  store i32 23, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #8
  br label %403

301:                                              ; preds = %283
  %302 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTId
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %17, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %18, align 4
  br label %305

305:                                              ; preds = %301, %157
  %306 = load i32, ptr %18, align 4
  %307 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTId) #8
  %308 = icmp eq i32 %306, %307
  br i1 %308, label %309, label %408

309:                                              ; preds = %305
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %310 = load ptr, ptr %17, align 8
  %311 = call ptr @__cxa_begin_catch(ptr %310) #8
  store ptr %311, ptr %25, align 8
  %312 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.7)
          to label %313 unwind label %404

313:                                              ; preds = %309
  %314 = load ptr, ptr %25, align 8, !tbaa !5
  %315 = load double, ptr %314, align 8, !tbaa !11
  %316 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %312, double noundef %315)
          to label %317 unwind label %404

317:                                              ; preds = %313
  %318 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %316, ptr noundef @.str.8)
          to label %319 unwind label %404

319:                                              ; preds = %317
  %320 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %318, double noundef 1.000000e-10)
          to label %321 unwind label %404

321:                                              ; preds = %319
  %322 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %320, ptr noundef @.str.9)
          to label %323 unwind label %404

323:                                              ; preds = %321
  %324 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %322, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %325 unwind label %404

325:                                              ; preds = %323
  %326 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.10)
          to label %327 unwind label %404

327:                                              ; preds = %325
  %328 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %326, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %329 unwind label %404

329:                                              ; preds = %327
  call void @__cxa_end_catch() #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %330

330:                                              ; preds = %403, %329
  %331 = load ptr, ptr %7, align 8, !tbaa !5
  %332 = load i16, ptr %6, align 2, !tbaa !9
  call void @_Z12deleteMatrixPPds(ptr noundef %331, i16 noundef signext %332)
  %333 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  ret ptr %333

334:                                              ; preds = %296
  %335 = load ptr, ptr %7, align 8, !tbaa !5
  %336 = load i16, ptr %23, align 2, !tbaa !9
  %337 = sext i16 %336 to i64
  %338 = getelementptr inbounds ptr, ptr %335, i64 %337
  %339 = load ptr, ptr %338, align 8, !tbaa !5
  %340 = load i16, ptr %6, align 2, !tbaa !9
  %341 = sext i16 %340 to i64
  %342 = getelementptr inbounds double, ptr %339, i64 %341
  %343 = load double, ptr %342, align 8, !tbaa !11
  %344 = load ptr, ptr %8, align 8, !tbaa !5
  %345 = load i16, ptr %23, align 2, !tbaa !9
  %346 = sext i16 %345 to i64
  %347 = getelementptr inbounds double, ptr %344, i64 %346
  store double %343, ptr %347, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #8
  %348 = load i16, ptr %23, align 2, !tbaa !9
  %349 = sext i16 %348 to i32
  %350 = add nsw i32 %349, 1
  %351 = trunc i32 %350 to i16
  store i16 %351, ptr %24, align 2, !tbaa !9
  br label %352

352:                                              ; preds = %381, %334
  %353 = load i16, ptr %24, align 2, !tbaa !9
  %354 = sext i16 %353 to i32
  %355 = load i16, ptr %6, align 2, !tbaa !9
  %356 = sext i16 %355 to i32
  %357 = icmp slt i32 %354, %356
  br i1 %357, label %359, label %358

358:                                              ; preds = %352
  store i32 26, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #8
  br label %384

359:                                              ; preds = %352
  %360 = load ptr, ptr %7, align 8, !tbaa !5
  %361 = load i16, ptr %23, align 2, !tbaa !9
  %362 = sext i16 %361 to i64
  %363 = getelementptr inbounds ptr, ptr %360, i64 %362
  %364 = load ptr, ptr %363, align 8, !tbaa !5
  %365 = load i16, ptr %24, align 2, !tbaa !9
  %366 = sext i16 %365 to i64
  %367 = getelementptr inbounds double, ptr %364, i64 %366
  %368 = load double, ptr %367, align 8, !tbaa !11
  %369 = load ptr, ptr %8, align 8, !tbaa !5
  %370 = load i16, ptr %24, align 2, !tbaa !9
  %371 = sext i16 %370 to i64
  %372 = getelementptr inbounds double, ptr %369, i64 %371
  %373 = load double, ptr %372, align 8, !tbaa !11
  %374 = load ptr, ptr %8, align 8, !tbaa !5
  %375 = load i16, ptr %23, align 2, !tbaa !9
  %376 = sext i16 %375 to i64
  %377 = getelementptr inbounds double, ptr %374, i64 %376
  %378 = load double, ptr %377, align 8, !tbaa !11
  %379 = fneg double %368
  %380 = call double @llvm.fmuladd.f64(double %379, double %373, double %378)
  store double %380, ptr %377, align 8, !tbaa !11
  br label %381

381:                                              ; preds = %359
  %382 = load i16, ptr %24, align 2, !tbaa !9
  %383 = add i16 %382, 1
  store i16 %383, ptr %24, align 2, !tbaa !9
  br label %352, !llvm.loop !21

384:                                              ; preds = %358
  %385 = load ptr, ptr %7, align 8, !tbaa !5
  %386 = load i16, ptr %23, align 2, !tbaa !9
  %387 = sext i16 %386 to i64
  %388 = getelementptr inbounds ptr, ptr %385, i64 %387
  %389 = load ptr, ptr %388, align 8, !tbaa !5
  %390 = load i16, ptr %23, align 2, !tbaa !9
  %391 = sext i16 %390 to i64
  %392 = getelementptr inbounds double, ptr %389, i64 %391
  %393 = load double, ptr %392, align 8, !tbaa !11
  %394 = load ptr, ptr %8, align 8, !tbaa !5
  %395 = load i16, ptr %23, align 2, !tbaa !9
  %396 = sext i16 %395 to i64
  %397 = getelementptr inbounds double, ptr %394, i64 %396
  %398 = load double, ptr %397, align 8, !tbaa !11
  %399 = fdiv double %398, %393
  store double %399, ptr %397, align 8, !tbaa !11
  br label %400

400:                                              ; preds = %384
  %401 = load i16, ptr %23, align 2, !tbaa !9
  %402 = add i16 %401, -1
  store i16 %402, ptr %23, align 2, !tbaa !9
  br label %296, !llvm.loop !22

403:                                              ; preds = %300
  br label %330

404:                                              ; preds = %327, %325, %323, %321, %319, %317, %313, %309
  %405 = landingpad { ptr, i32 }
          cleanup
  %406 = extractvalue { ptr, i32 } %405, 0
  store ptr %406, ptr %17, align 8
  %407 = extractvalue { ptr, i32 } %405, 1
  store i32 %407, ptr %18, align 4
  call void @__cxa_end_catch() #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %408

408:                                              ; preds = %404, %305
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %409

409:                                              ; preds = %408
  %410 = load ptr, ptr %17, align 8
  %411 = load i32, ptr %18, align 4
  %412 = insertvalue { ptr, i32 } poison, ptr %410, 0
  %413 = insertvalue { ptr, i32 } %412, i32 %411, 1
  resume { ptr, i32 } %413

414:                                              ; preds = %154
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z12deleteMatrixPPds(ptr noundef, i16 noundef signext) #5

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #6

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nobuiltin allocsize(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 = { 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 #4 = { inlinehint 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 #5 = { 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 = { nounwind memory(none) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { noreturn }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZTId = external constant ptr
@.str.7 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [78 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noalias noundef ptr @_Z11solveByGEPPPPdS_s(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i16 noundef signext %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %4 = sext i16 %2 to i64
  %5 = icmp slt i16 %2, 0
  %6 = shl nsw i64 %4, 3
  %7 = select i1 %5, i64 -1, i64 %6
  %8 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %7) #8
  %9 = icmp sgt i16 %2, 0
  br i1 %9, label %.lr.ph140, label %._crit_edge158

.lr.ph140:                                        ; preds = %3
  %10 = zext nneg i16 %2 to i64
  %11 = shl nuw nsw i64 %10, 3
  %12 = add nuw nsw i64 %11, 8
  %min.iters.check = icmp ult i16 %2, 4
  %n.vec = and i64 %10, 32764
  %cmp.n = icmp eq i64 %n.vec, %10
  %xtraiter = and i64 %10, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %._crit_edge.us, %.lr.ph140
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %._crit_edge.us ], [ 0, %.lr.ph140 ]
  %13 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %12) #8
  %14 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv169
  store ptr %13, ptr %14, align 8, !tbaa !5
  %15 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv169
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = ptrtoint ptr %16 to i64
  %18 = ptrtoint ptr %13 to i64
  %19 = sub i64 %18, %17
  %diff.check = icmp ult i64 %19, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.lr.ph.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.lr.ph.us ]
  %20 = getelementptr inbounds double, ptr %16, i64 %index
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  %wide.load = load <2 x double>, ptr %20, align 8, !tbaa !9
  %wide.load198 = load <2 x double>, ptr %21, align 8, !tbaa !9
  %22 = getelementptr inbounds double, ptr %13, i64 %index
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  store <2 x double> %wide.load, ptr %22, align 8, !tbaa !9
  store <2 x double> %wide.load198, ptr %23, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %24 = icmp eq i64 %index.next, %n.vec
  br i1 %24, label %middle.block, label %vector.body, !llvm.loop !11

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

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph.us
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %25 = getelementptr inbounds double, ptr %16, i64 %indvars.iv.prol
  %26 = load double, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds double, ptr %13, i64 %indvars.iv.prol
  store double %26, ptr %27, align 8, !tbaa !9
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !15

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %28 = sub nsw i64 %indvars.iv.ph, %10
  %29 = icmp ugt i64 %28, -4
  br i1 %29, label %._crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %30 = getelementptr inbounds double, ptr %16, i64 %indvars.iv
  %31 = load double, ptr %30, align 8, !tbaa !9
  %32 = getelementptr inbounds double, ptr %13, i64 %indvars.iv
  store double %31, ptr %32, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %33 = getelementptr inbounds double, ptr %16, i64 %indvars.iv.next
  %34 = load double, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds double, ptr %13, i64 %indvars.iv.next
  store double %34, ptr %35, align 8, !tbaa !9
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %36 = getelementptr inbounds double, ptr %16, i64 %indvars.iv.next.1
  %37 = load double, ptr %36, align 8, !tbaa !9
  %38 = getelementptr inbounds double, ptr %13, i64 %indvars.iv.next.1
  store double %37, ptr %38, align 8, !tbaa !9
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %39 = getelementptr inbounds double, ptr %16, i64 %indvars.iv.next.2
  %40 = load double, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds double, ptr %13, i64 %indvars.iv.next.2
  store double %40, ptr %41, align 8, !tbaa !9
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %10
  br i1 %exitcond.not.3, label %._crit_edge.us, label %scalar.ph, !llvm.loop !17

._crit_edge.us:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %42 = getelementptr inbounds double, ptr %1, i64 %indvars.iv169
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = getelementptr inbounds double, ptr %13, i64 %4
  store double %43, ptr %44, align 8, !tbaa !9
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %exitcond173.not = icmp eq i64 %indvars.iv.next170, %10
  br i1 %exitcond173.not, label %.preheader136, label %.lr.ph.us, !llvm.loop !18

.preheader136:                                    ; preds = %._crit_edge.us
  br i1 %9, label %.lr.ph157.preheader, label %._crit_edge158

.lr.ph157.preheader:                              ; preds = %.preheader136
  %wide.trip.count185 = zext nneg i16 %2 to i64
  %45 = add nuw i16 %2, 1
  br label %.lr.ph157

.loopexit133:                                     ; preds = %._crit_edge152, %.loopexit135
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %exitcond186.not = icmp eq i64 %indvars.iv.next183, %wide.trip.count185
  br i1 %exitcond186.not, label %._crit_edge158, label %.lr.ph157, !llvm.loop !19

._crit_edge158:                                   ; preds = %.loopexit133, %3, %.preheader136
  %46 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %7) #8
          to label %.preheader unwind label %126

.preheader:                                       ; preds = %._crit_edge158
  %.0110163 = add i16 %2, -1
  %47 = icmp sgt i16 %.0110163, -1
  br i1 %47, label %.lr.ph166.preheader, label %.loopexit

.lr.ph166.preheader:                              ; preds = %.preheader
  %48 = zext nneg i16 %.0110163 to i64
  br label %.lr.ph166

.lr.ph157:                                        ; preds = %.lr.ph157.preheader, %.loopexit133
  %indvars.iv182 = phi i64 [ 0, %.lr.ph157.preheader ], [ %indvars.iv.next183, %.loopexit133 ]
  %indvars.iv174 = phi i64 [ 1, %.lr.ph157.preheader ], [ %indvars.iv.next175, %.loopexit133 ]
  %49 = trunc i64 %indvars.iv182 to i16
  %50 = add i16 %49, 2
  %smax204 = tail call i16 @llvm.smax.i16(i16 %50, i16 %45)
  %51 = trunc i64 %indvars.iv182 to i16
  %reass.sub = sub i16 %smax204, %51
  %52 = add i16 %reass.sub, -2
  %53 = zext i16 %52 to i32
  %54 = add nuw nsw i32 %53, 1
  %55 = shl nuw nsw i64 %indvars.iv182, 3
  %56 = add nuw i64 %55, 8
  %57 = add nuw i64 %55, 16
  %58 = trunc i64 %indvars.iv182 to i16
  %59 = add i16 %58, 2
  %smax200 = tail call i16 @llvm.smax.i16(i16 %59, i16 %45)
  %60 = trunc i64 %indvars.iv182 to i16
  %reass.sub221 = sub i16 %smax200, %60
  %61 = add i16 %reass.sub221, -2
  %62 = zext i16 %61 to i64
  %63 = shl nuw nsw i64 %62, 3
  %64 = add i64 %57, %63
  %65 = trunc i64 %indvars.iv182 to i16
  %66 = add i16 %65, 2
  %smax = tail call i16 @llvm.smax.i16(i16 %66, i16 %45)
  %67 = trunc i64 %indvars.iv182 to i16
  %reass.sub222 = sub i16 %smax, %67
  %68 = add i16 %reass.sub222, -2
  %69 = trunc i64 %indvars.iv174 to i16
  %70 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv182
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i64 %indvars.iv182
  %73 = load double, ptr %72, align 8, !tbaa !9
  %74 = tail call double @llvm.fabs.f64(double %73)
  %indvars.iv.next183 = add nuw nsw i64 %indvars.iv182, 1
  %75 = icmp slt i64 %indvars.iv.next183, %4
  %76 = trunc nuw nsw i64 %indvars.iv182 to i16
  br i1 %75, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph157
  %.0121.lcssa = phi i16 [ %76, %.lr.ph157 ], [ %.1122, %.lr.ph ]
  %.0119.lcssa = phi double [ %74, %.lr.ph157 ], [ %.1120, %.lr.ph ]
  %77 = fcmp olt double %.0119.lcssa, 1.000000e-10
  br i1 %77, label %87, label %91

.lr.ph:                                           ; preds = %.lr.ph157, %.lr.ph
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %.lr.ph ], [ %indvars.iv174, %.lr.ph157 ]
  %.0119142 = phi double [ %.1120, %.lr.ph ], [ %74, %.lr.ph157 ]
  %.0121141 = phi i16 [ %.1122, %.lr.ph ], [ %76, %.lr.ph157 ]
  %78 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv176
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = getelementptr inbounds double, ptr %79, i64 %indvars.iv182
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = tail call double @llvm.fabs.f64(double %81)
  %83 = fcmp ogt double %82, %.0119142
  %84 = trunc nuw nsw i64 %indvars.iv176 to i16
  %.1122 = select i1 %83, i16 %84, i16 %.0121141
  %.1120 = select i1 %83, double %82, double %.0119142
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %85 = trunc nuw i64 %indvars.iv.next177 to i16
  %86 = icmp slt i16 %85, %2
  br i1 %86, label %.lr.ph, label %._crit_edge, !llvm.loop !20

87:                                               ; preds = %._crit_edge
  %88 = tail call ptr @__cxa_allocate_exception(i64 8) #9
  store double %.0119.lcssa, ptr %88, align 16, !tbaa !9
  invoke void @__cxa_throw(ptr nonnull %88, ptr nonnull @_ZTId, ptr null) #10
          to label %185 unwind label %89

89:                                               ; preds = %87
  %90 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTId
  br label %128

91:                                               ; preds = %._crit_edge
  %92 = zext i16 %.0121.lcssa to i64
  %.not = icmp eq i64 %indvars.iv182, %92
  br i1 %.not, label %.loopexit135, label %.lr.ph147

.lr.ph147:                                        ; preds = %91
  %93 = sext i16 %.0121.lcssa to i64
  %94 = getelementptr inbounds ptr, ptr %8, i64 %93
  %.pre = load ptr, ptr %94, align 8, !tbaa !5
  br label %95

95:                                               ; preds = %.lr.ph147, %95
  %.0114146 = phi i16 [ %76, %.lr.ph147 ], [ %99, %95 ]
  %96 = sext i16 %.0114146 to i64
  %97 = getelementptr inbounds double, ptr %.pre, i64 %96
  %98 = getelementptr inbounds double, ptr %71, i64 %96
  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) %97, ptr noundef nonnull align 8 dereferenceable(8) %98) #9
  %99 = add i16 %.0114146, 1
  %.not130 = icmp sgt i16 %99, %2
  br i1 %.not130, label %.loopexit135, label %95, !llvm.loop !21

.loopexit135:                                     ; preds = %95, %91
  br i1 %75, label %.lr.ph155, label %.loopexit133

.lr.ph155:                                        ; preds = %.loopexit135
  %100 = trunc nuw nsw i64 %indvars.iv.next183 to i16
  %scevgep202 = getelementptr i8, ptr %71, i64 %56
  %scevgep203 = getelementptr i8, ptr %71, i64 %64
  %min.iters.check207 = icmp ult i16 %52, 3
  %101 = add i16 %68, %69
  %102 = icmp slt i16 %101, %69
  %or.cond226 = select i1 %min.iters.check207, i1 true, i1 %102
  %n.vec210 = and i32 %54, 131068
  %.cast = trunc i32 %n.vec210 to i16
  %ind.end = add i16 %100, %.cast
  %cmp.n220 = icmp eq i32 %54, %n.vec210
  br label %.lr.ph151

.lr.ph151:                                        ; preds = %.lr.ph155, %._crit_edge152
  %indvars.iv179 = phi i64 [ %indvars.iv174, %.lr.ph155 ], [ %indvars.iv.next180, %._crit_edge152 ]
  %103 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv179
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = getelementptr inbounds double, ptr %104, i64 %indvars.iv182
  %106 = load double, ptr %105, align 8, !tbaa !9
  %107 = load double, ptr %72, align 8, !tbaa !9
  %108 = fneg double %106
  %109 = fdiv double %108, %107
  br i1 %or.cond226, label %scalar.ph206.preheader, label %vector.memcheck199

scalar.ph206.preheader:                           ; preds = %middle.block205, %vector.memcheck199, %.lr.ph151
  %.0111149.ph = phi i16 [ %100, %vector.memcheck199 ], [ %100, %.lr.ph151 ], [ %ind.end, %middle.block205 ]
  br label %scalar.ph206

vector.memcheck199:                               ; preds = %.lr.ph151
  %scevgep = getelementptr i8, ptr %104, i64 %56
  %scevgep201 = getelementptr i8, ptr %104, i64 %64
  %bound0 = icmp ult ptr %scevgep, %scevgep203
  %bound1 = icmp ult ptr %scevgep202, %scevgep201
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph206.preheader, label %vector.ph208

vector.ph208:                                     ; preds = %vector.memcheck199
  %broadcast.splatinsert = insertelement <2 x double> poison, double %109, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body212

vector.body212:                                   ; preds = %vector.body212, %vector.ph208
  %index213 = phi i32 [ 0, %vector.ph208 ], [ %index.next219, %vector.body212 ]
  %.cast214 = zext i32 %index213 to i64
  %offset.idx = add nuw i64 %indvars.iv.next183, %.cast214
  %sext = shl i64 %offset.idx, 48
  %110 = ashr exact i64 %sext, 48
  %111 = getelementptr inbounds double, ptr %71, i64 %110
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  %wide.load215 = load <2 x double>, ptr %111, align 8, !tbaa !9, !alias.scope !22
  %wide.load216 = load <2 x double>, ptr %112, align 8, !tbaa !9, !alias.scope !22
  %113 = getelementptr inbounds double, ptr %104, i64 %110
  %114 = getelementptr inbounds i8, ptr %113, i64 16
  %wide.load217 = load <2 x double>, ptr %113, align 8, !tbaa !9, !alias.scope !25, !noalias !22
  %wide.load218 = load <2 x double>, ptr %114, align 8, !tbaa !9, !alias.scope !25, !noalias !22
  %115 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load215, <2 x double> %wide.load217)
  %116 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load216, <2 x double> %wide.load218)
  store <2 x double> %115, ptr %113, align 8, !tbaa !9, !alias.scope !25, !noalias !22
  store <2 x double> %116, ptr %114, align 8, !tbaa !9, !alias.scope !25, !noalias !22
  %index.next219 = add nuw i32 %index213, 4
  %117 = icmp eq i32 %index.next219, %n.vec210
  br i1 %117, label %middle.block205, label %vector.body212, !llvm.loop !27

middle.block205:                                  ; preds = %vector.body212
  br i1 %cmp.n220, label %._crit_edge152, label %scalar.ph206.preheader

._crit_edge152:                                   ; preds = %scalar.ph206, %middle.block205
  store double 0.000000e+00, ptr %105, align 8, !tbaa !9
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %118 = icmp slt i64 %indvars.iv.next180, %4
  br i1 %118, label %.lr.ph151, label %.loopexit133, !llvm.loop !28

scalar.ph206:                                     ; preds = %scalar.ph206.preheader, %scalar.ph206
  %.0111149 = phi i16 [ %125, %scalar.ph206 ], [ %.0111149.ph, %scalar.ph206.preheader ]
  %119 = sext i16 %.0111149 to i64
  %120 = getelementptr inbounds double, ptr %71, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !9
  %122 = getelementptr inbounds double, ptr %104, i64 %119
  %123 = load double, ptr %122, align 8, !tbaa !9
  %124 = tail call double @llvm.fmuladd.f64(double %109, double %121, double %123)
  store double %124, ptr %122, align 8, !tbaa !9
  %125 = add i16 %.0111149, 1
  %.not131 = icmp sgt i16 %125, %2
  br i1 %.not131, label %._crit_edge152, label %scalar.ph206, !llvm.loop !29

126:                                              ; preds = %._crit_edge158
  %127 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTId
  br label %128

128:                                              ; preds = %126, %89
  %.pn = phi { ptr, i32 } [ %90, %89 ], [ %127, %126 ]
  %.0115 = extractvalue { ptr, i32 } %.pn, 1
  %129 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTId) #9
  %130 = icmp eq i32 %.0115, %129
  br i1 %130, label %131, label %184

131:                                              ; preds = %128
  %.0116 = extractvalue { ptr, i32 } %.pn, 0
  %132 = tail call ptr @__cxa_begin_catch(ptr %.0116) #9
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.7)
          to label %134 unwind label %182

134:                                              ; preds = %131
  %135 = load double, ptr %132, align 8, !tbaa !9
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %133, double noundef %135)
          to label %137 unwind label %182

137:                                              ; preds = %134
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef nonnull @.str.8)
          to label %139 unwind label %182

139:                                              ; preds = %137
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %138, double noundef 1.000000e-10)
          to label %141 unwind label %182

141:                                              ; preds = %139
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef nonnull @.str.9)
          to label %143 unwind label %182

143:                                              ; preds = %141
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %145 unwind label %182

145:                                              ; preds = %143
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.10)
          to label %147 unwind label %182

147:                                              ; preds = %145
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %149 unwind label %182

149:                                              ; preds = %147
  tail call void @__cxa_end_catch() #9
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge162, %.preheader, %149
  %.0 = phi ptr [ null, %149 ], [ %46, %.preheader ], [ %46, %._crit_edge162 ]
  tail call void @_Z12deleteMatrixPPds(ptr noundef nonnull %8, i16 noundef signext %2)
  ret ptr %.0

.lr.ph166:                                        ; preds = %.lr.ph166.preheader, %._crit_edge162
  %indvar = phi i16 [ 0, %.lr.ph166.preheader ], [ %indvar.next, %._crit_edge162 ]
  %indvars.iv193 = phi i64 [ %48, %.lr.ph166.preheader ], [ %indvars.iv.next194, %._crit_edge162 ]
  %indvars.iv187 = phi i16 [ %2, %.lr.ph166.preheader ], [ %indvars.iv.next188, %._crit_edge162 ]
  %150 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv193
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = getelementptr inbounds double, ptr %151, i64 %4
  %153 = load double, ptr %152, align 8, !tbaa !9
  %154 = getelementptr inbounds double, ptr %46, i64 %indvars.iv193
  store double %153, ptr %154, align 8, !tbaa !9
  %155 = icmp slt i16 %indvars.iv187, %2
  br i1 %155, label %.lr.ph161, label %._crit_edge162

.lr.ph161:                                        ; preds = %.lr.ph166
  %156 = sext i16 %indvars.iv187 to i64
  %xtraiter228 = and i16 %indvar, 1
  %lcmp.mod229.not = icmp eq i16 %xtraiter228, 0
  br i1 %lcmp.mod229.not, label %.prol.loopexit, label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %.lr.ph161
  %157 = getelementptr inbounds double, ptr %151, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !9
  %159 = getelementptr inbounds double, ptr %46, i64 %156
  %160 = load double, ptr %159, align 8, !tbaa !9
  %161 = fneg double %158
  %162 = tail call double @llvm.fmuladd.f64(double %161, double %160, double %153)
  store double %162, ptr %154, align 8, !tbaa !9
  %indvars.iv.next190.prol = add nsw i64 %156, 1
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph161
  %.lcssa.unr = phi double [ poison, %.lr.ph161 ], [ %162, %.prol.loopexit.unr-lcssa ]
  %indvars.iv189.unr = phi i64 [ %156, %.lr.ph161 ], [ %indvars.iv.next190.prol, %.prol.loopexit.unr-lcssa ]
  %.unr = phi double [ %153, %.lr.ph161 ], [ %162, %.prol.loopexit.unr-lcssa ]
  %163 = icmp eq i16 %indvar, 1
  br i1 %163, label %._crit_edge162, label %.lr.ph161.new

._crit_edge162:                                   ; preds = %.prol.loopexit, %.lr.ph161.new, %.lr.ph166
  %164 = phi double [ %153, %.lr.ph166 ], [ %.lcssa.unr, %.prol.loopexit ], [ %181, %.lr.ph161.new ]
  %165 = getelementptr inbounds double, ptr %151, i64 %indvars.iv193
  %166 = load double, ptr %165, align 8, !tbaa !9
  %167 = fdiv double %164, %166
  store double %167, ptr %154, align 8, !tbaa !9
  %indvars.iv.next194 = add nsw i64 %indvars.iv193, -1
  %168 = icmp sgt i64 %indvars.iv193, 0
  %indvars.iv.next188 = add i16 %indvars.iv187, -1
  %indvar.next = add i16 %indvar, 1
  br i1 %168, label %.lr.ph166, label %.loopexit, !llvm.loop !30

.lr.ph161.new:                                    ; preds = %.prol.loopexit, %.lr.ph161.new
  %indvars.iv189 = phi i64 [ %indvars.iv.next190.1, %.lr.ph161.new ], [ %indvars.iv189.unr, %.prol.loopexit ]
  %169 = phi double [ %181, %.lr.ph161.new ], [ %.unr, %.prol.loopexit ]
  %170 = getelementptr inbounds double, ptr %151, i64 %indvars.iv189
  %171 = load double, ptr %170, align 8, !tbaa !9
  %172 = getelementptr inbounds double, ptr %46, i64 %indvars.iv189
  %173 = load double, ptr %172, align 8, !tbaa !9
  %174 = fneg double %171
  %175 = tail call double @llvm.fmuladd.f64(double %174, double %173, double %169)
  store double %175, ptr %154, align 8, !tbaa !9
  %indvars.iv.next190 = add nsw i64 %indvars.iv189, 1
  %176 = getelementptr inbounds double, ptr %151, i64 %indvars.iv.next190
  %177 = load double, ptr %176, align 8, !tbaa !9
  %178 = getelementptr inbounds double, ptr %46, i64 %indvars.iv.next190
  %179 = load double, ptr %178, align 8, !tbaa !9
  %180 = fneg double %177
  %181 = tail call double @llvm.fmuladd.f64(double %180, double %179, double %175)
  store double %181, ptr %154, align 8, !tbaa !9
  %indvars.iv.next190.1 = add nsw i64 %indvars.iv189, 2
  %lftr.wideiv.1 = trunc i64 %indvars.iv.next190.1 to i16
  %exitcond192.not.1 = icmp eq i16 %lftr.wideiv.1, %2
  br i1 %exitcond192.not.1, label %._crit_edge162, label %.lr.ph161.new, !llvm.loop !31

182:                                              ; preds = %147, %145, %143, %141, %139, %137, %134, %131
  %183 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_end_catch() #9
  br label %184

184:                                              ; preds = %182, %128
  %.merged = phi { ptr, i32 } [ %183, %182 ], [ %.pn, %128 ]
  resume { ptr, i32 } %.merged

185:                                              ; preds = %87
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z12deleteMatrixPPds(ptr noundef, i16 noundef signext) local_unnamed_addr #3

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #4

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.smax.i16(i16, i16) #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 = { nobuiltin allocsize(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 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 = { inlinehint 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 = { 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 nosync nounwind memory(none) }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { noreturn }

!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 = !{!"any pointer", !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.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !12, !13}
!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, !13, !14}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12, !13}
!30 = distinct !{!30, !12}
!31 = distinct !{!31, !12}


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