; 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::Surrogate_Parameters" = type { ptr, i32, i32, i32, i32, i32, double, i32, double, i32, i32, i32, %"class.SGTELIB::Matrix", i32, i32, i32, double, double, double, double, %"class.SGTELIB::Matrix", i32, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i32 }
%"class.std::allocator" = type { i8 }
%"class.SGTELIB::TrainingSet" = type { ptr, i32, i32, i32, i8, ptr, i8, i32, double, double, i32, %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double }
%"class.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }

@_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.34 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [17 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: nounwind
declare double @pow(double noundef, double noundef) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 #3

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

; Function Attrs: 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) #6

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

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

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 #3

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

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

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

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

declare void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #3

declare void @_ZN7SGTELIB9Surrogate7predictERKNS_6MatrixEPS1_(ptr noundef nonnull align 8 dereferenceable(985), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) #3

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

; 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 noundef double @_ZN7SGTELIB9Surrogate10get_metricENS_8metric_tEi(ptr noundef nonnull align 8 dereferenceable(985), i32 noundef, i32 noundef) #3

declare void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef) #3

; 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)) #4

; 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)) #4

; 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) #6

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216), i64 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(112)) #4 align 2

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

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

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

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #9

declare noundef i32 @_ZN7SGTELIB20Surrogate_Parameters15read_model_typeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7SGTELIB11TrainingSet11get_Ds_meanEv(ptr noundef nonnull align 8 dereferenceable(504)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7SGTELIB11TrainingSet15get_X_scaling_aEi(ptr noundef nonnull align 8 dereferenceable(504), i32 noundef) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7SGTELIB20Surrogate_Parameters15get_kernel_coefEv(ptr noundef nonnull align 8 dereferenceable(312)) #5 align 2

; Function Attrs: nounwind
declare void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312)) unnamed_addr #2

declare void @_ZN7SGTELIB11TrainingSet5buildEv(ptr noundef nonnull align 8 dereferenceable(504)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7SGTELIB9Surrogate15set_kernel_coefEd(ptr noundef nonnull align 8 dereferenceable(985), double noundef) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7SGTELIB25test_multiple_occurrencesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.SGTELIB::Matrix", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.SGTELIB::Matrix", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.SGTELIB::Matrix", align 8
  %15 = alloca %"class.SGTELIB::Matrix", align 8
  %16 = alloca %"class.SGTELIB::Matrix", align 8
  %17 = alloca i8, align 1
  %18 = alloca %"class.SGTELIB::TrainingSet", align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca i32, align 4
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  %35 = alloca %"class.SGTELIB::Matrix", align 8
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::allocator", align 1
  %38 = alloca %"class.SGTELIB::Matrix", align 8
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca %"class.std::allocator", align 1
  %41 = alloca i32, align 4
  %42 = alloca %"class.SGTELIB::Matrix", align 8
  %43 = alloca %"class.SGTELIB::Matrix", align 8
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca %"class.SGTELIB::Matrix", align 8
  %47 = alloca %"class.std::__cxx11::basic_string", align 8
  %48 = alloca %"class.std::allocator", align 1
  %49 = alloca %"class.SGTELIB::Matrix", align 8
  %50 = alloca %"class.std::__cxx11::basic_string", align 8
  %51 = alloca %"class.std::allocator", align 1
  %52 = alloca i32, align 4
  %53 = alloca %"class.SGTELIB::Matrix", align 8
  %54 = alloca %"class.SGTELIB::Matrix", align 8
  %55 = alloca %"class.SGTELIB::Matrix", align 8
  %56 = alloca ptr, align 8
  %57 = alloca double, align 8
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca double, align 8
  %61 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %62 = alloca i32, align 4
  %63 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %64 = 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)
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.125)
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = 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) %66)
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef @.str.6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  store i32 20, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #10
  store i32 2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %7) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.75, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %69 unwind label %113

69:                                               ; preds = %2
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 20, i32 noundef 2)
          to label %70 unwind label %117

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

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 56, ptr %12) #10
  invoke void @_ZN7SGTELIB14test_functionsERKNS_6MatrixE(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %12, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %72 unwind label %126

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  %73 = invoke noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %74 unwind label %130

74:                                               ; preds = %72
  store i32 %73, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %14) #10
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %14, ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef 0)
          to label %75 unwind label %134

75:                                               ; preds = %74
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(56) %14, i32 noundef 1)
          to label %76 unwind label %138

76:                                               ; preds = %75
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %15) #10
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %15, ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef 0)
          to label %77 unwind label %143

77:                                               ; preds = %76
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(56) %15, i32 noundef 2)
          to label %78 unwind label %147

78:                                               ; preds = %77
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %15) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %16) #10
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %16, ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef 10)
          to label %79 unwind label %152

79:                                               ; preds = %78
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(56) %16, i32 noundef 11)
          to label %80 unwind label %156

80:                                               ; preds = %79
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #10
  call void @llvm.lifetime.start.p0(i64 504, ptr %18) #10
  invoke void @_ZN7SGTELIB11TrainingSetC1ERKNS_6MatrixES3_(ptr noundef nonnull align 8 dereferenceable(504) %18, ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %81 unwind label %161

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = invoke noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %18, ptr noundef nonnull align 8 dereferenceable(32) %82)
          to label %84 unwind label %165

84:                                               ; preds = %81
  store ptr %83, ptr %19, align 8, !tbaa !5
  %85 = load ptr, ptr %19, align 8, !tbaa !5
  %86 = invoke noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985) %85)
          to label %87 unwind label %165

87:                                               ; preds = %84
  %88 = zext i1 %86 to i8
  store i8 %88, ptr %17, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = invoke noundef i32 @_ZN7SGTELIB20Surrogate_Parameters15read_model_typeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %89)
          to label %91 unwind label %169

91:                                               ; preds = %87
  store i32 %90, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %92 = invoke noundef double @_ZNK7SGTELIB11TrainingSet11get_Ds_meanEv(ptr noundef nonnull align 8 dereferenceable(504) %18)
          to label %93 unwind label %173

93:                                               ; preds = %91
  store double %92, ptr %21, align 8, !tbaa !15
  %94 = invoke noundef double @_ZNK7SGTELIB11TrainingSet15get_X_scaling_aEi(ptr noundef nonnull align 8 dereferenceable(504) %18, i32 noundef 0)
          to label %95 unwind label %173

95:                                               ; preds = %93
  store double %94, ptr %25, align 8, !tbaa !15
  store double 0.000000e+00, ptr %23, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 312, ptr %27) #10
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZNK7SGTELIB9Surrogate9get_paramEv(ptr dead_on_unwind writable sret(%"class.SGTELIB::Surrogate_Parameters") align 8 %27, ptr noundef nonnull align 8 dereferenceable(985) %96)
          to label %97 unwind label %177

97:                                               ; preds = %95
  %98 = invoke noundef double @_ZNK7SGTELIB20Surrogate_Parameters15get_kernel_coefEv(ptr noundef nonnull align 8 dereferenceable(312) %27)
          to label %99 unwind label %181

99:                                               ; preds = %97
  store double %98, ptr %23, align 8, !tbaa !15
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %27) #10
  call void @llvm.lifetime.end.p0(i64 312, ptr %27) #10
  %100 = load i8, ptr %17, align 1, !tbaa !11, !range !17, !noundef !18
  %101 = trunc i8 %100 to i1
  br i1 %101, label %209, label %102

102:                                              ; preds = %99
  %103 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef %103)
          to label %104 unwind label %173

104:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #10
  %105 = load ptr, ptr %4, 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 %29, ptr noundef @.str.117, ptr noundef nonnull align 8 dereferenceable(32) %105)
          to label %106 unwind label %186

106:                                              ; preds = %104
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef @.str.32)
          to label %107 unwind label %190

107:                                              ; preds = %106
  %108 = 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) %28)
          to label %109 unwind label %194

109:                                              ; preds = %107
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #10
  %110 = load ptr, ptr %4, 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 %30, ptr noundef @.str.117, ptr noundef nonnull align 8 dereferenceable(32) %110)
          to label %111 unwind label %200

111:                                              ; preds = %109
  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) %30, ptr noundef @.str.32)
          to label %112 unwind label %204

112:                                              ; preds = %111
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #10
  store i32 1, ptr %31, align 4
  br label %696

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

117:                                              ; preds = %69
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %10, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  br label %121

121:                                              ; preds = %117, %113
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #10
  br label %704

122:                                              ; preds = %70
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %10, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %11, align 4
  br label %703

126:                                              ; preds = %71
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %10, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %11, align 4
  br label %702

130:                                              ; preds = %72
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %10, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %11, align 4
  br label %701

134:                                              ; preds = %74
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %10, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %11, align 4
  br label %142

138:                                              ; preds = %75
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %10, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %11, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #10
  br label %142

142:                                              ; preds = %138, %134
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #10
  br label %701

143:                                              ; preds = %76
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %10, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %11, align 4
  br label %151

147:                                              ; preds = %77
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %10, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %11, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %15) #10
  br label %151

151:                                              ; preds = %147, %143
  call void @llvm.lifetime.end.p0(i64 56, ptr %15) #10
  br label %701

152:                                              ; preds = %78
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %10, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %11, align 4
  br label %160

156:                                              ; preds = %79
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %10, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %11, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #10
  br label %160

160:                                              ; preds = %156, %152
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #10
  br label %701

161:                                              ; preds = %80
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %10, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %11, align 4
  br label %700

165:                                              ; preds = %84, %81
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %10, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %11, align 4
  br label %699

169:                                              ; preds = %87
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %10, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %11, align 4
  br label %698

173:                                              ; preds = %102, %93, %91
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %10, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %11, align 4
  br label %697

177:                                              ; preds = %95
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %10, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %11, align 4
  br label %185

181:                                              ; preds = %97
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %10, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %11, align 4
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %27) #10
  br label %185

185:                                              ; preds = %181, %177
  call void @llvm.lifetime.end.p0(i64 312, ptr %27) #10
  br label %697

186:                                              ; preds = %104
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %10, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %11, align 4
  br label %199

190:                                              ; preds = %106
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %10, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %11, align 4
  br label %198

194:                                              ; preds = %107
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %10, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #10
  br label %198

198:                                              ; preds = %194, %190
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #10
  br label %199

199:                                              ; preds = %198, %186
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #10
  br label %697

200:                                              ; preds = %109
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %10, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %11, align 4
  br label %208

204:                                              ; preds = %111
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %10, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #10
  br label %208

208:                                              ; preds = %204, %200
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #10
  br label %697

209:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  %210 = load i32, ptr %13, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %211, i64 8)
  %213 = extractvalue { i64, i1 } %212, 1
  %214 = extractvalue { i64, i1 } %212, 0
  %215 = select i1 %213, i64 -1, i64 %214
  %216 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %215) #11
          to label %217 unwind label %231

217:                                              ; preds = %209
  store ptr %216, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #10
  %218 = load i32, ptr %13, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %219, i64 8)
  %221 = extractvalue { i64, i1 } %220, 1
  %222 = extractvalue { i64, i1 } %220, 0
  %223 = select i1 %221, i64 -1, i64 %222
  %224 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %223) #11
          to label %225 unwind label %235

225:                                              ; preds = %217
  store ptr %224, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #10
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %226

226:                                              ; preds = %256, %225
  %227 = load i32, ptr %34, align 4, !tbaa !9
  %228 = load i32, ptr %13, align 4, !tbaa !9
  %229 = icmp slt i32 %227, %228
  br i1 %229, label %239, label %230

230:                                              ; preds = %226
  store i32 2, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  br label %263

231:                                              ; preds = %209
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %10, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %11, align 4
  br label %695

235:                                              ; preds = %263, %217
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %10, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %11, align 4
  br label %694

239:                                              ; preds = %226
  %240 = load ptr, ptr %19, align 8, !tbaa !5
  %241 = load i32, ptr %34, align 4, !tbaa !9
  %242 = invoke noundef double @_ZN7SGTELIB9Surrogate10get_metricENS_8metric_tEi(ptr noundef nonnull align 8 dereferenceable(985) %240, i32 noundef 4, i32 noundef %241)
          to label %243 unwind label %259

243:                                              ; preds = %239
  %244 = load ptr, ptr %32, align 8, !tbaa !5
  %245 = load i32, ptr %34, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds double, ptr %244, i64 %246
  store double %242, ptr %247, align 8, !tbaa !15
  %248 = load ptr, ptr %19, align 8, !tbaa !5
  %249 = load i32, ptr %34, align 4, !tbaa !9
  %250 = invoke noundef double @_ZN7SGTELIB9Surrogate10get_metricENS_8metric_tEi(ptr noundef nonnull align 8 dereferenceable(985) %248, i32 noundef 2, i32 noundef %249)
          to label %251 unwind label %259

251:                                              ; preds = %243
  %252 = load ptr, ptr %33, align 8, !tbaa !5
  %253 = load i32, ptr %34, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds double, ptr %252, i64 %254
  store double %250, ptr %255, align 8, !tbaa !15
  br label %256

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

259:                                              ; preds = %243, %239
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %10, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  br label %694

263:                                              ; preds = %230
  %264 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef %264)
          to label %265 unwind label %235

265:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 56, ptr %35) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef @.str.118, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %266 unwind label %275

266:                                              ; preds = %265
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %35, ptr noundef nonnull align 8 dereferenceable(32) %36, i32 noundef 19, i32 noundef 2)
          to label %267 unwind label %279

267:                                              ; preds = %266
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %38) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef @.str.119, ptr noundef nonnull align 1 dereferenceable(1) %40)
          to label %268 unwind label %284

268:                                              ; preds = %267
  %269 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %38, ptr noundef nonnull align 8 dereferenceable(32) %39, i32 noundef 19, i32 noundef %269)
          to label %270 unwind label %288

270:                                              ; preds = %268
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #10
  store i32 1, ptr %41, align 4, !tbaa !9
  br label %271

271:                                              ; preds = %304, %270
  %272 = load i32, ptr %41, align 4, !tbaa !9
  %273 = icmp slt i32 %272, 20
  br i1 %273, label %293, label %274

274:                                              ; preds = %271
  store i32 5, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  br label %326

275:                                              ; preds = %265
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %10, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %11, align 4
  br label %283

279:                                              ; preds = %266
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %10, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #10
  br label %283

283:                                              ; preds = %279, %275
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #10
  br label %693

284:                                              ; preds = %267
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %10, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %11, align 4
  br label %292

288:                                              ; preds = %268
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %10, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  br label %292

292:                                              ; preds = %288, %284
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #10
  br label %692

293:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 56, ptr %42) #10
  %294 = load i32, ptr %41, align 4, !tbaa !9
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %42, ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %294)
          to label %295 unwind label %307

295:                                              ; preds = %293
  %296 = load i32, ptr %41, align 4, !tbaa !9
  %297 = sub nsw i32 %296, 1
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %35, ptr noundef nonnull align 8 dereferenceable(56) %42, i32 noundef %297)
          to label %298 unwind label %311

298:                                              ; preds = %295
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %42) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %42) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %43) #10
  %299 = load i32, ptr %41, align 4, !tbaa !9
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %43, ptr noundef nonnull align 8 dereferenceable(56) %12, i32 noundef %299)
          to label %300 unwind label %316

300:                                              ; preds = %298
  %301 = load i32, ptr %41, align 4, !tbaa !9
  %302 = sub nsw i32 %301, 1
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %38, ptr noundef nonnull align 8 dereferenceable(56) %43, i32 noundef %302)
          to label %303 unwind label %320

303:                                              ; preds = %300
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %43) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %43) #10
  br label %304

304:                                              ; preds = %303
  %305 = load i32, ptr %41, align 4, !tbaa !9
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %41, align 4, !tbaa !9
  br label %271, !llvm.loop !21

307:                                              ; preds = %293
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %10, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %11, align 4
  br label %315

311:                                              ; preds = %295
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %10, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %11, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %42) #10
  br label %315

315:                                              ; preds = %311, %307
  call void @llvm.lifetime.end.p0(i64 56, ptr %42) #10
  br label %325

316:                                              ; preds = %298
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %10, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %11, align 4
  br label %324

320:                                              ; preds = %300
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %10, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %11, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %43) #10
  br label %324

324:                                              ; preds = %320, %316
  call void @llvm.lifetime.end.p0(i64 56, ptr %43) #10
  br label %325

325:                                              ; preds = %324, %315
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  br label %691

326:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %46) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %47) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef @.str.120, ptr noundef nonnull align 1 dereferenceable(1) %48)
          to label %327 unwind label %337

327:                                              ; preds = %326
  %328 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %46, ptr noundef nonnull align 8 dereferenceable(32) %47, i32 noundef 1, i32 noundef %328)
          to label %329 unwind label %341

329:                                              ; preds = %327
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %49) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %50) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %51) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef @.str.121, ptr noundef nonnull align 1 dereferenceable(1) %51)
          to label %330 unwind label %346

330:                                              ; preds = %329
  %331 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %49, ptr noundef nonnull align 8 dereferenceable(32) %50, i32 noundef 20, i32 noundef %331)
          to label %332 unwind label %350

332:                                              ; preds = %330
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #10
  store i32 0, ptr %52, align 4, !tbaa !9
  br label %333

333:                                              ; preds = %466, %332
  %334 = load i32, ptr %52, align 4, !tbaa !9
  %335 = icmp slt i32 %334, 20
  br i1 %335, label %355, label %336

336:                                              ; preds = %333
  store i32 8, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #10
  br label %470

337:                                              ; preds = %326
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %10, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %11, align 4
  br label %345

341:                                              ; preds = %327
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %10, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #10
  br label %345

345:                                              ; preds = %341, %337
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #10
  br label %690

346:                                              ; preds = %329
  %347 = landingpad { ptr, i32 }
          cleanup
  %348 = extractvalue { ptr, i32 } %347, 0
  store ptr %348, ptr %10, align 8
  %349 = extractvalue { ptr, i32 } %347, 1
  store i32 %349, ptr %11, align 4
  br label %354

350:                                              ; preds = %330
  %351 = landingpad { ptr, i32 }
          cleanup
  %352 = extractvalue { ptr, i32 } %351, 0
  store ptr %352, ptr %10, align 8
  %353 = extractvalue { ptr, i32 } %351, 1
  store i32 %353, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #10
  br label %354

354:                                              ; preds = %350, %346
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #10
  br label %689

355:                                              ; preds = %333
  %356 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.126)
          to label %357 unwind label %393

357:                                              ; preds = %355
  %358 = load i32, ptr %52, align 4, !tbaa !9
  %359 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %356, i32 noundef %358)
          to label %360 unwind label %393

360:                                              ; preds = %357
  %361 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %359, ptr noundef @.str.6)
          to label %362 unwind label %393

362:                                              ; preds = %360
  %363 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 504) #11
          to label %364 unwind label %393

364:                                              ; preds = %362
  invoke void @_ZN7SGTELIB11TrainingSetC1ERKNS_6MatrixES3_(ptr noundef nonnull align 8 dereferenceable(504) %363, ptr noundef nonnull align 8 dereferenceable(56) %35, ptr noundef nonnull align 8 dereferenceable(56) %38)
          to label %365 unwind label %397

365:                                              ; preds = %364
  store ptr %363, ptr %45, align 8, !tbaa !5
  %366 = load ptr, ptr %45, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB11TrainingSet5buildEv(ptr noundef nonnull align 8 dereferenceable(504) %366)
          to label %367 unwind label %393

367:                                              ; preds = %365
  %368 = load ptr, ptr %45, align 8, !tbaa !5
  %369 = invoke noundef double @_ZNK7SGTELIB11TrainingSet11get_Ds_meanEv(ptr noundef nonnull align 8 dereferenceable(504) %368)
          to label %370 unwind label %393

370:                                              ; preds = %367
  store double %369, ptr %22, align 8, !tbaa !15
  %371 = load ptr, ptr %45, align 8, !tbaa !5
  %372 = invoke noundef double @_ZNK7SGTELIB11TrainingSet15get_X_scaling_aEi(ptr noundef nonnull align 8 dereferenceable(504) %371, i32 noundef 0)
          to label %373 unwind label %393

373:                                              ; preds = %370
  store double %372, ptr %26, align 8, !tbaa !15
  %374 = load ptr, ptr %45, align 8, !tbaa !5
  %375 = load ptr, ptr %4, align 8, !tbaa !5
  %376 = invoke noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %374, ptr noundef nonnull align 8 dereferenceable(32) %375)
          to label %377 unwind label %393

377:                                              ; preds = %373
  store ptr %376, ptr %44, align 8, !tbaa !5
  %378 = load double, ptr %23, align 8, !tbaa !15
  %379 = load double, ptr %22, align 8, !tbaa !15
  %380 = load double, ptr %21, align 8, !tbaa !15
  %381 = fdiv double %379, %380
  %382 = fmul double %378, %381
  %383 = load double, ptr %25, align 8, !tbaa !15
  %384 = load double, ptr %26, align 8, !tbaa !15
  %385 = fdiv double %383, %384
  %386 = fmul double %382, %385
  store double %386, ptr %24, align 8, !tbaa !15
  %387 = load i32, ptr %20, align 4, !tbaa !13
  %388 = icmp eq i32 %387, 10
  br i1 %388, label %389, label %401

389:                                              ; preds = %377
  %390 = load ptr, ptr %44, align 8, !tbaa !5
  %391 = load double, ptr %24, align 8, !tbaa !15
  invoke void @_ZN7SGTELIB9Surrogate15set_kernel_coefEd(ptr noundef nonnull align 8 dereferenceable(985) %390, double noundef %391)
          to label %392 unwind label %393

392:                                              ; preds = %389
  br label %401

393:                                              ; preds = %463, %415, %408, %404, %389, %373, %370, %367, %365, %362, %360, %357, %355
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %10, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %11, align 4
  br label %469

397:                                              ; preds = %364
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %10, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %363, i64 noundef 504) #12
  br label %469

401:                                              ; preds = %392, %377
  %402 = load i32, ptr %20, align 4, !tbaa !13
  %403 = icmp eq i32 %402, 6
  br i1 %403, label %404, label %408

404:                                              ; preds = %401
  %405 = load ptr, ptr %44, align 8, !tbaa !5
  %406 = load double, ptr %24, align 8, !tbaa !15
  invoke void @_ZN7SGTELIB9Surrogate15set_kernel_coefEd(ptr noundef nonnull align 8 dereferenceable(985) %405, double noundef %406)
          to label %407 unwind label %393

407:                                              ; preds = %404
  br label %408

408:                                              ; preds = %407, %401
  %409 = load ptr, ptr %44, align 8, !tbaa !5
  %410 = invoke noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985) %409)
          to label %411 unwind label %393

411:                                              ; preds = %408
  %412 = load ptr, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %53) #10
  %413 = load i32, ptr %52, align 4, !tbaa !9
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %53, ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %413)
          to label %414 unwind label %429

414:                                              ; preds = %411
  invoke void @_ZN7SGTELIB9Surrogate7predictERKNS_6MatrixEPS1_(ptr noundef nonnull align 8 dereferenceable(985) %412, ptr noundef nonnull align 8 dereferenceable(56) %53, ptr noundef %46)
          to label %415 unwind label %433

415:                                              ; preds = %414
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %53) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %53) #10
  %416 = load i32, ptr %52, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %49, ptr noundef nonnull align 8 dereferenceable(56) %46, i32 noundef %416)
          to label %417 unwind label %393

417:                                              ; preds = %415
  %418 = load i32, ptr %52, align 4, !tbaa !9
  %419 = icmp slt i32 %418, 19
  br i1 %419, label %420, label %456

420:                                              ; preds = %417
  call void @llvm.lifetime.start.p0(i64 56, ptr %54) #10
  %421 = load i32, ptr %52, align 4, !tbaa !9
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %54, ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %421)
          to label %422 unwind label %438

422:                                              ; preds = %420
  %423 = load i32, ptr %52, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %35, ptr noundef nonnull align 8 dereferenceable(56) %54, i32 noundef %423)
          to label %424 unwind label %442

424:                                              ; preds = %422
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %54) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %54) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %55) #10
  %425 = load i32, ptr %52, align 4, !tbaa !9
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %55, ptr noundef nonnull align 8 dereferenceable(56) %12, i32 noundef %425)
          to label %426 unwind label %447

426:                                              ; preds = %424
  %427 = load i32, ptr %52, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %38, ptr noundef nonnull align 8 dereferenceable(56) %55, i32 noundef %427)
          to label %428 unwind label %451

428:                                              ; preds = %426
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %55) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %55) #10
  br label %456

429:                                              ; preds = %411
  %430 = landingpad { ptr, i32 }
          cleanup
  %431 = extractvalue { ptr, i32 } %430, 0
  store ptr %431, ptr %10, align 8
  %432 = extractvalue { ptr, i32 } %430, 1
  store i32 %432, ptr %11, align 4
  br label %437

433:                                              ; preds = %414
  %434 = landingpad { ptr, i32 }
          cleanup
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %10, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %11, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %53) #10
  br label %437

437:                                              ; preds = %433, %429
  call void @llvm.lifetime.end.p0(i64 56, ptr %53) #10
  br label %469

438:                                              ; preds = %420
  %439 = landingpad { ptr, i32 }
          cleanup
  %440 = extractvalue { ptr, i32 } %439, 0
  store ptr %440, ptr %10, align 8
  %441 = extractvalue { ptr, i32 } %439, 1
  store i32 %441, ptr %11, align 4
  br label %446

442:                                              ; preds = %422
  %443 = landingpad { ptr, i32 }
          cleanup
  %444 = extractvalue { ptr, i32 } %443, 0
  store ptr %444, ptr %10, align 8
  %445 = extractvalue { ptr, i32 } %443, 1
  store i32 %445, ptr %11, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %54) #10
  br label %446

446:                                              ; preds = %442, %438
  call void @llvm.lifetime.end.p0(i64 56, ptr %54) #10
  br label %469

447:                                              ; preds = %424
  %448 = landingpad { ptr, i32 }
          cleanup
  %449 = extractvalue { ptr, i32 } %448, 0
  store ptr %449, ptr %10, align 8
  %450 = extractvalue { ptr, i32 } %448, 1
  store i32 %450, ptr %11, align 4
  br label %455

451:                                              ; preds = %426
  %452 = landingpad { ptr, i32 }
          cleanup
  %453 = extractvalue { ptr, i32 } %452, 0
  store ptr %453, ptr %10, align 8
  %454 = extractvalue { ptr, i32 } %452, 1
  store i32 %454, ptr %11, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %55) #10
  br label %455

455:                                              ; preds = %451, %447
  call void @llvm.lifetime.end.p0(i64 56, ptr %55) #10
  br label %469

456:                                              ; preds = %428, %417
  %457 = load ptr, ptr %45, align 8, !tbaa !5
  %458 = icmp eq ptr %457, null
  br i1 %458, label %463, label %459

459:                                              ; preds = %456
  %460 = load ptr, ptr %457, align 8, !tbaa !22
  %461 = getelementptr inbounds ptr, ptr %460, i64 1
  %462 = load ptr, ptr %461, align 8
  call void %462(ptr noundef nonnull align 8 dereferenceable(504) %457) #10
  br label %463

463:                                              ; preds = %459, %456
  %464 = load ptr, ptr %44, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef %464)
          to label %465 unwind label %393

465:                                              ; preds = %463
  br label %466

466:                                              ; preds = %465
  %467 = load i32, ptr %52, align 4, !tbaa !9
  %468 = add nsw i32 %467, 1
  store i32 %468, ptr %52, align 4, !tbaa !9
  br label %333, !llvm.loop !24

469:                                              ; preds = %455, %446, %437, %397, %393
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #10
  br label %688

470:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #10
  %471 = load i32, ptr %13, align 4, !tbaa !9
  %472 = sext i32 %471 to i64
  %473 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %472, i64 8)
  %474 = extractvalue { i64, i1 } %473, 1
  %475 = extractvalue { i64, i1 } %473, 0
  %476 = select i1 %474, i64 -1, i64 %475
  %477 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %476) #11
          to label %478 unwind label %484

478:                                              ; preds = %470
  store ptr %477, ptr %56, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #10
  store i32 0, ptr %58, align 4, !tbaa !9
  br label %479

479:                                              ; preds = %521, %478
  %480 = load i32, ptr %58, align 4, !tbaa !9
  %481 = load i32, ptr %13, align 4, !tbaa !9
  %482 = icmp slt i32 %480, %481
  br i1 %482, label %488, label %483

483:                                              ; preds = %479
  store i32 11, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #10
  br label %524

484:                                              ; preds = %470
  %485 = landingpad { ptr, i32 }
          cleanup
  %486 = extractvalue { ptr, i32 } %485, 0
  store ptr %486, ptr %10, align 8
  %487 = extractvalue { ptr, i32 } %485, 1
  store i32 %487, ptr %11, align 4
  br label %687

488:                                              ; preds = %479
  store double 0.000000e+00, ptr %57, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #10
  store i32 0, ptr %59, align 4, !tbaa !9
  br label %489

489:                                              ; preds = %506, %488
  %490 = load i32, ptr %59, align 4, !tbaa !9
  %491 = icmp slt i32 %490, 20
  br i1 %491, label %493, label %492

492:                                              ; preds = %489
  store i32 14, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #10
  br label %513

493:                                              ; preds = %489
  %494 = load i32, ptr %59, align 4, !tbaa !9
  %495 = load i32, ptr %58, align 4, !tbaa !9
  %496 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %12, i32 noundef %494, i32 noundef %495)
          to label %497 unwind label %509

497:                                              ; preds = %493
  %498 = load i32, ptr %59, align 4, !tbaa !9
  %499 = load i32, ptr %58, align 4, !tbaa !9
  %500 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %49, i32 noundef %498, i32 noundef %499)
          to label %501 unwind label %509

501:                                              ; preds = %497
  %502 = fsub double %496, %500
  %503 = call double @pow(double noundef %502, double noundef 2.000000e+00) #10
  %504 = load double, ptr %57, align 8, !tbaa !15
  %505 = fadd double %504, %503
  store double %505, ptr %57, align 8, !tbaa !15
  br label %506

506:                                              ; preds = %501
  %507 = load i32, ptr %59, align 4, !tbaa !9
  %508 = add nsw i32 %507, 1
  store i32 %508, ptr %59, align 4, !tbaa !9
  br label %489, !llvm.loop !25

509:                                              ; preds = %497, %493
  %510 = landingpad { ptr, i32 }
          cleanup
  %511 = extractvalue { ptr, i32 } %510, 0
  store ptr %511, ptr %10, align 8
  %512 = extractvalue { ptr, i32 } %510, 1
  store i32 %512, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #10
  br label %686

513:                                              ; preds = %492
  %514 = load double, ptr %57, align 8, !tbaa !15
  %515 = fdiv double %514, 2.000000e+01
  %516 = call double @sqrt(double noundef %515) #10
  %517 = load ptr, ptr %56, align 8, !tbaa !5
  %518 = load i32, ptr %58, align 4, !tbaa !9
  %519 = sext i32 %518 to i64
  %520 = getelementptr inbounds double, ptr %517, i64 %519
  store double %516, ptr %520, align 8, !tbaa !15
  br label %521

521:                                              ; preds = %513
  %522 = load i32, ptr %58, align 4, !tbaa !9
  %523 = add nsw i32 %522, 1
  store i32 %523, ptr %58, align 4, !tbaa !9
  br label %479, !llvm.loop !26

524:                                              ; preds = %483
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #10
  call void @llvm.lifetime.start.p0(i64 376, ptr %61) #10
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %61)
          to label %525 unwind label %542

525:                                              ; preds = %524
  %526 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @.str.34)
          to label %527 unwind label %546

527:                                              ; preds = %525
  %528 = load ptr, ptr %4, align 8, !tbaa !5
  %529 = 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) %526, ptr noundef nonnull align 8 dereferenceable(32) %528)
          to label %530 unwind label %546

530:                                              ; preds = %527
  %531 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %529, ptr noundef @.str.6)
          to label %532 unwind label %546

532:                                              ; preds = %530
  %533 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @.str.122)
          to label %534 unwind label %546

534:                                              ; preds = %532
  %535 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @.str.123)
          to label %536 unwind label %546

536:                                              ; preds = %534
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #10
  store i32 0, ptr %62, align 4, !tbaa !9
  br label %537

537:                                              ; preds = %653, %536
  %538 = load i32, ptr %62, align 4, !tbaa !9
  %539 = load i32, ptr %13, align 4, !tbaa !9
  %540 = icmp slt i32 %538, %539
  br i1 %540, label %550, label %541

541:                                              ; preds = %537
  store i32 17, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #10
  br label %656

542:                                              ; preds = %524
  %543 = landingpad { ptr, i32 }
          cleanup
  %544 = extractvalue { ptr, i32 } %543, 0
  store ptr %544, ptr %10, align 8
  %545 = extractvalue { ptr, i32 } %543, 1
  store i32 %545, ptr %11, align 4
  br label %685

546:                                              ; preds = %673, %656, %534, %532, %530, %527, %525
  %547 = landingpad { ptr, i32 }
          cleanup
  %548 = extractvalue { ptr, i32 } %547, 0
  store ptr %548, ptr %10, align 8
  %549 = extractvalue { ptr, i32 } %547, 1
  store i32 %549, ptr %11, align 4
  br label %684

550:                                              ; preds = %537
  %551 = load ptr, ptr %61, align 8, !tbaa !22
  %552 = getelementptr i8, ptr %551, i64 -24
  %553 = load i64, ptr %552, align 8
  %554 = getelementptr inbounds i8, ptr %61, i64 %553
  %555 = invoke noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %554, i64 noundef 3)
          to label %556 unwind label %648

556:                                              ; preds = %550
  %557 = load i32, ptr %62, align 4, !tbaa !9
  %558 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %61, i32 noundef %557)
          to label %559 unwind label %648

559:                                              ; preds = %556
  %560 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %558, ptr noundef @.str.37)
          to label %561 unwind label %648

561:                                              ; preds = %559
  %562 = load ptr, ptr %61, align 8, !tbaa !22
  %563 = getelementptr i8, ptr %562, i64 -24
  %564 = load i64, ptr %563, align 8
  %565 = getelementptr inbounds i8, ptr %61, i64 %564
  %566 = invoke noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %565, i64 noundef 14)
          to label %567 unwind label %648

567:                                              ; preds = %561
  %568 = load ptr, ptr %33, align 8, !tbaa !5
  %569 = load i32, ptr %62, align 4, !tbaa !9
  %570 = sext i32 %569 to i64
  %571 = getelementptr inbounds double, ptr %568, i64 %570
  %572 = load double, ptr %571, align 8, !tbaa !15
  %573 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %61, double noundef %572)
          to label %574 unwind label %648

574:                                              ; preds = %567
  %575 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %573, ptr noundef @.str.124)
          to label %576 unwind label %648

576:                                              ; preds = %574
  %577 = load ptr, ptr %61, align 8, !tbaa !22
  %578 = getelementptr i8, ptr %577, i64 -24
  %579 = load i64, ptr %578, align 8
  %580 = getelementptr inbounds i8, ptr %61, i64 %579
  %581 = invoke noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %580, i64 noundef 14)
          to label %582 unwind label %648

582:                                              ; preds = %576
  %583 = load ptr, ptr %32, align 8, !tbaa !5
  %584 = load i32, ptr %62, align 4, !tbaa !9
  %585 = sext i32 %584 to i64
  %586 = getelementptr inbounds double, ptr %583, i64 %585
  %587 = load double, ptr %586, align 8, !tbaa !15
  %588 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %61, double noundef %587)
          to label %589 unwind label %648

589:                                              ; preds = %582
  %590 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %588, ptr noundef @.str.37)
          to label %591 unwind label %648

591:                                              ; preds = %589
  %592 = load ptr, ptr %61, align 8, !tbaa !22
  %593 = getelementptr i8, ptr %592, i64 -24
  %594 = load i64, ptr %593, align 8
  %595 = getelementptr inbounds i8, ptr %61, i64 %594
  %596 = invoke noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %595, i64 noundef 14)
          to label %597 unwind label %648

597:                                              ; preds = %591
  %598 = load ptr, ptr %56, align 8, !tbaa !5
  %599 = load i32, ptr %62, align 4, !tbaa !9
  %600 = sext i32 %599 to i64
  %601 = getelementptr inbounds double, ptr %598, i64 %600
  %602 = load double, ptr %601, align 8, !tbaa !15
  %603 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %61, double noundef %602)
          to label %604 unwind label %648

604:                                              ; preds = %597
  %605 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %603, ptr noundef @.str.37)
          to label %606 unwind label %648

606:                                              ; preds = %604
  %607 = load ptr, ptr %61, align 8, !tbaa !22
  %608 = getelementptr i8, ptr %607, i64 -24
  %609 = load i64, ptr %608, align 8
  %610 = getelementptr inbounds i8, ptr %61, i64 %609
  %611 = invoke noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %610, i64 noundef 14)
          to label %612 unwind label %648

612:                                              ; preds = %606
  %613 = load ptr, ptr %32, align 8, !tbaa !5
  %614 = load i32, ptr %62, align 4, !tbaa !9
  %615 = sext i32 %614 to i64
  %616 = getelementptr inbounds double, ptr %613, i64 %615
  %617 = load double, ptr %616, align 8, !tbaa !15
  %618 = load ptr, ptr %56, align 8, !tbaa !5
  %619 = load i32, ptr %62, align 4, !tbaa !9
  %620 = sext i32 %619 to i64
  %621 = getelementptr inbounds double, ptr %618, i64 %620
  %622 = load double, ptr %621, align 8, !tbaa !15
  %623 = fsub double %617, %622
  %624 = call double @llvm.fabs.f64(double %623)
  %625 = fmul double 2.000000e+00, %624
  %626 = load ptr, ptr %32, align 8, !tbaa !5
  %627 = load i32, ptr %62, align 4, !tbaa !9
  %628 = sext i32 %627 to i64
  %629 = getelementptr inbounds double, ptr %626, i64 %628
  %630 = load double, ptr %629, align 8, !tbaa !15
  %631 = load ptr, ptr %56, align 8, !tbaa !5
  %632 = load i32, ptr %62, align 4, !tbaa !9
  %633 = sext i32 %632 to i64
  %634 = getelementptr inbounds double, ptr %631, i64 %633
  %635 = load double, ptr %634, align 8, !tbaa !15
  %636 = fadd double %630, %635
  %637 = fdiv double %625, %636
  store double %637, ptr %60, align 8, !tbaa !15
  %638 = load double, ptr %60, align 8, !tbaa !15
  %639 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %61, double noundef %638)
          to label %640 unwind label %648

640:                                              ; preds = %612
  %641 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %639, ptr noundef @.str.38)
          to label %642 unwind label %648

642:                                              ; preds = %640
  %643 = load double, ptr %60, align 8, !tbaa !15
  %644 = fcmp ogt double %643, 1.000000e-02
  br i1 %644, label %645, label %652

645:                                              ; preds = %642
  %646 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @.str.115)
          to label %647 unwind label %648

647:                                              ; preds = %645
  br label %652

648:                                              ; preds = %645, %640, %612, %606, %604, %597, %591, %589, %582, %576, %574, %567, %561, %559, %556, %550
  %649 = landingpad { ptr, i32 }
          cleanup
  %650 = extractvalue { ptr, i32 } %649, 0
  store ptr %650, ptr %10, align 8
  %651 = extractvalue { ptr, i32 } %649, 1
  store i32 %651, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #10
  br label %684

652:                                              ; preds = %647, %642
  br label %653

653:                                              ; preds = %652
  %654 = load i32, ptr %62, align 4, !tbaa !9
  %655 = add nsw i32 %654, 1
  store i32 %655, ptr %62, align 4, !tbaa !9
  br label %537, !llvm.loop !27

656:                                              ; preds = %541
  %657 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @.str.123)
          to label %658 unwind label %546

658:                                              ; preds = %656
  %659 = load ptr, ptr %33, align 8, !tbaa !5
  %660 = icmp eq ptr %659, null
  br i1 %660, label %662, label %661

661:                                              ; preds = %658
  call void @_ZdaPv(ptr noundef %659) #12
  br label %662

662:                                              ; preds = %661, %658
  %663 = load ptr, ptr %32, align 8, !tbaa !5
  %664 = icmp eq ptr %663, null
  br i1 %664, label %666, label %665

665:                                              ; preds = %662
  call void @_ZdaPv(ptr noundef %663) #12
  br label %666

666:                                              ; preds = %665, %662
  %667 = load ptr, ptr %56, align 8, !tbaa !5
  %668 = icmp eq ptr %667, null
  br i1 %668, label %670, label %669

669:                                              ; preds = %666
  call void @_ZdaPv(ptr noundef %667) #12
  br label %670

670:                                              ; preds = %669, %666
  call void @llvm.lifetime.start.p0(i64 32, ptr %63) #10
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %63, ptr noundef nonnull align 8 dereferenceable(112) %61)
          to label %671 unwind label %675

671:                                              ; preds = %670
  %672 = 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) %63)
          to label %673 unwind label %679

673:                                              ; preds = %671
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %63) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %63) #10
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %61)
          to label %674 unwind label %546

674:                                              ; preds = %673
  store i32 1, ptr %31, align 4
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %61) #10
  call void @llvm.lifetime.end.p0(i64 376, ptr %61) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %49) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %49) #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 %45) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %38) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %38) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %35) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  br label %696

675:                                              ; preds = %670
  %676 = landingpad { ptr, i32 }
          cleanup
  %677 = extractvalue { ptr, i32 } %676, 0
  store ptr %677, ptr %10, align 8
  %678 = extractvalue { ptr, i32 } %676, 1
  store i32 %678, ptr %11, align 4
  br label %683

679:                                              ; preds = %671
  %680 = landingpad { ptr, i32 }
          cleanup
  %681 = extractvalue { ptr, i32 } %680, 0
  store ptr %681, ptr %10, align 8
  %682 = extractvalue { ptr, i32 } %680, 1
  store i32 %682, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %63) #10
  br label %683

683:                                              ; preds = %679, %675
  call void @llvm.lifetime.end.p0(i64 32, ptr %63) #10
  br label %684

684:                                              ; preds = %683, %648, %546
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %61) #10
  br label %685

685:                                              ; preds = %684, %542
  call void @llvm.lifetime.end.p0(i64 376, ptr %61) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #10
  br label %686

686:                                              ; preds = %685, %509
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  br label %687

687:                                              ; preds = %686, %484
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  br label %688

688:                                              ; preds = %687, %469
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %49) #10
  br label %689

689:                                              ; preds = %688, %354
  call void @llvm.lifetime.end.p0(i64 56, ptr %49) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %46) #10
  br label %690

690:                                              ; preds = %689, %345
  call void @llvm.lifetime.end.p0(i64 56, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  br label %691

691:                                              ; preds = %690, %325
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %38) #10
  br label %692

692:                                              ; preds = %691, %292
  call void @llvm.lifetime.end.p0(i64 56, ptr %38) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %35) #10
  br label %693

693:                                              ; preds = %692, %283
  call void @llvm.lifetime.end.p0(i64 56, ptr %35) #10
  br label %694

694:                                              ; preds = %693, %259, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  br label %695

695:                                              ; preds = %694, %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  br label %697

696:                                              ; preds = %674, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %18) #10
  call void @llvm.lifetime.end.p0(i64 504, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  ret void

697:                                              ; preds = %695, %208, %199, %185, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  br label %698

698:                                              ; preds = %697, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  br label %699

699:                                              ; preds = %698, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %18) #10
  br label %700

700:                                              ; preds = %699, %161
  call void @llvm.lifetime.end.p0(i64 504, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #10
  br label %701

701:                                              ; preds = %700, %160, %151, %142, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #10
  br label %702

702:                                              ; preds = %701, %126
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #10
  br label %703

703:                                              ; preds = %702, %122
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #10
  br label %704

704:                                              ; preds = %703, %121
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  br label %705

705:                                              ; preds = %704
  %706 = load ptr, ptr %10, align 8
  %707 = load i32, ptr %11, align 4
  %708 = insertvalue { ptr, i32 } poison, ptr %706, 0
  %709 = insertvalue { ptr, i32 } %708, i32 %707, 1
  resume { ptr, i32 } %709
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #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 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN7SGTELIB7model_tE", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !8, i64 0}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}


; 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::Surrogate_Parameters" = type { ptr, i32, i32, i32, i32, i32, double, i32, double, i32, i32, i32, %"class.SGTELIB::Matrix", i32, i32, i32, double, double, double, double, %"class.SGTELIB::Matrix", i32, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i32 }
%"class.std::allocator" = type { i8 }
%"class.SGTELIB::TrainingSet" = type { ptr, i32, i32, i32, i8, ptr, i8, i32, double, double, i32, %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double }
%"class.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }

@_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.34 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [17 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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 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 #2

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

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

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

declare void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #2

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

declare void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #2

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

; 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 noundef double @_ZN7SGTELIB9Surrogate10get_metricENS_8metric_tEi(ptr noundef nonnull align 8 dereferenceable(985), i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef) local_unnamed_addr #2

; 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: mustprogress uwtable
declare void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

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

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

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

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

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

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #10

declare noundef i32 @_ZN7SGTELIB20Surrogate_Parameters15read_model_typeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7SGTELIB11TrainingSet11get_Ds_meanEv(ptr noundef nonnull align 8 dereferenceable(504)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7SGTELIB11TrainingSet15get_X_scaling_aEi(ptr noundef nonnull align 8 dereferenceable(504), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7SGTELIB20Surrogate_Parameters15get_kernel_coefEv(ptr noundef nonnull align 8 dereferenceable(312)) local_unnamed_addr #4 align 2

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

declare void @_ZN7SGTELIB11TrainingSet5buildEv(ptr noundef nonnull align 8 dereferenceable(504)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7SGTELIB9Surrogate15set_kernel_coefEd(ptr noundef nonnull align 8 dereferenceable(985), double noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7SGTELIB25test_multiple_occurrencesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.SGTELIB::Matrix", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.SGTELIB::Matrix", align 8
  %7 = alloca %"class.SGTELIB::Matrix", align 8
  %8 = alloca %"class.SGTELIB::Matrix", align 8
  %9 = alloca %"class.SGTELIB::Matrix", align 8
  %10 = alloca %"class.SGTELIB::TrainingSet", align 8
  %11 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.SGTELIB::Matrix", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca %"class.SGTELIB::Matrix", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca %"class.SGTELIB::Matrix", align 8
  %22 = alloca %"class.SGTELIB::Matrix", align 8
  %23 = alloca %"class.SGTELIB::Matrix", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca %"class.SGTELIB::Matrix", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator", align 1
  %29 = alloca %"class.SGTELIB::Matrix", align 8
  %30 = alloca %"class.SGTELIB::Matrix", align 8
  %31 = alloca %"class.SGTELIB::Matrix", align 8
  %32 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %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.15)
  %35 = 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.125)
  %36 = 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)
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @.str.6)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.75, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %38 unwind label %70

38:                                               ; preds = %2
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 20, i32 noundef 2)
          to label %39 unwind label %72

39:                                               ; preds = %38
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #11
  invoke void @_ZN7SGTELIB6Matrix10set_randomEddb(ptr noundef nonnull align 8 dereferenceable(56) %3, double noundef -3.000000e+00, double noundef 8.000000e+00, i1 noundef zeroext false)
          to label %40 unwind label %75

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %6) #11
  invoke void @_ZN7SGTELIB14test_functionsERKNS_6MatrixE(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %6, ptr noundef nonnull align 8 dereferenceable(56) %3)
          to label %41 unwind label %77

41:                                               ; preds = %40
  %42 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %6)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %7, ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef 0)
          to label %43 unwind label %79

43:                                               ; preds = %41
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef 1)
          to label %44 unwind label %81

44:                                               ; preds = %43
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %8, ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef 0)
          to label %45 unwind label %84

45:                                               ; preds = %44
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(56) %8, i32 noundef 2)
          to label %46 unwind label %86

46:                                               ; preds = %45
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %9, ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef 10)
          to label %47 unwind label %89

47:                                               ; preds = %46
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef 11)
          to label %48 unwind label %91

48:                                               ; preds = %47
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #11
  call void @llvm.lifetime.start.p0(i64 504, ptr nonnull %10) #11
  invoke void @_ZN7SGTELIB11TrainingSetC1ERKNS_6MatrixES3_(ptr noundef nonnull align 8 dereferenceable(504) %10, ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(56) %6)
          to label %49 unwind label %94

49:                                               ; preds = %48
  %50 = invoke noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %10, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %51 unwind label %96

51:                                               ; preds = %49
  %52 = invoke noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985) %50)
          to label %53 unwind label %96

53:                                               ; preds = %51
  %54 = invoke noundef i32 @_ZN7SGTELIB20Surrogate_Parameters15read_model_typeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %55 unwind label %98

55:                                               ; preds = %53
  %56 = invoke noundef double @_ZNK7SGTELIB11TrainingSet11get_Ds_meanEv(ptr noundef nonnull align 8 dereferenceable(504) %10)
          to label %57 unwind label %100

57:                                               ; preds = %55
  %58 = invoke noundef double @_ZNK7SGTELIB11TrainingSet15get_X_scaling_aEi(ptr noundef nonnull align 8 dereferenceable(504) %10, i32 noundef 0)
          to label %59 unwind label %100

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 312, ptr nonnull %11) #11
  invoke void @_ZNK7SGTELIB9Surrogate9get_paramEv(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Surrogate_Parameters") align 8 %11, ptr noundef nonnull align 8 dereferenceable(985) %50)
          to label %60 unwind label %102

60:                                               ; preds = %59
  %61 = call noundef double @_ZNK7SGTELIB20Surrogate_Parameters15get_kernel_coefEv(ptr noundef nonnull align 8 dereferenceable(312) %11)
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %11) #11
  call void @llvm.lifetime.end.p0(i64 312, ptr nonnull %11) #11
  br i1 %52, label %117, label %62

62:                                               ; preds = %60
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef nonnull %50)
          to label %63 unwind label %100

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #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 %13, ptr noundef nonnull @.str.117, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %64 unwind label %104

64:                                               ; preds = %63
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.32)
          to label %65 unwind label %106

65:                                               ; preds = %64
  %66 = 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) %12)
          to label %67 unwind label %108

67:                                               ; preds = %65
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #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 %14, ptr noundef nonnull @.str.117, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %68 unwind label %112

68:                                               ; preds = %67
  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) %14, ptr noundef nonnull @.str.32)
          to label %69 unwind label %114

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

70:                                               ; preds = %2
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %74

72:                                               ; preds = %38
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  br label %74

74:                                               ; preds = %72, %70
  %.pn = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #11
  br label %467

75:                                               ; preds = %39
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %466

77:                                               ; preds = %40
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %465

79:                                               ; preds = %41
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %83

81:                                               ; preds = %43
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #11
  br label %83

83:                                               ; preds = %81, %79
  %.pn148 = phi { ptr, i32 } [ %82, %81 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #11
  br label %464

84:                                               ; preds = %44
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %45
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #11
  br label %88

88:                                               ; preds = %86, %84
  %.pn150 = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #11
  br label %464

89:                                               ; preds = %46
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %93

91:                                               ; preds = %47
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #11
  br label %93

93:                                               ; preds = %91, %89
  %.pn152 = phi { ptr, i32 } [ %92, %91 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #11
  br label %464

94:                                               ; preds = %48
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %463

96:                                               ; preds = %51, %49
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %462

98:                                               ; preds = %53
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %462

100:                                              ; preds = %62, %57, %55
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %462

102:                                              ; preds = %59
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 312, ptr nonnull %11) #11
  br label %462

104:                                              ; preds = %63
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %111

106:                                              ; preds = %64
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %110

108:                                              ; preds = %65
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  br label %110

110:                                              ; preds = %108, %106
  %.pn154 = phi { ptr, i32 } [ %109, %108 ], [ %107, %106 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  br label %111

111:                                              ; preds = %110, %104
  %.pn154.pn = phi { ptr, i32 } [ %.pn154, %110 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #11
  br label %462

112:                                              ; preds = %67
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %116

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

116:                                              ; preds = %114, %112
  %.pn157 = phi { ptr, i32 } [ %115, %114 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #11
  br label %462

117:                                              ; preds = %60
  %118 = zext i32 %42 to i64
  %119 = icmp slt i32 %42, 0
  %120 = shl nuw nsw i64 %118, 3
  %121 = select i1 %119, i64 -1, i64 %120
  %122 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %121) #12
          to label %123 unwind label %126

123:                                              ; preds = %117
  %124 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %121) #12
          to label %.preheader205 unwind label %128

.preheader205:                                    ; preds = %123
  %125 = icmp sgt i32 %42, 0
  br i1 %125, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %135, %.preheader205
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef nonnull %50)
          to label %139 unwind label %128

126:                                              ; preds = %117
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %462

128:                                              ; preds = %._crit_edge, %123
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %462

.lr.ph:                                           ; preds = %.preheader205, %135
  %indvars.iv = phi i64 [ %indvars.iv.next, %135 ], [ 0, %.preheader205 ]
  %130 = trunc nuw nsw i64 %indvars.iv to i32
  %131 = invoke noundef double @_ZN7SGTELIB9Surrogate10get_metricENS_8metric_tEi(ptr noundef nonnull align 8 dereferenceable(985) %50, i32 noundef 4, i32 noundef %130)
          to label %132 unwind label %137

132:                                              ; preds = %.lr.ph
  %133 = getelementptr inbounds double, ptr %122, i64 %indvars.iv
  store double %131, ptr %133, align 8, !tbaa !5
  %134 = invoke noundef double @_ZN7SGTELIB9Surrogate10get_metricENS_8metric_tEi(ptr noundef nonnull align 8 dereferenceable(985) %50, i32 noundef 2, i32 noundef %130)
          to label %135 unwind label %137

135:                                              ; preds = %132
  %136 = getelementptr inbounds double, ptr %124, i64 %indvars.iv
  store double %134, ptr %136, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %118
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

137:                                              ; preds = %132, %.lr.ph
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %462

139:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %15) #11
  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.118, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %140 unwind label %145

140:                                              ; preds = %139
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %15, ptr noundef nonnull align 8 dereferenceable(32) %16, i32 noundef 19, i32 noundef 2)
          to label %141 unwind label %147

141:                                              ; preds = %140
  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
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %18) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull @.str.119, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %142 unwind label %150

142:                                              ; preds = %141
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef 19, i32 noundef %42)
          to label %143 unwind label %152

143:                                              ; preds = %142
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #11
  br label %155

144:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %23) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull @.str.120, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %172 unwind label %179

145:                                              ; preds = %139
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %149

147:                                              ; preds = %140
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  br label %149

149:                                              ; preds = %147, %145
  %.pn159 = phi { ptr, i32 } [ %148, %147 ], [ %146, %145 ]
  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
  br label %460

150:                                              ; preds = %141
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %154

152:                                              ; preds = %142
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  br label %154

154:                                              ; preds = %152, %150
  %.pn161 = phi { ptr, i32 } [ %153, %152 ], [ %151, %150 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #11
  br label %459

155:                                              ; preds = %143, %160
  %.0144213 = phi i32 [ 1, %143 ], [ %161, %160 ]
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %21) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %21, ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef %.0144213)
          to label %156 unwind label %162

156:                                              ; preds = %155
  %157 = add nsw i32 %.0144213, -1
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %15, ptr noundef nonnull align 8 dereferenceable(56) %21, i32 noundef %157)
          to label %158 unwind label %164

158:                                              ; preds = %156
  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 @llvm.lifetime.start.p0(i64 56, ptr nonnull %22) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %22, ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef %.0144213)
          to label %159 unwind label %167

159:                                              ; preds = %158
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(56) %22, i32 noundef %157)
          to label %160 unwind label %169

160:                                              ; preds = %159
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %22) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %22) #11
  %161 = add nuw nsw i32 %.0144213, 1
  %exitcond231.not = icmp eq i32 %161, 20
  br i1 %exitcond231.not, label %144, label %155, !llvm.loop !11

162:                                              ; preds = %155
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %166

164:                                              ; preds = %156
  %165 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #11
  br label %166

166:                                              ; preds = %164, %162
  %.pn184 = phi { ptr, i32 } [ %165, %164 ], [ %163, %162 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %21) #11
  br label %458

167:                                              ; preds = %158
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %171

169:                                              ; preds = %159
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %22) #11
  br label %171

171:                                              ; preds = %169, %167
  %.pn186 = phi { ptr, i32 } [ %170, %169 ], [ %168, %167 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %22) #11
  br label %458

172:                                              ; preds = %144
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %23, ptr noundef nonnull align 8 dereferenceable(32) %24, i32 noundef 1, i32 noundef %42)
          to label %173 unwind label %181

173:                                              ; preds = %172
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %26) #11
  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.121, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %174 unwind label %184

174:                                              ; preds = %173
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 8 dereferenceable(32) %27, i32 noundef 20, i32 noundef %42)
          to label %175 unwind label %186

175:                                              ; preds = %174
  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
  %176 = insertelement <2 x double> poison, double %56, i64 0
  br label %189

177:                                              ; preds = %248
  %178 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %121) #12
          to label %.preheader204 unwind label %363

.preheader204:                                    ; preds = %177
  br i1 %125, label %.preheader203, label %._crit_edge218

179:                                              ; preds = %144
  %180 = landingpad { ptr, i32 }
          cleanup
  br label %183

181:                                              ; preds = %172
  %182 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  br label %183

183:                                              ; preds = %181, %179
  %.pn163 = phi { ptr, i32 } [ %182, %181 ], [ %180, %179 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #11
  br label %457

184:                                              ; preds = %173
  %185 = landingpad { ptr, i32 }
          cleanup
  br label %188

186:                                              ; preds = %174
  %187 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  br label %188

188:                                              ; preds = %186, %184
  %.pn165 = phi { ptr, i32 } [ %187, %186 ], [ %185, %184 ]
  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
  br label %456

189:                                              ; preds = %175, %248
  %.0143214 = phi i32 [ 0, %175 ], [ %249, %248 ]
  %190 = 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.126)
          to label %191 unwind label %206

191:                                              ; preds = %189
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %190, i32 noundef %.0143214)
          to label %193 unwind label %206

193:                                              ; preds = %191
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %192, ptr noundef nonnull @.str.6)
          to label %195 unwind label %206

195:                                              ; preds = %193
  %196 = invoke noalias noundef nonnull dereferenceable(504) ptr @_Znwm(i64 noundef 504) #12
          to label %197 unwind label %206

197:                                              ; preds = %195
  invoke void @_ZN7SGTELIB11TrainingSetC1ERKNS_6MatrixES3_(ptr noundef nonnull align 8 dereferenceable(504) %196, ptr noundef nonnull align 8 dereferenceable(56) %15, ptr noundef nonnull align 8 dereferenceable(56) %18)
          to label %198 unwind label %208

198:                                              ; preds = %197
  invoke void @_ZN7SGTELIB11TrainingSet5buildEv(ptr noundef nonnull align 8 dereferenceable(504) %196)
          to label %199 unwind label %206

199:                                              ; preds = %198
  %200 = invoke noundef double @_ZNK7SGTELIB11TrainingSet11get_Ds_meanEv(ptr noundef nonnull align 8 dereferenceable(504) %196)
          to label %201 unwind label %206

201:                                              ; preds = %199
  %202 = invoke noundef double @_ZNK7SGTELIB11TrainingSet15get_X_scaling_aEi(ptr noundef nonnull align 8 dereferenceable(504) %196, i32 noundef 0)
          to label %203 unwind label %206

203:                                              ; preds = %201
  %204 = invoke noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %196, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %205 unwind label %206

205:                                              ; preds = %203
  switch i32 %54, label %218 [
    i32 10, label %.invoke
    i32 6, label %.invoke
  ]

206:                                              ; preds = %.invoke, %244, %222, %218, %203, %201, %199, %198, %195, %193, %191, %189
  %207 = landingpad { ptr, i32 }
          cleanup
  br label %455

208:                                              ; preds = %197
  %209 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %196, i64 noundef 504) #13
  br label %455

.invoke:                                          ; preds = %205, %205
  %210 = insertelement <2 x double> poison, double %200, i64 0
  %211 = insertelement <2 x double> %210, double %58, i64 1
  %212 = insertelement <2 x double> %176, double %202, i64 1
  %213 = fdiv <2 x double> %211, %212
  %214 = extractelement <2 x double> %213, i64 0
  %215 = fmul double %61, %214
  %216 = extractelement <2 x double> %213, i64 1
  %217 = fmul double %215, %216
  invoke void @_ZN7SGTELIB9Surrogate15set_kernel_coefEd(ptr noundef nonnull align 8 dereferenceable(985) %204, double noundef %217)
          to label %218 unwind label %206

218:                                              ; preds = %.invoke, %205
  %219 = invoke noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985) %204)
          to label %220 unwind label %206

220:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %29) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %29, ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef %.0143214)
          to label %221 unwind label %229

221:                                              ; preds = %220
  invoke void @_ZN7SGTELIB9Surrogate7predictERKNS_6MatrixEPS1_(ptr noundef nonnull align 8 dereferenceable(985) %204, ptr noundef nonnull align 8 dereferenceable(56) %29, ptr noundef nonnull %23)
          to label %222 unwind label %231

222:                                              ; preds = %221
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %29) #11
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 8 dereferenceable(56) %23, i32 noundef %.0143214)
          to label %223 unwind label %206

223:                                              ; preds = %222
  %.not = icmp eq i32 %.0143214, 19
  br i1 %.not, label %244, label %224

224:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %30) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %30, ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef %.0143214)
          to label %225 unwind label %234

225:                                              ; preds = %224
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %15, ptr noundef nonnull align 8 dereferenceable(56) %30, i32 noundef %.0143214)
          to label %226 unwind label %236

226:                                              ; preds = %225
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %30) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %31) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %31, ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef %.0143214)
          to label %227 unwind label %239

227:                                              ; preds = %226
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(56) %31, i32 noundef %.0143214)
          to label %228 unwind label %241

228:                                              ; preds = %227
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %31) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %31) #11
  br label %244

229:                                              ; preds = %220
  %230 = landingpad { ptr, i32 }
          cleanup
  br label %233

231:                                              ; preds = %221
  %232 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #11
  br label %233

233:                                              ; preds = %231, %229
  %.pn173 = phi { ptr, i32 } [ %232, %231 ], [ %230, %229 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %29) #11
  br label %455

234:                                              ; preds = %224
  %235 = landingpad { ptr, i32 }
          cleanup
  br label %238

236:                                              ; preds = %225
  %237 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #11
  br label %238

238:                                              ; preds = %236, %234
  %.pn175 = phi { ptr, i32 } [ %237, %236 ], [ %235, %234 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %30) #11
  br label %455

239:                                              ; preds = %226
  %240 = landingpad { ptr, i32 }
          cleanup
  br label %243

241:                                              ; preds = %227
  %242 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %31) #11
  br label %243

243:                                              ; preds = %241, %239
  %.pn177 = phi { ptr, i32 } [ %242, %241 ], [ %240, %239 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %31) #11
  br label %455

244:                                              ; preds = %223, %228
  %245 = load ptr, ptr %196, align 8, !tbaa !12
  %246 = getelementptr inbounds i8, ptr %245, i64 8
  %247 = load ptr, ptr %246, align 8
  call void %247(ptr noundef nonnull align 8 dereferenceable(504) %196) #11
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef nonnull %204)
          to label %248 unwind label %206

248:                                              ; preds = %244
  %249 = add nuw nsw i32 %.0143214, 1
  %exitcond232.not = icmp eq i32 %249, 20
  br i1 %exitcond232.not, label %177, label %189, !llvm.loop !14

.preheader203:                                    ; preds = %.preheader204, %.preheader203
  %indvars.iv234 = phi i64 [ %indvars.iv.next235, %.preheader203 ], [ 0, %.preheader204 ]
  %250 = trunc nuw nsw i64 %indvars.iv234 to i32
  %251 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 0, i32 noundef %250)
  %252 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 0, i32 noundef %250)
  %253 = fsub double %251, %252
  %square = fmul double %253, %253
  %254 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 1, i32 noundef %250)
  %255 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 1, i32 noundef %250)
  %256 = fsub double %254, %255
  %square.1 = fmul double %256, %256
  %257 = fadd double %square, %square.1
  %258 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 2, i32 noundef %250)
  %259 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 2, i32 noundef %250)
  %260 = fsub double %258, %259
  %square.2 = fmul double %260, %260
  %261 = fadd double %257, %square.2
  %262 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 3, i32 noundef %250)
  %263 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 3, i32 noundef %250)
  %264 = fsub double %262, %263
  %square.3 = fmul double %264, %264
  %265 = fadd double %261, %square.3
  %266 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 4, i32 noundef %250)
  %267 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 4, i32 noundef %250)
  %268 = fsub double %266, %267
  %square.4 = fmul double %268, %268
  %269 = fadd double %265, %square.4
  %270 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 5, i32 noundef %250)
  %271 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 5, i32 noundef %250)
  %272 = fsub double %270, %271
  %square.5 = fmul double %272, %272
  %273 = fadd double %269, %square.5
  %274 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 6, i32 noundef %250)
  %275 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 6, i32 noundef %250)
  %276 = fsub double %274, %275
  %square.6 = fmul double %276, %276
  %277 = fadd double %273, %square.6
  %278 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 7, i32 noundef %250)
  %279 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 7, i32 noundef %250)
  %280 = fsub double %278, %279
  %square.7 = fmul double %280, %280
  %281 = fadd double %277, %square.7
  %282 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 8, i32 noundef %250)
  %283 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 8, i32 noundef %250)
  %284 = fsub double %282, %283
  %square.8 = fmul double %284, %284
  %285 = fadd double %281, %square.8
  %286 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 9, i32 noundef %250)
  %287 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 9, i32 noundef %250)
  %288 = fsub double %286, %287
  %square.9 = fmul double %288, %288
  %289 = fadd double %285, %square.9
  %290 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 10, i32 noundef %250)
  %291 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 10, i32 noundef %250)
  %292 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 11, i32 noundef %250)
  %293 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 11, i32 noundef %250)
  %294 = insertelement <2 x double> poison, double %290, i64 0
  %295 = insertelement <2 x double> %294, double %292, i64 1
  %296 = insertelement <2 x double> poison, double %291, i64 0
  %297 = insertelement <2 x double> %296, double %293, i64 1
  %298 = fsub <2 x double> %295, %297
  %299 = fmul <2 x double> %298, %298
  %300 = extractelement <2 x double> %299, i64 0
  %301 = fadd double %289, %300
  %302 = extractelement <2 x double> %299, i64 1
  %303 = fadd double %301, %302
  %304 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 12, i32 noundef %250)
  %305 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 12, i32 noundef %250)
  %306 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 13, i32 noundef %250)
  %307 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 13, i32 noundef %250)
  %308 = insertelement <2 x double> poison, double %304, i64 0
  %309 = insertelement <2 x double> %308, double %306, i64 1
  %310 = insertelement <2 x double> poison, double %305, i64 0
  %311 = insertelement <2 x double> %310, double %307, i64 1
  %312 = fsub <2 x double> %309, %311
  %313 = fmul <2 x double> %312, %312
  %314 = extractelement <2 x double> %313, i64 0
  %315 = fadd double %303, %314
  %316 = extractelement <2 x double> %313, i64 1
  %317 = fadd double %315, %316
  %318 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 14, i32 noundef %250)
  %319 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 14, i32 noundef %250)
  %320 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 15, i32 noundef %250)
  %321 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 15, i32 noundef %250)
  %322 = insertelement <2 x double> poison, double %318, i64 0
  %323 = insertelement <2 x double> %322, double %320, i64 1
  %324 = insertelement <2 x double> poison, double %319, i64 0
  %325 = insertelement <2 x double> %324, double %321, i64 1
  %326 = fsub <2 x double> %323, %325
  %327 = fmul <2 x double> %326, %326
  %328 = extractelement <2 x double> %327, i64 0
  %329 = fadd double %317, %328
  %330 = extractelement <2 x double> %327, i64 1
  %331 = fadd double %329, %330
  %332 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 16, i32 noundef %250)
  %333 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 16, i32 noundef %250)
  %334 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 17, i32 noundef %250)
  %335 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 17, i32 noundef %250)
  %336 = insertelement <2 x double> poison, double %332, i64 0
  %337 = insertelement <2 x double> %336, double %334, i64 1
  %338 = insertelement <2 x double> poison, double %333, i64 0
  %339 = insertelement <2 x double> %338, double %335, i64 1
  %340 = fsub <2 x double> %337, %339
  %341 = fmul <2 x double> %340, %340
  %342 = extractelement <2 x double> %341, i64 0
  %343 = fadd double %331, %342
  %344 = extractelement <2 x double> %341, i64 1
  %345 = fadd double %343, %344
  %346 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 18, i32 noundef %250)
  %347 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 18, i32 noundef %250)
  %348 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef 19, i32 noundef %250)
  %349 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef 19, i32 noundef %250)
  %350 = insertelement <2 x double> poison, double %346, i64 0
  %351 = insertelement <2 x double> %350, double %348, i64 1
  %352 = insertelement <2 x double> poison, double %347, i64 0
  %353 = insertelement <2 x double> %352, double %349, i64 1
  %354 = fsub <2 x double> %351, %353
  %355 = fmul <2 x double> %354, %354
  %356 = extractelement <2 x double> %355, i64 0
  %357 = fadd double %345, %356
  %358 = extractelement <2 x double> %355, i64 1
  %359 = fadd double %357, %358
  %360 = fdiv double %359, 2.000000e+01
  %361 = call double @sqrt(double noundef %360) #11
  %362 = getelementptr inbounds double, ptr %178, i64 %indvars.iv234
  store double %361, ptr %362, align 8, !tbaa !5
  %indvars.iv.next235 = add nuw nsw i64 %indvars.iv234, 1
  %exitcond238.not = icmp eq i64 %indvars.iv.next235, %118
  br i1 %exitcond238.not, label %._crit_edge218, label %.preheader203, !llvm.loop !15

._crit_edge218:                                   ; preds = %.preheader203, %.preheader204
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %32) #11
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %32)
          to label %365 unwind label %376

363:                                              ; preds = %177
  %364 = landingpad { ptr, i32 }
          cleanup
  br label %455

365:                                              ; preds = %._crit_edge218
  %366 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @.str.34)
          to label %367 unwind label %378

367:                                              ; preds = %365
  %368 = 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) %366, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %369 unwind label %378

369:                                              ; preds = %367
  %370 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %368, ptr noundef nonnull @.str.6)
          to label %371 unwind label %378

371:                                              ; preds = %369
  %372 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @.str.122)
          to label %373 unwind label %378

373:                                              ; preds = %371
  %374 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @.str.123)
          to label %.preheader unwind label %378

.preheader:                                       ; preds = %373
  br i1 %125, label %.lr.ph220, label %._crit_edge221

._crit_edge221:                                   ; preds = %442, %.preheader
  %375 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @.str.123)
          to label %443 unwind label %378

376:                                              ; preds = %._crit_edge218
  %377 = landingpad { ptr, i32 }
          cleanup
  br label %454

378:                                              ; preds = %446, %._crit_edge221, %373, %371, %369, %367, %365
  %379 = landingpad { ptr, i32 }
          cleanup
  br label %453

.lr.ph220:                                        ; preds = %.preheader, %442
  %indvars.iv239 = phi i64 [ %indvars.iv.next240, %442 ], [ 0, %.preheader ]
  %380 = load ptr, ptr %32, align 8, !tbaa !12
  %381 = getelementptr i8, ptr %380, i64 -24
  %382 = load i64, ptr %381, align 8
  %383 = getelementptr inbounds i8, ptr %32, i64 %382
  %384 = call noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %383, i64 noundef 3)
  %385 = trunc nuw nsw i64 %indvars.iv239 to i32
  %386 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %32, i32 noundef %385)
          to label %387 unwind label %440

387:                                              ; preds = %.lr.ph220
  %388 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %386, ptr noundef nonnull @.str.37)
          to label %389 unwind label %440

389:                                              ; preds = %387
  %390 = load ptr, ptr %32, align 8, !tbaa !12
  %391 = getelementptr i8, ptr %390, i64 -24
  %392 = load i64, ptr %391, align 8
  %393 = getelementptr inbounds i8, ptr %32, i64 %392
  %394 = call noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %393, i64 noundef 14)
  %395 = getelementptr inbounds double, ptr %124, i64 %indvars.iv239
  %396 = load double, ptr %395, align 8, !tbaa !5
  %397 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %32, double noundef %396)
          to label %398 unwind label %440

398:                                              ; preds = %389
  %399 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %397, ptr noundef nonnull @.str.124)
          to label %400 unwind label %440

400:                                              ; preds = %398
  %401 = load ptr, ptr %32, align 8, !tbaa !12
  %402 = getelementptr i8, ptr %401, i64 -24
  %403 = load i64, ptr %402, align 8
  %404 = getelementptr inbounds i8, ptr %32, i64 %403
  %405 = call noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %404, i64 noundef 14)
  %406 = getelementptr inbounds double, ptr %122, i64 %indvars.iv239
  %407 = load double, ptr %406, align 8, !tbaa !5
  %408 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %32, double noundef %407)
          to label %409 unwind label %440

409:                                              ; preds = %400
  %410 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %408, ptr noundef nonnull @.str.37)
          to label %411 unwind label %440

411:                                              ; preds = %409
  %412 = load ptr, ptr %32, align 8, !tbaa !12
  %413 = getelementptr i8, ptr %412, i64 -24
  %414 = load i64, ptr %413, align 8
  %415 = getelementptr inbounds i8, ptr %32, i64 %414
  %416 = call noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %415, i64 noundef 14)
  %417 = getelementptr inbounds double, ptr %178, i64 %indvars.iv239
  %418 = load double, ptr %417, align 8, !tbaa !5
  %419 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %32, double noundef %418)
          to label %420 unwind label %440

420:                                              ; preds = %411
  %421 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %419, ptr noundef nonnull @.str.37)
          to label %422 unwind label %440

422:                                              ; preds = %420
  %423 = load ptr, ptr %32, align 8, !tbaa !12
  %424 = getelementptr i8, ptr %423, i64 -24
  %425 = load i64, ptr %424, align 8
  %426 = getelementptr inbounds i8, ptr %32, i64 %425
  %427 = call noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %426, i64 noundef 14)
  %428 = fsub double %407, %418
  %429 = call double @llvm.fabs.f64(double %428)
  %430 = fmul double %429, 2.000000e+00
  %431 = fadd double %407, %418
  %432 = fdiv double %430, %431
  %433 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %32, double noundef %432)
          to label %434 unwind label %440

434:                                              ; preds = %422
  %435 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %433, ptr noundef nonnull @.str.38)
          to label %436 unwind label %440

436:                                              ; preds = %434
  %437 = fcmp ogt double %432, 1.000000e-02
  br i1 %437, label %438, label %442

438:                                              ; preds = %436
  %439 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @.str.115)
          to label %442 unwind label %440

440:                                              ; preds = %438, %434, %422, %420, %411, %409, %400, %398, %389, %387, %.lr.ph220
  %441 = landingpad { ptr, i32 }
          cleanup
  br label %453

442:                                              ; preds = %436, %438
  %indvars.iv.next240 = add nuw nsw i64 %indvars.iv239, 1
  %exitcond243.not = icmp eq i64 %indvars.iv.next240, %118
  br i1 %exitcond243.not, label %._crit_edge221, label %.lr.ph220, !llvm.loop !16

443:                                              ; preds = %._crit_edge221
  call void @_ZdaPv(ptr noundef nonnull %124) #13
  call void @_ZdaPv(ptr noundef nonnull %122) #13
  call void @_ZdaPv(ptr noundef nonnull %178) #13
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %33) #11
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %33, ptr noundef nonnull align 8 dereferenceable(112) %32)
          to label %444 unwind label %448

444:                                              ; preds = %443
  %445 = 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) %33)
          to label %446 unwind label %450

446:                                              ; preds = %444
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #11
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %32)
          to label %447 unwind label %378

447:                                              ; preds = %446
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %32) #11
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %32) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %26) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %26) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %23) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %15) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %15) #11
  br label %461

448:                                              ; preds = %443
  %449 = landingpad { ptr, i32 }
          cleanup
  br label %452

450:                                              ; preds = %444
  %451 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #11
  br label %452

452:                                              ; preds = %450, %448
  %.pn167 = phi { ptr, i32 } [ %451, %450 ], [ %449, %448 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #11
  br label %453

453:                                              ; preds = %452, %440, %378
  %.pn169 = phi { ptr, i32 } [ %441, %440 ], [ %379, %378 ], [ %.pn167, %452 ]
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %32) #11
  br label %454

454:                                              ; preds = %453, %376
  %.pn169.pn = phi { ptr, i32 } [ %.pn169, %453 ], [ %377, %376 ]
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %32) #11
  br label %455

455:                                              ; preds = %363, %454, %206, %208, %233, %238, %243
  %.pn179.pn = phi { ptr, i32 } [ %207, %206 ], [ %.pn177, %243 ], [ %.pn175, %238 ], [ %.pn173, %233 ], [ %209, %208 ], [ %.pn169.pn, %454 ], [ %364, %363 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %26) #11
  br label %456

456:                                              ; preds = %455, %188
  %.pn179.pn.pn = phi { ptr, i32 } [ %.pn179.pn, %455 ], [ %.pn165, %188 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %26) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #11
  br label %457

457:                                              ; preds = %456, %183
  %.pn179.pn.pn.pn = phi { ptr, i32 } [ %.pn179.pn.pn, %456 ], [ %.pn163, %183 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %23) #11
  br label %458

458:                                              ; preds = %166, %171, %457
  %.pn186.pn.pn = phi { ptr, i32 } [ %.pn179.pn.pn.pn, %457 ], [ %.pn186, %171 ], [ %.pn184, %166 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #11
  br label %459

459:                                              ; preds = %458, %154
  %.pn186.pn.pn.pn = phi { ptr, i32 } [ %.pn186.pn.pn, %458 ], [ %.pn161, %154 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %15) #11
  br label %460

460:                                              ; preds = %459, %149
  %.pn186.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn186.pn.pn.pn, %459 ], [ %.pn159, %149 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %15) #11
  br label %462

461:                                              ; preds = %447, %69
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %10) #11
  call void @llvm.lifetime.end.p0(i64 504, ptr nonnull %10) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #11
  ret void

462:                                              ; preds = %98, %126, %460, %137, %128, %116, %111, %102, %100, %96
  %.pn192.pn.pn.pn.pn = phi { ptr, i32 } [ %97, %96 ], [ %99, %98 ], [ %.pn157, %116 ], [ %.pn154.pn, %111 ], [ %101, %100 ], [ %103, %102 ], [ %127, %126 ], [ %138, %137 ], [ %.pn186.pn.pn.pn.pn, %460 ], [ %129, %128 ]
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %10) #11
  br label %463

463:                                              ; preds = %462, %94
  %.pn192.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn192.pn.pn.pn.pn, %462 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 504, ptr nonnull %10) #11
  br label %464

464:                                              ; preds = %463, %93, %88, %83
  %.pn192.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn192.pn.pn.pn.pn.pn, %463 ], [ %.pn152, %93 ], [ %.pn150, %88 ], [ %.pn148, %83 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #11
  br label %465

465:                                              ; preds = %464, %77
  %.pn192.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn192.pn.pn.pn.pn.pn.pn, %464 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #11
  br label %466

466:                                              ; preds = %465, %75
  %.pn192.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn192.pn.pn.pn.pn.pn.pn.pn, %465 ], [ %76, %75 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #11
  br label %467

467:                                              ; preds = %466, %74
  %.pn192.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn192.pn.pn.pn.pn.pn.pn.pn.pn, %466 ], [ %.pn, %74 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #11
  resume { ptr, i32 } %.pn192.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !8, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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