; LLVM IR from buresjan/optim_lbm :: nomad/ext/sgtelib/src (Tests)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.SGTELIB::Matrix" = type { ptr, %"class.std::__cxx11::basic_string", i32, i32, ptr }
%"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::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.std::allocator" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

; 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

declare i32 @__gxx_personality_v0(...)

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 #2 align 2

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

declare void @_ZN7SGTELIB6Matrix10set_randomEddb(ptr noundef nonnull align 8 dereferenceable(56), double noundef, double noundef, i1 noundef zeroext) #4

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

declare noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504), ptr noundef nonnull align 8 dereferenceable(32)) #4

declare noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985)) #4

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #0

declare void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef) #4

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

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

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

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

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

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

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

declare void @_ZN7SGTELIB9Surrogate7predictERKNS_6MatrixEPS1_S4_S4_S4_(ptr noundef nonnull align 8 dereferenceable(985), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7SGTELIB17check_matrix_diffEPKNS_6MatrixES2_(ptr noundef, ptr noundef) #3

declare void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, double noundef) #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7SGTELIB10test_scaleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_6MatrixE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(56) %2) #3 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 i32, align 4
  %9 = alloca %"class.SGTELIB::Matrix", align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca %"class.SGTELIB::TrainingSet", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.SGTELIB::Matrix", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca ptr, align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator", align 1
  %27 = alloca i1, align 1
  %28 = alloca ptr, align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator", align 1
  %31 = alloca i1, align 1
  %32 = alloca ptr, align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator", align 1
  %35 = alloca i1, align 1
  %36 = alloca ptr, align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::allocator", align 1
  %39 = alloca i1, align 1
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca i32, align 4
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca i32, align 4
  %46 = alloca %"class.SGTELIB::Matrix", align 8
  %47 = alloca %"class.SGTELIB::Matrix", align 8
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca %"class.SGTELIB::TrainingSet", align 8
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca %"class.std::__cxx11::basic_string", align 8
  %55 = alloca %"class.std::allocator", align 1
  %56 = alloca i1, align 1
  %57 = alloca ptr, align 8
  %58 = alloca %"class.std::__cxx11::basic_string", align 8
  %59 = alloca %"class.std::allocator", align 1
  %60 = alloca i1, align 1
  %61 = alloca ptr, align 8
  %62 = alloca %"class.std::__cxx11::basic_string", align 8
  %63 = alloca %"class.std::allocator", align 1
  %64 = alloca i1, align 1
  %65 = alloca ptr, align 8
  %66 = alloca %"class.std::__cxx11::basic_string", align 8
  %67 = alloca %"class.std::allocator", align 1
  %68 = alloca i1, align 1
  %69 = alloca %"class.SGTELIB::Matrix", align 8
  %70 = alloca i32, align 4
  %71 = alloca i32, align 4
  %72 = alloca i32, align 4
  %73 = alloca i32, align 4
  %74 = alloca %"class.std::allocator", align 1
  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
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.82)
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %77)
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef @.str.6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %80)
  store i32 %81, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %82)
  store i32 %83, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %9) #10
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN7SGTELIB14test_functionsERKNS_6MatrixE(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %9, ptr noundef nonnull align 8 dereferenceable(56) %84)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  %85 = invoke noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %9)
          to label %86 unwind label %109

86:                                               ; preds = %3
  store i32 %85, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #10
  call void @llvm.lifetime.start.p0(i64 504, ptr %14) #10
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB11TrainingSetC1ERKNS_6MatrixES3_(ptr noundef nonnull align 8 dereferenceable(504) %14, ptr noundef nonnull align 8 dereferenceable(56) %87, ptr noundef nonnull align 8 dereferenceable(56) %9)
          to label %88 unwind label %113

88:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = invoke noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %14, ptr noundef nonnull align 8 dereferenceable(32) %89)
          to label %91 unwind label %117

91:                                               ; preds = %88
  store ptr %90, ptr %15, align 8, !tbaa !5
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = invoke noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985) %92)
          to label %94 unwind label %117

94:                                               ; preds = %91
  %95 = zext i1 %93 to i8
  store i8 %95, ptr %13, align 1, !tbaa !11
  %96 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %97 = trunc i8 %96 to i1
  br i1 %97, label %144, label %98

98:                                               ; preds = %94
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef %99)
          to label %100 unwind label %117

100:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #10
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef @.str.83, ptr noundef nonnull align 8 dereferenceable(32) %101)
          to label %102 unwind label %121

102:                                              ; preds = %100
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.32)
          to label %103 unwind label %125

103:                                              ; preds = %102
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %105 unwind label %129

105:                                              ; preds = %103
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #10
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef @.str.83, ptr noundef nonnull align 8 dereferenceable(32) %106)
          to label %107 unwind label %135

107:                                              ; preds = %105
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.32)
          to label %108 unwind label %139

108:                                              ; preds = %107
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #10
  store i32 1, ptr %19, align 4
  br label %798

109:                                              ; preds = %3
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %11, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %12, align 4
  br label %801

113:                                              ; preds = %86
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %11, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %12, align 4
  br label %800

117:                                              ; preds = %98, %91, %88
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %11, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %12, align 4
  br label %799

121:                                              ; preds = %100
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %11, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %12, align 4
  br label %134

125:                                              ; preds = %102
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %11, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %12, align 4
  br label %133

129:                                              ; preds = %103
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %11, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  br label %133

133:                                              ; preds = %129, %125
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  br label %134

134:                                              ; preds = %133, %121
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #10
  br label %799

135:                                              ; preds = %105
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %11, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %12, align 4
  br label %143

139:                                              ; preds = %107
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %11, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  br label %143

143:                                              ; preds = %139, %135
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #10
  br label %799

144:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  store i32 3, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @.str.84, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %145 unwind label %196

145:                                              ; preds = %144
  %146 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef 3, i32 noundef %146)
          to label %147 unwind label %200

147:                                              ; preds = %145
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #10
  invoke void @_ZN7SGTELIB6Matrix10set_randomEddb(ptr noundef nonnull align 8 dereferenceable(56) %21, double noundef -5.000000e+00, double noundef 5.000000e+00, i1 noundef zeroext false)
          to label %148 unwind label %205

148:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  %149 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
          to label %150 unwind label %209

150:                                              ; preds = %148
  store i1 true, ptr %27, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef @.str.45, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %151 unwind label %213

151:                                              ; preds = %150
  %152 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %149, ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef 3, i32 noundef %152)
          to label %153 unwind label %217

153:                                              ; preds = %151
  store i1 false, ptr %27, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #10
  store ptr %149, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  %154 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
          to label %155 unwind label %225

155:                                              ; preds = %153
  store i1 true, ptr %31, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef @.str.46, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %156 unwind label %229

156:                                              ; preds = %155
  %157 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %154, ptr noundef nonnull align 8 dereferenceable(32) %29, i32 noundef 3, i32 noundef %157)
          to label %158 unwind label %233

158:                                              ; preds = %156
  store i1 false, ptr %31, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #10
  store ptr %154, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  %159 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
          to label %160 unwind label %241

160:                                              ; preds = %158
  store i1 true, ptr %35, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef @.str.47, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %161 unwind label %245

161:                                              ; preds = %160
  %162 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %159, ptr noundef nonnull align 8 dereferenceable(32) %33, i32 noundef 3, i32 noundef %162)
          to label %163 unwind label %249

163:                                              ; preds = %161
  store i1 false, ptr %35, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #10
  store ptr %159, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #10
  %164 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
          to label %165 unwind label %257

165:                                              ; preds = %163
  store i1 true, ptr %39, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef @.str.48, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %166 unwind label %261

166:                                              ; preds = %165
  %167 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %164, ptr noundef nonnull align 8 dereferenceable(32) %37, i32 noundef 3, i32 noundef %167)
          to label %168 unwind label %265

168:                                              ; preds = %166
  store i1 false, ptr %39, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #10
  store ptr %164, ptr %36, align 8, !tbaa !5
  %169 = load ptr, ptr %15, align 8, !tbaa !5
  %170 = load ptr, ptr %24, align 8, !tbaa !5
  %171 = load ptr, ptr %28, align 8, !tbaa !5
  %172 = load ptr, ptr %32, align 8, !tbaa !5
  %173 = load ptr, ptr %36, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB9Surrogate7predictERKNS_6MatrixEPS1_S4_S4_S4_(ptr noundef nonnull align 8 dereferenceable(985) %169, ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef %170, ptr noundef %171, ptr noundef %172, ptr noundef %173)
          to label %174 unwind label %257

174:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #10
  %175 = load i32, ptr %8, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %176, i64 8)
  %178 = extractvalue { i64, i1 } %177, 1
  %179 = extractvalue { i64, i1 } %177, 0
  %180 = select i1 %178, i64 -1, i64 %179
  %181 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %180) #11
          to label %182 unwind label %273

182:                                              ; preds = %174
  store ptr %181, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #10
  %183 = load i32, ptr %8, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %184, i64 8)
  %186 = extractvalue { i64, i1 } %185, 1
  %187 = extractvalue { i64, i1 } %185, 0
  %188 = select i1 %186, i64 -1, i64 %187
  %189 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %188) #11
          to label %190 unwind label %277

190:                                              ; preds = %182
  store ptr %189, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #10
  store i32 0, ptr %42, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %298, %190
  %192 = load i32, ptr %42, align 4, !tbaa !9
  %193 = load i32, ptr %8, align 4, !tbaa !9
  %194 = icmp slt i32 %192, %193
  br i1 %194, label %281, label %195

195:                                              ; preds = %191
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  br label %301

196:                                              ; preds = %144
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %11, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %12, align 4
  br label %204

200:                                              ; preds = %145
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %11, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #10
  br label %204

204:                                              ; preds = %200, %196
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #10
  br label %797

205:                                              ; preds = %147
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %11, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %12, align 4
  br label %796

209:                                              ; preds = %148
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %11, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %12, align 4
  br label %795

213:                                              ; preds = %150
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %11, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %12, align 4
  br label %221

217:                                              ; preds = %151
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %11, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  br label %221

221:                                              ; preds = %217, %213
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #10
  %222 = load i1, ptr %27, align 1
  br i1 %222, label %223, label %224

223:                                              ; preds = %221
  call void @_ZdlPvm(ptr noundef %149, i64 noundef 56) #12
  br label %224

224:                                              ; preds = %223, %221
  br label %795

225:                                              ; preds = %153
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %11, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %12, align 4
  br label %794

229:                                              ; preds = %155
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %11, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %12, align 4
  br label %237

233:                                              ; preds = %156
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %11, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #10
  br label %237

237:                                              ; preds = %233, %229
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #10
  %238 = load i1, ptr %31, align 1
  br i1 %238, label %239, label %240

239:                                              ; preds = %237
  call void @_ZdlPvm(ptr noundef %154, i64 noundef 56) #12
  br label %240

240:                                              ; preds = %239, %237
  br label %794

241:                                              ; preds = %158
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %11, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %12, align 4
  br label %793

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

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

253:                                              ; preds = %249, %245
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #10
  %254 = load i1, ptr %35, align 1
  br i1 %254, label %255, label %256

255:                                              ; preds = %253
  call void @_ZdlPvm(ptr noundef %159, i64 noundef 56) #12
  br label %256

256:                                              ; preds = %255, %253
  br label %793

257:                                              ; preds = %168, %163
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %11, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %12, align 4
  br label %792

261:                                              ; preds = %165
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %11, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %12, align 4
  br label %269

265:                                              ; preds = %166
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %11, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  br label %269

269:                                              ; preds = %265, %261
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #10
  %270 = load i1, ptr %39, align 1
  br i1 %270, label %271, label %272

271:                                              ; preds = %269
  call void @_ZdlPvm(ptr noundef %164, i64 noundef 56) #12
  br label %272

272:                                              ; preds = %271, %269
  br label %792

273:                                              ; preds = %174
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %11, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %12, align 4
  br label %791

277:                                              ; preds = %182
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %11, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %12, align 4
  br label %790

281:                                              ; preds = %191
  %282 = load i32, ptr %42, align 4, !tbaa !9
  %283 = add nsw i32 %282, 2
  %284 = sitofp i32 %283 to double
  %285 = load ptr, ptr %40, align 8, !tbaa !5
  %286 = load i32, ptr %42, align 4, !tbaa !9
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds double, ptr %285, i64 %287
  store double %284, ptr %288, align 8, !tbaa !15
  %289 = load i32, ptr %42, align 4, !tbaa !9
  %290 = add nsw i32 %289, 2
  %291 = sitofp i32 %290 to double
  %292 = fdiv double 1.000000e+00, %291
  %293 = fadd double 1.500000e+00, %292
  %294 = load ptr, ptr %41, align 8, !tbaa !5
  %295 = load i32, ptr %42, align 4, !tbaa !9
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds double, ptr %294, i64 %296
  store double %293, ptr %297, align 8, !tbaa !15
  br label %298

298:                                              ; preds = %281
  %299 = load i32, ptr %42, align 4, !tbaa !9
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %42, align 4, !tbaa !9
  br label %191, !llvm.loop !17

301:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #10
  %302 = load i32, ptr %10, align 4, !tbaa !9
  %303 = sext i32 %302 to i64
  %304 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %303, i64 8)
  %305 = extractvalue { i64, i1 } %304, 1
  %306 = extractvalue { i64, i1 } %304, 0
  %307 = select i1 %305, i64 -1, i64 %306
  %308 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %307) #11
          to label %309 unwind label %323

309:                                              ; preds = %301
  store ptr %308, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #10
  %310 = load i32, ptr %10, align 4, !tbaa !9
  %311 = sext i32 %310 to i64
  %312 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %311, i64 8)
  %313 = extractvalue { i64, i1 } %312, 1
  %314 = extractvalue { i64, i1 } %312, 0
  %315 = select i1 %313, i64 -1, i64 %314
  %316 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %315) #11
          to label %317 unwind label %327

317:                                              ; preds = %309
  store ptr %316, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #10
  store i32 0, ptr %45, align 4, !tbaa !9
  br label %318

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

322:                                              ; preds = %318
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #10
  br label %347

323:                                              ; preds = %301
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %11, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %12, align 4
  br label %789

327:                                              ; preds = %309
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %11, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %12, align 4
  br label %788

331:                                              ; preds = %318
  %332 = load ptr, ptr %43, align 8, !tbaa !5
  %333 = load i32, ptr %45, align 4, !tbaa !9
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds double, ptr %332, i64 %334
  store double 0.000000e+00, ptr %335, align 8, !tbaa !15
  %336 = load i32, ptr %45, align 4, !tbaa !9
  %337 = add nsw i32 %336, 2
  %338 = sitofp i32 %337 to double
  %339 = fadd double 3.000000e+00, %338
  %340 = load ptr, ptr %44, align 8, !tbaa !5
  %341 = load i32, ptr %45, align 4, !tbaa !9
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds double, ptr %340, i64 %342
  store double %339, ptr %343, align 8, !tbaa !15
  br label %344

344:                                              ; preds = %331
  %345 = load i32, ptr %45, align 4, !tbaa !9
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %45, align 4, !tbaa !9
  br label %318, !llvm.loop !19

347:                                              ; preds = %322
  call void @llvm.lifetime.start.p0(i64 56, ptr %46) #10
  %348 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %46, ptr noundef nonnull align 8 dereferenceable(56) %348)
          to label %349 unwind label %356

349:                                              ; preds = %347
  call void @llvm.lifetime.start.p0(i64 56, ptr %47) #10
  invoke void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %47, ptr noundef nonnull align 8 dereferenceable(56) %9)
          to label %350 unwind label %360

350:                                              ; preds = %349
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #10
  store i32 0, ptr %48, align 4, !tbaa !9
  br label %351

351:                                              ; preds = %430, %350
  %352 = load i32, ptr %48, align 4, !tbaa !9
  %353 = load i32, ptr %7, align 4, !tbaa !9
  %354 = icmp slt i32 %352, %353
  br i1 %354, label %364, label %355

355:                                              ; preds = %351
  store i32 8, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #10
  br label %434

356:                                              ; preds = %347
  %357 = landingpad { ptr, i32 }
          cleanup
  %358 = extractvalue { ptr, i32 } %357, 0
  store ptr %358, ptr %11, align 8
  %359 = extractvalue { ptr, i32 } %357, 1
  store i32 %359, ptr %12, align 4
  br label %787

360:                                              ; preds = %349
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %11, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %12, align 4
  br label %786

364:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #10
  store i32 0, ptr %49, align 4, !tbaa !9
  br label %365

365:                                              ; preds = %390, %364
  %366 = load i32, ptr %49, align 4, !tbaa !9
  %367 = load i32, ptr %8, align 4, !tbaa !9
  %368 = icmp slt i32 %366, %367
  br i1 %368, label %370, label %369

369:                                              ; preds = %365
  store i32 11, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  br label %397

370:                                              ; preds = %365
  %371 = load i32, ptr %48, align 4, !tbaa !9
  %372 = load i32, ptr %49, align 4, !tbaa !9
  %373 = load ptr, ptr %40, align 8, !tbaa !5
  %374 = load i32, ptr %49, align 4, !tbaa !9
  %375 = sext i32 %374 to i64
  %376 = getelementptr inbounds double, ptr %373, i64 %375
  %377 = load double, ptr %376, align 8, !tbaa !15
  %378 = load ptr, ptr %41, align 8, !tbaa !5
  %379 = load i32, ptr %49, align 4, !tbaa !9
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds double, ptr %378, i64 %380
  %382 = load double, ptr %381, align 8, !tbaa !15
  %383 = load ptr, ptr %6, align 8, !tbaa !5
  %384 = load i32, ptr %48, align 4, !tbaa !9
  %385 = load i32, ptr %49, align 4, !tbaa !9
  %386 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %383, i32 noundef %384, i32 noundef %385)
          to label %387 unwind label %393

387:                                              ; preds = %370
  %388 = call double @llvm.fmuladd.f64(double %382, double %386, double %377)
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %46, i32 noundef %371, i32 noundef %372, double noundef %388)
          to label %389 unwind label %393

389:                                              ; preds = %387
  br label %390

390:                                              ; preds = %389
  %391 = load i32, ptr %49, align 4, !tbaa !9
  %392 = add nsw i32 %391, 1
  store i32 %392, ptr %49, align 4, !tbaa !9
  br label %365, !llvm.loop !20

393:                                              ; preds = %387, %370
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %11, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  br label %433

397:                                              ; preds = %369
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #10
  store i32 0, ptr %50, align 4, !tbaa !9
  br label %398

398:                                              ; preds = %422, %397
  %399 = load i32, ptr %50, align 4, !tbaa !9
  %400 = load i32, ptr %10, align 4, !tbaa !9
  %401 = icmp slt i32 %399, %400
  br i1 %401, label %403, label %402

402:                                              ; preds = %398
  store i32 14, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #10
  br label %429

403:                                              ; preds = %398
  %404 = load i32, ptr %48, align 4, !tbaa !9
  %405 = load i32, ptr %50, align 4, !tbaa !9
  %406 = load ptr, ptr %43, align 8, !tbaa !5
  %407 = load i32, ptr %50, align 4, !tbaa !9
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds double, ptr %406, i64 %408
  %410 = load double, ptr %409, align 8, !tbaa !15
  %411 = load ptr, ptr %44, align 8, !tbaa !5
  %412 = load i32, ptr %50, align 4, !tbaa !9
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds double, ptr %411, i64 %413
  %415 = load double, ptr %414, align 8, !tbaa !15
  %416 = load i32, ptr %48, align 4, !tbaa !9
  %417 = load i32, ptr %50, align 4, !tbaa !9
  %418 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %416, i32 noundef %417)
          to label %419 unwind label %425

419:                                              ; preds = %403
  %420 = call double @llvm.fmuladd.f64(double %415, double %418, double %410)
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %47, i32 noundef %404, i32 noundef %405, double noundef %420)
          to label %421 unwind label %425

421:                                              ; preds = %419
  br label %422

422:                                              ; preds = %421
  %423 = load i32, ptr %50, align 4, !tbaa !9
  %424 = add nsw i32 %423, 1
  store i32 %424, ptr %50, align 4, !tbaa !9
  br label %398, !llvm.loop !21

425:                                              ; preds = %419, %403
  %426 = landingpad { ptr, i32 }
          cleanup
  %427 = extractvalue { ptr, i32 } %426, 0
  store ptr %427, ptr %11, align 8
  %428 = extractvalue { ptr, i32 } %426, 1
  store i32 %428, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #10
  br label %433

429:                                              ; preds = %402
  br label %430

430:                                              ; preds = %429
  %431 = load i32, ptr %48, align 4, !tbaa !9
  %432 = add nsw i32 %431, 1
  store i32 %432, ptr %48, align 4, !tbaa !9
  br label %351, !llvm.loop !22

433:                                              ; preds = %425, %393
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #10
  br label %785

434:                                              ; preds = %355
  call void @llvm.lifetime.start.p0(i64 504, ptr %51) #10
  invoke void @_ZN7SGTELIB11TrainingSetC1ERKNS_6MatrixES3_(ptr noundef nonnull align 8 dereferenceable(504) %51, ptr noundef nonnull align 8 dereferenceable(56) %46, ptr noundef nonnull align 8 dereferenceable(56) %47)
          to label %435 unwind label %467

435:                                              ; preds = %434
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #10
  %436 = load ptr, ptr %5, align 8, !tbaa !5
  %437 = invoke noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %51, ptr noundef nonnull align 8 dereferenceable(32) %436)
          to label %438 unwind label %471

438:                                              ; preds = %435
  store ptr %437, ptr %52, align 8, !tbaa !5
  %439 = load ptr, ptr %52, align 8, !tbaa !5
  %440 = invoke noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985) %439)
          to label %441 unwind label %471

441:                                              ; preds = %438
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #10
  %442 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
          to label %443 unwind label %475

443:                                              ; preds = %441
  store i1 true, ptr %56, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %54) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %55) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef @.str.69, ptr noundef nonnull align 1 dereferenceable(1) %55)
          to label %444 unwind label %479

444:                                              ; preds = %443
  %445 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %442, ptr noundef nonnull align 8 dereferenceable(32) %54, i32 noundef 3, i32 noundef %445)
          to label %446 unwind label %483

446:                                              ; preds = %444
  store i1 false, ptr %56, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %54) #10
  store ptr %442, ptr %53, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #10
  %447 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
          to label %448 unwind label %491

448:                                              ; preds = %446
  store i1 true, ptr %60, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %58) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %59) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %58, ptr noundef @.str.70, ptr noundef nonnull align 1 dereferenceable(1) %59)
          to label %449 unwind label %495

449:                                              ; preds = %448
  %450 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %447, ptr noundef nonnull align 8 dereferenceable(32) %58, i32 noundef 3, i32 noundef %450)
          to label %451 unwind label %499

451:                                              ; preds = %449
  store i1 false, ptr %60, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %58) #10
  store ptr %447, ptr %57, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #10
  %452 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
          to label %453 unwind label %507

453:                                              ; preds = %451
  store i1 true, ptr %64, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %62) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %63) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %63) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef @.str.71, ptr noundef nonnull align 1 dereferenceable(1) %63)
          to label %454 unwind label %511

454:                                              ; preds = %453
  %455 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %452, ptr noundef nonnull align 8 dereferenceable(32) %62, i32 noundef 3, i32 noundef %455)
          to label %456 unwind label %515

456:                                              ; preds = %454
  store i1 false, ptr %64, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %63) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %62) #10
  store ptr %452, ptr %61, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #10
  %457 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
          to label %458 unwind label %523

458:                                              ; preds = %456
  store i1 true, ptr %68, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %66) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %67) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %67) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %66, ptr noundef @.str.72, ptr noundef nonnull align 1 dereferenceable(1) %67)
          to label %459 unwind label %527

459:                                              ; preds = %458
  %460 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %457, ptr noundef nonnull align 8 dereferenceable(32) %66, i32 noundef 3, i32 noundef %460)
          to label %461 unwind label %531

461:                                              ; preds = %459
  store i1 false, ptr %68, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %66) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %67) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %67) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %66) #10
  store ptr %457, ptr %65, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %69) #10
  invoke void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %69, ptr noundef nonnull align 8 dereferenceable(56) %21)
          to label %462 unwind label %539

462:                                              ; preds = %461
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #10
  store i32 0, ptr %70, align 4, !tbaa !9
  br label %463

463:                                              ; preds = %576, %462
  %464 = load i32, ptr %70, align 4, !tbaa !9
  %465 = icmp slt i32 %464, 3
  br i1 %465, label %543, label %466

466:                                              ; preds = %463
  store i32 17, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #10
  br label %579

467:                                              ; preds = %434
  %468 = landingpad { ptr, i32 }
          cleanup
  %469 = extractvalue { ptr, i32 } %468, 0
  store ptr %469, ptr %11, align 8
  %470 = extractvalue { ptr, i32 } %468, 1
  store i32 %470, ptr %12, align 4
  br label %784

471:                                              ; preds = %438, %435
  %472 = landingpad { ptr, i32 }
          cleanup
  %473 = extractvalue { ptr, i32 } %472, 0
  store ptr %473, ptr %11, align 8
  %474 = extractvalue { ptr, i32 } %472, 1
  store i32 %474, ptr %12, align 4
  br label %783

475:                                              ; preds = %441
  %476 = landingpad { ptr, i32 }
          cleanup
  %477 = extractvalue { ptr, i32 } %476, 0
  store ptr %477, ptr %11, align 8
  %478 = extractvalue { ptr, i32 } %476, 1
  store i32 %478, ptr %12, align 4
  br label %782

479:                                              ; preds = %443
  %480 = landingpad { ptr, i32 }
          cleanup
  %481 = extractvalue { ptr, i32 } %480, 0
  store ptr %481, ptr %11, align 8
  %482 = extractvalue { ptr, i32 } %480, 1
  store i32 %482, ptr %12, align 4
  br label %487

483:                                              ; preds = %444
  %484 = landingpad { ptr, i32 }
          cleanup
  %485 = extractvalue { ptr, i32 } %484, 0
  store ptr %485, ptr %11, align 8
  %486 = extractvalue { ptr, i32 } %484, 1
  store i32 %486, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #10
  br label %487

487:                                              ; preds = %483, %479
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %54) #10
  %488 = load i1, ptr %56, align 1
  br i1 %488, label %489, label %490

489:                                              ; preds = %487
  call void @_ZdlPvm(ptr noundef %442, i64 noundef 56) #12
  br label %490

490:                                              ; preds = %489, %487
  br label %782

491:                                              ; preds = %446
  %492 = landingpad { ptr, i32 }
          cleanup
  %493 = extractvalue { ptr, i32 } %492, 0
  store ptr %493, ptr %11, align 8
  %494 = extractvalue { ptr, i32 } %492, 1
  store i32 %494, ptr %12, align 4
  br label %781

495:                                              ; preds = %448
  %496 = landingpad { ptr, i32 }
          cleanup
  %497 = extractvalue { ptr, i32 } %496, 0
  store ptr %497, ptr %11, align 8
  %498 = extractvalue { ptr, i32 } %496, 1
  store i32 %498, ptr %12, align 4
  br label %503

499:                                              ; preds = %449
  %500 = landingpad { ptr, i32 }
          cleanup
  %501 = extractvalue { ptr, i32 } %500, 0
  store ptr %501, ptr %11, align 8
  %502 = extractvalue { ptr, i32 } %500, 1
  store i32 %502, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #10
  br label %503

503:                                              ; preds = %499, %495
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %58) #10
  %504 = load i1, ptr %60, align 1
  br i1 %504, label %505, label %506

505:                                              ; preds = %503
  call void @_ZdlPvm(ptr noundef %447, i64 noundef 56) #12
  br label %506

506:                                              ; preds = %505, %503
  br label %781

507:                                              ; preds = %451
  %508 = landingpad { ptr, i32 }
          cleanup
  %509 = extractvalue { ptr, i32 } %508, 0
  store ptr %509, ptr %11, align 8
  %510 = extractvalue { ptr, i32 } %508, 1
  store i32 %510, ptr %12, align 4
  br label %780

511:                                              ; preds = %453
  %512 = landingpad { ptr, i32 }
          cleanup
  %513 = extractvalue { ptr, i32 } %512, 0
  store ptr %513, ptr %11, align 8
  %514 = extractvalue { ptr, i32 } %512, 1
  store i32 %514, ptr %12, align 4
  br label %519

515:                                              ; preds = %454
  %516 = landingpad { ptr, i32 }
          cleanup
  %517 = extractvalue { ptr, i32 } %516, 0
  store ptr %517, ptr %11, align 8
  %518 = extractvalue { ptr, i32 } %516, 1
  store i32 %518, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #10
  br label %519

519:                                              ; preds = %515, %511
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %63) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %62) #10
  %520 = load i1, ptr %64, align 1
  br i1 %520, label %521, label %522

521:                                              ; preds = %519
  call void @_ZdlPvm(ptr noundef %452, i64 noundef 56) #12
  br label %522

522:                                              ; preds = %521, %519
  br label %780

523:                                              ; preds = %456
  %524 = landingpad { ptr, i32 }
          cleanup
  %525 = extractvalue { ptr, i32 } %524, 0
  store ptr %525, ptr %11, align 8
  %526 = extractvalue { ptr, i32 } %524, 1
  store i32 %526, ptr %12, align 4
  br label %779

527:                                              ; preds = %458
  %528 = landingpad { ptr, i32 }
          cleanup
  %529 = extractvalue { ptr, i32 } %528, 0
  store ptr %529, ptr %11, align 8
  %530 = extractvalue { ptr, i32 } %528, 1
  store i32 %530, ptr %12, align 4
  br label %535

531:                                              ; preds = %459
  %532 = landingpad { ptr, i32 }
          cleanup
  %533 = extractvalue { ptr, i32 } %532, 0
  store ptr %533, ptr %11, align 8
  %534 = extractvalue { ptr, i32 } %532, 1
  store i32 %534, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %66) #10
  br label %535

535:                                              ; preds = %531, %527
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %67) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %67) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %66) #10
  %536 = load i1, ptr %68, align 1
  br i1 %536, label %537, label %538

537:                                              ; preds = %535
  call void @_ZdlPvm(ptr noundef %457, i64 noundef 56) #12
  br label %538

538:                                              ; preds = %537, %535
  br label %779

539:                                              ; preds = %461
  %540 = landingpad { ptr, i32 }
          cleanup
  %541 = extractvalue { ptr, i32 } %540, 0
  store ptr %541, ptr %11, align 8
  %542 = extractvalue { ptr, i32 } %540, 1
  store i32 %542, ptr %12, align 4
  br label %778

543:                                              ; preds = %463
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #10
  store i32 0, ptr %71, align 4, !tbaa !9
  br label %544

544:                                              ; preds = %568, %543
  %545 = load i32, ptr %71, align 4, !tbaa !9
  %546 = load i32, ptr %8, align 4, !tbaa !9
  %547 = icmp slt i32 %545, %546
  br i1 %547, label %549, label %548

548:                                              ; preds = %544
  store i32 20, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #10
  br label %575

549:                                              ; preds = %544
  %550 = load i32, ptr %70, align 4, !tbaa !9
  %551 = load i32, ptr %71, align 4, !tbaa !9
  %552 = load ptr, ptr %40, align 8, !tbaa !5
  %553 = load i32, ptr %71, align 4, !tbaa !9
  %554 = sext i32 %553 to i64
  %555 = getelementptr inbounds double, ptr %552, i64 %554
  %556 = load double, ptr %555, align 8, !tbaa !15
  %557 = load ptr, ptr %41, align 8, !tbaa !5
  %558 = load i32, ptr %71, align 4, !tbaa !9
  %559 = sext i32 %558 to i64
  %560 = getelementptr inbounds double, ptr %557, i64 %559
  %561 = load double, ptr %560, align 8, !tbaa !15
  %562 = load i32, ptr %70, align 4, !tbaa !9
  %563 = load i32, ptr %71, align 4, !tbaa !9
  %564 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %21, i32 noundef %562, i32 noundef %563)
          to label %565 unwind label %571

565:                                              ; preds = %549
  %566 = call double @llvm.fmuladd.f64(double %561, double %564, double %556)
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %69, i32 noundef %550, i32 noundef %551, double noundef %566)
          to label %567 unwind label %571

567:                                              ; preds = %565
  br label %568

568:                                              ; preds = %567
  %569 = load i32, ptr %71, align 4, !tbaa !9
  %570 = add nsw i32 %569, 1
  store i32 %570, ptr %71, align 4, !tbaa !9
  br label %544, !llvm.loop !23

571:                                              ; preds = %565, %549
  %572 = landingpad { ptr, i32 }
          cleanup
  %573 = extractvalue { ptr, i32 } %572, 0
  store ptr %573, ptr %11, align 8
  %574 = extractvalue { ptr, i32 } %572, 1
  store i32 %574, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #10
  br label %777

575:                                              ; preds = %548
  br label %576

576:                                              ; preds = %575
  %577 = load i32, ptr %70, align 4, !tbaa !9
  %578 = add nsw i32 %577, 1
  store i32 %578, ptr %70, align 4, !tbaa !9
  br label %463, !llvm.loop !24

579:                                              ; preds = %466
  %580 = load ptr, ptr %52, align 8, !tbaa !5
  %581 = load ptr, ptr %53, align 8, !tbaa !5
  %582 = load ptr, ptr %57, align 8, !tbaa !5
  %583 = load ptr, ptr %61, align 8, !tbaa !5
  %584 = load ptr, ptr %65, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB9Surrogate7predictERKNS_6MatrixEPS1_S4_S4_S4_(ptr noundef nonnull align 8 dereferenceable(985) %580, ptr noundef nonnull align 8 dereferenceable(56) %69, ptr noundef %581, ptr noundef %582, ptr noundef %583, ptr noundef %584)
          to label %585 unwind label %590

585:                                              ; preds = %579
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #10
  store i32 0, ptr %72, align 4, !tbaa !9
  br label %586

586:                                              ; preds = %660, %585
  %587 = load i32, ptr %72, align 4, !tbaa !9
  %588 = icmp slt i32 %587, 3
  br i1 %588, label %594, label %589

589:                                              ; preds = %586
  store i32 23, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #10
  br label %663

590:                                              ; preds = %769, %766, %764, %690, %688, %685, %683, %680, %678, %675, %673, %670, %668, %666, %663, %579
  %591 = landingpad { ptr, i32 }
          cleanup
  %592 = extractvalue { ptr, i32 } %591, 0
  store ptr %592, ptr %11, align 8
  %593 = extractvalue { ptr, i32 } %591, 1
  store i32 %593, ptr %12, align 4
  br label %777

594:                                              ; preds = %586
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #10
  store i32 0, ptr %73, align 4, !tbaa !9
  br label %595

595:                                              ; preds = %652, %594
  %596 = load i32, ptr %73, align 4, !tbaa !9
  %597 = load i32, ptr %10, align 4, !tbaa !9
  %598 = icmp slt i32 %596, %597
  br i1 %598, label %600, label %599

599:                                              ; preds = %595
  store i32 26, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #10
  br label %659

600:                                              ; preds = %595
  %601 = load ptr, ptr %53, align 8, !tbaa !5
  %602 = load i32, ptr %72, align 4, !tbaa !9
  %603 = load i32, ptr %73, align 4, !tbaa !9
  %604 = load ptr, ptr %53, align 8, !tbaa !5
  %605 = load i32, ptr %72, align 4, !tbaa !9
  %606 = load i32, ptr %73, align 4, !tbaa !9
  %607 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %604, i32 noundef %605, i32 noundef %606)
          to label %608 unwind label %655

608:                                              ; preds = %600
  %609 = load ptr, ptr %43, align 8, !tbaa !5
  %610 = load i32, ptr %73, align 4, !tbaa !9
  %611 = sext i32 %610 to i64
  %612 = getelementptr inbounds double, ptr %609, i64 %611
  %613 = load double, ptr %612, align 8, !tbaa !15
  %614 = fsub double %607, %613
  %615 = load ptr, ptr %44, align 8, !tbaa !5
  %616 = load i32, ptr %73, align 4, !tbaa !9
  %617 = sext i32 %616 to i64
  %618 = getelementptr inbounds double, ptr %615, i64 %617
  %619 = load double, ptr %618, align 8, !tbaa !15
  %620 = fdiv double %614, %619
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %601, i32 noundef %602, i32 noundef %603, double noundef %620)
          to label %621 unwind label %655

621:                                              ; preds = %608
  %622 = load ptr, ptr %57, align 8, !tbaa !5
  %623 = load i32, ptr %72, align 4, !tbaa !9
  %624 = load i32, ptr %73, align 4, !tbaa !9
  %625 = load ptr, ptr %57, align 8, !tbaa !5
  %626 = load i32, ptr %72, align 4, !tbaa !9
  %627 = load i32, ptr %73, align 4, !tbaa !9
  %628 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %625, i32 noundef %626, i32 noundef %627)
          to label %629 unwind label %655

629:                                              ; preds = %621
  %630 = load ptr, ptr %44, align 8, !tbaa !5
  %631 = load i32, ptr %73, align 4, !tbaa !9
  %632 = sext i32 %631 to i64
  %633 = getelementptr inbounds double, ptr %630, i64 %632
  %634 = load double, ptr %633, align 8, !tbaa !15
  %635 = fdiv double %628, %634
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %622, i32 noundef %623, i32 noundef %624, double noundef %635)
          to label %636 unwind label %655

636:                                              ; preds = %629
  %637 = load ptr, ptr %61, align 8, !tbaa !5
  %638 = load i32, ptr %72, align 4, !tbaa !9
  %639 = load i32, ptr %73, align 4, !tbaa !9
  %640 = load ptr, ptr %61, align 8, !tbaa !5
  %641 = load i32, ptr %72, align 4, !tbaa !9
  %642 = load i32, ptr %73, align 4, !tbaa !9
  %643 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %640, i32 noundef %641, i32 noundef %642)
          to label %644 unwind label %655

644:                                              ; preds = %636
  %645 = load ptr, ptr %44, align 8, !tbaa !5
  %646 = load i32, ptr %73, align 4, !tbaa !9
  %647 = sext i32 %646 to i64
  %648 = getelementptr inbounds double, ptr %645, i64 %647
  %649 = load double, ptr %648, align 8, !tbaa !15
  %650 = fdiv double %643, %649
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %637, i32 noundef %638, i32 noundef %639, double noundef %650)
          to label %651 unwind label %655

651:                                              ; preds = %644
  br label %652

652:                                              ; preds = %651
  %653 = load i32, ptr %73, align 4, !tbaa !9
  %654 = add nsw i32 %653, 1
  store i32 %654, ptr %73, align 4, !tbaa !9
  br label %595, !llvm.loop !25

655:                                              ; preds = %644, %636, %629, %621, %608, %600
  %656 = landingpad { ptr, i32 }
          cleanup
  %657 = extractvalue { ptr, i32 } %656, 0
  store ptr %657, ptr %11, align 8
  %658 = extractvalue { ptr, i32 } %656, 1
  store i32 %658, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #10
  br label %777

659:                                              ; preds = %599
  br label %660

660:                                              ; preds = %659
  %661 = load i32, ptr %72, align 4, !tbaa !9
  %662 = add nsw i32 %661, 1
  store i32 %662, ptr %72, align 4, !tbaa !9
  br label %586, !llvm.loop !26

663:                                              ; preds = %589
  %664 = load ptr, ptr %5, align 8, !tbaa !5
  %665 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %664)
          to label %666 unwind label %590

666:                                              ; preds = %663
  %667 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %665, ptr noundef @.str.6)
          to label %668 unwind label %590

668:                                              ; preds = %666
  %669 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.85)
          to label %670 unwind label %590

670:                                              ; preds = %668
  %671 = load ptr, ptr %24, align 8, !tbaa !5
  %672 = load ptr, ptr %53, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB17check_matrix_diffEPKNS_6MatrixES2_(ptr noundef %671, ptr noundef %672)
          to label %673 unwind label %590

673:                                              ; preds = %670
  %674 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.86)
          to label %675 unwind label %590

675:                                              ; preds = %673
  %676 = load ptr, ptr %28, align 8, !tbaa !5
  %677 = load ptr, ptr %57, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB17check_matrix_diffEPKNS_6MatrixES2_(ptr noundef %676, ptr noundef %677)
          to label %678 unwind label %590

678:                                              ; preds = %675
  %679 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.87)
          to label %680 unwind label %590

680:                                              ; preds = %678
  %681 = load ptr, ptr %32, align 8, !tbaa !5
  %682 = load ptr, ptr %61, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB17check_matrix_diffEPKNS_6MatrixES2_(ptr noundef %681, ptr noundef %682)
          to label %683 unwind label %590

683:                                              ; preds = %680
  %684 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.88)
          to label %685 unwind label %590

685:                                              ; preds = %683
  %686 = load ptr, ptr %36, align 8, !tbaa !5
  %687 = load ptr, ptr %65, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB17check_matrix_diffEPKNS_6MatrixES2_(ptr noundef %686, ptr noundef %687)
          to label %688 unwind label %590

688:                                              ; preds = %685
  %689 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef %689)
          to label %690 unwind label %590

690:                                              ; preds = %688
  %691 = load ptr, ptr %52, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef %691)
          to label %692 unwind label %590

692:                                              ; preds = %690
  %693 = load ptr, ptr %24, align 8, !tbaa !5
  %694 = icmp eq ptr %693, null
  br i1 %694, label %699, label %695

695:                                              ; preds = %692
  %696 = load ptr, ptr %693, align 8, !tbaa !27
  %697 = getelementptr inbounds ptr, ptr %696, i64 1
  %698 = load ptr, ptr %697, align 8
  call void %698(ptr noundef nonnull align 8 dereferenceable(56) %693) #10
  br label %699

699:                                              ; preds = %695, %692
  %700 = load ptr, ptr %28, align 8, !tbaa !5
  %701 = icmp eq ptr %700, null
  br i1 %701, label %706, label %702

702:                                              ; preds = %699
  %703 = load ptr, ptr %700, align 8, !tbaa !27
  %704 = getelementptr inbounds ptr, ptr %703, i64 1
  %705 = load ptr, ptr %704, align 8
  call void %705(ptr noundef nonnull align 8 dereferenceable(56) %700) #10
  br label %706

706:                                              ; preds = %702, %699
  %707 = load ptr, ptr %32, align 8, !tbaa !5
  %708 = icmp eq ptr %707, null
  br i1 %708, label %713, label %709

709:                                              ; preds = %706
  %710 = load ptr, ptr %707, align 8, !tbaa !27
  %711 = getelementptr inbounds ptr, ptr %710, i64 1
  %712 = load ptr, ptr %711, align 8
  call void %712(ptr noundef nonnull align 8 dereferenceable(56) %707) #10
  br label %713

713:                                              ; preds = %709, %706
  %714 = load ptr, ptr %36, align 8, !tbaa !5
  %715 = icmp eq ptr %714, null
  br i1 %715, label %720, label %716

716:                                              ; preds = %713
  %717 = load ptr, ptr %714, align 8, !tbaa !27
  %718 = getelementptr inbounds ptr, ptr %717, i64 1
  %719 = load ptr, ptr %718, align 8
  call void %719(ptr noundef nonnull align 8 dereferenceable(56) %714) #10
  br label %720

720:                                              ; preds = %716, %713
  %721 = load ptr, ptr %53, align 8, !tbaa !5
  %722 = icmp eq ptr %721, null
  br i1 %722, label %727, label %723

723:                                              ; preds = %720
  %724 = load ptr, ptr %721, align 8, !tbaa !27
  %725 = getelementptr inbounds ptr, ptr %724, i64 1
  %726 = load ptr, ptr %725, align 8
  call void %726(ptr noundef nonnull align 8 dereferenceable(56) %721) #10
  br label %727

727:                                              ; preds = %723, %720
  %728 = load ptr, ptr %57, align 8, !tbaa !5
  %729 = icmp eq ptr %728, null
  br i1 %729, label %734, label %730

730:                                              ; preds = %727
  %731 = load ptr, ptr %728, align 8, !tbaa !27
  %732 = getelementptr inbounds ptr, ptr %731, i64 1
  %733 = load ptr, ptr %732, align 8
  call void %733(ptr noundef nonnull align 8 dereferenceable(56) %728) #10
  br label %734

734:                                              ; preds = %730, %727
  %735 = load ptr, ptr %61, align 8, !tbaa !5
  %736 = icmp eq ptr %735, null
  br i1 %736, label %741, label %737

737:                                              ; preds = %734
  %738 = load ptr, ptr %735, align 8, !tbaa !27
  %739 = getelementptr inbounds ptr, ptr %738, i64 1
  %740 = load ptr, ptr %739, align 8
  call void %740(ptr noundef nonnull align 8 dereferenceable(56) %735) #10
  br label %741

741:                                              ; preds = %737, %734
  %742 = load ptr, ptr %65, align 8, !tbaa !5
  %743 = icmp eq ptr %742, null
  br i1 %743, label %748, label %744

744:                                              ; preds = %741
  %745 = load ptr, ptr %742, align 8, !tbaa !27
  %746 = getelementptr inbounds ptr, ptr %745, i64 1
  %747 = load ptr, ptr %746, align 8
  call void %747(ptr noundef nonnull align 8 dereferenceable(56) %742) #10
  br label %748

748:                                              ; preds = %744, %741
  %749 = load ptr, ptr %40, align 8, !tbaa !5
  %750 = icmp eq ptr %749, null
  br i1 %750, label %752, label %751

751:                                              ; preds = %748
  call void @_ZdaPv(ptr noundef %749) #12
  br label %752

752:                                              ; preds = %751, %748
  %753 = load ptr, ptr %41, align 8, !tbaa !5
  %754 = icmp eq ptr %753, null
  br i1 %754, label %756, label %755

755:                                              ; preds = %752
  call void @_ZdaPv(ptr noundef %753) #12
  br label %756

756:                                              ; preds = %755, %752
  %757 = load ptr, ptr %43, align 8, !tbaa !5
  %758 = icmp eq ptr %757, null
  br i1 %758, label %760, label %759

759:                                              ; preds = %756
  call void @_ZdaPv(ptr noundef %757) #12
  br label %760

760:                                              ; preds = %759, %756
  %761 = load ptr, ptr %44, align 8, !tbaa !5
  %762 = icmp eq ptr %761, null
  br i1 %762, label %764, label %763

763:                                              ; preds = %760
  call void @_ZdaPv(ptr noundef %761) #12
  br label %764

764:                                              ; preds = %763, %760
  %765 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.89)
          to label %766 unwind label %590

766:                                              ; preds = %764
  %767 = load ptr, ptr %5, align 8, !tbaa !5
  %768 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %765, ptr noundef nonnull align 8 dereferenceable(32) %767)
          to label %769 unwind label %590

769:                                              ; preds = %766
  %770 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %768, ptr noundef @.str.6)
          to label %771 unwind label %590

771:                                              ; preds = %769
  call void @llvm.lifetime.start.p0(i64 1, ptr %74) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %74) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef @.str.90, ptr noundef nonnull align 1 dereferenceable(1) %74)
          to label %772 unwind label %773

772:                                              ; preds = %771
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %74) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %74) #10
  store i32 1, ptr %19, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %69) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %69) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #10
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %51) #10
  call void @llvm.lifetime.end.p0(i64 504, ptr %51) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %47) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %47) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %46) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  br label %798

773:                                              ; preds = %771
  %774 = landingpad { ptr, i32 }
          cleanup
  %775 = extractvalue { ptr, i32 } %774, 0
  store ptr %775, ptr %11, align 8
  %776 = extractvalue { ptr, i32 } %774, 1
  store i32 %776, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %74) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %74) #10
  br label %777

777:                                              ; preds = %773, %655, %590, %571
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %69) #10
  br label %778

778:                                              ; preds = %777, %539
  call void @llvm.lifetime.end.p0(i64 56, ptr %69) #10
  br label %779

779:                                              ; preds = %778, %538, %523
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #10
  br label %780

780:                                              ; preds = %779, %522, %507
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #10
  br label %781

781:                                              ; preds = %780, %506, %491
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  br label %782

782:                                              ; preds = %781, %490, %475
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #10
  br label %783

783:                                              ; preds = %782, %471
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #10
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %51) #10
  br label %784

784:                                              ; preds = %783, %467
  call void @llvm.lifetime.end.p0(i64 504, ptr %51) #10
  br label %785

785:                                              ; preds = %784, %433
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %47) #10
  br label %786

786:                                              ; preds = %785, %360
  call void @llvm.lifetime.end.p0(i64 56, ptr %47) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %46) #10
  br label %787

787:                                              ; preds = %786, %356
  call void @llvm.lifetime.end.p0(i64 56, ptr %46) #10
  br label %788

788:                                              ; preds = %787, %327
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  br label %789

789:                                              ; preds = %788, %323
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #10
  br label %790

790:                                              ; preds = %789, %277
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #10
  br label %791

791:                                              ; preds = %790, %273
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  br label %792

792:                                              ; preds = %791, %272, %257
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  br label %793

793:                                              ; preds = %792, %256, %241
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  br label %794

794:                                              ; preds = %793, %240, %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  br label %795

795:                                              ; preds = %794, %224, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %796

796:                                              ; preds = %795, %205
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #10
  br label %797

797:                                              ; preds = %796, %204
  call void @llvm.lifetime.end.p0(i64 56, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  br label %799

798:                                              ; preds = %772, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %14) #10
  call void @llvm.lifetime.end.p0(i64 504, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  ret void

799:                                              ; preds = %797, %143, %134, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %14) #10
  br label %800

800:                                              ; preds = %799, %113
  call void @llvm.lifetime.end.p0(i64 504, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #10
  br label %801

801:                                              ; preds = %800, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  br label %802

802:                                              ; preds = %801
  %803 = load ptr, ptr %11, align 8
  %804 = load i32, ptr %12, align 4
  %805 = insertvalue { ptr, i32 } poison, ptr %803, 0
  %806 = insertvalue { ptr, i32 } %805, i32 %804, 1
  resume { ptr, i32 } %806
}

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 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 #6 = { 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 #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 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !8, i64 0}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.SGTELIB::Matrix" = type { ptr, %"class.std::__cxx11::basic_string", i32, i32, ptr }
%"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::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.std::allocator" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

; 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

declare i32 @__gxx_personality_v0(...)

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 #2 align 2

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #6

declare void @_ZN7SGTELIB6Matrix10set_randomEddb(ptr noundef nonnull align 8 dereferenceable(56), double noundef, double noundef, i1 noundef zeroext) local_unnamed_addr #4

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

declare noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985)) local_unnamed_addr #4

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

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

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

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

declare void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_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 #0

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

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

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

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

declare void @_ZN7SGTELIB9Surrogate7predictERKNS_6MatrixEPS1_S4_S4_S4_(ptr noundef nonnull align 8 dereferenceable(985), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7SGTELIB17check_matrix_diffEPKNS_6MatrixES2_(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, double noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7SGTELIB10test_scaleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_6MatrixE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(56) %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.SGTELIB::Matrix", align 8
  %5 = alloca %"class.SGTELIB::TrainingSet", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.SGTELIB::Matrix", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca %"class.SGTELIB::Matrix", align 8
  %21 = alloca %"class.SGTELIB::Matrix", align 8
  %22 = alloca %"class.SGTELIB::TrainingSet", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::allocator", align 1
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator", align 1
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator", align 1
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator", align 1
  %31 = alloca %"class.SGTELIB::Matrix", align 8
  %32 = alloca %"class.std::allocator", align 1
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.15)
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.82)
  %35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @.str.6)
  %37 = tail call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %2)
  %38 = tail call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %2)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #11
  call void @_ZN7SGTELIB14test_functionsERKNS_6MatrixE(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %4, ptr noundef nonnull align 8 dereferenceable(56) %2)
  %39 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %4)
  call void @llvm.lifetime.start.p0(i64 504, ptr nonnull %5) #11
  invoke void @_ZN7SGTELIB11TrainingSetC1ERKNS_6MatrixES3_(ptr noundef nonnull align 8 dereferenceable(504) %5, ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %40 unwind label %53

40:                                               ; preds = %3
  %41 = invoke noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %5, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %42 unwind label %55

42:                                               ; preds = %40
  %43 = invoke noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985) %41)
          to label %44 unwind label %55

44:                                               ; preds = %42
  br i1 %43, label %70, label %45

45:                                               ; preds = %44
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef nonnull %41)
          to label %46 unwind label %55

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #11
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull @.str.83, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %47 unwind label %57

47:                                               ; preds = %46
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.32)
          to label %48 unwind label %59

48:                                               ; preds = %47
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %50 unwind label %61

50:                                               ; preds = %48
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #11
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull @.str.83, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %51 unwind label %65

51:                                               ; preds = %50
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.32)
          to label %52 unwind label %67

52:                                               ; preds = %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #11
  br label %397

53:                                               ; preds = %3
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %399

55:                                               ; preds = %45, %42, %40
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %398

57:                                               ; preds = %46
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %64

59:                                               ; preds = %47
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

61:                                               ; preds = %48
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  br label %63

63:                                               ; preds = %61, %59
  %.pn = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  br label %64

64:                                               ; preds = %63, %57
  %.pn.pn = phi { ptr, i32 } [ %.pn, %63 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #11
  br label %398

65:                                               ; preds = %50
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %69

67:                                               ; preds = %51
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  br label %69

69:                                               ; preds = %67, %65
  %.pn206 = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #11
  br label %398

70:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.84, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %71 unwind label %111

71:                                               ; preds = %70
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 3, i32 noundef %38)
          to label %72 unwind label %113

72:                                               ; preds = %71
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #11
  invoke void @_ZN7SGTELIB6Matrix10set_randomEddb(ptr noundef nonnull align 8 dereferenceable(56) %9, double noundef -5.000000e+00, double noundef 5.000000e+00, i1 noundef zeroext false)
          to label %73 unwind label %116

73:                                               ; preds = %72
  %74 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #12
          to label %75 unwind label %118

75:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.45, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %76 unwind label %120

76:                                               ; preds = %75
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %74, ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 3, i32 noundef %39)
          to label %77 unwind label %122

77:                                               ; preds = %76
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #11
  %78 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #12
          to label %79 unwind label %125

79:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull @.str.46, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %80 unwind label %127

80:                                               ; preds = %79
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %78, ptr noundef nonnull align 8 dereferenceable(32) %14, i32 noundef 3, i32 noundef %39)
          to label %81 unwind label %129

81:                                               ; preds = %80
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #11
  %82 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #12
          to label %83 unwind label %132

83:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.47, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %84 unwind label %134

84:                                               ; preds = %83
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %82, ptr noundef nonnull align 8 dereferenceable(32) %16, i32 noundef 3, i32 noundef %39)
          to label %85 unwind label %136

85:                                               ; preds = %84
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #11
  %86 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #12
          to label %87 unwind label %139

87:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull @.str.48, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %88 unwind label %141

88:                                               ; preds = %87
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %86, ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef 3, i32 noundef %39)
          to label %89 unwind label %143

89:                                               ; preds = %88
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #11
  invoke void @_ZN7SGTELIB9Surrogate7predictERKNS_6MatrixEPS1_S4_S4_S4_(ptr noundef nonnull align 8 dereferenceable(985) %41, ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull %74, ptr noundef nonnull %78, ptr noundef nonnull %82, ptr noundef nonnull %86)
          to label %90 unwind label %139

90:                                               ; preds = %89
  %91 = zext i32 %38 to i64
  %92 = icmp slt i32 %38, 0
  %93 = shl nuw nsw i64 %91, 3
  %94 = select i1 %92, i64 -1, i64 %93
  %95 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %94) #12
          to label %96 unwind label %146

96:                                               ; preds = %90
  %97 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %94) #12
          to label %.preheader259 unwind label %148

.preheader259:                                    ; preds = %96
  %98 = icmp sgt i32 %38, 0
  br i1 %98, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader259
  %min.iters.check = icmp eq i32 %38, 1
  br i1 %min.iters.check, label %.lr.ph.preheader363, label %vector.ph

.lr.ph.preheader363:                              ; 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 %91, 2147483646
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i32> [ <i32 0, i32 1>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %99 = add <2 x i32> %vec.ind, <i32 2, i32 2>
  %100 = uitofp <2 x i32> %99 to <2 x double>
  %101 = getelementptr inbounds double, ptr %95, i64 %index
  store <2 x double> %100, ptr %101, align 8, !tbaa !5
  %102 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %100
  %103 = fadd <2 x double> %102, <double 1.500000e+00, double 1.500000e+00>
  %104 = getelementptr inbounds double, ptr %97, i64 %index
  store <2 x double> %103, ptr %104, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 2
  %vec.ind.next = add <2 x i32> %vec.ind, <i32 2, i32 2>
  %105 = icmp eq i64 %index.next, %n.vec
  br i1 %105, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %91
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader363

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %.preheader259
  %106 = zext i32 %39 to i64
  %107 = icmp slt i32 %39, 0
  %108 = shl nuw nsw i64 %106, 3
  %109 = select i1 %107, i64 -1, i64 %108
  %110 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %109) #12
          to label %157 unwind label %167

111:                                              ; preds = %70
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %115

113:                                              ; preds = %71
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #11
  br label %115

115:                                              ; preds = %113, %111
  %.pn208 = phi { ptr, i32 } [ %114, %113 ], [ %112, %111 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #11
  br label %396

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

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

120:                                              ; preds = %75
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %124

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

124:                                              ; preds = %122, %120
  %.pn210 = phi { ptr, i32 } [ %123, %122 ], [ %121, %120 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #11
  call void @_ZdlPvm(ptr noundef nonnull %74, i64 noundef 56) #13
  br label %395

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

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

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

131:                                              ; preds = %129, %127
  %.pn212 = phi { ptr, i32 } [ %130, %129 ], [ %128, %127 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #11
  call void @_ZdlPvm(ptr noundef nonnull %78, i64 noundef 56) #13
  br label %395

132:                                              ; preds = %81
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %395

134:                                              ; preds = %83
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %138

136:                                              ; preds = %84
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  br label %138

138:                                              ; preds = %136, %134
  %.pn214 = phi { ptr, i32 } [ %137, %136 ], [ %135, %134 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #11
  call void @_ZdlPvm(ptr noundef nonnull %82, i64 noundef 56) #13
  br label %395

139:                                              ; preds = %89, %85
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %395

141:                                              ; preds = %87
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %145

143:                                              ; preds = %88
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #11
  br label %145

145:                                              ; preds = %143, %141
  %.pn216 = phi { ptr, i32 } [ %144, %143 ], [ %142, %141 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #11
  call void @_ZdlPvm(ptr noundef nonnull %86, i64 noundef 56) #13
  br label %395

146:                                              ; preds = %90
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %395

148:                                              ; preds = %96
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %395

.lr.ph:                                           ; preds = %.lr.ph.preheader363, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader363 ]
  %150 = trunc i64 %indvars.iv to i32
  %151 = add i32 %150, 2
  %152 = uitofp nneg i32 %151 to double
  %153 = getelementptr inbounds double, ptr %95, i64 %indvars.iv
  store double %152, ptr %153, align 8, !tbaa !5
  %154 = fdiv double 1.000000e+00, %152
  %155 = fadd double %154, 1.500000e+00
  %156 = getelementptr inbounds double, ptr %97, i64 %indvars.iv
  store double %155, ptr %156, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %91
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

157:                                              ; preds = %._crit_edge
  %158 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %109) #12
          to label %.preheader258 unwind label %169

.preheader258:                                    ; preds = %157
  %159 = icmp sgt i32 %39, 0
  br i1 %159, label %.lr.ph262.preheader, label %._crit_edge263

.lr.ph262.preheader:                              ; preds = %.preheader258
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %110, i8 0, i64 %108, i1 false), !tbaa !5
  %min.iters.check349 = icmp ult i32 %39, 4
  br i1 %min.iters.check349, label %.lr.ph262.preheader362, label %vector.ph350

.lr.ph262.preheader362:                           ; preds = %middle.block347, %.lr.ph262.preheader
  %indvars.iv303.ph = phi i64 [ 0, %.lr.ph262.preheader ], [ %n.vec352, %middle.block347 ]
  br label %.lr.ph262

vector.ph350:                                     ; preds = %.lr.ph262.preheader
  %n.vec352 = and i64 %106, 2147483644
  br label %vector.body354

vector.body354:                                   ; preds = %vector.body354, %vector.ph350
  %index355 = phi i64 [ 0, %vector.ph350 ], [ %index.next359, %vector.body354 ]
  %vec.ind356 = phi <2 x i32> [ <i32 0, i32 1>, %vector.ph350 ], [ %vec.ind.next358, %vector.body354 ]
  %160 = add <2 x i32> %vec.ind356, <i32 5, i32 5>
  %161 = add <2 x i32> %vec.ind356, <i32 7, i32 7>
  %162 = uitofp <2 x i32> %160 to <2 x double>
  %163 = uitofp <2 x i32> %161 to <2 x double>
  %164 = getelementptr inbounds double, ptr %158, i64 %index355
  %165 = getelementptr inbounds i8, ptr %164, i64 16
  store <2 x double> %162, ptr %164, align 8, !tbaa !5
  store <2 x double> %163, ptr %165, align 8, !tbaa !5
  %index.next359 = add nuw i64 %index355, 4
  %vec.ind.next358 = add <2 x i32> %vec.ind356, <i32 4, i32 4>
  %166 = icmp eq i64 %index.next359, %n.vec352
  br i1 %166, label %middle.block347, label %vector.body354, !llvm.loop !14

middle.block347:                                  ; preds = %vector.body354
  %cmp.n360 = icmp eq i64 %n.vec352, %106
  br i1 %cmp.n360, label %._crit_edge263, label %.lr.ph262.preheader362

._crit_edge263:                                   ; preds = %.lr.ph262, %middle.block347, %.preheader258
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %20) #11
  invoke void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %20, ptr noundef nonnull align 8 dereferenceable(56) %2)
          to label %175 unwind label %208

167:                                              ; preds = %._crit_edge
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %395

169:                                              ; preds = %157
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %395

.lr.ph262:                                        ; preds = %.lr.ph262.preheader362, %.lr.ph262
  %indvars.iv303 = phi i64 [ %indvars.iv.next304, %.lr.ph262 ], [ %indvars.iv303.ph, %.lr.ph262.preheader362 ]
  %171 = trunc i64 %indvars.iv303 to i32
  %172 = add i32 %171, 5
  %173 = uitofp i32 %172 to double
  %174 = getelementptr inbounds double, ptr %158, i64 %indvars.iv303
  store double %173, ptr %174, align 8, !tbaa !5
  %indvars.iv.next304 = add nuw nsw i64 %indvars.iv303, 1
  %exitcond307.not = icmp eq i64 %indvars.iv.next304, %106
  br i1 %exitcond307.not, label %._crit_edge263, label %.lr.ph262, !llvm.loop !15

175:                                              ; preds = %._crit_edge263
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %21) #11
  invoke void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %.preheader257 unwind label %210

.preheader257:                                    ; preds = %175
  %176 = icmp sgt i32 %37, 0
  br i1 %176, label %.preheader256.lr.ph, label %._crit_edge270

.preheader256.lr.ph:                              ; preds = %.preheader257
  br i1 %98, label %.preheader256.us, label %.preheader256.lr.ph.split

.preheader256.us:                                 ; preds = %.preheader256.lr.ph, %._crit_edge268.us
  %.0199269.us = phi i32 [ %177, %._crit_edge268.us ], [ 0, %.preheader256.lr.ph ]
  br label %186

._crit_edge268.us:                                ; preds = %185, %..preheader255_crit_edge.us
  %177 = add nuw nsw i32 %.0199269.us, 1
  %exitcond324.not = icmp eq i32 %177, %37
  br i1 %exitcond324.not, label %._crit_edge270, label %.preheader256.us, !llvm.loop !16

.lr.ph267.us:                                     ; preds = %..preheader255_crit_edge.us, %185
  %indvars.iv319 = phi i64 [ %indvars.iv.next320, %185 ], [ 0, %..preheader255_crit_edge.us ]
  %178 = getelementptr inbounds double, ptr %110, i64 %indvars.iv319
  %179 = load double, ptr %178, align 8, !tbaa !5
  %180 = getelementptr inbounds double, ptr %158, i64 %indvars.iv319
  %181 = load double, ptr %180, align 8, !tbaa !5
  %182 = trunc nuw nsw i64 %indvars.iv319 to i32
  %183 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %4, i32 noundef %.0199269.us, i32 noundef %182)
  %184 = call double @llvm.fmuladd.f64(double %181, double %183, double %179)
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %21, i32 noundef %.0199269.us, i32 noundef %182, double noundef %184)
          to label %185 unwind label %.split.us

185:                                              ; preds = %.lr.ph267.us
  %indvars.iv.next320 = add nuw nsw i64 %indvars.iv319, 1
  %exitcond323.not = icmp eq i64 %indvars.iv.next320, %106
  br i1 %exitcond323.not, label %._crit_edge268.us, label %.lr.ph267.us, !llvm.loop !17

186:                                              ; preds = %.preheader256.us, %194
  %indvars.iv314 = phi i64 [ 0, %.preheader256.us ], [ %indvars.iv.next315, %194 ]
  %187 = getelementptr inbounds double, ptr %95, i64 %indvars.iv314
  %188 = load double, ptr %187, align 8, !tbaa !5
  %189 = getelementptr inbounds double, ptr %97, i64 %indvars.iv314
  %190 = load double, ptr %189, align 8, !tbaa !5
  %191 = trunc nuw nsw i64 %indvars.iv314 to i32
  %192 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %.0199269.us, i32 noundef %191)
  %193 = call double @llvm.fmuladd.f64(double %190, double %192, double %188)
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %20, i32 noundef %.0199269.us, i32 noundef %191, double noundef %193)
          to label %194 unwind label %.split272.us

194:                                              ; preds = %186
  %indvars.iv.next315 = add nuw nsw i64 %indvars.iv314, 1
  %exitcond318.not = icmp eq i64 %indvars.iv.next315, %91
  br i1 %exitcond318.not, label %..preheader255_crit_edge.us, label %186, !llvm.loop !18

..preheader255_crit_edge.us:                      ; preds = %194
  br i1 %159, label %.lr.ph267.us, label %._crit_edge268.us

.split.us:                                        ; preds = %.lr.ph267.us
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %392

.split272.us:                                     ; preds = %186
  %196 = landingpad { ptr, i32 }
          cleanup
  br label %392

.preheader256.lr.ph.split:                        ; preds = %.preheader256.lr.ph
  br i1 %159, label %.preheader256.us274, label %._crit_edge270

.preheader256.us274:                              ; preds = %.preheader256.lr.ph.split, %._crit_edge268.us278
  %.0199269.us275 = phi i32 [ %206, %._crit_edge268.us278 ], [ 0, %.preheader256.lr.ph.split ]
  br label %197

197:                                              ; preds = %.preheader256.us274, %205
  %indvars.iv308 = phi i64 [ 0, %.preheader256.us274 ], [ %indvars.iv.next309, %205 ]
  %198 = getelementptr inbounds double, ptr %110, i64 %indvars.iv308
  %199 = load double, ptr %198, align 8, !tbaa !5
  %200 = getelementptr inbounds double, ptr %158, i64 %indvars.iv308
  %201 = load double, ptr %200, align 8, !tbaa !5
  %202 = trunc nuw nsw i64 %indvars.iv308 to i32
  %203 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %4, i32 noundef %.0199269.us275, i32 noundef %202)
  %204 = call double @llvm.fmuladd.f64(double %201, double %203, double %199)
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %21, i32 noundef %.0199269.us275, i32 noundef %202, double noundef %204)
          to label %205 unwind label %.split.split.us

205:                                              ; preds = %197
  %indvars.iv.next309 = add nuw nsw i64 %indvars.iv308, 1
  %exitcond312.not = icmp eq i64 %indvars.iv.next309, %106
  br i1 %exitcond312.not, label %._crit_edge268.us278, label %197, !llvm.loop !17

._crit_edge268.us278:                             ; preds = %205
  %206 = add nuw nsw i32 %.0199269.us275, 1
  %exitcond313.not = icmp eq i32 %206, %37
  br i1 %exitcond313.not, label %._crit_edge270, label %.preheader256.us274, !llvm.loop !16

.split.split.us:                                  ; preds = %197
  %207 = landingpad { ptr, i32 }
          cleanup
  br label %392

._crit_edge270:                                   ; preds = %._crit_edge268.us278, %._crit_edge268.us, %.preheader256.lr.ph.split, %.preheader257
  call void @llvm.lifetime.start.p0(i64 504, ptr nonnull %22) #11
  invoke void @_ZN7SGTELIB11TrainingSetC1ERKNS_6MatrixES3_(ptr noundef nonnull align 8 dereferenceable(504) %22, ptr noundef nonnull align 8 dereferenceable(56) %20, ptr noundef nonnull align 8 dereferenceable(56) %21)
          to label %212 unwind label %302

208:                                              ; preds = %._crit_edge263
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %394

210:                                              ; preds = %175
  %211 = landingpad { ptr, i32 }
          cleanup
  br label %393

212:                                              ; preds = %._crit_edge270
  %213 = invoke noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %22, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %214 unwind label %304

214:                                              ; preds = %212
  %215 = invoke noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985) %213)
          to label %216 unwind label %304

216:                                              ; preds = %214
  %217 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #12
          to label %218 unwind label %306

218:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull @.str.69, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %219 unwind label %308

219:                                              ; preds = %218
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %217, ptr noundef nonnull align 8 dereferenceable(32) %23, i32 noundef 3, i32 noundef %39)
          to label %220 unwind label %310

220:                                              ; preds = %219
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #11
  %221 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #12
          to label %222 unwind label %313

222:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %26) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull @.str.70, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %223 unwind label %315

223:                                              ; preds = %222
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %221, ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef 3, i32 noundef %39)
          to label %224 unwind label %317

224:                                              ; preds = %223
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #11
  %225 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #12
          to label %226 unwind label %320

226:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %28) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull @.str.71, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %227 unwind label %322

227:                                              ; preds = %226
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %225, ptr noundef nonnull align 8 dereferenceable(32) %27, i32 noundef 3, i32 noundef %39)
          to label %228 unwind label %324

228:                                              ; preds = %227
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #11
  %229 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #12
          to label %230 unwind label %327

230:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %30) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull @.str.72, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %231 unwind label %329

231:                                              ; preds = %230
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %229, ptr noundef nonnull align 8 dereferenceable(32) %29, i32 noundef 3, i32 noundef %39)
          to label %232 unwind label %331

232:                                              ; preds = %231
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %31) #11
  invoke void @_ZN7SGTELIB6MatrixC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %31, ptr noundef nonnull align 8 dereferenceable(56) %9)
          to label %.preheader254 unwind label %334

.preheader254:                                    ; preds = %232
  br i1 %98, label %.preheader253.us.preheader, label %.split285.us

.preheader253.us.preheader:                       ; preds = %.preheader254, %240
  %indvars.iv325 = phi i64 [ %indvars.iv.next326, %240 ], [ 0, %.preheader254 ]
  %233 = getelementptr inbounds double, ptr %95, i64 %indvars.iv325
  %234 = load double, ptr %233, align 8, !tbaa !5
  %235 = getelementptr inbounds double, ptr %97, i64 %indvars.iv325
  %236 = load double, ptr %235, align 8, !tbaa !5
  %237 = trunc nuw nsw i64 %indvars.iv325 to i32
  %238 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef 0, i32 noundef %237)
  %239 = call double @llvm.fmuladd.f64(double %236, double %238, double %234)
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %31, i32 noundef 0, i32 noundef %237, double noundef %239)
          to label %240 unwind label %.split287.us.loopexit

240:                                              ; preds = %.preheader253.us.preheader
  %indvars.iv.next326 = add nuw nsw i64 %indvars.iv325, 1
  %exitcond329.not = icmp eq i64 %indvars.iv.next326, %91
  br i1 %exitcond329.not, label %._crit_edge282.us, label %.preheader253.us.preheader, !llvm.loop !19

._crit_edge282.us:                                ; preds = %240, %248
  %indvars.iv325.1 = phi i64 [ %indvars.iv.next326.1, %248 ], [ 0, %240 ]
  %241 = getelementptr inbounds double, ptr %95, i64 %indvars.iv325.1
  %242 = load double, ptr %241, align 8, !tbaa !5
  %243 = getelementptr inbounds double, ptr %97, i64 %indvars.iv325.1
  %244 = load double, ptr %243, align 8, !tbaa !5
  %245 = trunc nuw nsw i64 %indvars.iv325.1 to i32
  %246 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef 1, i32 noundef %245)
  %247 = call double @llvm.fmuladd.f64(double %244, double %246, double %242)
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %31, i32 noundef 1, i32 noundef %245, double noundef %247)
          to label %248 unwind label %.split287.us.loopexit.split-lp.loopexit

248:                                              ; preds = %._crit_edge282.us
  %indvars.iv.next326.1 = add nuw nsw i64 %indvars.iv325.1, 1
  %exitcond329.1.not = icmp eq i64 %indvars.iv.next326.1, %91
  br i1 %exitcond329.1.not, label %._crit_edge282.us.1, label %._crit_edge282.us, !llvm.loop !19

._crit_edge282.us.1:                              ; preds = %248, %256
  %indvars.iv325.2 = phi i64 [ %indvars.iv.next326.2, %256 ], [ 0, %248 ]
  %249 = getelementptr inbounds double, ptr %95, i64 %indvars.iv325.2
  %250 = load double, ptr %249, align 8, !tbaa !5
  %251 = getelementptr inbounds double, ptr %97, i64 %indvars.iv325.2
  %252 = load double, ptr %251, align 8, !tbaa !5
  %253 = trunc nuw nsw i64 %indvars.iv325.2 to i32
  %254 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef 2, i32 noundef %253)
  %255 = call double @llvm.fmuladd.f64(double %252, double %254, double %250)
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %31, i32 noundef 2, i32 noundef %253, double noundef %255)
          to label %256 unwind label %.split287.us.loopexit.split-lp.loopexit.split-lp

256:                                              ; preds = %._crit_edge282.us.1
  %indvars.iv.next326.2 = add nuw nsw i64 %indvars.iv325.2, 1
  %exitcond329.2.not = icmp eq i64 %indvars.iv.next326.2, %91
  br i1 %exitcond329.2.not, label %.split285.us, label %._crit_edge282.us.1, !llvm.loop !19

.split287.us.loopexit:                            ; preds = %.preheader253.us.preheader
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.split287.us

.split287.us.loopexit.split-lp.loopexit:          ; preds = %._crit_edge282.us
  %lpad.loopexit331 = landingpad { ptr, i32 }
          cleanup
  br label %.split287.us

.split287.us.loopexit.split-lp.loopexit.split-lp: ; preds = %._crit_edge282.us.1
  %lpad.loopexit.split-lp332 = landingpad { ptr, i32 }
          cleanup
  br label %.split287.us

.split285.us:                                     ; preds = %256, %.preheader254
  invoke void @_ZN7SGTELIB9Surrogate7predictERKNS_6MatrixEPS1_S4_S4_S4_(ptr noundef nonnull align 8 dereferenceable(985) %213, ptr noundef nonnull align 8 dereferenceable(56) %31, ptr noundef nonnull %217, ptr noundef nonnull %221, ptr noundef nonnull %225, ptr noundef nonnull %229)
          to label %.preheader252 unwind label %337

.preheader252:                                    ; preds = %.split285.us
  br i1 %159, label %.preheader.us.preheader, label %.split294.us

.preheader.us.preheader:                          ; preds = %.preheader252, %271
  %indvars.iv334 = phi i64 [ %indvars.iv.next335, %271 ], [ 0, %.preheader252 ]
  %257 = trunc nuw nsw i64 %indvars.iv334 to i32
  %258 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %217, i32 noundef 0, i32 noundef %257)
  %259 = getelementptr inbounds double, ptr %110, i64 %indvars.iv334
  %260 = load double, ptr %259, align 8, !tbaa !5
  %261 = fsub double %258, %260
  %262 = getelementptr inbounds double, ptr %158, i64 %indvars.iv334
  %263 = load double, ptr %262, align 8, !tbaa !5
  %264 = fdiv double %261, %263
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %217, i32 noundef 0, i32 noundef %257, double noundef %264)
          to label %265 unwind label %.split296.us.loopexit

265:                                              ; preds = %.preheader.us.preheader
  %266 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %221, i32 noundef 0, i32 noundef %257)
  %267 = fdiv double %266, %263
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %221, i32 noundef 0, i32 noundef %257, double noundef %267)
          to label %268 unwind label %.split296.us.loopexit

268:                                              ; preds = %265
  %269 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %225, i32 noundef 0, i32 noundef %257)
  %270 = fdiv double %269, %263
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %225, i32 noundef 0, i32 noundef %257, double noundef %270)
          to label %271 unwind label %.split296.us.loopexit

271:                                              ; preds = %268
  %indvars.iv.next335 = add nuw nsw i64 %indvars.iv334, 1
  %exitcond338.not = icmp eq i64 %indvars.iv.next335, %106
  br i1 %exitcond338.not, label %._crit_edge291.us, label %.preheader.us.preheader, !llvm.loop !20

._crit_edge291.us:                                ; preds = %271, %286
  %indvars.iv334.1 = phi i64 [ %indvars.iv.next335.1, %286 ], [ 0, %271 ]
  %272 = trunc nuw nsw i64 %indvars.iv334.1 to i32
  %273 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %217, i32 noundef 1, i32 noundef %272)
  %274 = getelementptr inbounds double, ptr %110, i64 %indvars.iv334.1
  %275 = load double, ptr %274, align 8, !tbaa !5
  %276 = fsub double %273, %275
  %277 = getelementptr inbounds double, ptr %158, i64 %indvars.iv334.1
  %278 = load double, ptr %277, align 8, !tbaa !5
  %279 = fdiv double %276, %278
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %217, i32 noundef 1, i32 noundef %272, double noundef %279)
          to label %280 unwind label %.split296.us.loopexit.split-lp.loopexit

280:                                              ; preds = %._crit_edge291.us
  %281 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %221, i32 noundef 1, i32 noundef %272)
  %282 = fdiv double %281, %278
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %221, i32 noundef 1, i32 noundef %272, double noundef %282)
          to label %283 unwind label %.split296.us.loopexit.split-lp.loopexit

283:                                              ; preds = %280
  %284 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %225, i32 noundef 1, i32 noundef %272)
  %285 = fdiv double %284, %278
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %225, i32 noundef 1, i32 noundef %272, double noundef %285)
          to label %286 unwind label %.split296.us.loopexit.split-lp.loopexit

286:                                              ; preds = %283
  %indvars.iv.next335.1 = add nuw nsw i64 %indvars.iv334.1, 1
  %exitcond338.1.not = icmp eq i64 %indvars.iv.next335.1, %106
  br i1 %exitcond338.1.not, label %._crit_edge291.us.1, label %._crit_edge291.us, !llvm.loop !20

._crit_edge291.us.1:                              ; preds = %286, %301
  %indvars.iv334.2 = phi i64 [ %indvars.iv.next335.2, %301 ], [ 0, %286 ]
  %287 = trunc nuw nsw i64 %indvars.iv334.2 to i32
  %288 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %217, i32 noundef 2, i32 noundef %287)
  %289 = getelementptr inbounds double, ptr %110, i64 %indvars.iv334.2
  %290 = load double, ptr %289, align 8, !tbaa !5
  %291 = fsub double %288, %290
  %292 = getelementptr inbounds double, ptr %158, i64 %indvars.iv334.2
  %293 = load double, ptr %292, align 8, !tbaa !5
  %294 = fdiv double %291, %293
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %217, i32 noundef 2, i32 noundef %287, double noundef %294)
          to label %295 unwind label %.split296.us.loopexit.split-lp.loopexit.split-lp

295:                                              ; preds = %._crit_edge291.us.1
  %296 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %221, i32 noundef 2, i32 noundef %287)
  %297 = fdiv double %296, %293
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %221, i32 noundef 2, i32 noundef %287, double noundef %297)
          to label %298 unwind label %.split296.us.loopexit.split-lp.loopexit.split-lp

298:                                              ; preds = %295
  %299 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %225, i32 noundef 2, i32 noundef %287)
  %300 = fdiv double %299, %293
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %225, i32 noundef 2, i32 noundef %287, double noundef %300)
          to label %301 unwind label %.split296.us.loopexit.split-lp.loopexit.split-lp

301:                                              ; preds = %298
  %indvars.iv.next335.2 = add nuw nsw i64 %indvars.iv334.2, 1
  %exitcond338.2.not = icmp eq i64 %indvars.iv.next335.2, %106
  br i1 %exitcond338.2.not, label %.split294.us, label %._crit_edge291.us.1, !llvm.loop !20

.split296.us.loopexit:                            ; preds = %.preheader.us.preheader, %265, %268
  %lpad.loopexit340 = landingpad { ptr, i32 }
          cleanup
  br label %.split287.us

.split296.us.loopexit.split-lp.loopexit:          ; preds = %283, %280, %._crit_edge291.us
  %lpad.loopexit342 = landingpad { ptr, i32 }
          cleanup
  br label %.split287.us

.split296.us.loopexit.split-lp.loopexit.split-lp: ; preds = %298, %295, %._crit_edge291.us.1
  %lpad.loopexit.split-lp343 = landingpad { ptr, i32 }
          cleanup
  br label %.split287.us

302:                                              ; preds = %._crit_edge270
  %303 = landingpad { ptr, i32 }
          cleanup
  br label %391

304:                                              ; preds = %214, %212
  %305 = landingpad { ptr, i32 }
          cleanup
  br label %390

306:                                              ; preds = %216
  %307 = landingpad { ptr, i32 }
          cleanup
  br label %390

308:                                              ; preds = %218
  %309 = landingpad { ptr, i32 }
          cleanup
  br label %312

310:                                              ; preds = %219
  %311 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #11
  br label %312

312:                                              ; preds = %310, %308
  %.pn218 = phi { ptr, i32 } [ %311, %310 ], [ %309, %308 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #11
  call void @_ZdlPvm(ptr noundef nonnull %217, i64 noundef 56) #13
  br label %390

313:                                              ; preds = %220
  %314 = landingpad { ptr, i32 }
          cleanup
  br label %390

315:                                              ; preds = %222
  %316 = landingpad { ptr, i32 }
          cleanup
  br label %319

317:                                              ; preds = %223
  %318 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  br label %319

319:                                              ; preds = %317, %315
  %.pn220 = phi { ptr, i32 } [ %318, %317 ], [ %316, %315 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #11
  call void @_ZdlPvm(ptr noundef nonnull %221, i64 noundef 56) #13
  br label %390

320:                                              ; preds = %224
  %321 = landingpad { ptr, i32 }
          cleanup
  br label %390

322:                                              ; preds = %226
  %323 = landingpad { ptr, i32 }
          cleanup
  br label %326

324:                                              ; preds = %227
  %325 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  br label %326

326:                                              ; preds = %324, %322
  %.pn222 = phi { ptr, i32 } [ %325, %324 ], [ %323, %322 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #11
  call void @_ZdlPvm(ptr noundef nonnull %225, i64 noundef 56) #13
  br label %390

327:                                              ; preds = %228
  %328 = landingpad { ptr, i32 }
          cleanup
  br label %390

329:                                              ; preds = %230
  %330 = landingpad { ptr, i32 }
          cleanup
  br label %333

331:                                              ; preds = %231
  %332 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #11
  br label %333

333:                                              ; preds = %331, %329
  %.pn224 = phi { ptr, i32 } [ %332, %331 ], [ %330, %329 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #11
  call void @_ZdlPvm(ptr noundef nonnull %229, i64 noundef 56) #13
  br label %390

334:                                              ; preds = %232
  %335 = landingpad { ptr, i32 }
          cleanup
  br label %389

.split294.us:                                     ; preds = %301, %.preheader252
  %336 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %339 unwind label %337

337:                                              ; preds = %383, %381, %355, %354, %353, %352, %350, %349, %347, %346, %344, %343, %341, %339, %.split294.us, %.split285.us
  %338 = landingpad { ptr, i32 }
          cleanup
  br label %.split287.us

339:                                              ; preds = %.split294.us
  %340 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %336, ptr noundef nonnull @.str.6)
          to label %341 unwind label %337

341:                                              ; preds = %339
  %342 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.85)
          to label %343 unwind label %337

343:                                              ; preds = %341
  invoke void @_ZN7SGTELIB17check_matrix_diffEPKNS_6MatrixES2_(ptr noundef nonnull %74, ptr noundef nonnull %217)
          to label %344 unwind label %337

344:                                              ; preds = %343
  %345 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.86)
          to label %346 unwind label %337

346:                                              ; preds = %344
  invoke void @_ZN7SGTELIB17check_matrix_diffEPKNS_6MatrixES2_(ptr noundef nonnull %78, ptr noundef nonnull %221)
          to label %347 unwind label %337

347:                                              ; preds = %346
  %348 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.87)
          to label %349 unwind label %337

349:                                              ; preds = %347
  invoke void @_ZN7SGTELIB17check_matrix_diffEPKNS_6MatrixES2_(ptr noundef nonnull %82, ptr noundef nonnull %225)
          to label %350 unwind label %337

350:                                              ; preds = %349
  %351 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.88)
          to label %352 unwind label %337

352:                                              ; preds = %350
  invoke void @_ZN7SGTELIB17check_matrix_diffEPKNS_6MatrixES2_(ptr noundef nonnull %86, ptr noundef nonnull %229)
          to label %353 unwind label %337

353:                                              ; preds = %352
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef nonnull %41)
          to label %354 unwind label %337

354:                                              ; preds = %353
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef nonnull %213)
          to label %355 unwind label %337

355:                                              ; preds = %354
  %356 = load ptr, ptr %74, align 8, !tbaa !21
  %357 = getelementptr inbounds i8, ptr %356, i64 8
  %358 = load ptr, ptr %357, align 8
  call void %358(ptr noundef nonnull align 8 dereferenceable(56) %74) #11
  %359 = load ptr, ptr %78, align 8, !tbaa !21
  %360 = getelementptr inbounds i8, ptr %359, i64 8
  %361 = load ptr, ptr %360, align 8
  call void %361(ptr noundef nonnull align 8 dereferenceable(56) %78) #11
  %362 = load ptr, ptr %82, align 8, !tbaa !21
  %363 = getelementptr inbounds i8, ptr %362, i64 8
  %364 = load ptr, ptr %363, align 8
  call void %364(ptr noundef nonnull align 8 dereferenceable(56) %82) #11
  %365 = load ptr, ptr %86, align 8, !tbaa !21
  %366 = getelementptr inbounds i8, ptr %365, i64 8
  %367 = load ptr, ptr %366, align 8
  call void %367(ptr noundef nonnull align 8 dereferenceable(56) %86) #11
  %368 = load ptr, ptr %217, align 8, !tbaa !21
  %369 = getelementptr inbounds i8, ptr %368, i64 8
  %370 = load ptr, ptr %369, align 8
  call void %370(ptr noundef nonnull align 8 dereferenceable(56) %217) #11
  %371 = load ptr, ptr %221, align 8, !tbaa !21
  %372 = getelementptr inbounds i8, ptr %371, i64 8
  %373 = load ptr, ptr %372, align 8
  call void %373(ptr noundef nonnull align 8 dereferenceable(56) %221) #11
  %374 = load ptr, ptr %225, align 8, !tbaa !21
  %375 = getelementptr inbounds i8, ptr %374, i64 8
  %376 = load ptr, ptr %375, align 8
  call void %376(ptr noundef nonnull align 8 dereferenceable(56) %225) #11
  %377 = load ptr, ptr %229, align 8, !tbaa !21
  %378 = getelementptr inbounds i8, ptr %377, i64 8
  %379 = load ptr, ptr %378, align 8
  call void %379(ptr noundef nonnull align 8 dereferenceable(56) %229) #11
  call void @_ZdaPv(ptr noundef nonnull %95) #13
  call void @_ZdaPv(ptr noundef nonnull %97) #13
  call void @_ZdaPv(ptr noundef nonnull %110) #13
  call void @_ZdaPv(ptr noundef nonnull %158) #13
  %380 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.89)
          to label %381 unwind label %337

381:                                              ; preds = %355
  %382 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %380, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %383 unwind label %337

383:                                              ; preds = %381
  %384 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %382, ptr noundef nonnull @.str.6)
          to label %385 unwind label %337

385:                                              ; preds = %383
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %32) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.90, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %386 unwind label %387

386:                                              ; preds = %385
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %31) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %31) #11
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %22) #11
  call void @llvm.lifetime.end.p0(i64 504, ptr nonnull %22) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %21) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %20) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #11
  br label %397

387:                                              ; preds = %385
  %388 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #11
  br label %.split287.us

.split287.us:                                     ; preds = %.split296.us.loopexit, %.split296.us.loopexit.split-lp.loopexit.split-lp, %.split296.us.loopexit.split-lp.loopexit, %.split287.us.loopexit, %.split287.us.loopexit.split-lp.loopexit.split-lp, %.split287.us.loopexit.split-lp.loopexit, %387, %337
  %.pn226 = phi { ptr, i32 } [ %388, %387 ], [ %338, %337 ], [ %lpad.loopexit, %.split287.us.loopexit ], [ %lpad.loopexit331, %.split287.us.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp332, %.split287.us.loopexit.split-lp.loopexit.split-lp ], [ %lpad.loopexit340, %.split296.us.loopexit ], [ %lpad.loopexit342, %.split296.us.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp343, %.split296.us.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %31) #11
  br label %389

389:                                              ; preds = %.split287.us, %334
  %.pn226.pn = phi { ptr, i32 } [ %.pn226, %.split287.us ], [ %335, %334 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %31) #11
  br label %390

390:                                              ; preds = %306, %312, %320, %326, %333, %389, %327, %319, %313, %304
  %.pn226.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %305, %304 ], [ %.pn218, %312 ], [ %307, %306 ], [ %.pn220, %319 ], [ %314, %313 ], [ %.pn222, %326 ], [ %321, %320 ], [ %.pn226.pn, %389 ], [ %.pn224, %333 ], [ %328, %327 ]
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %22) #11
  br label %391

391:                                              ; preds = %390, %302
  %.pn226.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn226.pn.pn.pn.pn.pn.pn, %390 ], [ %303, %302 ]
  call void @llvm.lifetime.end.p0(i64 504, ptr nonnull %22) #11
  br label %392

392:                                              ; preds = %.split.split.us, %.split.us, %.split272.us, %391
  %.pn235.pn = phi { ptr, i32 } [ %.pn226.pn.pn.pn.pn.pn.pn.pn, %391 ], [ %196, %.split272.us ], [ %207, %.split.split.us ], [ %195, %.split.us ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #11
  br label %393

393:                                              ; preds = %392, %210
  %.pn235.pn.pn = phi { ptr, i32 } [ %.pn235.pn, %392 ], [ %211, %210 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %21) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #11
  br label %394

394:                                              ; preds = %393, %208
  %.pn235.pn.pn.pn = phi { ptr, i32 } [ %.pn235.pn.pn, %393 ], [ %209, %208 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %20) #11
  br label %395

395:                                              ; preds = %118, %124, %132, %138, %146, %167, %394, %169, %148, %145, %139, %131, %125, %116
  %.pn235.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %117, %116 ], [ %.pn210, %124 ], [ %119, %118 ], [ %.pn212, %131 ], [ %126, %125 ], [ %.pn214, %138 ], [ %133, %132 ], [ %140, %139 ], [ %.pn216, %145 ], [ %147, %146 ], [ %149, %148 ], [ %168, %167 ], [ %.pn235.pn.pn.pn, %394 ], [ %170, %169 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #11
  br label %396

396:                                              ; preds = %395, %115
  %.pn235.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn235.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %395 ], [ %.pn208, %115 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #11
  br label %398

397:                                              ; preds = %386, %52
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %5) #11
  call void @llvm.lifetime.end.p0(i64 504, ptr nonnull %5) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #11
  ret void

398:                                              ; preds = %396, %69, %64, %55
  %.pn235.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn235.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %396 ], [ %.pn206, %69 ], [ %.pn.pn, %64 ], [ %56, %55 ]
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %5) #11
  br label %399

399:                                              ; preds = %398, %53
  %.pn235.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn235.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %398 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 504, ptr nonnull %5) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #11
  resume { ptr, i32 } %.pn235.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 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 #6 = { 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 #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 = { 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 #9 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #11 = { nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10, !11, !12}
!15 = distinct !{!15, !10, !12, !11}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !8, i64 0}


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