; LLVM IR from rdguez-mariano/fast_imas_IPOL :: libNumerics/numerics.ll (ZN11libNumerics7solveLUENS_6matrixIdEERNS_6vectorIdEE)

; 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.libNumerics::vector" = type { %"class.libNumerics::matrix" }
%"class.libNumerics::matrix" = type { ptr, i32, i32, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__._ZN11libNumerics7solveLUENS_6matrixIdEERNS_6vectorIdEE = external hidden unnamed_addr constant [58 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11libNumerics7solveLUENS_6matrixIdEERNS_6vectorIdEE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.libNumerics::vector", align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca double, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca double, align 8
  %32 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %33 = call noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %34 = call noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %35 = icmp eq i32 %33, %34
  br i1 %35, label %36, label %37

36:                                               ; preds = %2
  br label %39

37:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 45, ptr noundef @__PRETTY_FUNCTION__._ZN11libNumerics7solveLUENS_6matrixIdEERNS_6vectorIdEE) #6
  unreachable

38:                                               ; No predecessors!
  br label %39

39:                                               ; preds = %38, %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %40 = call noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  store i32 %40, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  %41 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN11libNumerics6vectorIdEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef %41)
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #7
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %43, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %44 unwind label %50

44:                                               ; preds = %39
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %94, %44
  %46 = load i32, ptr %13, align 4, !tbaa !9
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %54, label %49

49:                                               ; preds = %45
  store i32 2, ptr %14, align 4
  br label %102

50:                                               ; preds = %39
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %11, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %396

54:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store double 0.000000e+00, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %78, %54
  %56 = load i32, ptr %16, align 4, !tbaa !9
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %81

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = load i32, ptr %16, align 4, !tbaa !9
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %61, i32 noundef %62)
          to label %64 unwind label %73

64:                                               ; preds = %60
  %65 = load double, ptr %63, align 8, !tbaa !11
  %66 = invoke noundef double @_ZN11libNumerics3ABSEd(double noundef %65)
          to label %67 unwind label %73

67:                                               ; preds = %64
  store double %66, ptr %17, align 8, !tbaa !11
  %68 = load double, ptr %17, align 8, !tbaa !11
  %69 = load double, ptr %15, align 8, !tbaa !11
  %70 = fcmp ogt double %68, %69
  br i1 %70, label %71, label %77

71:                                               ; preds = %67
  %72 = load double, ptr %17, align 8, !tbaa !11
  store double %72, ptr %15, align 8, !tbaa !11
  br label %77

73:                                               ; preds = %64, %60
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %11, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %101

77:                                               ; preds = %71, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %16, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %16, align 4, !tbaa !9
  br label %55, !llvm.loop !13

81:                                               ; preds = %59
  %82 = load double, ptr %15, align 8, !tbaa !11
  %83 = fcmp oeq double %82, 0.000000e+00
  br i1 %83, label %84, label %85

84:                                               ; preds = %81
  store i1 false, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %91

85:                                               ; preds = %81
  %86 = load double, ptr %15, align 8, !tbaa !11
  %87 = fdiv double 1.000000e+00, %86
  %88 = load i32, ptr %13, align 4, !tbaa !9
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef %88)
          to label %90 unwind label %97

90:                                               ; preds = %85
  store double %87, ptr %89, align 8, !tbaa !11
  store i32 0, ptr %14, align 4
  br label %91

91:                                               ; preds = %90, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %92 = load i32, ptr %14, align 4
  switch i32 %92, label %102 [
    i32 0, label %93
  ]

93:                                               ; preds = %91
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %13, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %13, align 4, !tbaa !9
  br label %45, !llvm.loop !15

97:                                               ; preds = %85
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %11, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %12, align 4
  br label %101

101:                                              ; preds = %97, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %395

102:                                              ; preds = %91, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  %103 = load i32, ptr %14, align 4
  switch i32 %103, label %393 [
    i32 2, label %104
  ]

104:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %256, %104
  %106 = load i32, ptr %18, align 4, !tbaa !9
  %107 = load i32, ptr %6, align 4, !tbaa !9
  %108 = icmp slt i32 %106, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %105
  store i32 8, ptr %14, align 4
  br label %262

110:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %111 = load i32, ptr %18, align 4, !tbaa !9
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef %111)
          to label %113 unwind label %131

113:                                              ; preds = %110
  %114 = load double, ptr %112, align 8, !tbaa !11
  %115 = load i32, ptr %18, align 4, !tbaa !9
  %116 = load i32, ptr %18, align 4, !tbaa !9
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %115, i32 noundef %116)
          to label %118 unwind label %131

118:                                              ; preds = %113
  %119 = load double, ptr %117, align 8, !tbaa !11
  %120 = invoke noundef double @_ZN11libNumerics3ABSEd(double noundef %119)
          to label %121 unwind label %131

121:                                              ; preds = %118
  %122 = fmul double %114, %120
  store double %122, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %123 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %123, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %124 = load i32, ptr %18, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %21, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %159, %121
  %127 = load i32, ptr %21, align 4, !tbaa !9
  %128 = load i32, ptr %6, align 4, !tbaa !9
  %129 = icmp slt i32 %127, %128
  br i1 %129, label %135, label %130

130:                                              ; preds = %126
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %162

131:                                              ; preds = %118, %113, %110
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %11, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %12, align 4
  br label %261

135:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %136 = load i32, ptr %21, align 4, !tbaa !9
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef %136)
          to label %138 unwind label %154

138:                                              ; preds = %135
  %139 = load double, ptr %137, align 8, !tbaa !11
  %140 = load i32, ptr %21, align 4, !tbaa !9
  %141 = load i32, ptr %18, align 4, !tbaa !9
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %140, i32 noundef %141)
          to label %143 unwind label %154

143:                                              ; preds = %138
  %144 = load double, ptr %142, align 8, !tbaa !11
  %145 = invoke noundef double @_ZN11libNumerics3ABSEd(double noundef %144)
          to label %146 unwind label %154

146:                                              ; preds = %143
  %147 = fmul double %139, %145
  store double %147, ptr %22, align 8, !tbaa !11
  %148 = load double, ptr %22, align 8, !tbaa !11
  %149 = load double, ptr %19, align 8, !tbaa !11
  %150 = fcmp ogt double %148, %149
  br i1 %150, label %151, label %158

151:                                              ; preds = %146
  %152 = load double, ptr %22, align 8, !tbaa !11
  store double %152, ptr %19, align 8, !tbaa !11
  %153 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %153, ptr %20, align 4, !tbaa !9
  br label %158

154:                                              ; preds = %143, %138, %135
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %11, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %260

158:                                              ; preds = %151, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %159

159:                                              ; preds = %158
  %160 = load i32, ptr %21, align 4, !tbaa !9
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %21, align 4, !tbaa !9
  br label %126, !llvm.loop !16

162:                                              ; preds = %130
  %163 = load double, ptr %19, align 8, !tbaa !11
  %164 = fcmp oeq double %163, 0.000000e+00
  br i1 %164, label %165, label %166

165:                                              ; preds = %162
  store i1 false, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %253

166:                                              ; preds = %162
  %167 = load i32, ptr %18, align 4, !tbaa !9
  %168 = load i32, ptr %20, align 4, !tbaa !9
  %169 = icmp ne i32 %167, %168
  br i1 %169, label %170, label %185

170:                                              ; preds = %166
  %171 = load i32, ptr %18, align 4, !tbaa !9
  %172 = load i32, ptr %20, align 4, !tbaa !9
  invoke void @_ZN11libNumerics6matrixIdE8swapRowsEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %171, i32 noundef %172)
          to label %173 unwind label %181

173:                                              ; preds = %170
  %174 = load i32, ptr %18, align 4, !tbaa !9
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef %174)
          to label %176 unwind label %181

176:                                              ; preds = %173
  %177 = load double, ptr %175, align 8, !tbaa !11
  %178 = load i32, ptr %20, align 4, !tbaa !9
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef %178)
          to label %180 unwind label %181

180:                                              ; preds = %176
  store double %177, ptr %179, align 8, !tbaa !11
  br label %185

181:                                              ; preds = %176, %173, %170
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %11, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %12, align 4
  br label %260

185:                                              ; preds = %180, %166
  %186 = load i32, ptr %20, align 4, !tbaa !9
  %187 = load i32, ptr %18, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %188) #7
  store i32 %186, ptr %189, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %190 = load i32, ptr %18, align 4, !tbaa !9
  %191 = load i32, ptr %18, align 4, !tbaa !9
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %190, i32 noundef %191)
          to label %193 unwind label %203

193:                                              ; preds = %185
  %194 = load double, ptr %192, align 8, !tbaa !11
  %195 = fdiv double 1.000000e+00, %194
  store double %195, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %196 = load i32, ptr %18, align 4, !tbaa !9
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %24, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %248, %193
  %199 = load i32, ptr %24, align 4, !tbaa !9
  %200 = load i32, ptr %6, align 4, !tbaa !9
  %201 = icmp slt i32 %199, %200
  br i1 %201, label %207, label %202

202:                                              ; preds = %198
  store i32 14, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %252

203:                                              ; preds = %185
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %11, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %12, align 4
  br label %259

207:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %208 = load double, ptr %23, align 8, !tbaa !11
  %209 = load i32, ptr %24, align 4, !tbaa !9
  %210 = load i32, ptr %18, align 4, !tbaa !9
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %209, i32 noundef %210)
          to label %212 unwind label %222

212:                                              ; preds = %207
  %213 = load double, ptr %211, align 8, !tbaa !11
  %214 = fmul double %213, %208
  store double %214, ptr %211, align 8, !tbaa !11
  store double %214, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %215 = load i32, ptr %18, align 4, !tbaa !9
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %26, align 4, !tbaa !9
  br label %217

217:                                              ; preds = %240, %212
  %218 = load i32, ptr %26, align 4, !tbaa !9
  %219 = load i32, ptr %6, align 4, !tbaa !9
  %220 = icmp slt i32 %218, %219
  br i1 %220, label %226, label %221

221:                                              ; preds = %217
  store i32 17, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %247

222:                                              ; preds = %207
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %11, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %12, align 4
  br label %251

226:                                              ; preds = %217
  %227 = load double, ptr %25, align 8, !tbaa !11
  %228 = load i32, ptr %18, align 4, !tbaa !9
  %229 = load i32, ptr %26, align 4, !tbaa !9
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %228, i32 noundef %229)
          to label %231 unwind label %243

231:                                              ; preds = %226
  %232 = load double, ptr %230, align 8, !tbaa !11
  %233 = load i32, ptr %24, align 4, !tbaa !9
  %234 = load i32, ptr %26, align 4, !tbaa !9
  %235 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %233, i32 noundef %234)
          to label %236 unwind label %243

236:                                              ; preds = %231
  %237 = load double, ptr %235, align 8, !tbaa !11
  %238 = fneg double %227
  %239 = call double @llvm.fmuladd.f64(double %238, double %232, double %237)
  store double %239, ptr %235, align 8, !tbaa !11
  br label %240

240:                                              ; preds = %236
  %241 = load i32, ptr %26, align 4, !tbaa !9
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %26, align 4, !tbaa !9
  br label %217, !llvm.loop !17

243:                                              ; preds = %231, %226
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %11, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %251

247:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %248

248:                                              ; preds = %247
  %249 = load i32, ptr %24, align 4, !tbaa !9
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %24, align 4, !tbaa !9
  br label %198, !llvm.loop !18

251:                                              ; preds = %243, %222
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %259

252:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  store i32 0, ptr %14, align 4
  br label %253

253:                                              ; preds = %252, %165
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %254 = load i32, ptr %14, align 4
  switch i32 %254, label %262 [
    i32 0, label %255
  ]

255:                                              ; preds = %253
  br label %256

256:                                              ; preds = %255
  %257 = load i32, ptr %18, align 4, !tbaa !9
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %18, align 4, !tbaa !9
  br label %105, !llvm.loop !19

259:                                              ; preds = %251, %203
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %260

260:                                              ; preds = %259, %181, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %261

261:                                              ; preds = %260, %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %395

262:                                              ; preds = %253, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  %263 = load i32, ptr %14, align 4
  switch i32 %263, label %393 [
    i32 8, label %264
  ]

264:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %265

265:                                              ; preds = %327, %264
  %266 = load i32, ptr %27, align 4, !tbaa !9
  %267 = load i32, ptr %6, align 4, !tbaa !9
  %268 = icmp slt i32 %266, %267
  br i1 %268, label %270, label %269

269:                                              ; preds = %265
  store i32 20, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %331

270:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %271 = load ptr, ptr %5, align 8, !tbaa !5
  %272 = load i32, ptr %27, align 4, !tbaa !9
  %273 = sext i32 %272 to i64
  %274 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %273) #7
  %275 = load i32, ptr %274, align 4, !tbaa !9
  %276 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %271, i32 noundef %275)
          to label %277 unwind label %296

277:                                              ; preds = %270
  %278 = load double, ptr %276, align 8, !tbaa !11
  store double %278, ptr %28, align 8, !tbaa !11
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = load i32, ptr %27, align 4, !tbaa !9
  %281 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %279, i32 noundef %280)
          to label %282 unwind label %296

282:                                              ; preds = %277
  %283 = load double, ptr %281, align 8, !tbaa !11
  %284 = load ptr, ptr %5, align 8, !tbaa !5
  %285 = load i32, ptr %27, align 4, !tbaa !9
  %286 = sext i32 %285 to i64
  %287 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %286) #7
  %288 = load i32, ptr %287, align 4, !tbaa !9
  %289 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %284, i32 noundef %288)
          to label %290 unwind label %296

290:                                              ; preds = %282
  store double %283, ptr %289, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %291

291:                                              ; preds = %314, %290
  %292 = load i32, ptr %29, align 4, !tbaa !9
  %293 = load i32, ptr %27, align 4, !tbaa !9
  %294 = icmp slt i32 %292, %293
  br i1 %294, label %300, label %295

295:                                              ; preds = %291
  store i32 23, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %321

296:                                              ; preds = %321, %282, %277, %270
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %11, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %12, align 4
  br label %330

300:                                              ; preds = %291
  %301 = load i32, ptr %27, align 4, !tbaa !9
  %302 = load i32, ptr %29, align 4, !tbaa !9
  %303 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %301, i32 noundef %302)
          to label %304 unwind label %317

304:                                              ; preds = %300
  %305 = load double, ptr %303, align 8, !tbaa !11
  %306 = load ptr, ptr %5, align 8, !tbaa !5
  %307 = load i32, ptr %29, align 4, !tbaa !9
  %308 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %306, i32 noundef %307)
          to label %309 unwind label %317

309:                                              ; preds = %304
  %310 = load double, ptr %308, align 8, !tbaa !11
  %311 = load double, ptr %28, align 8, !tbaa !11
  %312 = fneg double %305
  %313 = call double @llvm.fmuladd.f64(double %312, double %310, double %311)
  store double %313, ptr %28, align 8, !tbaa !11
  br label %314

314:                                              ; preds = %309
  %315 = load i32, ptr %29, align 4, !tbaa !9
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %29, align 4, !tbaa !9
  br label %291, !llvm.loop !20

317:                                              ; preds = %304, %300
  %318 = landingpad { ptr, i32 }
          cleanup
  %319 = extractvalue { ptr, i32 } %318, 0
  store ptr %319, ptr %11, align 8
  %320 = extractvalue { ptr, i32 } %318, 1
  store i32 %320, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %330

321:                                              ; preds = %295
  %322 = load double, ptr %28, align 8, !tbaa !11
  %323 = load ptr, ptr %5, align 8, !tbaa !5
  %324 = load i32, ptr %27, align 4, !tbaa !9
  %325 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %323, i32 noundef %324)
          to label %326 unwind label %296

326:                                              ; preds = %321
  store double %322, ptr %325, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %327

327:                                              ; preds = %326
  %328 = load i32, ptr %27, align 4, !tbaa !9
  %329 = add nsw i32 %328, 1
  store i32 %329, ptr %27, align 4, !tbaa !9
  br label %265, !llvm.loop !21

330:                                              ; preds = %317, %296
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %395

331:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %332 = load i32, ptr %6, align 4, !tbaa !9
  %333 = sub nsw i32 %332, 1
  store i32 %333, ptr %30, align 4, !tbaa !9
  br label %334

334:                                              ; preds = %388, %331
  %335 = load i32, ptr %30, align 4, !tbaa !9
  %336 = icmp sge i32 %335, 0
  br i1 %336, label %338, label %337

337:                                              ; preds = %334
  store i32 26, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %392

338:                                              ; preds = %334
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %339 = load ptr, ptr %5, align 8, !tbaa !5
  %340 = load i32, ptr %30, align 4, !tbaa !9
  %341 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %339, i32 noundef %340)
          to label %342 unwind label %351

342:                                              ; preds = %338
  %343 = load double, ptr %341, align 8, !tbaa !11
  store double %343, ptr %31, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %344 = load i32, ptr %30, align 4, !tbaa !9
  %345 = add nsw i32 %344, 1
  store i32 %345, ptr %32, align 4, !tbaa !9
  br label %346

346:                                              ; preds = %369, %342
  %347 = load i32, ptr %32, align 4, !tbaa !9
  %348 = load i32, ptr %6, align 4, !tbaa !9
  %349 = icmp slt i32 %347, %348
  br i1 %349, label %355, label %350

350:                                              ; preds = %346
  store i32 29, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %376

351:                                              ; preds = %381, %376, %338
  %352 = landingpad { ptr, i32 }
          cleanup
  %353 = extractvalue { ptr, i32 } %352, 0
  store ptr %353, ptr %11, align 8
  %354 = extractvalue { ptr, i32 } %352, 1
  store i32 %354, ptr %12, align 4
  br label %391

355:                                              ; preds = %346
  %356 = load i32, ptr %30, align 4, !tbaa !9
  %357 = load i32, ptr %32, align 4, !tbaa !9
  %358 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %356, i32 noundef %357)
          to label %359 unwind label %372

359:                                              ; preds = %355
  %360 = load double, ptr %358, align 8, !tbaa !11
  %361 = load ptr, ptr %5, align 8, !tbaa !5
  %362 = load i32, ptr %32, align 4, !tbaa !9
  %363 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %361, i32 noundef %362)
          to label %364 unwind label %372

364:                                              ; preds = %359
  %365 = load double, ptr %363, align 8, !tbaa !11
  %366 = load double, ptr %31, align 8, !tbaa !11
  %367 = fneg double %360
  %368 = call double @llvm.fmuladd.f64(double %367, double %365, double %366)
  store double %368, ptr %31, align 8, !tbaa !11
  br label %369

369:                                              ; preds = %364
  %370 = load i32, ptr %32, align 4, !tbaa !9
  %371 = add nsw i32 %370, 1
  store i32 %371, ptr %32, align 4, !tbaa !9
  br label %346, !llvm.loop !22

372:                                              ; preds = %359, %355
  %373 = landingpad { ptr, i32 }
          cleanup
  %374 = extractvalue { ptr, i32 } %373, 0
  store ptr %374, ptr %11, align 8
  %375 = extractvalue { ptr, i32 } %373, 1
  store i32 %375, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %391

376:                                              ; preds = %350
  %377 = load double, ptr %31, align 8, !tbaa !11
  %378 = load i32, ptr %30, align 4, !tbaa !9
  %379 = load i32, ptr %30, align 4, !tbaa !9
  %380 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %378, i32 noundef %379)
          to label %381 unwind label %351

381:                                              ; preds = %376
  %382 = load double, ptr %380, align 8, !tbaa !11
  %383 = fdiv double %377, %382
  %384 = load ptr, ptr %5, align 8, !tbaa !5
  %385 = load i32, ptr %30, align 4, !tbaa !9
  %386 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %384, i32 noundef %385)
          to label %387 unwind label %351

387:                                              ; preds = %381
  store double %383, ptr %386, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %388

388:                                              ; preds = %387
  %389 = load i32, ptr %30, align 4, !tbaa !9
  %390 = add nsw i32 %389, -1
  store i32 %390, ptr %30, align 4, !tbaa !9
  br label %334, !llvm.loop !23

391:                                              ; preds = %372, %351
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %395

392:                                              ; preds = %337
  store i1 true, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %393

393:                                              ; preds = %392, %262, %102
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %394 = load i1, ptr %3, align 1
  ret i1 %394

395:                                              ; preds = %391, %330, %261, %101
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  br label %396

396:                                              ; preds = %395, %50
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %397

397:                                              ; preds = %396
  %398 = load ptr, ptr %11, align 8
  %399 = load i32, ptr %12, align 4
  %400 = insertvalue { ptr, i32 } poison, ptr %398, 0
  %401 = insertvalue { ptr, i32 } %400, i32 %399, 1
  resume { ptr, i32 } %401
}

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11libNumerics6vectorIdEC2Ei(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN11libNumerics3ABSEd(double noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11libNumerics6matrixIdE8swapRowsEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !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}
!23 = distinct !{!23, !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.libNumerics::vector" = type { %"class.libNumerics::matrix" }
%"class.libNumerics::matrix" = type { ptr, i32, i32, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__._ZN11libNumerics7solveLUENS_6matrixIdEERNS_6vectorIdEE = external hidden unnamed_addr constant [58 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11libNumerics7solveLUENS_6matrixIdEERNS_6vectorIdEE(ptr noundef nonnull %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.libNumerics::vector", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::allocator", align 1
  %7 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %8 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %9 = icmp eq i32 %7, %8
  br i1 %9, label %11, label %10

10:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 45, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11libNumerics7solveLUENS_6matrixIdEERNS_6vectorIdEE) #6
  unreachable

11:                                               ; preds = %2
  %12 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_ZN11libNumerics6vectorIdEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %12)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  %13 = sext i32 %12 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %13, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %14 unwind label %26

14:                                               ; preds = %11
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %.not146 = icmp sgt i32 %12, 0
  br i1 %.not146, label %.preheader143.us, label %.critedge140

.preheader143.us:                                 ; preds = %14, %15
  %.0117147.us = phi i32 [ %18, %15 ], [ 0, %14 ]
  br label %19

15:                                               ; preds = %._crit_edge.us
  %16 = fdiv double 1.000000e+00, %.1129.us
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %.0117147.us)
  store double %16, ptr %17, align 8, !tbaa !9
  %18 = add nuw nsw i32 %.0117147.us, 1
  %exitcond183.not = icmp eq i32 %18, %12
  br i1 %exitcond183.not, label %.critedge138, label %.preheader143.us, !llvm.loop !11

19:                                               ; preds = %.preheader143.us, %19
  %.0128145.us = phi double [ 0.000000e+00, %.preheader143.us ], [ %.1129.us, %19 ]
  %.0130144.us = phi i32 [ 0, %.preheader143.us ], [ %24, %19 ]
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.0117147.us, i32 noundef %.0130144.us)
  %21 = load double, ptr %20, align 8, !tbaa !9
  %22 = call noundef double @_ZN11libNumerics3ABSEd(double noundef %21)
  %23 = fcmp ogt double %22, %.0128145.us
  %.1129.us = select i1 %23, double %22, double %.0128145.us
  %24 = add nuw nsw i32 %.0130144.us, 1
  %exitcond.not = icmp eq i32 %24, %12
  br i1 %exitcond.not, label %._crit_edge.us, label %19, !llvm.loop !13

._crit_edge.us:                                   ; preds = %19
  %25 = fcmp une double %.1129.us, 0.000000e+00
  br i1 %25, label %15, label %.critedge140

26:                                               ; preds = %11
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  resume { ptr, i32 } %27

.critedge138:                                     ; preds = %15
  br i1 %.not146, label %.lr.ph161.preheader, label %.critedge140

.lr.ph161.preheader:                              ; preds = %.critedge138
  %wide.trip.count = zext nneg i32 %12 to i64
  br label %.lr.ph161

.loopexit:                                        ; preds = %._crit_edge155.us, %52
  %exitcond188.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond188.not, label %.critedge141.preheader, label %.lr.ph161, !llvm.loop !14

.critedge141.preheader:                           ; preds = %.loopexit
  br i1 %.not146, label %.lr.ph169.preheader, label %.critedge140

.lr.ph169.preheader:                              ; preds = %.critedge141.preheader
  %wide.trip.count193 = zext nneg i32 %12 to i64
  br label %.lr.ph169

.lr.ph161:                                        ; preds = %.lr.ph161.preheader, %.loopexit
  %indvars.iv = phi i64 [ 0, %.lr.ph161.preheader ], [ %indvars.iv.next, %.loopexit ]
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %28)
  %30 = load double, ptr %29, align 8, !tbaa !9
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %28, i32 noundef %28)
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = call noundef double @_ZN11libNumerics3ABSEd(double noundef %32)
  %34 = fmul double %30, %33
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = icmp slt i64 %indvars.iv.next, %13
  br i1 %35, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.lr.ph161
  %36 = trunc nuw nsw i64 %indvars.iv.next to i32
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph161
  %.0125.lcssa = phi double [ %34, %.lr.ph161 ], [ %.1126, %.lr.ph ]
  %.0123.lcssa = phi i32 [ %28, %.lr.ph161 ], [ %.1124, %.lr.ph ]
  %37 = fcmp une double %.0125.lcssa, 0.000000e+00
  br i1 %37, label %46, label %.critedge140

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.0122150 = phi i32 [ %45, %.lr.ph ], [ %36, %.lr.ph.preheader ]
  %.0123149 = phi i32 [ %.1124, %.lr.ph ], [ %28, %.lr.ph.preheader ]
  %.0125148 = phi double [ %.1126, %.lr.ph ], [ %34, %.lr.ph.preheader ]
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %.0122150)
  %39 = load double, ptr %38, align 8, !tbaa !9
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.0122150, i32 noundef %28)
  %41 = load double, ptr %40, align 8, !tbaa !9
  %42 = call noundef double @_ZN11libNumerics3ABSEd(double noundef %41)
  %43 = fmul double %39, %42
  %44 = fcmp ogt double %43, %.0125148
  %.1126 = select i1 %44, double %43, double %.0125148
  %.1124 = select i1 %44, i32 %.0122150, i32 %.0123149
  %45 = add nuw i32 %.0122150, 1
  %exitcond184.not = icmp eq i32 %45, %12
  br i1 %exitcond184.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

46:                                               ; preds = %._crit_edge
  %47 = zext i32 %.0123.lcssa to i64
  %.not136 = icmp eq i64 %indvars.iv, %47
  br i1 %.not136, label %52, label %48

48:                                               ; preds = %46
  call void @_ZN11libNumerics6matrixIdE8swapRowsEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %28, i32 noundef %.0123.lcssa)
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %28)
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %.0123.lcssa)
  store double %50, ptr %51, align 8, !tbaa !9
  br label %52

52:                                               ; preds = %48, %46
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #7
  store i32 %.0123.lcssa, ptr %53, align 4, !tbaa !5
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %28, i32 noundef %28)
  %55 = load double, ptr %54, align 8, !tbaa !9
  %56 = fdiv double 1.000000e+00, %55
  br i1 %35, label %.lr.ph154.us.preheader, label %.loopexit

.lr.ph154.us.preheader:                           ; preds = %52
  %57 = trunc nuw nsw i64 %indvars.iv.next to i32
  br label %.lr.ph154.us

.lr.ph154.us:                                     ; preds = %.lr.ph154.us.preheader, %._crit_edge155.us
  %.0116156.us = phi i32 [ %69, %._crit_edge155.us ], [ %57, %.lr.ph154.us.preheader ]
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.0116156.us, i32 noundef %28)
  %59 = load double, ptr %58, align 8, !tbaa !9
  %60 = fmul double %56, %59
  store double %60, ptr %58, align 8, !tbaa !9
  %61 = fneg double %60
  br label %62

62:                                               ; preds = %.lr.ph154.us, %62
  %.0114152.us = phi i32 [ %57, %.lr.ph154.us ], [ %68, %62 ]
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %28, i32 noundef %.0114152.us)
  %64 = load double, ptr %63, align 8, !tbaa !9
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.0116156.us, i32 noundef %.0114152.us)
  %66 = load double, ptr %65, align 8, !tbaa !9
  %67 = call double @llvm.fmuladd.f64(double %61, double %64, double %66)
  store double %67, ptr %65, align 8, !tbaa !9
  %68 = add nuw i32 %.0114152.us, 1
  %exitcond185.not = icmp eq i32 %68, %12
  br i1 %exitcond185.not, label %._crit_edge155.us, label %62, !llvm.loop !16

._crit_edge155.us:                                ; preds = %62
  %69 = add nuw i32 %.0116156.us, 1
  %exitcond186.not = icmp eq i32 %69, %12
  br i1 %exitcond186.not, label %.loopexit, label %.lr.ph154.us, !llvm.loop !17

.preheader:                                       ; preds = %.critedge141
  br i1 %.not146, label %.lr.ph179, label %.critedge140

.lr.ph169:                                        ; preds = %.lr.ph169.preheader, %.critedge141
  %indvars.iv190 = phi i64 [ 0, %.lr.ph169.preheader ], [ %indvars.iv.next191, %.critedge141 ]
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv190) #7
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %71)
  %73 = load double, ptr %72, align 8, !tbaa !9
  %74 = trunc nuw nsw i64 %indvars.iv190 to i32
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %74)
  %76 = load double, ptr %75, align 8, !tbaa !9
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv190) #7
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %78)
  store double %76, ptr %79, align 8, !tbaa !9
  %.not = icmp eq i64 %indvars.iv190, 0
  br i1 %.not, label %.critedge141, label %.lr.ph165

.critedge141:                                     ; preds = %.lr.ph165, %.lr.ph169
  %.0112.lcssa = phi double [ %73, %.lr.ph169 ], [ %86, %.lr.ph165 ]
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %74)
  store double %.0112.lcssa, ptr %80, align 8, !tbaa !9
  %indvars.iv.next191 = add nuw nsw i64 %indvars.iv190, 1
  %exitcond194.not = icmp eq i64 %indvars.iv.next191, %wide.trip.count193
  br i1 %exitcond194.not, label %.preheader, label %.lr.ph169, !llvm.loop !18

.lr.ph165:                                        ; preds = %.lr.ph169, %.lr.ph165
  %.0111163 = phi i32 [ %87, %.lr.ph165 ], [ 0, %.lr.ph169 ]
  %.0112162 = phi double [ %86, %.lr.ph165 ], [ %73, %.lr.ph169 ]
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %74, i32 noundef %.0111163)
  %82 = load double, ptr %81, align 8, !tbaa !9
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.0111163)
  %84 = load double, ptr %83, align 8, !tbaa !9
  %85 = fneg double %82
  %86 = call double @llvm.fmuladd.f64(double %85, double %84, double %.0112162)
  %87 = add nuw nsw i32 %.0111163, 1
  %88 = zext nneg i32 %87 to i64
  %exitcond189.not = icmp eq i64 %indvars.iv190, %88
  br i1 %exitcond189.not, label %.critedge141, label %.lr.ph165, !llvm.loop !19

.lr.ph179:                                        ; preds = %.preheader, %._crit_edge174
  %.0110.in177 = phi i32 [ %.0110178, %._crit_edge174 ], [ %12, %.preheader ]
  %.0110178 = add nsw i32 %.0110.in177, -1
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.0110178)
  %90 = load double, ptr %89, align 8, !tbaa !9
  %91 = icmp slt i32 %.0110.in177, %12
  br i1 %91, label %.lr.ph173, label %._crit_edge174

._crit_edge174:                                   ; preds = %.lr.ph173, %.lr.ph179
  %.0109.lcssa = phi double [ %90, %.lr.ph179 ], [ %102, %.lr.ph173 ]
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.0110178, i32 noundef %.0110178)
  %93 = load double, ptr %92, align 8, !tbaa !9
  %94 = fdiv double %.0109.lcssa, %93
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.0110178)
  store double %94, ptr %95, align 8, !tbaa !9
  %96 = icmp sgt i32 %.0110.in177, 1
  br i1 %96, label %.lr.ph179, label %.critedge140, !llvm.loop !20

.lr.ph173:                                        ; preds = %.lr.ph179, %.lr.ph173
  %.0171 = phi i32 [ %103, %.lr.ph173 ], [ %.0110.in177, %.lr.ph179 ]
  %.0109170 = phi double [ %102, %.lr.ph173 ], [ %90, %.lr.ph179 ]
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.0110178, i32 noundef %.0171)
  %98 = load double, ptr %97, align 8, !tbaa !9
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.0171)
  %100 = load double, ptr %99, align 8, !tbaa !9
  %101 = fneg double %98
  %102 = call double @llvm.fmuladd.f64(double %101, double %100, double %.0109170)
  %103 = add i32 %.0171, 1
  %exitcond195.not = icmp eq i32 %103, %12
  br i1 %exitcond195.not, label %._crit_edge174, label %.lr.ph173, !llvm.loop !21

.critedge140:                                     ; preds = %._crit_edge.us, %._crit_edge, %._crit_edge174, %14, %.critedge138, %.critedge141.preheader, %.preheader
  %.6 = phi i1 [ true, %.preheader ], [ true, %.critedge141.preheader ], [ true, %.critedge138 ], [ true, %14 ], [ true, %._crit_edge174 ], [ false, %._crit_edge ], [ false, %._crit_edge.us ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  ret i1 %.6
}

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11libNumerics6vectorIdEC2Ei(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN11libNumerics3ABSEd(double noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11libNumerics6matrixIdE8swapRowsEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


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