; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/matrix (qr)

; 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.Matrix = type { ptr, ptr, i32, i32 }
%class.Vector = type { %class.Matrix, ptr }

@.str = external hidden unnamed_addr constant [50 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6Matrix2qrERS_S0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %class.Matrix, align 8
  %15 = alloca %class.Matrix, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %class.Vector, align 8
  %19 = alloca %class.Vector, align 8
  %20 = alloca %class.Vector, align 8
  %21 = alloca %class.Matrix, align 8
  %22 = alloca %class.Matrix, align 8
  %23 = alloca %class.Matrix, align 8
  %24 = alloca %class.Matrix, align 8
  %25 = alloca %class.Matrix, align 8
  %26 = alloca %class.Matrix, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %27 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  call void @_ZN6MatrixC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %27)
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %28 unwind label %39

28:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  invoke void @_ZN6VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %29 unwind label %43

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  invoke void @_ZN6VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %30 unwind label %47

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  invoke void @_ZN6VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %31 unwind label %51

31:                                               ; preds = %30
  %32 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %33 unwind label %55

33:                                               ; preds = %31
  %34 = invoke noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %35 unwind label %55

35:                                               ; preds = %33
  %36 = icmp sgt i32 %32, %34
  br i1 %36, label %37, label %59

37:                                               ; preds = %35
  invoke void @_ZNK6Matrix5errorEPc(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef @.str)
          to label %38 unwind label %55

38:                                               ; preds = %37
  br label %59

39:                                               ; preds = %3
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %16, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %17, align 4
  br label %400

43:                                               ; preds = %28
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %16, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %17, align 4
  br label %399

47:                                               ; preds = %29
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %16, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %17, align 4
  br label %398

51:                                               ; preds = %30
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %16, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %17, align 4
  br label %397

55:                                               ; preds = %379, %351, %347, %342, %330, %327, %322, %261, %257, %252, %243, %232, %229, %227, %207, %203, %198, %190, %178, %175, %170, %163, %155, %148, %140, %136, %123, %112, %109, %105, %101, %96, %89, %86, %84, %82, %80, %76, %74, %73, %71, %70, %68, %64, %62, %59, %37, %33, %31
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %16, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %17, align 4
  br label %396

59:                                               ; preds = %38, %35
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %62 unwind label %55

62:                                               ; preds = %59
  %63 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %64 unwind label %55

64:                                               ; preds = %62
  %65 = load ptr, ptr %60, align 8, !tbaa !9
  %66 = getelementptr inbounds ptr, ptr %65, i64 2
  %67 = load ptr, ptr %66, align 8
  invoke void %67(ptr noundef nonnull align 8 dereferenceable(24) %60, i32 noundef %61, i32 noundef %63)
          to label %68 unwind label %55

68:                                               ; preds = %64
  %69 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %70 unwind label %55

70:                                               ; preds = %68
  invoke void @_ZN6Vector6createEi(ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef %69)
          to label %71 unwind label %55

71:                                               ; preds = %70
  %72 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %73 unwind label %55

73:                                               ; preds = %71
  invoke void @_ZN6Vector6createEi(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %72)
          to label %74 unwind label %55

74:                                               ; preds = %73
  %75 = invoke noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %76 unwind label %55

76:                                               ; preds = %74
  %77 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %78 unwind label %55

78:                                               ; preds = %76
  %79 = icmp sgt i32 %75, %77
  br i1 %79, label %80, label %84

80:                                               ; preds = %78
  %81 = invoke noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %82 unwind label %55

82:                                               ; preds = %80
  invoke void @_ZN6Vector6createEi(ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef %81)
          to label %83 unwind label %55

83:                                               ; preds = %82
  br label %88

84:                                               ; preds = %78
  %85 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %86 unwind label %55

86:                                               ; preds = %84
  invoke void @_ZN6Vector6createEi(ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef %85)
          to label %87 unwind label %55

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87, %83
  store i32 1, ptr %13, align 4, !tbaa !11
  br label %89

89:                                               ; preds = %224, %88
  %90 = load i32, ptr %13, align 4, !tbaa !11
  %91 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %92 unwind label %55

92:                                               ; preds = %89
  %93 = icmp sle i32 %90, %91
  br i1 %93, label %94, label %227

94:                                               ; preds = %92
  store double 0.000000e+00, ptr %7, align 8, !tbaa !13
  %95 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %95, ptr %11, align 4, !tbaa !11
  br label %96

96:                                               ; preds = %120, %94
  %97 = load i32, ptr %11, align 4, !tbaa !11
  %98 = invoke noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %99 unwind label %55

99:                                               ; preds = %96
  %100 = icmp sle i32 %97, %98
  br i1 %100, label %101, label %123

101:                                              ; preds = %99
  %102 = load i32, ptr %11, align 4, !tbaa !11
  %103 = load i32, ptr %13, align 4, !tbaa !11
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %102, i32 noundef %103)
          to label %105 unwind label %55

105:                                              ; preds = %101
  %106 = load double, ptr %104, align 8, !tbaa !13
  %107 = load i32, ptr %11, align 4, !tbaa !11
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef %107)
          to label %109 unwind label %55

109:                                              ; preds = %105
  store double %106, ptr %108, align 8, !tbaa !13
  %110 = load i32, ptr %11, align 4, !tbaa !11
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef %110)
          to label %112 unwind label %55

112:                                              ; preds = %109
  %113 = load double, ptr %111, align 8, !tbaa !13
  %114 = load i32, ptr %11, align 4, !tbaa !11
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef %114)
          to label %116 unwind label %55

116:                                              ; preds = %112
  %117 = load double, ptr %115, align 8, !tbaa !13
  %118 = load double, ptr %7, align 8, !tbaa !13
  %119 = call double @llvm.fmuladd.f64(double %113, double %117, double %118)
  store double %119, ptr %7, align 8, !tbaa !13
  br label %120

120:                                              ; preds = %116
  %121 = load i32, ptr %11, align 4, !tbaa !11
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %11, align 4, !tbaa !11
  br label %96, !llvm.loop !15

123:                                              ; preds = %99
  %124 = load double, ptr %7, align 8, !tbaa !13
  %125 = call double @sqrt(double noundef %124) #6
  store double %125, ptr %8, align 8, !tbaa !13
  %126 = load i32, ptr %13, align 4, !tbaa !11
  %127 = load i32, ptr %13, align 4, !tbaa !11
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %126, i32 noundef %127)
          to label %129 unwind label %55

129:                                              ; preds = %123
  %130 = load double, ptr %128, align 8, !tbaa !13
  store double %130, ptr %10, align 8, !tbaa !13
  %131 = load double, ptr %10, align 8, !tbaa !13
  %132 = fcmp ogt double %131, 0.000000e+00
  br i1 %132, label %133, label %136

133:                                              ; preds = %129
  %134 = load double, ptr %8, align 8, !tbaa !13
  %135 = fneg double %134
  store double %135, ptr %8, align 8, !tbaa !13
  br label %136

136:                                              ; preds = %133, %129
  %137 = load double, ptr %8, align 8, !tbaa !13
  %138 = load i32, ptr %13, align 4, !tbaa !11
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %138)
          to label %140 unwind label %55

140:                                              ; preds = %136
  store double %137, ptr %139, align 8, !tbaa !13
  %141 = load double, ptr %7, align 8, !tbaa !13
  %142 = load double, ptr %10, align 8, !tbaa !13
  %143 = load double, ptr %8, align 8, !tbaa !13
  %144 = fneg double %142
  %145 = call double @llvm.fmuladd.f64(double %144, double %143, double %141)
  %146 = load i32, ptr %13, align 4, !tbaa !11
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef %146)
          to label %148 unwind label %55

148:                                              ; preds = %140
  store double %145, ptr %147, align 8, !tbaa !13
  %149 = load double, ptr %8, align 8, !tbaa !13
  %150 = load double, ptr %10, align 8, !tbaa !13
  %151 = fsub double %150, %149
  store double %151, ptr %10, align 8, !tbaa !13
  %152 = load double, ptr %10, align 8, !tbaa !13
  %153 = load i32, ptr %13, align 4, !tbaa !11
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef %153)
          to label %155 unwind label %55

155:                                              ; preds = %148
  store double %152, ptr %154, align 8, !tbaa !13
  %156 = load double, ptr %10, align 8, !tbaa !13
  %157 = load i32, ptr %13, align 4, !tbaa !11
  %158 = load i32, ptr %13, align 4, !tbaa !11
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %157, i32 noundef %158)
          to label %160 unwind label %55

160:                                              ; preds = %155
  store double %156, ptr %159, align 8, !tbaa !13
  %161 = load i32, ptr %13, align 4, !tbaa !11
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %12, align 4, !tbaa !11
  br label %163

163:                                              ; preds = %220, %160
  %164 = load i32, ptr %12, align 4, !tbaa !11
  %165 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %166 unwind label %55

166:                                              ; preds = %163
  %167 = icmp sle i32 %164, %165
  br i1 %167, label %168, label %223

168:                                              ; preds = %166
  store double 0.000000e+00, ptr %7, align 8, !tbaa !13
  %169 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %169, ptr %11, align 4, !tbaa !11
  br label %170

170:                                              ; preds = %187, %168
  %171 = load i32, ptr %11, align 4, !tbaa !11
  %172 = invoke noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %173 unwind label %55

173:                                              ; preds = %170
  %174 = icmp sle i32 %171, %172
  br i1 %174, label %175, label %190

175:                                              ; preds = %173
  %176 = load i32, ptr %11, align 4, !tbaa !11
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef %176)
          to label %178 unwind label %55

178:                                              ; preds = %175
  %179 = load double, ptr %177, align 8, !tbaa !13
  %180 = load i32, ptr %11, align 4, !tbaa !11
  %181 = load i32, ptr %12, align 4, !tbaa !11
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %180, i32 noundef %181)
          to label %183 unwind label %55

183:                                              ; preds = %178
  %184 = load double, ptr %182, align 8, !tbaa !13
  %185 = load double, ptr %7, align 8, !tbaa !13
  %186 = call double @llvm.fmuladd.f64(double %179, double %184, double %185)
  store double %186, ptr %7, align 8, !tbaa !13
  br label %187

187:                                              ; preds = %183
  %188 = load i32, ptr %11, align 4, !tbaa !11
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %11, align 4, !tbaa !11
  br label %170, !llvm.loop !17

190:                                              ; preds = %173
  %191 = load double, ptr %7, align 8, !tbaa !13
  %192 = load i32, ptr %13, align 4, !tbaa !11
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef %192)
          to label %194 unwind label %55

194:                                              ; preds = %190
  %195 = load double, ptr %193, align 8, !tbaa !13
  %196 = fdiv double %191, %195
  store double %196, ptr %9, align 8, !tbaa !13
  %197 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %197, ptr %11, align 4, !tbaa !11
  br label %198

198:                                              ; preds = %216, %194
  %199 = load i32, ptr %11, align 4, !tbaa !11
  %200 = invoke noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %201 unwind label %55

201:                                              ; preds = %198
  %202 = icmp sle i32 %199, %200
  br i1 %202, label %203, label %219

203:                                              ; preds = %201
  %204 = load double, ptr %9, align 8, !tbaa !13
  %205 = load i32, ptr %11, align 4, !tbaa !11
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef %205)
          to label %207 unwind label %55

207:                                              ; preds = %203
  %208 = load double, ptr %206, align 8, !tbaa !13
  %209 = load i32, ptr %11, align 4, !tbaa !11
  %210 = load i32, ptr %12, align 4, !tbaa !11
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %209, i32 noundef %210)
          to label %212 unwind label %55

212:                                              ; preds = %207
  %213 = load double, ptr %211, align 8, !tbaa !13
  %214 = fneg double %204
  %215 = call double @llvm.fmuladd.f64(double %214, double %208, double %213)
  store double %215, ptr %211, align 8, !tbaa !13
  br label %216

216:                                              ; preds = %212
  %217 = load i32, ptr %11, align 4, !tbaa !11
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %11, align 4, !tbaa !11
  br label %198, !llvm.loop !18

219:                                              ; preds = %201
  br label %220

220:                                              ; preds = %219
  %221 = load i32, ptr %12, align 4, !tbaa !11
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %12, align 4, !tbaa !11
  br label %163, !llvm.loop !19

223:                                              ; preds = %166
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %13, align 4, !tbaa !11
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %13, align 4, !tbaa !11
  br label %89, !llvm.loop !20

227:                                              ; preds = %92
  %228 = invoke noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %229 unwind label %55

229:                                              ; preds = %227
  %230 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6Matrix8identityEi(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef %228)
          to label %231 unwind label %55

231:                                              ; preds = %229
  store i32 1, ptr %11, align 4, !tbaa !11
  br label %232

232:                                              ; preds = %281, %231
  %233 = load i32, ptr %11, align 4, !tbaa !11
  %234 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %235 unwind label %55

235:                                              ; preds = %232
  %236 = icmp sle i32 %233, %234
  br i1 %236, label %237, label %313

237:                                              ; preds = %235
  store i32 1, ptr %12, align 4, !tbaa !11
  br label %238

238:                                              ; preds = %247, %237
  %239 = load i32, ptr %12, align 4, !tbaa !11
  %240 = load i32, ptr %11, align 4, !tbaa !11
  %241 = sub nsw i32 %240, 1
  %242 = icmp sle i32 %239, %241
  br i1 %242, label %243, label %250

243:                                              ; preds = %238
  %244 = load i32, ptr %12, align 4, !tbaa !11
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef %244)
          to label %246 unwind label %55

246:                                              ; preds = %243
  store double 0.000000e+00, ptr %245, align 8, !tbaa !13
  br label %247

247:                                              ; preds = %246
  %248 = load i32, ptr %12, align 4, !tbaa !11
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %12, align 4, !tbaa !11
  br label %238, !llvm.loop !21

250:                                              ; preds = %238
  %251 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %251, ptr %12, align 4, !tbaa !11
  br label %252

252:                                              ; preds = %266, %250
  %253 = load i32, ptr %12, align 4, !tbaa !11
  %254 = invoke noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %255 unwind label %55

255:                                              ; preds = %252
  %256 = icmp sle i32 %253, %254
  br i1 %256, label %257, label %269

257:                                              ; preds = %255
  %258 = load i32, ptr %12, align 4, !tbaa !11
  %259 = load i32, ptr %11, align 4, !tbaa !11
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %258, i32 noundef %259)
          to label %261 unwind label %55

261:                                              ; preds = %257
  %262 = load double, ptr %260, align 8, !tbaa !13
  %263 = load i32, ptr %12, align 4, !tbaa !11
  %264 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef %263)
          to label %265 unwind label %55

265:                                              ; preds = %261
  store double %262, ptr %264, align 8, !tbaa !13
  br label %266

266:                                              ; preds = %265
  %267 = load i32, ptr %12, align 4, !tbaa !11
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %12, align 4, !tbaa !11
  br label %252, !llvm.loop !22

269:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #6
  invoke void @_ZNK6MatrixngEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %270 unwind label %284

270:                                              ; preds = %269
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %271 unwind label %288

271:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #6
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %272 unwind label %292

272:                                              ; preds = %271
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %22, ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %273 unwind label %296

273:                                              ; preds = %272
  %274 = load i32, ptr %11, align 4, !tbaa !11
  %275 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef %274)
          to label %276 unwind label %300

276:                                              ; preds = %273
  %277 = load double, ptr %275, align 8, !tbaa !13
  invoke void @_ZNK6MatrixdvEd(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %22, double noundef %277)
          to label %278 unwind label %300

278:                                              ; preds = %276
  %279 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixpLERKS_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %280 unwind label %304

280:                                              ; preds = %278
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %11, align 4, !tbaa !11
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %11, align 4, !tbaa !11
  br label %232, !llvm.loop !23

284:                                              ; preds = %269
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %16, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %17, align 4
  br label %312

288:                                              ; preds = %270
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %16, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %17, align 4
  br label %311

292:                                              ; preds = %271
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %16, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %17, align 4
  br label %310

296:                                              ; preds = %272
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %16, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %17, align 4
  br label %309

300:                                              ; preds = %276, %273
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %16, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %17, align 4
  br label %308

304:                                              ; preds = %278
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %16, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %17, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br label %308

308:                                              ; preds = %304, %300
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  br label %309

309:                                              ; preds = %308, %296
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  br label %310

310:                                              ; preds = %309, %292
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  br label %311

311:                                              ; preds = %310, %288
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  br label %312

312:                                              ; preds = %311, %284
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br label %396

313:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #6
  %314 = invoke noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %315 unwind label %364

315:                                              ; preds = %313
  %316 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %317 unwind label %364

317:                                              ; preds = %315
  invoke void @_ZNK6Matrix8getBlockEiiii(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %26, ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 1, i32 noundef 1, i32 noundef %314, i32 noundef %316)
          to label %318 unwind label %364

318:                                              ; preds = %317
  %319 = load ptr, ptr %5, align 8, !tbaa !5
  %320 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %319, ptr noundef nonnull align 8 dereferenceable(24) %26)
          to label %321 unwind label %368

321:                                              ; preds = %318
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  store i32 1, ptr %11, align 4, !tbaa !11
  br label %322

322:                                              ; preds = %392, %321
  %323 = load i32, ptr %11, align 4, !tbaa !11
  %324 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %325 unwind label %55

325:                                              ; preds = %322
  %326 = icmp sle i32 %323, %324
  br i1 %326, label %327, label %395

327:                                              ; preds = %325
  %328 = load i32, ptr %11, align 4, !tbaa !11
  %329 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %328)
          to label %330 unwind label %55

330:                                              ; preds = %327
  %331 = load double, ptr %329, align 8, !tbaa !13
  %332 = load ptr, ptr %6, align 8, !tbaa !5
  %333 = load i32, ptr %11, align 4, !tbaa !11
  %334 = load i32, ptr %11, align 4, !tbaa !11
  %335 = load ptr, ptr %332, align 8, !tbaa !9
  %336 = getelementptr inbounds ptr, ptr %335, i64 6
  %337 = load ptr, ptr %336, align 8
  %338 = invoke noundef nonnull align 8 dereferenceable(8) ptr %337(ptr noundef nonnull align 8 dereferenceable(24) %332, i32 noundef %333, i32 noundef %334)
          to label %339 unwind label %55

339:                                              ; preds = %330
  store double %331, ptr %338, align 8, !tbaa !13
  %340 = load i32, ptr %11, align 4, !tbaa !11
  %341 = add nsw i32 %340, 1
  store i32 %341, ptr %12, align 4, !tbaa !11
  br label %342

342:                                              ; preds = %361, %339
  %343 = load i32, ptr %12, align 4, !tbaa !11
  %344 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %345 unwind label %55

345:                                              ; preds = %342
  %346 = icmp sle i32 %343, %344
  br i1 %346, label %347, label %373

347:                                              ; preds = %345
  %348 = load i32, ptr %11, align 4, !tbaa !11
  %349 = load i32, ptr %12, align 4, !tbaa !11
  %350 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %348, i32 noundef %349)
          to label %351 unwind label %55

351:                                              ; preds = %347
  %352 = load double, ptr %350, align 8, !tbaa !13
  %353 = load ptr, ptr %6, align 8, !tbaa !5
  %354 = load i32, ptr %11, align 4, !tbaa !11
  %355 = load i32, ptr %12, align 4, !tbaa !11
  %356 = load ptr, ptr %353, align 8, !tbaa !9
  %357 = getelementptr inbounds ptr, ptr %356, i64 6
  %358 = load ptr, ptr %357, align 8
  %359 = invoke noundef nonnull align 8 dereferenceable(8) ptr %358(ptr noundef nonnull align 8 dereferenceable(24) %353, i32 noundef %354, i32 noundef %355)
          to label %360 unwind label %55

360:                                              ; preds = %351
  store double %352, ptr %359, align 8, !tbaa !13
  br label %361

361:                                              ; preds = %360
  %362 = load i32, ptr %12, align 4, !tbaa !11
  %363 = add nsw i32 %362, 1
  store i32 %363, ptr %12, align 4, !tbaa !11
  br label %342, !llvm.loop !24

364:                                              ; preds = %317, %315, %313
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %16, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %17, align 4
  br label %372

368:                                              ; preds = %318
  %369 = landingpad { ptr, i32 }
          cleanup
  %370 = extractvalue { ptr, i32 } %369, 0
  store ptr %370, ptr %16, align 8
  %371 = extractvalue { ptr, i32 } %369, 1
  store i32 %371, ptr %17, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  br label %372

372:                                              ; preds = %368, %364
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  br label %396

373:                                              ; preds = %345
  store i32 1, ptr %12, align 4, !tbaa !11
  br label %374

374:                                              ; preds = %388, %373
  %375 = load i32, ptr %12, align 4, !tbaa !11
  %376 = load i32, ptr %11, align 4, !tbaa !11
  %377 = sub nsw i32 %376, 1
  %378 = icmp sle i32 %375, %377
  br i1 %378, label %379, label %391

379:                                              ; preds = %374
  %380 = load ptr, ptr %6, align 8, !tbaa !5
  %381 = load i32, ptr %11, align 4, !tbaa !11
  %382 = load i32, ptr %12, align 4, !tbaa !11
  %383 = load ptr, ptr %380, align 8, !tbaa !9
  %384 = getelementptr inbounds ptr, ptr %383, i64 6
  %385 = load ptr, ptr %384, align 8
  %386 = invoke noundef nonnull align 8 dereferenceable(8) ptr %385(ptr noundef nonnull align 8 dereferenceable(24) %380, i32 noundef %381, i32 noundef %382)
          to label %387 unwind label %55

387:                                              ; preds = %379
  store double 0.000000e+00, ptr %386, align 8, !tbaa !13
  br label %388

388:                                              ; preds = %387
  %389 = load i32, ptr %12, align 4, !tbaa !11
  %390 = add nsw i32 %389, 1
  store i32 %390, ptr %12, align 4, !tbaa !11
  br label %374, !llvm.loop !25

391:                                              ; preds = %374
  br label %392

392:                                              ; preds = %391
  %393 = load i32, ptr %11, align 4, !tbaa !11
  %394 = add nsw i32 %393, 1
  store i32 %394, ptr %11, align 4, !tbaa !11
  br label %322, !llvm.loop !26

395:                                              ; preds = %325
  call void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void

396:                                              ; preds = %372, %312, %55
  call void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %397

397:                                              ; preds = %396, %51
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %398

398:                                              ; preds = %397, %47
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %399

399:                                              ; preds = %398, %43
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %400

400:                                              ; preds = %399, %39
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %401

401:                                              ; preds = %400
  %402 = load ptr, ptr %16, align 8
  %403 = load i32, ptr %17, align 4
  %404 = insertvalue { ptr, i32 } poison, ptr %402, 0
  %405 = insertvalue { ptr, i32 } %404, i32 %403, 1
  resume { ptr, i32 } %405
}

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

declare void @_ZN6MatrixC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN6VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2

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

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

declare void @_ZNK6Matrix5errorEPc(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #2

declare void @_ZN6Vector6createEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3 align 2

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #5

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN6Matrix8identityEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #2

declare void @_ZNK6MatrixngEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24)) #2

declare void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

declare void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24)) #2

declare void @_ZNK6MatrixdvEd(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) #2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixpLERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: nounwind
declare void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5

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

declare void @_ZNK6Matrix8getBlockEiiii(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: nounwind
declare void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5

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


; 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.Matrix = type { ptr, ptr, i32, i32 }
%class.Vector = type { %class.Matrix, ptr }

@.str = external hidden unnamed_addr constant [50 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6Matrix2qrERS_S0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.Matrix, align 8
  %5 = alloca %class.Matrix, align 8
  %6 = alloca %class.Vector, align 8
  %7 = alloca %class.Vector, align 8
  %8 = alloca %class.Vector, align 8
  %9 = alloca %class.Matrix, align 8
  %10 = alloca %class.Matrix, align 8
  %11 = alloca %class.Matrix, align 8
  %12 = alloca %class.Matrix, align 8
  %13 = alloca %class.Matrix, align 8
  %14 = alloca %class.Matrix, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZN6MatrixC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %15 unwind label %23

15:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  invoke void @_ZN6VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %16 unwind label %25

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  invoke void @_ZN6VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %17 unwind label %27

17:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  invoke void @_ZN6VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %18 unwind label %29

18:                                               ; preds = %17
  %19 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %20 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %21 = icmp sgt i32 %19, %20
  br i1 %21, label %22, label %31

22:                                               ; preds = %18
  invoke void @_ZNK6Matrix5errorEPc(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull @.str)
          to label %31 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

23:                                               ; preds = %3
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %179

25:                                               ; preds = %15
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %178

27:                                               ; preds = %16
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %177

29:                                               ; preds = %17
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %176

.loopexit132:                                     ; preds = %.lr.ph179
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %.lr.ph176
  %lpad.loopexit133 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %.lr.ph183
  %lpad.loopexit136 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %.invoke, %22, %31, %37, %39, %._crit_edge162
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

31:                                               ; preds = %22, %18
  %32 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %33 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %36 = load ptr, ptr %35, align 8
  invoke void %36(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %32, i32 noundef %33)
          to label %37 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

37:                                               ; preds = %31
  %38 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  invoke void @_ZN6Vector6createEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %38)
          to label %39 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

39:                                               ; preds = %37
  %40 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  invoke void @_ZN6Vector6createEi(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef %40)
          to label %41 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

41:                                               ; preds = %39
  %42 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %43 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %44 = icmp sgt i32 %42, %43
  br i1 %44, label %45, label %48

45:                                               ; preds = %41
  %46 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  br label %.invoke

.invoke:                                          ; preds = %48, %45
  %47 = phi i32 [ %46, %45 ], [ %49, %48 ]
  invoke void @_ZN6Vector6createEi(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %47)
          to label %50 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

48:                                               ; preds = %41
  %49 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  br label %.invoke

50:                                               ; preds = %.invoke
  %51 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not160 = icmp slt i32 %51, 1
  br i1 %.not160, label %._crit_edge162, label %.preheader143

.loopexit142:                                     ; preds = %._crit_edge157, %._crit_edge
  %52 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not.not = icmp slt i32 %.096161, %52
  br i1 %.not.not, label %.preheader143, label %._crit_edge162, !llvm.loop !8

.preheader143:                                    ; preds = %50, %.loopexit142
  %.096161 = phi i32 [ %76, %.loopexit142 ], [ 1, %50 ]
  %53 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not128144 = icmp sgt i32 %.096161, %53
  br i1 %.not128144, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader143, %.lr.ph
  %.0102146 = phi i32 [ %62, %.lr.ph ], [ %.096161, %.preheader143 ]
  %.0107145 = phi double [ %61, %.lr.ph ], [ 0.000000e+00, %.preheader143 ]
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %.0102146, i32 noundef %.096161)
  %55 = load double, ptr %54, align 8, !tbaa !10
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %.0102146)
  store double %55, ptr %56, align 8, !tbaa !10
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %.0102146)
  %58 = load double, ptr %57, align 8, !tbaa !10
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %.0102146)
  %60 = load double, ptr %59, align 8, !tbaa !10
  %61 = call double @llvm.fmuladd.f64(double %58, double %60, double %.0107145)
  %62 = add nuw nsw i32 %.0102146, 1
  %63 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not128.not = icmp slt i32 %.0102146, %63
  br i1 %.not128.not, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %.preheader143
  %.0107.lcssa = phi double [ 0.000000e+00, %.preheader143 ], [ %61, %.lr.ph ]
  %64 = call double @sqrt(double noundef %.0107.lcssa) #7
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %.096161, i32 noundef %.096161)
  %66 = load double, ptr %65, align 8, !tbaa !10
  %67 = fcmp ogt double %66, 0.000000e+00
  %68 = fneg double %64
  %.0109 = select i1 %67, double %68, double %64
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef %.096161)
  store double %.0109, ptr %69, align 8, !tbaa !10
  %70 = fneg double %66
  %71 = call double @llvm.fmuladd.f64(double %70, double %.0109, double %.0107.lcssa)
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %.096161)
  store double %71, ptr %72, align 8, !tbaa !10
  %73 = fsub double %66, %.0109
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %.096161)
  store double %73, ptr %74, align 8, !tbaa !10
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %.096161, i32 noundef %.096161)
  store double %73, ptr %75, align 8, !tbaa !10
  %76 = add nuw nsw i32 %.096161, 1
  %77 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not129158.not = icmp slt i32 %.096161, %77
  br i1 %.not129158.not, label %.preheader141, label %.loopexit142

.preheader141:                                    ; preds = %._crit_edge, %._crit_edge157
  %.097159 = phi i32 [ %99, %._crit_edge157 ], [ %76, %._crit_edge ]
  %78 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not130147 = icmp sgt i32 %.096161, %78
  br i1 %.not130147, label %._crit_edge151, label %.lr.ph150

.lr.ph150:                                        ; preds = %.preheader141, %.lr.ph150
  %.1103149 = phi i32 [ %84, %.lr.ph150 ], [ %.096161, %.preheader141 ]
  %.1108148 = phi double [ %83, %.lr.ph150 ], [ 0.000000e+00, %.preheader141 ]
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %.1103149)
  %80 = load double, ptr %79, align 8, !tbaa !10
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %.1103149, i32 noundef %.097159)
  %82 = load double, ptr %81, align 8, !tbaa !10
  %83 = call double @llvm.fmuladd.f64(double %80, double %82, double %.1108148)
  %84 = add nuw nsw i32 %.1103149, 1
  %85 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not130.not = icmp slt i32 %.1103149, %85
  br i1 %.not130.not, label %.lr.ph150, label %._crit_edge151, !llvm.loop !14

._crit_edge151:                                   ; preds = %.lr.ph150, %.preheader141
  %.1108.lcssa = phi double [ 0.000000e+00, %.preheader141 ], [ %83, %.lr.ph150 ]
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %.096161)
  %87 = load double, ptr %86, align 8, !tbaa !10
  %88 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not131153 = icmp sgt i32 %.096161, %88
  br i1 %.not131153, label %._crit_edge157, label %.lr.ph156

.lr.ph156:                                        ; preds = %._crit_edge151
  %89 = fneg double %.1108.lcssa
  %90 = fdiv double %89, %87
  br label %91

91:                                               ; preds = %.lr.ph156, %91
  %.2104154 = phi i32 [ %.096161, %.lr.ph156 ], [ %97, %91 ]
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %.2104154)
  %93 = load double, ptr %92, align 8, !tbaa !10
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %.2104154, i32 noundef %.097159)
  %95 = load double, ptr %94, align 8, !tbaa !10
  %96 = call double @llvm.fmuladd.f64(double %90, double %93, double %95)
  store double %96, ptr %94, align 8, !tbaa !10
  %97 = add nuw nsw i32 %.2104154, 1
  %98 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not131.not = icmp slt i32 %.2104154, %98
  br i1 %.not131.not, label %91, label %._crit_edge157, !llvm.loop !15

._crit_edge157:                                   ; preds = %91, %._crit_edge151
  %99 = add nuw nsw i32 %.097159, 1
  %100 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not129.not = icmp slt i32 %.097159, %100
  br i1 %.not129.not, label %.preheader141, label %.loopexit142, !llvm.loop !16

._crit_edge162:                                   ; preds = %.loopexit142, %50
  %101 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %102 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6Matrix8identityEi(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %101)
          to label %.preheader140 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

.preheader140:                                    ; preds = %._crit_edge162
  %103 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not110170 = icmp slt i32 %103, 1
  br i1 %.not110170, label %._crit_edge172, label %.preheader139

.preheader139:                                    ; preds = %.preheader140, %120
  %.3105171 = phi i32 [ %121, %120 ], [ 1, %.preheader140 ]
  %.not115.not163 = icmp ugt i32 %.3105171, 1
  br i1 %.not115.not163, label %.lr.ph165, label %.preheader138

.preheader138:                                    ; preds = %.lr.ph165, %.preheader139
  %104 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not116166 = icmp sgt i32 %.3105171, %104
  br i1 %.not116166, label %._crit_edge169, label %.lr.ph168

.lr.ph165:                                        ; preds = %.preheader139, %.lr.ph165
  %.198164 = phi i32 [ %106, %.lr.ph165 ], [ 1, %.preheader139 ]
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %.198164)
  store double 0.000000e+00, ptr %105, align 8, !tbaa !10
  %106 = add nuw nsw i32 %.198164, 1
  %exitcond.not = icmp eq i32 %106, %.3105171
  br i1 %exitcond.not, label %.preheader138, label %.lr.ph165, !llvm.loop !17

.lr.ph168:                                        ; preds = %.preheader138, %.lr.ph168
  %.299167 = phi i32 [ %110, %.lr.ph168 ], [ %.3105171, %.preheader138 ]
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %.299167, i32 noundef %.3105171)
  %108 = load double, ptr %107, align 8, !tbaa !10
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %.299167)
  store double %108, ptr %109, align 8, !tbaa !10
  %110 = add nuw nsw i32 %.299167, 1
  %111 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not116.not = icmp slt i32 %.299167, %111
  br i1 %.not116.not, label %.lr.ph168, label %._crit_edge169, !llvm.loop !18

._crit_edge169:                                   ; preds = %.lr.ph168, %.preheader138
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  invoke void @_ZNK6MatrixngEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %112 unwind label %123

112:                                              ; preds = %._crit_edge169
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %113 unwind label %125

113:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %114 unwind label %127

114:                                              ; preds = %113
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %115 unwind label %129

115:                                              ; preds = %114
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %.3105171)
  %117 = load double, ptr %116, align 8, !tbaa !10
  invoke void @_ZNK6MatrixdvEd(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %10, double noundef %117)
          to label %118 unwind label %131

118:                                              ; preds = %115
  %119 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixpLERKS_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %120 unwind label %133

120:                                              ; preds = %118
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  %121 = add nuw nsw i32 %.3105171, 1
  %122 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not110.not = icmp slt i32 %.3105171, %122
  br i1 %.not110.not, label %.preheader139, label %._crit_edge172, !llvm.loop !19

123:                                              ; preds = %._crit_edge169
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %139

125:                                              ; preds = %112
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %138

127:                                              ; preds = %113
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %137

129:                                              ; preds = %114
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %136

131:                                              ; preds = %115
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %135

133:                                              ; preds = %118
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %135

135:                                              ; preds = %133, %131
  %.pn117 = phi { ptr, i32 } [ %134, %133 ], [ %132, %131 ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  br label %136

136:                                              ; preds = %135, %129
  %.pn117.pn = phi { ptr, i32 } [ %.pn117, %135 ], [ %130, %129 ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  br label %137

137:                                              ; preds = %136, %127
  %.pn117.pn.pn = phi { ptr, i32 } [ %.pn117.pn, %136 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %138

138:                                              ; preds = %137, %125
  %.pn117.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn, %137 ], [ %126, %125 ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  br label %139

139:                                              ; preds = %138, %123
  %.pn117.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn, %138 ], [ %124, %123 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %.loopexit.split-lp

._crit_edge172:                                   ; preds = %120, %.preheader140
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  %140 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %141 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  invoke void @_ZNK6Matrix8getBlockEiiii(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 1, i32 noundef 1, i32 noundef %140, i32 noundef %141)
          to label %142 unwind label %165

142:                                              ; preds = %._crit_edge172
  %143 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %144 unwind label %167

144:                                              ; preds = %142
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  %145 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not112180 = icmp slt i32 %145, 1
  br i1 %.not112180, label %._crit_edge184, label %.lr.ph183

.loopexit:                                        ; preds = %174, %.preheader
  %146 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not112.not = icmp slt i32 %.4106181, %146
  br i1 %.not112.not, label %.lr.ph183, label %._crit_edge184, !llvm.loop !20

.lr.ph183:                                        ; preds = %144, %.loopexit
  %.4106181 = phi i32 [ %154, %.loopexit ], [ 1, %144 ]
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef %.4106181)
  %148 = load double, ptr %147, align 8, !tbaa !10
  %149 = load ptr, ptr %2, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i64 48
  %151 = load ptr, ptr %150, align 8
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr %151(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %.4106181, i32 noundef %.4106181)
          to label %153 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

153:                                              ; preds = %.lr.ph183
  store double %148, ptr %152, align 8, !tbaa !10
  %154 = add nuw nsw i32 %.4106181, 1
  %155 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not113173.not = icmp slt i32 %.4106181, %155
  br i1 %.not113173.not, label %.lr.ph176, label %.preheader

.preheader:                                       ; preds = %162, %153
  %.not114.not177 = icmp ugt i32 %.4106181, 1
  br i1 %.not114.not177, label %.lr.ph179, label %.loopexit

.lr.ph176:                                        ; preds = %153, %162
  %.3100174 = phi i32 [ %163, %162 ], [ %154, %153 ]
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %.4106181, i32 noundef %.3100174)
  %157 = load double, ptr %156, align 8, !tbaa !10
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  %159 = getelementptr inbounds i8, ptr %158, i64 48
  %160 = load ptr, ptr %159, align 8
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr %160(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %.4106181, i32 noundef %.3100174)
          to label %162 unwind label %.loopexit.split-lp.loopexit

162:                                              ; preds = %.lr.ph176
  store double %157, ptr %161, align 8, !tbaa !10
  %163 = add nuw nsw i32 %.3100174, 1
  %164 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not113.not = icmp slt i32 %.3100174, %164
  br i1 %.not113.not, label %.lr.ph176, label %.preheader, !llvm.loop !21

165:                                              ; preds = %._crit_edge172
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %169

167:                                              ; preds = %142
  %168 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %169

169:                                              ; preds = %167, %165
  %.pn = phi { ptr, i32 } [ %168, %167 ], [ %166, %165 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  br label %.loopexit.split-lp

.lr.ph179:                                        ; preds = %.preheader, %174
  %.4101178 = phi i32 [ %175, %174 ], [ 1, %.preheader ]
  %170 = load ptr, ptr %2, align 8, !tbaa !5
  %171 = getelementptr inbounds i8, ptr %170, i64 48
  %172 = load ptr, ptr %171, align 8
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr %172(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %.4106181, i32 noundef %.4101178)
          to label %174 unwind label %.loopexit132

174:                                              ; preds = %.lr.ph179
  store double 0.000000e+00, ptr %173, align 8, !tbaa !10
  %175 = add nuw nsw i32 %.4101178, 1
  %exitcond186.not = icmp eq i32 %175, %.4106181
  br i1 %exitcond186.not, label %.loopexit, label %.lr.ph179, !llvm.loop !22

._crit_edge184:                                   ; preds = %.loopexit, %144
  call void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  ret void

.loopexit.split-lp:                               ; preds = %.loopexit132, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %169, %139
  %.pn117.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn, %139 ], [ %.pn, %169 ], [ %lpad.loopexit, %.loopexit132 ], [ %lpad.loopexit133, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit136, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %176

176:                                              ; preds = %.loopexit.split-lp, %29
  %.pn117.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn.pn, %.loopexit.split-lp ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %177

177:                                              ; preds = %176, %27
  %.pn117.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn.pn.pn, %176 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %178

178:                                              ; preds = %177, %25
  %.pn117.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn.pn.pn.pn, %177 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  br label %179

179:                                              ; preds = %178, %23
  %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn.pn.pn.pn.pn, %178 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

declare void @_ZN6MatrixC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN6VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2

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

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

declare void @_ZNK6Matrix5errorEPc(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #2

declare void @_ZN6Vector6createEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorclEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3 align 2

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

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN6Matrix8identityEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #2

declare void @_ZNK6MatrixngEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

declare void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

declare void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

declare void @_ZNK6MatrixdvEd(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixpLERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6

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

declare void @_ZNK6Matrix8getBlockEiiii(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN6VectorD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = distinct !{!13, !9}
!14 = distinct !{!14, !9}
!15 = distinct !{!15, !9}
!16 = distinct !{!16, !9}
!17 = distinct !{!17, !9}
!18 = distinct !{!18, !9}
!19 = distinct !{!19, !9}
!20 = distinct !{!20, !9}
!21 = distinct !{!21, !9}
!22 = distinct !{!22, !9}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass