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

; 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.std::allocator" = type { i8 }
%"class.SGTELIB::TrainingSet" = type { ptr, i32, i32, i32, i8, ptr, i8, i32, double, double, i32, %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double }
%"class.SGTELIB::Matrix" = type { ptr, %"class.std::__cxx11::basic_string", i32, i32, ptr }

@_ZTVN7SGTELIB11TrainingSetE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7SGTELIB11TrainingSetC2ERKNS_6MatrixES3_(ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(56) %2) unnamed_addr #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 ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  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
  %18 = load ptr, ptr %4, align 8
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN7SGTELIB11TrainingSetE, i32 0, i32 0, i32 2), ptr %18, align 8, !tbaa !9
  %19 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 1
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %20)
  store i32 %21, ptr %19, align 8, !tbaa !11
  %22 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 2
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %23)
  store i32 %24, ptr %22, align 4, !tbaa !20
  %25 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %26)
  store i32 %27, ptr %25, align 8, !tbaa !21
  %28 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 4
  store i8 0, ptr %28, align 4, !tbaa !22
  %29 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 5
  %30 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %31 = load i32, ptr %30, align 8, !tbaa !21
  %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 = call noalias noundef nonnull ptr @_Znam(i64 noundef %36) #8
  store ptr %37, ptr %29, align 8, !tbaa !23
  %38 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 6
  store i8 0, ptr %38, align 8, !tbaa !24
  %39 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 7
  store i32 0, ptr %39, align 4, !tbaa !25
  %40 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 8
  store double 0x7FEFFFFFFFFFFFFF, ptr %40, align 8, !tbaa !26
  %41 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 9
  store double 0x7FEFFFFFFFFFFFFF, ptr %41, align 8, !tbaa !27
  %42 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 10
  store i32 0, ptr %42, align 8, !tbaa !28
  %43 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 11
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %43, ptr noundef nonnull align 8 dereferenceable(56) %44)
  %45 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 12
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %45, ptr noundef nonnull align 8 dereferenceable(56) %46)
          to label %47 unwind label %241

47:                                               ; preds = %3
  %48 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 13
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %49 unwind label %245

49:                                               ; preds = %47
  %50 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 1
  %51 = load i32, ptr %50, align 8, !tbaa !11
  %52 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 2
  %53 = load i32, ptr %52, align 4, !tbaa !20
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef %51, i32 noundef %53)
          to label %54 unwind label %249

54:                                               ; preds = %49
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #9
  %55 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 14
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %56 unwind label %254

56:                                               ; preds = %54
  %57 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !11
  %59 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %60 = load i32, ptr %59, align 8, !tbaa !21
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %55, ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef %58, i32 noundef %60)
          to label %61 unwind label %258

61:                                               ; preds = %56
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #9
  %62 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 15
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %63 unwind label %263

63:                                               ; preds = %61
  %64 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 1
  %65 = load i32, ptr %64, align 8, !tbaa !11
  %66 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 1
  %67 = load i32, ptr %66, align 8, !tbaa !11
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %62, ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef %65, i32 noundef %67)
          to label %68 unwind label %267

68:                                               ; preds = %63
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #9
  %69 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 16
  store i32 -1, ptr %69, align 8, !tbaa !29
  %70 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 17
  store i32 -1, ptr %70, align 4, !tbaa !30
  %71 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 18
  store i32 -1, ptr %71, align 8, !tbaa !31
  %72 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 19
  %73 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 2
  %74 = load i32, ptr %73, align 4, !tbaa !20
  %75 = sext i32 %74 to i64
  %76 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %75, i64 8)
  %77 = extractvalue { i64, i1 } %76, 1
  %78 = extractvalue { i64, i1 } %76, 0
  %79 = select i1 %77, i64 -1, i64 %78
  %80 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %79) #8
          to label %81 unwind label %272

81:                                               ; preds = %68
  store ptr %80, ptr %72, align 8, !tbaa !32
  %82 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 20
  %83 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 2
  %84 = load i32, ptr %83, align 4, !tbaa !20
  %85 = sext i32 %84 to i64
  %86 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %85, i64 8)
  %87 = extractvalue { i64, i1 } %86, 1
  %88 = extractvalue { i64, i1 } %86, 0
  %89 = select i1 %87, i64 -1, i64 %88
  %90 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %89) #8
          to label %91 unwind label %272

91:                                               ; preds = %81
  store ptr %90, ptr %82, align 8, !tbaa !33
  %92 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 21
  %93 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 2
  %94 = load i32, ptr %93, align 4, !tbaa !20
  %95 = sext i32 %94 to i64
  %96 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %95, i64 8)
  %97 = extractvalue { i64, i1 } %96, 1
  %98 = extractvalue { i64, i1 } %96, 0
  %99 = select i1 %97, i64 -1, i64 %98
  %100 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %99) #8
          to label %101 unwind label %272

101:                                              ; preds = %91
  store ptr %100, ptr %92, align 8, !tbaa !34
  %102 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 22
  %103 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 2
  %104 = load i32, ptr %103, align 4, !tbaa !20
  %105 = sext i32 %104 to i64
  %106 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %105, i64 8)
  %107 = extractvalue { i64, i1 } %106, 1
  %108 = extractvalue { i64, i1 } %106, 0
  %109 = select i1 %107, i64 -1, i64 %108
  %110 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %109) #8
          to label %111 unwind label %272

111:                                              ; preds = %101
  store ptr %110, ptr %102, align 8, !tbaa !35
  %112 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 23
  %113 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 2
  %114 = load i32, ptr %113, align 4, !tbaa !20
  %115 = sext i32 %114 to i64
  %116 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %115, i64 8)
  %117 = extractvalue { i64, i1 } %116, 1
  %118 = extractvalue { i64, i1 } %116, 0
  %119 = select i1 %117, i64 -1, i64 %118
  %120 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %119) #8
          to label %121 unwind label %272

121:                                              ; preds = %111
  store ptr %120, ptr %112, align 8, !tbaa !36
  %122 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 24
  %123 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 2
  %124 = load i32, ptr %123, align 4, !tbaa !20
  %125 = sext i32 %124 to i64
  %126 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %125, i64 8)
  %127 = extractvalue { i64, i1 } %126, 1
  %128 = extractvalue { i64, i1 } %126, 0
  %129 = select i1 %127, i64 -1, i64 %128
  %130 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %129) #8
          to label %131 unwind label %272

131:                                              ; preds = %121
  store ptr %130, ptr %122, align 8, !tbaa !37
  %132 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 25
  %133 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 2
  %134 = load i32, ptr %133, align 4, !tbaa !20
  %135 = sext i32 %134 to i64
  %136 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %135, i64 4)
  %137 = extractvalue { i64, i1 } %136, 1
  %138 = extractvalue { i64, i1 } %136, 0
  %139 = select i1 %137, i64 -1, i64 %138
  %140 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %139) #8
          to label %141 unwind label %272

141:                                              ; preds = %131
  store ptr %140, ptr %132, align 8, !tbaa !38
  %142 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 26
  store i32 0, ptr %142, align 8, !tbaa !39
  %143 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 27
  store i32 0, ptr %143, align 4, !tbaa !40
  %144 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 28
  %145 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %146 = load i32, ptr %145, align 8, !tbaa !21
  %147 = sext i32 %146 to i64
  %148 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %147, i64 8)
  %149 = extractvalue { i64, i1 } %148, 1
  %150 = extractvalue { i64, i1 } %148, 0
  %151 = select i1 %149, i64 -1, i64 %150
  %152 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %151) #8
          to label %153 unwind label %272

153:                                              ; preds = %141
  store ptr %152, ptr %144, align 8, !tbaa !41
  %154 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 29
  %155 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %156 = load i32, ptr %155, align 8, !tbaa !21
  %157 = sext i32 %156 to i64
  %158 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %157, i64 8)
  %159 = extractvalue { i64, i1 } %158, 1
  %160 = extractvalue { i64, i1 } %158, 0
  %161 = select i1 %159, i64 -1, i64 %160
  %162 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %161) #8
          to label %163 unwind label %272

163:                                              ; preds = %153
  store ptr %162, ptr %154, align 8, !tbaa !42
  %164 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 30
  %165 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %166 = load i32, ptr %165, align 8, !tbaa !21
  %167 = sext i32 %166 to i64
  %168 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %167, i64 8)
  %169 = extractvalue { i64, i1 } %168, 1
  %170 = extractvalue { i64, i1 } %168, 0
  %171 = select i1 %169, i64 -1, i64 %170
  %172 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %171) #8
          to label %173 unwind label %272

173:                                              ; preds = %163
  store ptr %172, ptr %164, align 8, !tbaa !43
  %174 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 31
  %175 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %176 = load i32, ptr %175, align 8, !tbaa !21
  %177 = sext i32 %176 to i64
  %178 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %177, i64 8)
  %179 = extractvalue { i64, i1 } %178, 1
  %180 = extractvalue { i64, i1 } %178, 0
  %181 = select i1 %179, i64 -1, i64 %180
  %182 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %181) #8
          to label %183 unwind label %272

183:                                              ; preds = %173
  store ptr %182, ptr %174, align 8, !tbaa !44
  %184 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 32
  %185 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %186 = load i32, ptr %185, align 8, !tbaa !21
  %187 = sext i32 %186 to i64
  %188 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %187, i64 8)
  %189 = extractvalue { i64, i1 } %188, 1
  %190 = extractvalue { i64, i1 } %188, 0
  %191 = select i1 %189, i64 -1, i64 %190
  %192 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %191) #8
          to label %193 unwind label %272

193:                                              ; preds = %183
  store ptr %192, ptr %184, align 8, !tbaa !45
  %194 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 33
  %195 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %196 = load i32, ptr %195, align 8, !tbaa !21
  %197 = sext i32 %196 to i64
  %198 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %197, i64 8)
  %199 = extractvalue { i64, i1 } %198, 1
  %200 = extractvalue { i64, i1 } %198, 0
  %201 = select i1 %199, i64 -1, i64 %200
  %202 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %201) #8
          to label %203 unwind label %272

203:                                              ; preds = %193
  store ptr %202, ptr %194, align 8, !tbaa !46
  %204 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 34
  %205 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %206 = load i32, ptr %205, align 8, !tbaa !21
  %207 = sext i32 %206 to i64
  %208 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %207, i64 8)
  %209 = extractvalue { i64, i1 } %208, 1
  %210 = extractvalue { i64, i1 } %208, 0
  %211 = select i1 %209, i64 -1, i64 %210
  %212 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %211) #8
          to label %213 unwind label %272

213:                                              ; preds = %203
  store ptr %212, ptr %204, align 8, !tbaa !47
  %214 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 35
  %215 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %216 = load i32, ptr %215, align 8, !tbaa !21
  %217 = sext i32 %216 to i64
  %218 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %217, i64 8)
  %219 = extractvalue { i64, i1 } %218, 1
  %220 = extractvalue { i64, i1 } %218, 0
  %221 = select i1 %219, i64 -1, i64 %220
  %222 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %221) #8
          to label %223 unwind label %272

223:                                              ; preds = %213
  store ptr %222, ptr %214, align 8, !tbaa !48
  %224 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 36
  %225 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %226 = load i32, ptr %225, align 8, !tbaa !21
  %227 = sext i32 %226 to i64
  %228 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %227, i64 4)
  %229 = extractvalue { i64, i1 } %228, 1
  %230 = extractvalue { i64, i1 } %228, 0
  %231 = select i1 %229, i64 -1, i64 %230
  %232 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %231) #8
          to label %233 unwind label %272

233:                                              ; preds = %223
  store ptr %232, ptr %224, align 8, !tbaa !49
  %234 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 37
  store double 0.000000e+00, ptr %234, align 8, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 0, ptr %15, align 4, !tbaa !51
  br label %235

235:                                              ; preds = %287, %233
  %236 = load i32, ptr %15, align 4, !tbaa !51
  %237 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 2
  %238 = load i32, ptr %237, align 4, !tbaa !20
  %239 = icmp slt i32 %236, %238
  br i1 %239, label %276, label %240

240:                                              ; preds = %235
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %290

241:                                              ; preds = %3
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %7, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %8, align 4
  br label %344

245:                                              ; preds = %47
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %7, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %8, align 4
  br label %253

249:                                              ; preds = %49
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %7, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  br label %253

253:                                              ; preds = %249, %245
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #9
  br label %343

254:                                              ; preds = %54
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %7, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %8, align 4
  br label %262

258:                                              ; preds = %56
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %7, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  br label %262

262:                                              ; preds = %258, %254
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #9
  br label %342

263:                                              ; preds = %61
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %7, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %8, align 4
  br label %271

267:                                              ; preds = %63
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %7, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  br label %271

271:                                              ; preds = %267, %263
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #9
  br label %341

272:                                              ; preds = %223, %213, %203, %193, %183, %173, %163, %153, %141, %131, %121, %111, %101, %91, %81, %68
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %7, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %8, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %62) #9
  br label %341

276:                                              ; preds = %235
  %277 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 19
  %278 = load ptr, ptr %277, align 8, !tbaa !32
  %279 = load i32, ptr %15, align 4, !tbaa !51
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds double, ptr %278, i64 %280
  store double 0.000000e+00, ptr %281, align 8, !tbaa !52
  %282 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 20
  %283 = load ptr, ptr %282, align 8, !tbaa !33
  %284 = load i32, ptr %15, align 4, !tbaa !51
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds double, ptr %283, i64 %285
  store double 0.000000e+00, ptr %286, align 8, !tbaa !52
  br label %287

287:                                              ; preds = %276
  %288 = load i32, ptr %15, align 4, !tbaa !51
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %15, align 4, !tbaa !51
  br label %235, !llvm.loop !53

290:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 1, ptr %16, align 4, !tbaa !51
  br label %291

291:                                              ; preds = %308, %290
  %292 = load i32, ptr %16, align 4, !tbaa !51
  %293 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %294 = load i32, ptr %293, align 8, !tbaa !21
  %295 = icmp slt i32 %292, %294
  br i1 %295, label %297, label %296

296:                                              ; preds = %291
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %311

297:                                              ; preds = %291
  %298 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 28
  %299 = load ptr, ptr %298, align 8, !tbaa !41
  %300 = load i32, ptr %16, align 4, !tbaa !51
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds double, ptr %299, i64 %301
  store double 0.000000e+00, ptr %302, align 8, !tbaa !52
  %303 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 29
  %304 = load ptr, ptr %303, align 8, !tbaa !42
  %305 = load i32, ptr %16, align 4, !tbaa !51
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds double, ptr %304, i64 %306
  store double 0.000000e+00, ptr %307, align 8, !tbaa !52
  br label %308

308:                                              ; preds = %297
  %309 = load i32, ptr %16, align 4, !tbaa !51
  %310 = add nsw i32 %309, 1
  store i32 %310, ptr %16, align 4, !tbaa !51
  br label %291, !llvm.loop !55

311:                                              ; preds = %296
  %312 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 5
  %313 = load ptr, ptr %312, align 8, !tbaa !23
  %314 = getelementptr inbounds i32, ptr %313, i64 0
  store i32 0, ptr %314, align 4, !tbaa !56
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 1, ptr %17, align 4, !tbaa !51
  br label %315

315:                                              ; preds = %337, %311
  %316 = load i32, ptr %17, align 4, !tbaa !51
  %317 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 3
  %318 = load i32, ptr %317, align 8, !tbaa !21
  %319 = icmp slt i32 %316, %318
  br i1 %319, label %321, label %320

320:                                              ; preds = %315
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %340

321:                                              ; preds = %315
  %322 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 5
  %323 = load ptr, ptr %322, align 8, !tbaa !23
  %324 = load i32, ptr %17, align 4, !tbaa !51
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds i32, ptr %323, i64 %325
  store i32 1, ptr %326, align 4, !tbaa !56
  %327 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 28
  %328 = load ptr, ptr %327, align 8, !tbaa !41
  %329 = load i32, ptr %17, align 4, !tbaa !51
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds double, ptr %328, i64 %330
  store double 0.000000e+00, ptr %331, align 8, !tbaa !52
  %332 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %18, i32 0, i32 29
  %333 = load ptr, ptr %332, align 8, !tbaa !42
  %334 = load i32, ptr %17, align 4, !tbaa !51
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds double, ptr %333, i64 %335
  store double 0.000000e+00, ptr %336, align 8, !tbaa !52
  br label %337

337:                                              ; preds = %321
  %338 = load i32, ptr %17, align 4, !tbaa !51
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %17, align 4, !tbaa !51
  br label %315, !llvm.loop !58

340:                                              ; preds = %320
  ret void

341:                                              ; preds = %272, %271
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %55) #9
  br label %342

342:                                              ; preds = %341, %262
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %48) #9
  br label %343

343:                                              ; preds = %342, %253
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %45) #9
  br label %344

344:                                              ; preds = %343, %241
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %43) #9
  br label %345

345:                                              ; preds = %344
  %346 = load ptr, ptr %7, align 8
  %347 = load i32, ptr %8, align 4
  %348 = insertvalue { ptr, i32 } poison, ptr %346, 0
  %349 = insertvalue { ptr, i32 } %348, i32 %347, 1
  resume { ptr, i32 } %349
}

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

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

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

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

declare void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 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 #0 align 2

declare void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) unnamed_addr #4

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

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

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

; Function Attrs: nounwind
declare void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7

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 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { builtin allocsize(0) }
attributes #9 = { 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, !13, i64 8}
!12 = !{!"_ZTSN7SGTELIB11TrainingSetE", !13, i64 8, !13, i64 12, !13, i64 16, !14, i64 20, !6, i64 24, !14, i64 32, !13, i64 36, !15, i64 40, !15, i64 48, !13, i64 56, !16, i64 64, !16, i64 120, !16, i64 176, !16, i64 232, !16, i64 288, !13, i64 344, !13, i64 348, !13, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !13, i64 416, !13, i64 420, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !15, i64 496}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTSN7SGTELIB6MatrixE", !17, i64 8, !13, i64 40, !13, i64 44, !6, i64 48}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!12, !13, i64 12}
!21 = !{!12, !13, i64 16}
!22 = !{!12, !14, i64 20}
!23 = !{!12, !6, i64 24}
!24 = !{!12, !14, i64 32}
!25 = !{!12, !13, i64 36}
!26 = !{!12, !15, i64 40}
!27 = !{!12, !15, i64 48}
!28 = !{!12, !13, i64 56}
!29 = !{!12, !13, i64 344}
!30 = !{!12, !13, i64 348}
!31 = !{!12, !13, i64 352}
!32 = !{!12, !6, i64 360}
!33 = !{!12, !6, i64 368}
!34 = !{!12, !6, i64 376}
!35 = !{!12, !6, i64 384}
!36 = !{!12, !6, i64 392}
!37 = !{!12, !6, i64 400}
!38 = !{!12, !6, i64 408}
!39 = !{!12, !13, i64 416}
!40 = !{!12, !13, i64 420}
!41 = !{!12, !6, i64 424}
!42 = !{!12, !6, i64 432}
!43 = !{!12, !6, i64 440}
!44 = !{!12, !6, i64 448}
!45 = !{!12, !6, i64 456}
!46 = !{!12, !6, i64 464}
!47 = !{!12, !6, i64 472}
!48 = !{!12, !6, i64 480}
!49 = !{!12, !6, i64 488}
!50 = !{!12, !15, i64 496}
!51 = !{!13, !13, i64 0}
!52 = !{!15, !15, i64 0}
!53 = distinct !{!53, !54}
!54 = !{!"llvm.loop.mustprogress"}
!55 = distinct !{!55, !54}
!56 = !{!57, !57, i64 0}
!57 = !{!"_ZTSN7SGTELIB5bbo_tE", !7, i64 0}
!58 = distinct !{!58, !54}


; 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.std::allocator" = type { i8 }

@_ZTVN7SGTELIB11TrainingSetE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7SGTELIB11TrainingSetC2ERKNS_6MatrixES3_(ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(56) %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN7SGTELIB11TrainingSetE, i64 16), ptr %0, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = tail call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  store i32 %11, ptr %10, align 8, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %0, i64 12
  %13 = tail call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  store i32 %13, ptr %12, align 4, !tbaa !19
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = tail call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %2)
  store i32 %15, ptr %14, align 8, !tbaa !20
  %16 = getelementptr inbounds i8, ptr %0, i64 20
  store i8 0, ptr %16, align 4, !tbaa !21
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  %18 = zext nneg i32 %15 to i64
  %19 = icmp slt i32 %15, 0
  %20 = shl nuw nsw i64 %18, 2
  %21 = select i1 %19, i64 -1, i64 %20
  %22 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %21) #8
  store ptr %22, ptr %17, align 8, !tbaa !22
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  store i8 0, ptr %23, align 8, !tbaa !23
  %24 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 0, ptr %24, align 4, !tbaa !24
  %25 = getelementptr inbounds i8, ptr %0, i64 40
  store <2 x double> <double 0x7FEFFFFFFFFFFFFF, double 0x7FEFFFFFFFFFFFFF>, ptr %25, align 8, !tbaa !25
  %26 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 0, ptr %26, align 8, !tbaa !26
  %27 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %27, ptr noundef nonnull align 8 dereferenceable(56) %1)
  %28 = getelementptr inbounds i8, ptr %0, i64 120
  invoke void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %28, ptr noundef nonnull align 8 dereferenceable(56) %2)
          to label %29 unwind label %116

29:                                               ; preds = %3
  %30 = getelementptr inbounds i8, ptr %0, i64 176
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %31 unwind label %118

31:                                               ; preds = %29
  %32 = load i32, ptr %10, align 8, !tbaa !8
  %33 = load i32, ptr %12, align 4, !tbaa !19
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %30, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %32, i32 noundef %33)
          to label %34 unwind label %120

34:                                               ; preds = %31
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #9
  %35 = getelementptr inbounds i8, ptr %0, i64 232
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %36 unwind label %123

36:                                               ; preds = %34
  %37 = load i32, ptr %10, align 8, !tbaa !8
  %38 = load i32, ptr %14, align 8, !tbaa !20
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %35, ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %37, i32 noundef %38)
          to label %39 unwind label %125

39:                                               ; preds = %36
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  %40 = getelementptr inbounds i8, ptr %0, i64 288
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %41 unwind label %128

41:                                               ; preds = %39
  %42 = load i32, ptr %10, align 8, !tbaa !8
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %40, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %42, i32 noundef %42)
          to label %43 unwind label %130

43:                                               ; preds = %41
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  %44 = getelementptr inbounds i8, ptr %0, i64 344
  store i32 -1, ptr %44, align 8, !tbaa !27
  %45 = getelementptr inbounds i8, ptr %0, i64 348
  store i32 -1, ptr %45, align 4, !tbaa !28
  %46 = getelementptr inbounds i8, ptr %0, i64 352
  store i32 -1, ptr %46, align 8, !tbaa !29
  %47 = load i32, ptr %12, align 4, !tbaa !19
  %48 = sext i32 %47 to i64
  %49 = icmp slt i32 %47, 0
  %50 = shl nsw i64 %48, 3
  %51 = select i1 %49, i64 -1, i64 %50
  %52 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %51) #8
          to label %53 unwind label %133

53:                                               ; preds = %43
  %54 = getelementptr inbounds i8, ptr %0, i64 360
  store ptr %52, ptr %54, align 8, !tbaa !30
  %55 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %51) #8
          to label %56 unwind label %133

56:                                               ; preds = %53
  %57 = getelementptr inbounds i8, ptr %0, i64 368
  store ptr %55, ptr %57, align 8, !tbaa !31
  %58 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %51) #8
          to label %59 unwind label %133

59:                                               ; preds = %56
  %60 = getelementptr inbounds i8, ptr %0, i64 376
  store ptr %58, ptr %60, align 8, !tbaa !32
  %61 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %51) #8
          to label %62 unwind label %133

62:                                               ; preds = %59
  %63 = getelementptr inbounds i8, ptr %0, i64 384
  store ptr %61, ptr %63, align 8, !tbaa !33
  %64 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %51) #8
          to label %65 unwind label %133

65:                                               ; preds = %62
  %66 = getelementptr inbounds i8, ptr %0, i64 392
  store ptr %64, ptr %66, align 8, !tbaa !34
  %67 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %51) #8
          to label %68 unwind label %133

68:                                               ; preds = %65
  %69 = getelementptr inbounds i8, ptr %0, i64 400
  store ptr %67, ptr %69, align 8, !tbaa !35
  %70 = shl nsw i64 %48, 2
  %71 = select i1 %49, i64 -1, i64 %70
  %72 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %71) #8
          to label %73 unwind label %133

73:                                               ; preds = %68
  %74 = getelementptr inbounds i8, ptr %0, i64 408
  store ptr %72, ptr %74, align 8, !tbaa !36
  %75 = getelementptr inbounds i8, ptr %0, i64 416
  store i32 0, ptr %75, align 8, !tbaa !37
  %76 = getelementptr inbounds i8, ptr %0, i64 420
  store i32 0, ptr %76, align 4, !tbaa !38
  %77 = load i32, ptr %14, align 8, !tbaa !20
  %78 = sext i32 %77 to i64
  %79 = icmp slt i32 %77, 0
  %80 = shl nsw i64 %78, 3
  %81 = select i1 %79, i64 -1, i64 %80
  %82 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %81) #8
          to label %83 unwind label %133

83:                                               ; preds = %73
  %84 = getelementptr inbounds i8, ptr %0, i64 424
  store ptr %82, ptr %84, align 8, !tbaa !39
  %85 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %81) #8
          to label %86 unwind label %133

86:                                               ; preds = %83
  %87 = getelementptr inbounds i8, ptr %0, i64 432
  store ptr %85, ptr %87, align 8, !tbaa !40
  %88 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %81) #8
          to label %89 unwind label %133

89:                                               ; preds = %86
  %90 = getelementptr inbounds i8, ptr %0, i64 440
  store ptr %88, ptr %90, align 8, !tbaa !41
  %91 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %81) #8
          to label %92 unwind label %133

92:                                               ; preds = %89
  %93 = getelementptr inbounds i8, ptr %0, i64 448
  store ptr %91, ptr %93, align 8, !tbaa !42
  %94 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %81) #8
          to label %95 unwind label %133

95:                                               ; preds = %92
  %96 = getelementptr inbounds i8, ptr %0, i64 456
  store ptr %94, ptr %96, align 8, !tbaa !43
  %97 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %81) #8
          to label %98 unwind label %133

98:                                               ; preds = %95
  %99 = getelementptr inbounds i8, ptr %0, i64 464
  store ptr %97, ptr %99, align 8, !tbaa !44
  %100 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %81) #8
          to label %101 unwind label %133

101:                                              ; preds = %98
  %102 = getelementptr inbounds i8, ptr %0, i64 472
  store ptr %100, ptr %102, align 8, !tbaa !45
  %103 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %81) #8
          to label %104 unwind label %133

104:                                              ; preds = %101
  %105 = getelementptr inbounds i8, ptr %0, i64 480
  store ptr %103, ptr %105, align 8, !tbaa !46
  %106 = shl nsw i64 %78, 2
  %107 = select i1 %79, i64 -1, i64 %106
  %108 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %107) #8
          to label %109 unwind label %133

109:                                              ; preds = %104
  %110 = getelementptr inbounds i8, ptr %0, i64 488
  store ptr %108, ptr %110, align 8, !tbaa !47
  %111 = getelementptr inbounds i8, ptr %0, i64 496
  store double 0.000000e+00, ptr %111, align 8, !tbaa !48
  %112 = icmp sgt i32 %47, 0
  br i1 %112, label %.lr.ph.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %109
  %113 = zext nneg i32 %47 to i64
  %114 = shl nuw nsw i64 %113, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %52, i8 0, i64 %114, i1 false), !tbaa !25
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %55, i8 0, i64 %114, i1 false), !tbaa !25
  br label %.preheader

.preheader:                                       ; preds = %.lr.ph.preheader, %109
  %115 = icmp sgt i32 %77, 1
  br i1 %115, label %.lr.ph45.preheader, label %._crit_edge

116:                                              ; preds = %3
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %154

118:                                              ; preds = %29
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %122

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

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

123:                                              ; preds = %34
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %127

125:                                              ; preds = %36
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  br label %127

127:                                              ; preds = %125, %123
  %.pn31 = phi { ptr, i32 } [ %126, %125 ], [ %124, %123 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  br label %152

128:                                              ; preds = %39
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %132

130:                                              ; preds = %41
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  br label %132

132:                                              ; preds = %130, %128
  %.pn33 = phi { ptr, i32 } [ %131, %130 ], [ %129, %128 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  br label %151

133:                                              ; preds = %104, %101, %98, %95, %92, %89, %86, %83, %73, %68, %65, %62, %59, %56, %53, %43
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %40) #9
  br label %151

._crit_edge:                                      ; preds = %.preheader
  %135 = load ptr, ptr %17, align 8, !tbaa !22
  store i32 0, ptr %135, align 4, !tbaa !49
  br label %._crit_edge46

.lr.ph45.preheader:                               ; preds = %.preheader
  %scevgep = getelementptr i8, ptr %82, i64 8
  %136 = add nsw i32 %77, -1
  %137 = zext nneg i32 %136 to i64
  %138 = shl nuw nsw i64 %137, 3
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep, i8 0, i64 %138, i1 false), !tbaa !25
  %scevgep48 = getelementptr i8, ptr %85, i64 8
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep48, i8 0, i64 %138, i1 false), !tbaa !25
  %139 = load ptr, ptr %17, align 8, !tbaa !22
  store i32 0, ptr %139, align 4, !tbaa !49
  %wide.trip.count = zext nneg i32 %77 to i64
  %140 = add nsw i64 %wide.trip.count, -1
  %min.iters.check = icmp ult i32 %77, 5
  br i1 %min.iters.check, label %.lr.ph45.preheader53, label %vector.ph

.lr.ph45.preheader53:                             ; preds = %middle.block, %.lr.ph45.preheader
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph45.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph45

vector.ph:                                        ; preds = %.lr.ph45.preheader
  %n.vec = and i64 %140, -4
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %141 = getelementptr inbounds i32, ptr %139, i64 %offset.idx
  %142 = getelementptr inbounds i8, ptr %141, i64 8
  store <2 x i32> <i32 1, i32 1>, ptr %141, align 4, !tbaa !49
  store <2 x i32> <i32 1, i32 1>, ptr %142, align 4, !tbaa !49
  %143 = getelementptr inbounds double, ptr %82, i64 %offset.idx
  %144 = getelementptr inbounds i8, ptr %143, i64 16
  store <2 x double> zeroinitializer, ptr %143, align 8, !tbaa !25
  store <2 x double> zeroinitializer, ptr %144, align 8, !tbaa !25
  %145 = getelementptr inbounds double, ptr %85, i64 %offset.idx
  %146 = getelementptr inbounds i8, ptr %145, i64 16
  store <2 x double> zeroinitializer, ptr %145, align 8, !tbaa !25
  store <2 x double> zeroinitializer, ptr %146, align 8, !tbaa !25
  %index.next = add nuw i64 %index, 4
  %147 = icmp eq i64 %index.next, %n.vec
  br i1 %147, label %middle.block, label %vector.body, !llvm.loop !51

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %140, %n.vec
  br i1 %cmp.n, label %._crit_edge46, label %.lr.ph45.preheader53

._crit_edge46:                                    ; preds = %.lr.ph45, %middle.block, %._crit_edge
  ret void

.lr.ph45:                                         ; preds = %.lr.ph45.preheader53, %.lr.ph45
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph45 ], [ %indvars.iv.ph, %.lr.ph45.preheader53 ]
  %148 = getelementptr inbounds i32, ptr %139, i64 %indvars.iv
  store i32 1, ptr %148, align 4, !tbaa !49
  %149 = getelementptr inbounds double, ptr %82, i64 %indvars.iv
  store double 0.000000e+00, ptr %149, align 8, !tbaa !25
  %150 = getelementptr inbounds double, ptr %85, i64 %indvars.iv
  store double 0.000000e+00, ptr %150, align 8, !tbaa !25
  %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 %._crit_edge46, label %.lr.ph45, !llvm.loop !55

151:                                              ; preds = %133, %132
  %.pn35 = phi { ptr, i32 } [ %134, %133 ], [ %.pn33, %132 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %35) #9
  br label %152

152:                                              ; preds = %151, %127
  %.pn35.pn = phi { ptr, i32 } [ %.pn35, %151 ], [ %.pn31, %127 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #9
  br label %153

153:                                              ; preds = %152, %122
  %.pn35.pn.pn = phi { ptr, i32 } [ %.pn35.pn, %152 ], [ %.pn, %122 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %28) #9
  br label %154

154:                                              ; preds = %153, %116
  %.pn35.pn.pn.pn = phi { ptr, i32 } [ %.pn35.pn.pn, %153 ], [ %117, %116 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %27) #9
  resume { ptr, i32 } %.pn35.pn.pn.pn
}

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

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

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

declare void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 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 #0 align 2

declare void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) unnamed_addr #3

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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 = { 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 #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 = { "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 willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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 = !{!9, !10, i64 8}
!9 = !{!"_ZTSN7SGTELIB11TrainingSetE", !10, i64 8, !10, i64 12, !10, i64 16, !12, i64 20, !13, i64 24, !12, i64 32, !10, i64 36, !14, i64 40, !14, i64 48, !10, i64 56, !15, i64 64, !15, i64 120, !15, i64 176, !15, i64 232, !15, i64 288, !10, i64 344, !10, i64 348, !10, i64 352, !13, i64 360, !13, i64 368, !13, i64 376, !13, i64 384, !13, i64 392, !13, i64 400, !13, i64 408, !10, i64 416, !10, i64 420, !13, i64 424, !13, i64 432, !13, i64 440, !13, i64 448, !13, i64 456, !13, i64 464, !13, i64 472, !13, i64 480, !13, i64 488, !14, i64 496}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"bool", !11, i64 0}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!"double", !11, i64 0}
!15 = !{!"_ZTSN7SGTELIB6MatrixE", !16, i64 8, !10, i64 40, !10, i64 44, !13, i64 48}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !11, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!18 = !{!"long", !11, i64 0}
!19 = !{!9, !10, i64 12}
!20 = !{!9, !10, i64 16}
!21 = !{!9, !12, i64 20}
!22 = !{!9, !13, i64 24}
!23 = !{!9, !12, i64 32}
!24 = !{!9, !10, i64 36}
!25 = !{!14, !14, i64 0}
!26 = !{!9, !10, i64 56}
!27 = !{!9, !10, i64 344}
!28 = !{!9, !10, i64 348}
!29 = !{!9, !10, i64 352}
!30 = !{!9, !13, i64 360}
!31 = !{!9, !13, i64 368}
!32 = !{!9, !13, i64 376}
!33 = !{!9, !13, i64 384}
!34 = !{!9, !13, i64 392}
!35 = !{!9, !13, i64 400}
!36 = !{!9, !13, i64 408}
!37 = !{!9, !10, i64 416}
!38 = !{!9, !10, i64 420}
!39 = !{!9, !13, i64 424}
!40 = !{!9, !13, i64 432}
!41 = !{!9, !13, i64 440}
!42 = !{!9, !13, i64 448}
!43 = !{!9, !13, i64 456}
!44 = !{!9, !13, i64 464}
!45 = !{!9, !13, i64 472}
!46 = !{!9, !13, i64 480}
!47 = !{!9, !13, i64 488}
!48 = !{!9, !14, i64 496}
!49 = !{!50, !50, i64 0}
!50 = !{!"_ZTSN7SGTELIB5bbo_tE", !11, i64 0}
!51 = distinct !{!51, !52, !53, !54}
!52 = !{!"llvm.loop.mustprogress"}
!53 = !{!"llvm.loop.isvectorized", i32 1}
!54 = !{!"llvm.loop.unroll.runtime.disable"}
!55 = distinct !{!55, !52, !54, !53}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass