; LLVM IR from buresjan/optim_lbm :: nomad/ext/sgtelib/src/Matrix.ll (ZNK7SGTELIB6Matrix10lu_inverseEPd)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.SGTELIB::Matrix" = type { ptr, %"class.std::__cxx11::basic_string", i32, i32, ptr }
%"class.std::allocator" = type { i8 }

@.str.114 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7SGTELIB6Matrix8set_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7SGTELIB6Matrix7set_colERKS0_i(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7SGTELIB6Matrix7get_colEi(ptr dead_on_unwind noalias writable sret(%"class.SGTELIB::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7SGTELIB6Matrix9swap_rowsEii(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7SGTELIB6Matrix10lu_inverseEPd(ptr dead_on_unwind noalias writable sret(%"class.SGTELIB::Matrix") align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.SGTELIB::Matrix", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i1, align 1
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca double, align 8
  %22 = alloca %"class.SGTELIB::Matrix", align 8
  %23 = alloca %"class.SGTELIB::Matrix", align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %29 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %28, i32 0, i32 2
  %30 = load i32, ptr %29, align 8, !tbaa !9
  store i32 %30, ptr %7, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 56, ptr %8) #7
  call void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(56) %28)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %31 = load i32, ptr %7, align 4, !tbaa !15
  %32 = sext i32 %31 to i64
  %33 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %32, i64 4)
  %34 = extractvalue { i64, i1 } %33, 1
  %35 = extractvalue { i64, i1 } %33, 0
  %36 = select i1 %34, i64 -1, i64 %35
  %37 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %36) #8
          to label %38 unwind label %52

38:                                               ; preds = %3
  store ptr %37, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %39

39:                                               ; preds = %49, %38
  %40 = load i32, ptr %9, align 4, !tbaa !15
  %41 = load i32, ptr %7, align 4, !tbaa !15
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %43, label %56

43:                                               ; preds = %39
  %44 = load i32, ptr %9, align 4, !tbaa !15
  %45 = load ptr, ptr %15, align 8, !tbaa !5
  %46 = load i32, ptr %9, align 4, !tbaa !15
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i32, ptr %45, i64 %47
  store i32 %44, ptr %48, align 4, !tbaa !15
  br label %49

49:                                               ; preds = %43
  %50 = load i32, ptr %9, align 4, !tbaa !15
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %9, align 4, !tbaa !15
  br label %39, !llvm.loop !16

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

56:                                               ; preds = %39
  store i32 0, ptr %11, align 4, !tbaa !15
  br label %57

57:                                               ; preds = %198, %56
  %58 = load i32, ptr %11, align 4, !tbaa !15
  %59 = load i32, ptr %7, align 4, !tbaa !15
  %60 = sub nsw i32 %59, 1
  %61 = icmp slt i32 %58, %60
  br i1 %61, label %62, label %201

62:                                               ; preds = %57
  store double -1.000000e+00, ptr %14, align 8, !tbaa !18
  %63 = load i32, ptr %11, align 4, !tbaa !15
  store i32 %63, ptr %9, align 4, !tbaa !15
  br label %64

64:                                               ; preds = %92, %62
  %65 = load i32, ptr %9, align 4, !tbaa !15
  %66 = load i32, ptr %7, align 4, !tbaa !15
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %68, label %95

68:                                               ; preds = %64
  %69 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %8, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !20
  %71 = load i32, ptr %11, align 4, !tbaa !15
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %70, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = load i32, ptr %9, align 4, !tbaa !15
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %74, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !18
  store double %78, ptr %13, align 8, !tbaa !18
  %79 = load double, ptr %13, align 8, !tbaa !18
  %80 = fcmp olt double %79, 0.000000e+00
  br i1 %80, label %81, label %84

81:                                               ; preds = %68
  %82 = load double, ptr %13, align 8, !tbaa !18
  %83 = fmul double %82, -1.000000e+00
  store double %83, ptr %13, align 8, !tbaa !18
  br label %84

84:                                               ; preds = %81, %68
  %85 = load double, ptr %13, align 8, !tbaa !18
  %86 = load double, ptr %14, align 8, !tbaa !18
  %87 = fcmp ogt double %85, %86
  br i1 %87, label %88, label %91

88:                                               ; preds = %84
  %89 = load i32, ptr %9, align 4, !tbaa !15
  store i32 %89, ptr %12, align 4, !tbaa !15
  %90 = load double, ptr %13, align 8, !tbaa !18
  store double %90, ptr %14, align 8, !tbaa !18
  br label %91

91:                                               ; preds = %88, %84
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %9, align 4, !tbaa !15
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %9, align 4, !tbaa !15
  br label %64, !llvm.loop !21

95:                                               ; preds = %64
  %96 = load i32, ptr %12, align 4, !tbaa !15
  %97 = load i32, ptr %11, align 4, !tbaa !15
  %98 = icmp ne i32 %96, %97
  br i1 %98, label %99, label %121

99:                                               ; preds = %95
  %100 = load i32, ptr %12, align 4, !tbaa !15
  %101 = load i32, ptr %11, align 4, !tbaa !15
  call void @_ZN7SGTELIB6Matrix9swap_rowsEii(ptr noundef nonnull align 8 dereferenceable(56) %8, i32 noundef %100, i32 noundef %101)
  %102 = load ptr, ptr %15, align 8, !tbaa !5
  %103 = load i32, ptr %12, align 4, !tbaa !15
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i32, ptr %102, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !15
  store i32 %106, ptr %9, align 4, !tbaa !15
  %107 = load ptr, ptr %15, align 8, !tbaa !5
  %108 = load i32, ptr %11, align 4, !tbaa !15
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %107, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !15
  %112 = load ptr, ptr %15, align 8, !tbaa !5
  %113 = load i32, ptr %12, align 4, !tbaa !15
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i32, ptr %112, i64 %114
  store i32 %111, ptr %115, align 4, !tbaa !15
  %116 = load i32, ptr %9, align 4, !tbaa !15
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = load i32, ptr %11, align 4, !tbaa !15
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds i32, ptr %117, i64 %119
  store i32 %116, ptr %120, align 4, !tbaa !15
  br label %121

121:                                              ; preds = %99, %95
  %122 = load i32, ptr %11, align 4, !tbaa !15
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %10, align 4, !tbaa !15
  br label %124

124:                                              ; preds = %194, %121
  %125 = load i32, ptr %10, align 4, !tbaa !15
  %126 = load i32, ptr %7, align 4, !tbaa !15
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %128, label %197

128:                                              ; preds = %124
  %129 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %8, i32 0, i32 4
  %130 = load ptr, ptr %129, align 8, !tbaa !20
  %131 = load i32, ptr %10, align 4, !tbaa !15
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds ptr, ptr %130, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = load i32, ptr %11, align 4, !tbaa !15
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %134, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !18
  %139 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %8, i32 0, i32 4
  %140 = load ptr, ptr %139, align 8, !tbaa !20
  %141 = load i32, ptr %11, align 4, !tbaa !15
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds ptr, ptr %140, i64 %142
  %144 = load ptr, ptr %143, align 8, !tbaa !5
  %145 = load i32, ptr %11, align 4, !tbaa !15
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %144, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !18
  %149 = fdiv double %138, %148
  store double %149, ptr %13, align 8, !tbaa !18
  %150 = load double, ptr %13, align 8, !tbaa !18
  %151 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %8, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !20
  %153 = load i32, ptr %10, align 4, !tbaa !15
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds ptr, ptr %152, i64 %154
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  %157 = load i32, ptr %11, align 4, !tbaa !15
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds double, ptr %156, i64 %158
  store double %150, ptr %159, align 8, !tbaa !18
  %160 = load i32, ptr %11, align 4, !tbaa !15
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %9, align 4, !tbaa !15
  br label %162

162:                                              ; preds = %190, %128
  %163 = load i32, ptr %9, align 4, !tbaa !15
  %164 = load i32, ptr %7, align 4, !tbaa !15
  %165 = icmp slt i32 %163, %164
  br i1 %165, label %166, label %193

166:                                              ; preds = %162
  %167 = load double, ptr %13, align 8, !tbaa !18
  %168 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %8, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !20
  %170 = load i32, ptr %11, align 4, !tbaa !15
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds ptr, ptr %169, i64 %171
  %173 = load ptr, ptr %172, align 8, !tbaa !5
  %174 = load i32, ptr %9, align 4, !tbaa !15
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds double, ptr %173, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !18
  %178 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %8, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !20
  %180 = load i32, ptr %10, align 4, !tbaa !15
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds ptr, ptr %179, i64 %181
  %183 = load ptr, ptr %182, align 8, !tbaa !5
  %184 = load i32, ptr %9, align 4, !tbaa !15
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds double, ptr %183, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !18
  %188 = fneg double %167
  %189 = call double @llvm.fmuladd.f64(double %188, double %177, double %187)
  store double %189, ptr %186, align 8, !tbaa !18
  br label %190

190:                                              ; preds = %166
  %191 = load i32, ptr %9, align 4, !tbaa !15
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %9, align 4, !tbaa !15
  br label %162, !llvm.loop !22

193:                                              ; preds = %162
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %10, align 4, !tbaa !15
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %10, align 4, !tbaa !15
  br label %124, !llvm.loop !23

197:                                              ; preds = %124
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %11, align 4, !tbaa !15
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %11, align 4, !tbaa !15
  br label %57, !llvm.loop !24

201:                                              ; preds = %57
  store i1 false, ptr %18, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef @.str.114, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %202 unwind label %227

202:                                              ; preds = %201
  %203 = load i32, ptr %7, align 4, !tbaa !15
  %204 = load i32, ptr %7, align 4, !tbaa !15
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %203, i32 noundef %204)
          to label %205 unwind label %231

205:                                              ; preds = %202
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %206

206:                                              ; preds = %224, %205
  %207 = load i32, ptr %9, align 4, !tbaa !15
  %208 = load i32, ptr %7, align 4, !tbaa !15
  %209 = icmp slt i32 %207, %208
  br i1 %209, label %210, label %236

210:                                              ; preds = %206
  %211 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %0, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !20
  %213 = load i32, ptr %9, align 4, !tbaa !15
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds ptr, ptr %212, i64 %214
  %216 = load ptr, ptr %215, align 8, !tbaa !5
  %217 = load ptr, ptr %15, align 8, !tbaa !5
  %218 = load i32, ptr %9, align 4, !tbaa !15
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds i32, ptr %217, i64 %219
  %221 = load i32, ptr %220, align 4, !tbaa !15
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds double, ptr %216, i64 %222
  store double 1.000000e+00, ptr %223, align 8, !tbaa !18
  br label %224

224:                                              ; preds = %210
  %225 = load i32, ptr %9, align 4, !tbaa !15
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %9, align 4, !tbaa !15
  br label %206, !llvm.loop !25

227:                                              ; preds = %201
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %16, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %17, align 4
  br label %235

231:                                              ; preds = %202
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %16, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %235

235:                                              ; preds = %231, %227
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  br label %473

236:                                              ; preds = %206
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  %238 = icmp ne ptr %237, null
  br i1 %238, label %239, label %302

239:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store double 1.000000e+00, ptr %21, align 8, !tbaa !18
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %240

240:                                              ; preds = %257, %239
  %241 = load i32, ptr %9, align 4, !tbaa !15
  %242 = load i32, ptr %7, align 4, !tbaa !15
  %243 = icmp slt i32 %241, %242
  br i1 %243, label %244, label %260

244:                                              ; preds = %240
  %245 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %8, i32 0, i32 4
  %246 = load ptr, ptr %245, align 8, !tbaa !20
  %247 = load i32, ptr %9, align 4, !tbaa !15
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds ptr, ptr %246, i64 %248
  %250 = load ptr, ptr %249, align 8, !tbaa !5
  %251 = load i32, ptr %9, align 4, !tbaa !15
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds double, ptr %250, i64 %252
  %254 = load double, ptr %253, align 8, !tbaa !18
  %255 = load double, ptr %21, align 8, !tbaa !18
  %256 = fmul double %255, %254
  store double %256, ptr %21, align 8, !tbaa !18
  br label %257

257:                                              ; preds = %244
  %258 = load i32, ptr %9, align 4, !tbaa !15
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %9, align 4, !tbaa !15
  br label %240, !llvm.loop !26

260:                                              ; preds = %240
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %261

261:                                              ; preds = %298, %260
  %262 = load i32, ptr %9, align 4, !tbaa !15
  %263 = load i32, ptr %7, align 4, !tbaa !15
  %264 = icmp slt i32 %262, %263
  br i1 %264, label %265, label %299

265:                                              ; preds = %261
  %266 = load ptr, ptr %15, align 8, !tbaa !5
  %267 = load i32, ptr %9, align 4, !tbaa !15
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds i32, ptr %266, i64 %268
  %270 = load i32, ptr %269, align 4, !tbaa !15
  %271 = load i32, ptr %9, align 4, !tbaa !15
  %272 = icmp ne i32 %270, %271
  br i1 %272, label %273, label %295

273:                                              ; preds = %265
  %274 = load ptr, ptr %15, align 8, !tbaa !5
  %275 = load i32, ptr %9, align 4, !tbaa !15
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds i32, ptr %274, i64 %276
  %278 = load i32, ptr %277, align 4, !tbaa !15
  store i32 %278, ptr %10, align 4, !tbaa !15
  %279 = load ptr, ptr %15, align 8, !tbaa !5
  %280 = load i32, ptr %10, align 4, !tbaa !15
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds i32, ptr %279, i64 %281
  %283 = load i32, ptr %282, align 4, !tbaa !15
  %284 = load ptr, ptr %15, align 8, !tbaa !5
  %285 = load i32, ptr %9, align 4, !tbaa !15
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds i32, ptr %284, i64 %286
  store i32 %283, ptr %287, align 4, !tbaa !15
  %288 = load i32, ptr %10, align 4, !tbaa !15
  %289 = load ptr, ptr %15, align 8, !tbaa !5
  %290 = load i32, ptr %10, align 4, !tbaa !15
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds i32, ptr %289, i64 %291
  store i32 %288, ptr %292, align 4, !tbaa !15
  %293 = load double, ptr %21, align 8, !tbaa !18
  %294 = fmul double %293, -1.000000e+00
  store double %294, ptr %21, align 8, !tbaa !18
  br label %298

295:                                              ; preds = %265
  %296 = load i32, ptr %9, align 4, !tbaa !15
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %9, align 4, !tbaa !15
  br label %298

298:                                              ; preds = %295, %273
  br label %261, !llvm.loop !27

299:                                              ; preds = %261
  %300 = load double, ptr %21, align 8, !tbaa !18
  %301 = load ptr, ptr %6, align 8, !tbaa !5
  store double %300, ptr %301, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %302

302:                                              ; preds = %299, %236
  call void @llvm.lifetime.start.p0(i64 56, ptr %22) #7
  invoke void @_ZN7SGTELIB6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(56) %22)
          to label %303 unwind label %354

303:                                              ; preds = %302
  store i32 0, ptr %11, align 4, !tbaa !15
  br label %304

304:                                              ; preds = %444, %303
  %305 = load i32, ptr %11, align 4, !tbaa !15
  %306 = load i32, ptr %7, align 4, !tbaa !15
  %307 = icmp slt i32 %305, %306
  br i1 %307, label %308, label %451

308:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 56, ptr %23) #7
  %309 = load i32, ptr %11, align 4, !tbaa !15
  invoke void @_ZNK7SGTELIB6Matrix7get_colEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %23, ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef %309)
          to label %310 unwind label %358

310:                                              ; preds = %308
  %311 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %22, ptr noundef nonnull align 8 dereferenceable(56) %23)
          to label %312 unwind label %362

312:                                              ; preds = %310
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #7
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %313

313:                                              ; preds = %368, %312
  %314 = load i32, ptr %9, align 4, !tbaa !15
  %315 = load i32, ptr %7, align 4, !tbaa !15
  %316 = icmp slt i32 %314, %315
  br i1 %316, label %317, label %371

317:                                              ; preds = %313
  store i32 0, ptr %10, align 4, !tbaa !15
  br label %318

318:                                              ; preds = %351, %317
  %319 = load i32, ptr %10, align 4, !tbaa !15
  %320 = load i32, ptr %9, align 4, !tbaa !15
  %321 = icmp slt i32 %319, %320
  br i1 %321, label %322, label %367

322:                                              ; preds = %318
  %323 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %8, i32 0, i32 4
  %324 = load ptr, ptr %323, align 8, !tbaa !20
  %325 = load i32, ptr %9, align 4, !tbaa !15
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds ptr, ptr %324, i64 %326
  %328 = load ptr, ptr %327, align 8, !tbaa !5
  %329 = load i32, ptr %10, align 4, !tbaa !15
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds double, ptr %328, i64 %330
  %332 = load double, ptr %331, align 8, !tbaa !18
  %333 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %22, i32 0, i32 4
  %334 = load ptr, ptr %333, align 8, !tbaa !20
  %335 = load i32, ptr %10, align 4, !tbaa !15
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds ptr, ptr %334, i64 %336
  %338 = load ptr, ptr %337, align 8, !tbaa !5
  %339 = getelementptr inbounds double, ptr %338, i64 0
  %340 = load double, ptr %339, align 8, !tbaa !18
  %341 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %22, i32 0, i32 4
  %342 = load ptr, ptr %341, align 8, !tbaa !20
  %343 = load i32, ptr %9, align 4, !tbaa !15
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds ptr, ptr %342, i64 %344
  %346 = load ptr, ptr %345, align 8, !tbaa !5
  %347 = getelementptr inbounds double, ptr %346, i64 0
  %348 = load double, ptr %347, align 8, !tbaa !18
  %349 = fneg double %332
  %350 = call double @llvm.fmuladd.f64(double %349, double %340, double %348)
  store double %350, ptr %347, align 8, !tbaa !18
  br label %351

351:                                              ; preds = %322
  %352 = load i32, ptr %10, align 4, !tbaa !15
  %353 = add nsw i32 %352, 1
  store i32 %353, ptr %10, align 4, !tbaa !15
  br label %318, !llvm.loop !28

354:                                              ; preds = %302
  %355 = landingpad { ptr, i32 }
          cleanup
  %356 = extractvalue { ptr, i32 } %355, 0
  store ptr %356, ptr %16, align 8
  %357 = extractvalue { ptr, i32 } %355, 1
  store i32 %357, ptr %17, align 4
  br label %470

358:                                              ; preds = %308
  %359 = landingpad { ptr, i32 }
          cleanup
  %360 = extractvalue { ptr, i32 } %359, 0
  store ptr %360, ptr %16, align 8
  %361 = extractvalue { ptr, i32 } %359, 1
  store i32 %361, ptr %17, align 4
  br label %366

362:                                              ; preds = %310
  %363 = landingpad { ptr, i32 }
          cleanup
  %364 = extractvalue { ptr, i32 } %363, 0
  store ptr %364, ptr %16, align 8
  %365 = extractvalue { ptr, i32 } %363, 1
  store i32 %365, ptr %17, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #7
  br label %366

366:                                              ; preds = %362, %358
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #7
  br label %469

367:                                              ; preds = %318
  br label %368

368:                                              ; preds = %367
  %369 = load i32, ptr %9, align 4, !tbaa !15
  %370 = add nsw i32 %369, 1
  store i32 %370, ptr %9, align 4, !tbaa !15
  br label %313, !llvm.loop !29

371:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %372 = load i32, ptr %7, align 4, !tbaa !15
  %373 = sub nsw i32 %372, 1
  store i32 %373, ptr %24, align 4, !tbaa !15
  br label %374

374:                                              ; preds = %438, %371
  %375 = load i32, ptr %24, align 4, !tbaa !15
  %376 = icmp sge i32 %375, 0
  br i1 %376, label %378, label %377

377:                                              ; preds = %374
  store i32 34, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %441

378:                                              ; preds = %374
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %379 = load i32, ptr %24, align 4, !tbaa !15
  %380 = add nsw i32 %379, 1
  store i32 %380, ptr %26, align 4, !tbaa !15
  br label %381

381:                                              ; preds = %415, %378
  %382 = load i32, ptr %26, align 4, !tbaa !15
  %383 = load i32, ptr %7, align 4, !tbaa !15
  %384 = icmp slt i32 %382, %383
  br i1 %384, label %386, label %385

385:                                              ; preds = %381
  store i32 37, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %418

386:                                              ; preds = %381
  %387 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %8, i32 0, i32 4
  %388 = load ptr, ptr %387, align 8, !tbaa !20
  %389 = load i32, ptr %24, align 4, !tbaa !15
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds ptr, ptr %388, i64 %390
  %392 = load ptr, ptr %391, align 8, !tbaa !5
  %393 = load i32, ptr %26, align 4, !tbaa !15
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds double, ptr %392, i64 %394
  %396 = load double, ptr %395, align 8, !tbaa !18
  %397 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %22, i32 0, i32 4
  %398 = load ptr, ptr %397, align 8, !tbaa !20
  %399 = load i32, ptr %26, align 4, !tbaa !15
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds ptr, ptr %398, i64 %400
  %402 = load ptr, ptr %401, align 8, !tbaa !5
  %403 = getelementptr inbounds double, ptr %402, i64 0
  %404 = load double, ptr %403, align 8, !tbaa !18
  %405 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %22, i32 0, i32 4
  %406 = load ptr, ptr %405, align 8, !tbaa !20
  %407 = load i32, ptr %24, align 4, !tbaa !15
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds ptr, ptr %406, i64 %408
  %410 = load ptr, ptr %409, align 8, !tbaa !5
  %411 = getelementptr inbounds double, ptr %410, i64 0
  %412 = load double, ptr %411, align 8, !tbaa !18
  %413 = fneg double %396
  %414 = call double @llvm.fmuladd.f64(double %413, double %404, double %412)
  store double %414, ptr %411, align 8, !tbaa !18
  br label %415

415:                                              ; preds = %386
  %416 = load i32, ptr %26, align 4, !tbaa !15
  %417 = add nsw i32 %416, 1
  store i32 %417, ptr %26, align 4, !tbaa !15
  br label %381, !llvm.loop !30

418:                                              ; preds = %385
  %419 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %8, i32 0, i32 4
  %420 = load ptr, ptr %419, align 8, !tbaa !20
  %421 = load i32, ptr %24, align 4, !tbaa !15
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds ptr, ptr %420, i64 %422
  %424 = load ptr, ptr %423, align 8, !tbaa !5
  %425 = load i32, ptr %24, align 4, !tbaa !15
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds double, ptr %424, i64 %426
  %428 = load double, ptr %427, align 8, !tbaa !18
  %429 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %22, i32 0, i32 4
  %430 = load ptr, ptr %429, align 8, !tbaa !20
  %431 = load i32, ptr %24, align 4, !tbaa !15
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds ptr, ptr %430, i64 %432
  %434 = load ptr, ptr %433, align 8, !tbaa !5
  %435 = getelementptr inbounds double, ptr %434, i64 0
  %436 = load double, ptr %435, align 8, !tbaa !18
  %437 = fdiv double %436, %428
  store double %437, ptr %435, align 8, !tbaa !18
  br label %438

438:                                              ; preds = %418
  %439 = load i32, ptr %24, align 4, !tbaa !15
  %440 = add nsw i32 %439, -1
  store i32 %440, ptr %24, align 4, !tbaa !15
  br label %374, !llvm.loop !31

441:                                              ; preds = %377
  %442 = load i32, ptr %11, align 4, !tbaa !15
  invoke void @_ZN7SGTELIB6Matrix7set_colERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %22, i32 noundef %442)
          to label %443 unwind label %447

443:                                              ; preds = %441
  br label %444

444:                                              ; preds = %443
  %445 = load i32, ptr %11, align 4, !tbaa !15
  %446 = add nsw i32 %445, 1
  store i32 %446, ptr %11, align 4, !tbaa !15
  br label %304, !llvm.loop !32

447:                                              ; preds = %441
  %448 = landingpad { ptr, i32 }
          cleanup
  %449 = extractvalue { ptr, i32 } %448, 0
  store ptr %449, ptr %16, align 8
  %450 = extractvalue { ptr, i32 } %448, 1
  store i32 %450, ptr %17, align 4
  br label %469

451:                                              ; preds = %304
  %452 = load ptr, ptr %15, align 8, !tbaa !5
  %453 = icmp eq ptr %452, null
  br i1 %453, label %455, label %454

454:                                              ; preds = %451
  call void @_ZdaPv(ptr noundef %452) #9
  br label %455

455:                                              ; preds = %454, %451
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #7
  %456 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %28, i32 0, i32 1
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %27, ptr noundef nonnull align 8 dereferenceable(32) %456, ptr noundef @.str.115)
          to label %457 unwind label %460

457:                                              ; preds = %455
  invoke void @_ZN7SGTELIB6Matrix8set_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %458 unwind label %464

458:                                              ; preds = %457
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  store i1 true, ptr %18, align 1
  store i32 1, ptr %25, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %22) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %22) #7
  %459 = load i1, ptr %18, align 1
  br i1 %459, label %472, label %471

460:                                              ; preds = %455
  %461 = landingpad { ptr, i32 }
          cleanup
  %462 = extractvalue { ptr, i32 } %461, 0
  store ptr %462, ptr %16, align 8
  %463 = extractvalue { ptr, i32 } %461, 1
  store i32 %463, ptr %17, align 4
  br label %468

464:                                              ; preds = %457
  %465 = landingpad { ptr, i32 }
          cleanup
  %466 = extractvalue { ptr, i32 } %465, 0
  store ptr %466, ptr %16, align 8
  %467 = extractvalue { ptr, i32 } %465, 1
  store i32 %467, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  br label %468

468:                                              ; preds = %464, %460
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  br label %469

469:                                              ; preds = %468, %447, %366
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %22) #7
  br label %470

470:                                              ; preds = %469, %354
  call void @llvm.lifetime.end.p0(i64 56, ptr %22) #7
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #7
  br label %473

471:                                              ; preds = %458
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #7
  br label %472

472:                                              ; preds = %471, %458
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  ret void

473:                                              ; preds = %470, %235, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %474

474:                                              ; preds = %473
  %475 = load ptr, ptr %16, align 8
  %476 = load i32, ptr %17, align 4
  %477 = insertvalue { ptr, i32 } poison, ptr %475, 0
  %478 = insertvalue { ptr, i32 } %477, i32 %476, 1
  resume { ptr, i32 } %478
}

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

declare void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr, ptr, i32, i32)

declare void @_ZN7SGTELIB6MatrixC1Ev(ptr)

declare void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr, ptr)

declare void @_ZN7SGTELIB6MatrixD1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 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 = { nobuiltin 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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, !14, i64 40}
!10 = !{!"_ZTSN7SGTELIB6MatrixE", !11, i64 8, !14, i64 40, !14, i64 44, !6, i64 48}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!14, !14, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = !{!10, !6, i64 48}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.SGTELIB::Matrix" = type { ptr, %"class.std::__cxx11::basic_string", i32, i32, ptr }
%"class.std::allocator" = type { i8 }

@.str.114 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7SGTELIB6Matrix8set_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7SGTELIB6Matrix7set_colERKS0_i(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7SGTELIB6Matrix7get_colEi(ptr dead_on_unwind noalias writable sret(%"class.SGTELIB::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7SGTELIB6Matrix10lu_inverseEPd(ptr dead_on_unwind noalias writable sret(%"class.SGTELIB::Matrix") align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef writeonly %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.SGTELIB::Matrix", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"class.SGTELIB::Matrix", align 8
  %8 = alloca %"class.SGTELIB::Matrix", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = getelementptr inbounds i8, ptr %1, i64 40
  %11 = load i32, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #8
  call void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(56) %1)
  %12 = sext i32 %11 to i64
  %13 = icmp slt i32 %11, 0
  %14 = shl nsw i64 %12, 2
  %15 = select i1 %13, i64 -1, i64 %14
  %16 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %15) #9
          to label %.preheader172 unwind label %28

.preheader172:                                    ; preds = %3
  %17 = icmp sgt i32 %11, 0
  br i1 %17, label %.lr.ph.preheader, label %.preheader171.thread

.preheader171.thread:                             ; preds = %.preheader172
  %18 = add i32 %11, -1
  br label %._crit_edge187

.lr.ph.preheader:                                 ; preds = %.preheader172
  %wide.trip.count = zext nneg i32 %11 to i64
  %min.iters.check = icmp ult i32 %11, 8
  br i1 %min.iters.check, label %.lr.ph.preheader297, label %vector.ph

.lr.ph.preheader297:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %19 = getelementptr inbounds i32, ptr %16, i64 %index
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  store <4 x i32> %vec.ind, ptr %19, align 4, !tbaa !14
  store <4 x i32> %step.add, ptr %20, align 4, !tbaa !14
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %21 = icmp eq i64 %index.next, %n.vec
  br i1 %21, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader171, label %.lr.ph.preheader297

.preheader171:                                    ; preds = %.lr.ph, %middle.block
  %22 = add nsw i32 %11, -1
  %.not276 = icmp eq i32 %11, 1
  br i1 %.not276, label %._crit_edge187, label %.preheader170.lr.ph

.preheader170.lr.ph:                              ; preds = %.preheader171
  %23 = getelementptr inbounds i8, ptr %4, i64 48
  %wide.trip.count238 = zext nneg i32 %22 to i64
  %wide.trip.count223 = zext nneg i32 %11 to i64
  %wide.trip.count235 = zext nneg i32 %11 to i64
  %24 = shl nuw nsw i64 %wide.trip.count, 3
  %25 = add nsw i64 %wide.trip.count, -1
  br label %.preheader170

.lr.ph:                                           ; preds = %.lr.ph.preheader297, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader297 ]
  %26 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv
  %27 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %27, ptr %26, align 4, !tbaa !14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader171, label %.lr.ph, !llvm.loop !19

28:                                               ; preds = %3
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %252

.loopexit:                                        ; preds = %._crit_edge181.us
  %indvars.iv.next226 = add nuw nsw i64 %indvars.iv225, 1
  %exitcond239.not = icmp eq i64 %indvars.iv.next219, %wide.trip.count238
  br i1 %exitcond239.not, label %._crit_edge187, label %.preheader170, !llvm.loop !20

.preheader170:                                    ; preds = %.preheader170.lr.ph, %.loopexit
  %indvars.iv225 = phi i64 [ 1, %.preheader170.lr.ph ], [ %indvars.iv.next226, %.loopexit ]
  %indvars.iv218 = phi i64 [ 0, %.preheader170.lr.ph ], [ %indvars.iv.next219, %.loopexit ]
  %.0141186 = phi i32 [ 0, %.preheader170.lr.ph ], [ %.1142.lcssa, %.loopexit ]
  %30 = xor i64 %indvars.iv218, -1
  %31 = add nsw i64 %30, %wide.trip.count
  %32 = shl i64 %indvars.iv218, 3
  %33 = add i64 %32, 8
  %34 = icmp slt i64 %indvars.iv218, %12
  br i1 %34, label %.lr.ph177, label %._crit_edge

.lr.ph177:                                        ; preds = %.preheader170
  %35 = load ptr, ptr %23, align 8, !tbaa !21
  %36 = getelementptr inbounds ptr, ptr %35, i64 %indvars.iv218
  %37 = load ptr, ptr %36, align 8, !tbaa !22
  br label %38

38:                                               ; preds = %.lr.ph177, %38
  %indvars.iv220 = phi i64 [ %indvars.iv218, %.lr.ph177 ], [ %indvars.iv.next221, %38 ]
  %.0138175 = phi double [ -1.000000e+00, %.lr.ph177 ], [ %.1139, %38 ]
  %.1142174 = phi i32 [ %.0141186, %.lr.ph177 ], [ %.2143, %38 ]
  %39 = getelementptr inbounds double, ptr %37, i64 %indvars.iv220
  %40 = load double, ptr %39, align 8, !tbaa !23
  %41 = fcmp olt double %40, 0.000000e+00
  %42 = fneg double %40
  %.0140 = select i1 %41, double %42, double %40
  %43 = fcmp ogt double %.0140, %.0138175
  %44 = trunc nuw nsw i64 %indvars.iv220 to i32
  %.2143 = select i1 %43, i32 %44, i32 %.1142174
  %.1139 = select i1 %43, double %.0140, double %.0138175
  %indvars.iv.next221 = add nuw nsw i64 %indvars.iv220, 1
  %exitcond224.not = icmp eq i64 %indvars.iv.next221, %wide.trip.count223
  br i1 %exitcond224.not, label %._crit_edge, label %38, !llvm.loop !25

._crit_edge:                                      ; preds = %38, %.preheader170
  %.1142.lcssa = phi i32 [ %.0141186, %.preheader170 ], [ %.2143, %38 ]
  %45 = zext i32 %.1142.lcssa to i64
  %.not164 = icmp eq i64 %indvars.iv218, %45
  br i1 %.not164, label %.lr.ph184, label %46

46:                                               ; preds = %._crit_edge
  %47 = trunc nuw nsw i64 %indvars.iv218 to i32
  call void @_ZN7SGTELIB6Matrix9swap_rowsEii(ptr noundef nonnull align 8 dereferenceable(56) %4, i32 noundef %.1142.lcssa, i32 noundef %47)
  %48 = sext i32 %.1142.lcssa to i64
  %49 = getelementptr inbounds i32, ptr %16, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !14
  %51 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv218
  %52 = load i32, ptr %51, align 4, !tbaa !14
  store i32 %52, ptr %49, align 4, !tbaa !14
  store i32 %50, ptr %51, align 4, !tbaa !14
  br label %.lr.ph184

.lr.ph184:                                        ; preds = %._crit_edge, %46
  %indvars.iv.next219 = add nuw nsw i64 %indvars.iv218, 1
  %53 = load ptr, ptr %23, align 8, !tbaa !21
  %54 = getelementptr inbounds ptr, ptr %53, i64 %indvars.iv218
  %55 = load ptr, ptr %54, align 8, !tbaa !22
  %56 = getelementptr inbounds double, ptr %55, i64 %indvars.iv218
  %scevgep280 = getelementptr i8, ptr %55, i64 %33
  %scevgep281 = getelementptr i8, ptr %55, i64 %24
  %min.iters.check284 = icmp ult i64 %31, 4
  %n.vec287 = and i64 %31, -4
  %ind.end = add i64 %indvars.iv225, %n.vec287
  %cmp.n295 = icmp eq i64 %31, %n.vec287
  br label %.lr.ph180.us

.lr.ph180.us:                                     ; preds = %._crit_edge181.us, %.lr.ph184
  %indvars.iv232 = phi i64 [ %indvars.iv.next233, %._crit_edge181.us ], [ %indvars.iv225, %.lr.ph184 ]
  %57 = getelementptr inbounds ptr, ptr %53, i64 %indvars.iv232
  %58 = load ptr, ptr %57, align 8, !tbaa !22
  %59 = getelementptr inbounds double, ptr %58, i64 %indvars.iv218
  %60 = load double, ptr %59, align 8, !tbaa !23
  %61 = load double, ptr %56, align 8, !tbaa !23
  %62 = fdiv double %60, %61
  store double %62, ptr %59, align 8, !tbaa !23
  %63 = fneg double %62
  br i1 %min.iters.check284, label %scalar.ph283.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph180.us
  %scevgep = getelementptr i8, ptr %58, i64 %33
  %scevgep279 = getelementptr i8, ptr %58, i64 %24
  %bound0 = icmp ult ptr %scevgep, %scevgep281
  %bound1 = icmp ult ptr %scevgep280, %scevgep279
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph283.preheader, label %vector.ph285

vector.ph285:                                     ; preds = %vector.memcheck
  %broadcast.splatinsert = insertelement <2 x double> poison, double %63, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body289

vector.body289:                                   ; preds = %vector.body289, %vector.ph285
  %index290 = phi i64 [ 0, %vector.ph285 ], [ %index.next294, %vector.body289 ]
  %offset.idx = add i64 %indvars.iv225, %index290
  %64 = getelementptr inbounds double, ptr %55, i64 %offset.idx
  %65 = getelementptr inbounds i8, ptr %64, i64 16
  %wide.load = load <2 x double>, ptr %64, align 8, !tbaa !23, !alias.scope !26
  %wide.load291 = load <2 x double>, ptr %65, align 8, !tbaa !23, !alias.scope !26
  %66 = getelementptr inbounds double, ptr %58, i64 %offset.idx
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  %wide.load292 = load <2 x double>, ptr %66, align 8, !tbaa !23, !alias.scope !29, !noalias !26
  %wide.load293 = load <2 x double>, ptr %67, align 8, !tbaa !23, !alias.scope !29, !noalias !26
  %68 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %wide.load292)
  %69 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load291, <2 x double> %wide.load293)
  store <2 x double> %68, ptr %66, align 8, !tbaa !23, !alias.scope !29, !noalias !26
  store <2 x double> %69, ptr %67, align 8, !tbaa !23, !alias.scope !29, !noalias !26
  %index.next294 = add nuw i64 %index290, 4
  %70 = icmp eq i64 %index.next294, %n.vec287
  br i1 %70, label %middle.block282, label %vector.body289, !llvm.loop !31

middle.block282:                                  ; preds = %vector.body289
  br i1 %cmp.n295, label %._crit_edge181.us, label %scalar.ph283.preheader

scalar.ph283.preheader:                           ; preds = %middle.block282, %vector.memcheck, %.lr.ph180.us
  %indvars.iv227.ph = phi i64 [ %indvars.iv225, %vector.memcheck ], [ %indvars.iv225, %.lr.ph180.us ], [ %ind.end, %middle.block282 ]
  %71 = sub i64 %wide.trip.count, %indvars.iv227.ph
  %xtraiter = and i64 %71, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph283.prol.loopexit, label %scalar.ph283.prol

scalar.ph283.prol:                                ; preds = %scalar.ph283.preheader
  %72 = getelementptr inbounds double, ptr %55, i64 %indvars.iv227.ph
  %73 = load double, ptr %72, align 8, !tbaa !23
  %74 = getelementptr inbounds double, ptr %58, i64 %indvars.iv227.ph
  %75 = load double, ptr %74, align 8, !tbaa !23
  %76 = call double @llvm.fmuladd.f64(double %63, double %73, double %75)
  store double %76, ptr %74, align 8, !tbaa !23
  %indvars.iv.next228.prol = add nuw nsw i64 %indvars.iv227.ph, 1
  br label %scalar.ph283.prol.loopexit

scalar.ph283.prol.loopexit:                       ; preds = %scalar.ph283.prol, %scalar.ph283.preheader
  %indvars.iv227.unr = phi i64 [ %indvars.iv227.ph, %scalar.ph283.preheader ], [ %indvars.iv.next228.prol, %scalar.ph283.prol ]
  %77 = icmp eq i64 %indvars.iv227.ph, %25
  br i1 %77, label %._crit_edge181.us, label %scalar.ph283

scalar.ph283:                                     ; preds = %scalar.ph283.prol.loopexit, %scalar.ph283
  %indvars.iv227 = phi i64 [ %indvars.iv.next228.1, %scalar.ph283 ], [ %indvars.iv227.unr, %scalar.ph283.prol.loopexit ]
  %78 = getelementptr inbounds double, ptr %55, i64 %indvars.iv227
  %79 = load double, ptr %78, align 8, !tbaa !23
  %80 = getelementptr inbounds double, ptr %58, i64 %indvars.iv227
  %81 = load double, ptr %80, align 8, !tbaa !23
  %82 = call double @llvm.fmuladd.f64(double %63, double %79, double %81)
  store double %82, ptr %80, align 8, !tbaa !23
  %indvars.iv.next228 = add nuw nsw i64 %indvars.iv227, 1
  %83 = getelementptr inbounds double, ptr %55, i64 %indvars.iv.next228
  %84 = load double, ptr %83, align 8, !tbaa !23
  %85 = getelementptr inbounds double, ptr %58, i64 %indvars.iv.next228
  %86 = load double, ptr %85, align 8, !tbaa !23
  %87 = call double @llvm.fmuladd.f64(double %63, double %84, double %86)
  store double %87, ptr %85, align 8, !tbaa !23
  %indvars.iv.next228.1 = add nuw nsw i64 %indvars.iv227, 2
  %exitcond231.not.1 = icmp eq i64 %indvars.iv.next228.1, %wide.trip.count235
  br i1 %exitcond231.not.1, label %._crit_edge181.us, label %scalar.ph283, !llvm.loop !32

._crit_edge181.us:                                ; preds = %scalar.ph283.prol.loopexit, %scalar.ph283, %middle.block282
  %indvars.iv.next233 = add nuw nsw i64 %indvars.iv232, 1
  %exitcond236.not = icmp eq i64 %indvars.iv.next233, %wide.trip.count235
  br i1 %exitcond236.not, label %.loopexit, label %.lr.ph180.us, !llvm.loop !33

._crit_edge187:                                   ; preds = %.loopexit, %.preheader171.thread, %.preheader171
  %88 = phi i32 [ %18, %.preheader171.thread ], [ %22, %.preheader171 ], [ %22, %.loopexit ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.114, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %89 unwind label %119

89:                                               ; preds = %._crit_edge187
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef %11, i32 noundef %11)
          to label %90 unwind label %121

90:                                               ; preds = %89
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br i1 %17, label %.lr.ph191, label %._crit_edge192.thread

.lr.ph191:                                        ; preds = %90
  %91 = getelementptr inbounds i8, ptr %0, i64 48
  %92 = load ptr, ptr %91, align 8, !tbaa !21
  %wide.trip.count243 = zext nneg i32 %11 to i64
  %xtraiter298 = and i64 %wide.trip.count243, 3
  %93 = icmp ult i32 %11, 4
  br i1 %93, label %._crit_edge192.unr-lcssa, label %.lr.ph191.new

.lr.ph191.new:                                    ; preds = %.lr.ph191
  %unroll_iter = and i64 %wide.trip.count243, 2147483644
  br label %94

94:                                               ; preds = %94, %.lr.ph191.new
  %indvars.iv240 = phi i64 [ 0, %.lr.ph191.new ], [ %indvars.iv.next241.3, %94 ]
  %niter = phi i64 [ 0, %.lr.ph191.new ], [ %niter.next.3, %94 ]
  %95 = getelementptr inbounds ptr, ptr %92, i64 %indvars.iv240
  %96 = load ptr, ptr %95, align 8, !tbaa !22
  %97 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv240
  %98 = load i32, ptr %97, align 4, !tbaa !14
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %96, i64 %99
  store double 1.000000e+00, ptr %100, align 8, !tbaa !23
  %indvars.iv.next241 = or disjoint i64 %indvars.iv240, 1
  %101 = getelementptr inbounds ptr, ptr %92, i64 %indvars.iv.next241
  %102 = load ptr, ptr %101, align 8, !tbaa !22
  %103 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv.next241
  %104 = load i32, ptr %103, align 4, !tbaa !14
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %102, i64 %105
  store double 1.000000e+00, ptr %106, align 8, !tbaa !23
  %indvars.iv.next241.1 = or disjoint i64 %indvars.iv240, 2
  %107 = getelementptr inbounds ptr, ptr %92, i64 %indvars.iv.next241.1
  %108 = load ptr, ptr %107, align 8, !tbaa !22
  %109 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv.next241.1
  %110 = load i32, ptr %109, align 4, !tbaa !14
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds double, ptr %108, i64 %111
  store double 1.000000e+00, ptr %112, align 8, !tbaa !23
  %indvars.iv.next241.2 = or disjoint i64 %indvars.iv240, 3
  %113 = getelementptr inbounds ptr, ptr %92, i64 %indvars.iv.next241.2
  %114 = load ptr, ptr %113, align 8, !tbaa !22
  %115 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv.next241.2
  %116 = load i32, ptr %115, align 4, !tbaa !14
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds double, ptr %114, i64 %117
  store double 1.000000e+00, ptr %118, align 8, !tbaa !23
  %indvars.iv.next241.3 = add nuw nsw i64 %indvars.iv240, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge192.unr-lcssa, label %94, !llvm.loop !34

119:                                              ; preds = %._crit_edge187
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %123

121:                                              ; preds = %89
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  br label %123

123:                                              ; preds = %121, %119
  %.pn = phi { ptr, i32 } [ %122, %121 ], [ %120, %119 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %252

._crit_edge192.unr-lcssa:                         ; preds = %94, %.lr.ph191
  %indvars.iv240.unr = phi i64 [ 0, %.lr.ph191 ], [ %indvars.iv.next241.3, %94 ]
  %lcmp.mod299.not = icmp eq i64 %xtraiter298, 0
  br i1 %lcmp.mod299.not, label %._crit_edge192, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge192.unr-lcssa, %.epil.preheader
  %indvars.iv240.epil = phi i64 [ %indvars.iv.next241.epil, %.epil.preheader ], [ %indvars.iv240.unr, %._crit_edge192.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge192.unr-lcssa ]
  %124 = getelementptr inbounds ptr, ptr %92, i64 %indvars.iv240.epil
  %125 = load ptr, ptr %124, align 8, !tbaa !22
  %126 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv240.epil
  %127 = load i32, ptr %126, align 4, !tbaa !14
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %125, i64 %128
  store double 1.000000e+00, ptr %129, align 8, !tbaa !23
  %indvars.iv.next241.epil = add nuw nsw i64 %indvars.iv240.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter298
  br i1 %epil.iter.cmp.not, label %._crit_edge192, label %.epil.preheader, !llvm.loop !35

._crit_edge192:                                   ; preds = %.epil.preheader, %._crit_edge192.unr-lcssa
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %171, label %.preheader169

._crit_edge192.thread:                            ; preds = %90
  %.not273 = icmp eq ptr %2, null
  br i1 %.not273, label %171, label %._crit_edge200

.preheader169:                                    ; preds = %._crit_edge192
  br i1 %17, label %.lr.ph195, label %._crit_edge200

.lr.ph195:                                        ; preds = %.preheader169
  %130 = getelementptr inbounds i8, ptr %4, i64 48
  %131 = load ptr, ptr %130, align 8, !tbaa !21
  %xtraiter301 = and i64 %wide.trip.count243, 3
  %132 = icmp ult i32 %11, 4
  br i1 %132, label %.preheader168.unr-lcssa, label %.lr.ph195.new

.lr.ph195.new:                                    ; preds = %.lr.ph195
  %unroll_iter305 = and i64 %wide.trip.count243, 2147483644
  br label %138

.preheader168.unr-lcssa:                          ; preds = %138, %.lr.ph195
  %.lcssa296.ph = phi double [ poison, %.lr.ph195 ], [ %158, %138 ]
  %indvars.iv245.unr = phi i64 [ 0, %.lr.ph195 ], [ %indvars.iv.next246.3, %138 ]
  %.0122194.unr = phi double [ 1.000000e+00, %.lr.ph195 ], [ %158, %138 ]
  %lcmp.mod303.not = icmp eq i64 %xtraiter301, 0
  br i1 %lcmp.mod303.not, label %.preheader168, label %.epil.preheader300

.epil.preheader300:                               ; preds = %.preheader168.unr-lcssa, %.epil.preheader300
  %indvars.iv245.epil = phi i64 [ %indvars.iv.next246.epil, %.epil.preheader300 ], [ %indvars.iv245.unr, %.preheader168.unr-lcssa ]
  %.0122194.epil = phi double [ %137, %.epil.preheader300 ], [ %.0122194.unr, %.preheader168.unr-lcssa ]
  %epil.iter302 = phi i64 [ %epil.iter302.next, %.epil.preheader300 ], [ 0, %.preheader168.unr-lcssa ]
  %133 = getelementptr inbounds ptr, ptr %131, i64 %indvars.iv245.epil
  %134 = load ptr, ptr %133, align 8, !tbaa !22
  %135 = getelementptr inbounds double, ptr %134, i64 %indvars.iv245.epil
  %136 = load double, ptr %135, align 8, !tbaa !23
  %137 = fmul double %.0122194.epil, %136
  %indvars.iv.next246.epil = add nuw nsw i64 %indvars.iv245.epil, 1
  %epil.iter302.next = add i64 %epil.iter302, 1
  %epil.iter302.cmp.not = icmp eq i64 %epil.iter302.next, %xtraiter301
  br i1 %epil.iter302.cmp.not, label %.preheader168, label %.epil.preheader300, !llvm.loop !37

.preheader168:                                    ; preds = %.epil.preheader300, %.preheader168.unr-lcssa
  %.lcssa296 = phi double [ %.lcssa296.ph, %.preheader168.unr-lcssa ], [ %137, %.epil.preheader300 ]
  br i1 %17, label %.lr.ph199, label %._crit_edge200

138:                                              ; preds = %138, %.lr.ph195.new
  %indvars.iv245 = phi i64 [ 0, %.lr.ph195.new ], [ %indvars.iv.next246.3, %138 ]
  %.0122194 = phi double [ 1.000000e+00, %.lr.ph195.new ], [ %158, %138 ]
  %niter306 = phi i64 [ 0, %.lr.ph195.new ], [ %niter306.next.3, %138 ]
  %139 = getelementptr inbounds ptr, ptr %131, i64 %indvars.iv245
  %140 = load ptr, ptr %139, align 8, !tbaa !22
  %141 = getelementptr inbounds double, ptr %140, i64 %indvars.iv245
  %142 = load double, ptr %141, align 8, !tbaa !23
  %143 = fmul double %.0122194, %142
  %indvars.iv.next246 = or disjoint i64 %indvars.iv245, 1
  %144 = getelementptr inbounds ptr, ptr %131, i64 %indvars.iv.next246
  %145 = load ptr, ptr %144, align 8, !tbaa !22
  %146 = getelementptr inbounds double, ptr %145, i64 %indvars.iv.next246
  %147 = load double, ptr %146, align 8, !tbaa !23
  %148 = fmul double %143, %147
  %indvars.iv.next246.1 = or disjoint i64 %indvars.iv245, 2
  %149 = getelementptr inbounds ptr, ptr %131, i64 %indvars.iv.next246.1
  %150 = load ptr, ptr %149, align 8, !tbaa !22
  %151 = getelementptr inbounds double, ptr %150, i64 %indvars.iv.next246.1
  %152 = load double, ptr %151, align 8, !tbaa !23
  %153 = fmul double %148, %152
  %indvars.iv.next246.2 = or disjoint i64 %indvars.iv245, 3
  %154 = getelementptr inbounds ptr, ptr %131, i64 %indvars.iv.next246.2
  %155 = load ptr, ptr %154, align 8, !tbaa !22
  %156 = getelementptr inbounds double, ptr %155, i64 %indvars.iv.next246.2
  %157 = load double, ptr %156, align 8, !tbaa !23
  %158 = fmul double %153, %157
  %indvars.iv.next246.3 = add nuw nsw i64 %indvars.iv245, 4
  %niter306.next.3 = add i64 %niter306, 4
  %niter306.ncmp.3 = icmp eq i64 %niter306.next.3, %unroll_iter305
  br i1 %niter306.ncmp.3, label %.preheader168.unr-lcssa, label %138, !llvm.loop !38

.lr.ph199:                                        ; preds = %.preheader168, %169
  %.1198 = phi double [ %.2, %169 ], [ %.lcssa296, %.preheader168 ]
  %.5137197 = phi i32 [ %.6, %169 ], [ 0, %.preheader168 ]
  %159 = sext i32 %.5137197 to i64
  %160 = getelementptr inbounds i32, ptr %16, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !14
  %.not163 = icmp eq i32 %161, %.5137197
  br i1 %.not163, label %167, label %162

162:                                              ; preds = %.lr.ph199
  %163 = sext i32 %161 to i64
  %164 = getelementptr inbounds i32, ptr %16, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !14
  store i32 %165, ptr %160, align 4, !tbaa !14
  store i32 %161, ptr %164, align 4, !tbaa !14
  %166 = fneg double %.1198
  br label %169

167:                                              ; preds = %.lr.ph199
  %168 = add nsw i32 %.5137197, 1
  br label %169

169:                                              ; preds = %167, %162
  %.6 = phi i32 [ %.5137197, %162 ], [ %168, %167 ]
  %.2 = phi double [ %166, %162 ], [ %.1198, %167 ]
  %170 = icmp slt i32 %.6, %11
  br i1 %170, label %.lr.ph199, label %._crit_edge200, !llvm.loop !39

._crit_edge200:                                   ; preds = %169, %._crit_edge192.thread, %.preheader169, %.preheader168
  %.1.lcssa = phi double [ %.lcssa296, %.preheader168 ], [ 1.000000e+00, %.preheader169 ], [ 1.000000e+00, %._crit_edge192.thread ], [ %.2, %169 ]
  store double %.1.lcssa, ptr %2, align 8, !tbaa !23
  br label %171

171:                                              ; preds = %._crit_edge192.thread, %._crit_edge200, %._crit_edge192
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #8
  invoke void @_ZN7SGTELIB6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %.preheader167 unwind label %204

.preheader167:                                    ; preds = %171
  br i1 %17, label %.lr.ph214, label %._crit_edge215

.lr.ph214:                                        ; preds = %.preheader167
  %172 = getelementptr inbounds i8, ptr %4, i64 48
  %173 = getelementptr inbounds i8, ptr %7, i64 48
  %174 = zext nneg i32 %11 to i64
  %175 = zext i32 %88 to i64
  %invariant.op = add nsw i64 %12, -1
  br label %176

176:                                              ; preds = %.lr.ph214, %238
  %.1145213 = phi i32 [ 0, %.lr.ph214 ], [ %239, %238 ]
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #8
  invoke void @_ZNK7SGTELIB6Matrix7get_colEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %8, ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef %.1145213)
          to label %177 unwind label %206

177:                                              ; preds = %176
  %178 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %.preheader165.lr.ph unwind label %208

.preheader165.lr.ph:                              ; preds = %177
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #8
  %179 = load ptr, ptr %172, align 8
  %180 = load ptr, ptr %173, align 8
  br label %.preheader165

.preheader.lr.ph:                                 ; preds = %._crit_edge204
  %181 = load ptr, ptr %172, align 8
  %182 = load ptr, ptr %173, align 8
  br label %.preheader

.preheader165:                                    ; preds = %.preheader165.lr.ph, %._crit_edge204
  %indvars.iv255 = phi i64 [ 0, %.preheader165.lr.ph ], [ %indvars.iv.next256, %._crit_edge204 ]
  %.not216 = icmp eq i64 %indvars.iv255, 0
  br i1 %.not216, label %._crit_edge204, label %.lr.ph203

.lr.ph203:                                        ; preds = %.preheader165
  %183 = getelementptr inbounds ptr, ptr %179, i64 %indvars.iv255
  %184 = load ptr, ptr %183, align 8, !tbaa !22
  %185 = getelementptr inbounds ptr, ptr %180, i64 %indvars.iv255
  %186 = load ptr, ptr %185, align 8, !tbaa !22
  %.promoted = load double, ptr %186, align 8, !tbaa !23
  %xtraiter308 = and i64 %indvars.iv255, 1
  %187 = icmp eq i64 %indvars.iv255, 1
  br i1 %187, label %._crit_edge204.loopexit.unr-lcssa, label %.lr.ph203.new

.lr.ph203.new:                                    ; preds = %.lr.ph203
  %unroll_iter311 = and i64 %indvars.iv255, 9223372036854775806
  br label %188

188:                                              ; preds = %188, %.lr.ph203.new
  %indvars.iv250 = phi i64 [ 0, %.lr.ph203.new ], [ %indvars.iv.next251.1, %188 ]
  %189 = phi double [ %.promoted, %.lr.ph203.new ], [ %203, %188 ]
  %niter312 = phi i64 [ 0, %.lr.ph203.new ], [ %niter312.next.1, %188 ]
  %190 = getelementptr inbounds double, ptr %184, i64 %indvars.iv250
  %191 = load double, ptr %190, align 8, !tbaa !23
  %192 = getelementptr inbounds ptr, ptr %180, i64 %indvars.iv250
  %193 = load ptr, ptr %192, align 8, !tbaa !22
  %194 = load double, ptr %193, align 8, !tbaa !23
  %195 = fneg double %191
  %196 = call double @llvm.fmuladd.f64(double %195, double %194, double %189)
  store double %196, ptr %186, align 8, !tbaa !23
  %indvars.iv.next251 = or disjoint i64 %indvars.iv250, 1
  %197 = getelementptr inbounds double, ptr %184, i64 %indvars.iv.next251
  %198 = load double, ptr %197, align 8, !tbaa !23
  %199 = getelementptr inbounds ptr, ptr %180, i64 %indvars.iv.next251
  %200 = load ptr, ptr %199, align 8, !tbaa !22
  %201 = load double, ptr %200, align 8, !tbaa !23
  %202 = fneg double %198
  %203 = call double @llvm.fmuladd.f64(double %202, double %201, double %196)
  store double %203, ptr %186, align 8, !tbaa !23
  %indvars.iv.next251.1 = add nuw nsw i64 %indvars.iv250, 2
  %niter312.next.1 = add i64 %niter312, 2
  %niter312.ncmp.1 = icmp eq i64 %niter312.next.1, %unroll_iter311
  br i1 %niter312.ncmp.1, label %._crit_edge204.loopexit.unr-lcssa, label %188, !llvm.loop !40

204:                                              ; preds = %171
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %251

206:                                              ; preds = %176
  %207 = landingpad { ptr, i32 }
          cleanup
  br label %210

208:                                              ; preds = %177
  %209 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #8
  br label %210

210:                                              ; preds = %208, %206
  %.pn157 = phi { ptr, i32 } [ %209, %208 ], [ %207, %206 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #8
  br label %250

._crit_edge204.loopexit.unr-lcssa:                ; preds = %188, %.lr.ph203
  %indvars.iv250.unr = phi i64 [ 0, %.lr.ph203 ], [ %indvars.iv.next251.1, %188 ]
  %.unr = phi double [ %.promoted, %.lr.ph203 ], [ %203, %188 ]
  %lcmp.mod310.not = icmp eq i64 %xtraiter308, 0
  br i1 %lcmp.mod310.not, label %._crit_edge204, label %._crit_edge204.loopexit.epilog-lcssa

._crit_edge204.loopexit.epilog-lcssa:             ; preds = %._crit_edge204.loopexit.unr-lcssa
  %211 = getelementptr inbounds double, ptr %184, i64 %indvars.iv250.unr
  %212 = load double, ptr %211, align 8, !tbaa !23
  %213 = getelementptr inbounds ptr, ptr %180, i64 %indvars.iv250.unr
  %214 = load ptr, ptr %213, align 8, !tbaa !22
  %215 = load double, ptr %214, align 8, !tbaa !23
  %216 = fneg double %212
  %217 = call double @llvm.fmuladd.f64(double %216, double %215, double %.unr)
  store double %217, ptr %186, align 8, !tbaa !23
  br label %._crit_edge204

._crit_edge204:                                   ; preds = %._crit_edge204.loopexit.epilog-lcssa, %._crit_edge204.loopexit.unr-lcssa, %.preheader165
  %indvars.iv.next256 = add nuw nsw i64 %indvars.iv255, 1
  %exitcond259.not = icmp eq i64 %indvars.iv.next256, %174
  br i1 %exitcond259.not, label %.preheader.lr.ph, label %.preheader165, !llvm.loop !41

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge209
  %indvars.iv265 = phi i64 [ %175, %.preheader.lr.ph ], [ %indvars.iv.next266, %._crit_edge209 ]
  %indvars.iv260 = phi i64 [ %174, %.preheader.lr.ph ], [ %indvars.iv.next261, %._crit_edge209 ]
  %218 = icmp slt i64 %indvars.iv265, %invariant.op
  %219 = getelementptr inbounds ptr, ptr %181, i64 %indvars.iv265
  %220 = load ptr, ptr %219, align 8, !tbaa !22
  %221 = getelementptr inbounds ptr, ptr %182, i64 %indvars.iv265
  %222 = load ptr, ptr %221, align 8, !tbaa !22
  %.promoted210 = load double, ptr %222, align 8, !tbaa !23
  br i1 %218, label %.lr.ph208, label %._crit_edge209

._crit_edge212:                                   ; preds = %._crit_edge209
  invoke void @_ZN7SGTELIB6Matrix7set_colERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %.1145213)
          to label %238 unwind label %240

._crit_edge209:                                   ; preds = %.lr.ph208, %.preheader
  %223 = phi double [ %.promoted210, %.preheader ], [ %235, %.lr.ph208 ]
  %224 = getelementptr inbounds double, ptr %220, i64 %indvars.iv265
  %225 = load double, ptr %224, align 8, !tbaa !23
  %226 = fdiv double %223, %225
  store double %226, ptr %222, align 8, !tbaa !23
  %indvars.iv.next266 = add nsw i64 %indvars.iv265, -1
  %227 = icmp sgt i64 %indvars.iv265, 0
  %indvars.iv.next261 = add nsw i64 %indvars.iv260, -1
  br i1 %227, label %.preheader, label %._crit_edge212, !llvm.loop !42

.lr.ph208:                                        ; preds = %.preheader, %.lr.ph208
  %indvars.iv262 = phi i64 [ %indvars.iv.next263, %.lr.ph208 ], [ %indvars.iv260, %.preheader ]
  %228 = phi double [ %235, %.lr.ph208 ], [ %.promoted210, %.preheader ]
  %229 = getelementptr inbounds double, ptr %220, i64 %indvars.iv262
  %230 = load double, ptr %229, align 8, !tbaa !23
  %231 = getelementptr inbounds ptr, ptr %182, i64 %indvars.iv262
  %232 = load ptr, ptr %231, align 8, !tbaa !22
  %233 = load double, ptr %232, align 8, !tbaa !23
  %234 = fneg double %230
  %235 = call double @llvm.fmuladd.f64(double %234, double %233, double %228)
  store double %235, ptr %222, align 8, !tbaa !23
  %indvars.iv.next263 = add nuw nsw i64 %indvars.iv262, 1
  %236 = trunc nuw i64 %indvars.iv.next263 to i32
  %237 = icmp sgt i32 %11, %236
  br i1 %237, label %.lr.ph208, label %._crit_edge209, !llvm.loop !43

238:                                              ; preds = %._crit_edge212
  %239 = add nuw nsw i32 %.1145213, 1
  %exitcond269.not = icmp eq i32 %239, %11
  br i1 %exitcond269.not, label %._crit_edge215, label %176, !llvm.loop !44

240:                                              ; preds = %._crit_edge212
  %241 = landingpad { ptr, i32 }
          cleanup
  br label %250

._crit_edge215:                                   ; preds = %238, %.preheader167
  call void @_ZdaPv(ptr noundef nonnull %16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  %242 = getelementptr inbounds i8, ptr %1, i64 8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %242, ptr noundef nonnull @.str.115)
          to label %243 unwind label %245

243:                                              ; preds = %._crit_edge215
  invoke void @_ZN7SGTELIB6Matrix8set_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %244 unwind label %247

244:                                              ; preds = %243
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #8
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #8
  ret void

245:                                              ; preds = %._crit_edge215
  %246 = landingpad { ptr, i32 }
          cleanup
  br label %249

247:                                              ; preds = %243
  %248 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br label %249

249:                                              ; preds = %247, %245
  %.pn155 = phi { ptr, i32 } [ %248, %247 ], [ %246, %245 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  br label %250

250:                                              ; preds = %249, %240, %210
  %.pn159 = phi { ptr, i32 } [ %241, %240 ], [ %.pn157, %210 ], [ %.pn155, %249 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  br label %251

251:                                              ; preds = %250, %204
  %.pn159.pn = phi { ptr, i32 } [ %.pn159, %250 ], [ %205, %204 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #8
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #8
  br label %252

252:                                              ; preds = %251, %123, %28
  %.pn159.pn.pn = phi { ptr, i32 } [ %.pn159.pn, %251 ], [ %.pn, %123 ], [ %29, %28 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #8
  resume { ptr, i32 } %.pn159.pn.pn
}

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

declare void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr, ptr, i32, i32) local_unnamed_addr

declare void @_ZN7SGTELIB6MatrixC1Ev(ptr) local_unnamed_addr

declare void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr, ptr) local_unnamed_addr

declare void @_ZN7SGTELIB6MatrixD1Ev(ptr) local_unnamed_addr

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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, !13, i64 40}
!6 = !{!"_ZTSN7SGTELIB6MatrixE", !7, i64 8, !13, i64 40, !13, i64 44, !9, i64 48}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16, !17, !18}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !16, !18, !17}
!20 = distinct !{!20, !16}
!21 = !{!6, !9, i64 48}
!22 = !{!9, !9, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"double", !10, i64 0}
!25 = distinct !{!25, !16}
!26 = !{!27}
!27 = distinct !{!27, !28}
!28 = distinct !{!28, !"LVerDomain"}
!29 = !{!30}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !16, !17, !18}
!32 = distinct !{!32, !16, !17}
!33 = distinct !{!33, !16}
!34 = distinct !{!34, !16}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.unroll.disable"}
!37 = distinct !{!37, !36}
!38 = distinct !{!38, !16}
!39 = distinct !{!39, !16}
!40 = distinct !{!40, !16}
!41 = distinct !{!41, !16}
!42 = distinct !{!42, !16}
!43 = distinct !{!43, !16}
!44 = distinct !{!44, !16}


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