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

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.SGTELIB::Matrix" = type { ptr, %"class.std::__cxx11::basic_string", i32, i32, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.SGTELIB::TrainingSet" = type { ptr, i32, i32, i32, i8, ptr, i8, i32, double, double, i32, %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double }
%"class.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.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.115 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [22 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

; 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 @_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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56)) #8 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

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

73:                                               ; preds = %3
  store i32 %72, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 504, ptr %21) #10
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB11TrainingSetC1ERKNS_6MatrixES3_(ptr noundef nonnull align 8 dereferenceable(504) %21, ptr noundef nonnull align 8 dereferenceable(56) %74, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %75 unwind label %108

75:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = invoke noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %21, ptr noundef nonnull align 8 dereferenceable(32) %76)
          to label %78 unwind label %112

78:                                               ; preds = %75
  store ptr %77, ptr %22, align 8, !tbaa !5
  %79 = load ptr, ptr %22, align 8, !tbaa !5
  %80 = invoke noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985) %79)
          to label %81 unwind label %112

81:                                               ; preds = %78
  %82 = zext i1 %80 to i8
  store i8 %82, ptr %20, align 1, !tbaa !13
  %83 = invoke noundef double @_ZNK7SGTELIB11TrainingSet11get_Ds_meanEv(ptr noundef nonnull align 8 dereferenceable(504) %21)
          to label %84 unwind label %112

84:                                               ; preds = %81
  store double %83, ptr %14, align 8, !tbaa !15
  %85 = invoke noundef double @_ZNK7SGTELIB11TrainingSet15get_X_scaling_aEi(ptr noundef nonnull align 8 dereferenceable(504) %21, i32 noundef 0)
          to label %86 unwind label %112

86:                                               ; preds = %84
  store double %85, ptr %18, align 8, !tbaa !15
  store double 0.000000e+00, ptr %16, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 312, ptr %23) #10
  %87 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @_ZNK7SGTELIB9Surrogate9get_paramEv(ptr dead_on_unwind writable sret(%"class.SGTELIB::Surrogate_Parameters") align 8 %23, ptr noundef nonnull align 8 dereferenceable(985) %87)
          to label %88 unwind label %116

88:                                               ; preds = %86
  %89 = invoke noundef double @_ZNK7SGTELIB20Surrogate_Parameters15get_kernel_coefEv(ptr noundef nonnull align 8 dereferenceable(312) %23)
          to label %90 unwind label %120

90:                                               ; preds = %88
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %23) #10
  call void @llvm.lifetime.end.p0(i64 312, ptr %23) #10
  %91 = load i8, ptr %20, align 1, !tbaa !13, !range !17, !noundef !18
  %92 = trunc i8 %91 to i1
  br i1 %92, label %148, label %93

93:                                               ; preds = %90
  %94 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef %94)
          to label %95 unwind label %112

95:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #10
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef @.str.117, ptr noundef nonnull align 8 dereferenceable(32) %96)
          to label %97 unwind label %125

97:                                               ; preds = %95
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef @.str.32)
          to label %98 unwind label %129

98:                                               ; preds = %97
  %99 = 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) %24)
          to label %100 unwind label %133

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

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

103:                                              ; preds = %102
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #10
  store i32 1, ptr %27, align 4
  br label %644

104:                                              ; preds = %3
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %12, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %13, align 4
  br label %647

108:                                              ; preds = %73
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %12, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %13, align 4
  br label %646

112:                                              ; preds = %93, %84, %81, %78, %75
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %12, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %13, align 4
  br label %645

116:                                              ; preds = %86
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %12, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %13, align 4
  br label %124

120:                                              ; preds = %88
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %12, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %13, align 4
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %23) #10
  br label %124

124:                                              ; preds = %120, %116
  call void @llvm.lifetime.end.p0(i64 312, ptr %23) #10
  br label %645

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

129:                                              ; preds = %97
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %12, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %13, align 4
  br label %137

133:                                              ; preds = %98
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %12, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #10
  br label %137

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

138:                                              ; preds = %137, %125
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #10
  br label %645

139:                                              ; preds = %100
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %12, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %13, align 4
  br label %147

143:                                              ; preds = %102
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %12, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  br label %147

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

148:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  %149 = load i32, ptr %11, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %150, i64 8)
  %152 = extractvalue { i64, i1 } %151, 1
  %153 = extractvalue { i64, i1 } %151, 0
  %154 = select i1 %152, i64 -1, i64 %153
  %155 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %154) #11
          to label %156 unwind label %170

156:                                              ; preds = %148
  store ptr %155, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  %157 = load i32, ptr %11, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %158, i64 8)
  %160 = extractvalue { i64, i1 } %159, 1
  %161 = extractvalue { i64, i1 } %159, 0
  %162 = select i1 %160, i64 -1, i64 %161
  %163 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %162) #11
          to label %164 unwind label %174

164:                                              ; preds = %156
  store ptr %163, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #10
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %165

165:                                              ; preds = %195, %164
  %166 = load i32, ptr %30, align 4, !tbaa !9
  %167 = load i32, ptr %11, align 4, !tbaa !9
  %168 = icmp slt i32 %166, %167
  br i1 %168, label %178, label %169

169:                                              ; preds = %165
  store i32 2, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  br label %202

170:                                              ; preds = %148
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %12, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %13, align 4
  br label %643

174:                                              ; preds = %202, %156
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %12, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %13, align 4
  br label %642

178:                                              ; preds = %165
  %179 = load ptr, ptr %22, align 8, !tbaa !5
  %180 = load i32, ptr %30, align 4, !tbaa !9
  %181 = invoke noundef double @_ZN7SGTELIB9Surrogate10get_metricENS_8metric_tEi(ptr noundef nonnull align 8 dereferenceable(985) %179, i32 noundef 4, i32 noundef %180)
          to label %182 unwind label %198

182:                                              ; preds = %178
  %183 = load ptr, ptr %28, align 8, !tbaa !5
  %184 = load i32, ptr %30, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds double, ptr %183, i64 %185
  store double %181, ptr %186, align 8, !tbaa !15
  %187 = load ptr, ptr %22, align 8, !tbaa !5
  %188 = load i32, ptr %30, align 4, !tbaa !9
  %189 = invoke noundef double @_ZN7SGTELIB9Surrogate10get_metricENS_8metric_tEi(ptr noundef nonnull align 8 dereferenceable(985) %187, i32 noundef 2, i32 noundef %188)
          to label %190 unwind label %198

190:                                              ; preds = %182
  %191 = load ptr, ptr %29, align 8, !tbaa !5
  %192 = load i32, ptr %30, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds double, ptr %191, i64 %193
  store double %189, ptr %194, align 8, !tbaa !15
  br label %195

195:                                              ; preds = %190
  %196 = load i32, ptr %30, align 4, !tbaa !9
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %30, align 4, !tbaa !9
  br label %165, !llvm.loop !19

198:                                              ; preds = %182, %178
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %12, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  br label %642

202:                                              ; preds = %169
  %203 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef %203)
          to label %204 unwind label %174

204:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 56, ptr %31) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef @.str.118, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %205 unwind label %220

205:                                              ; preds = %204
  %206 = load i32, ptr %7, align 4, !tbaa !9
  %207 = sub nsw i32 %206, 1
  %208 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %31, ptr noundef nonnull align 8 dereferenceable(32) %32, i32 noundef %207, i32 noundef %208)
          to label %209 unwind label %224

209:                                              ; preds = %205
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %34) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef @.str.119, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %210 unwind label %229

210:                                              ; preds = %209
  %211 = load i32, ptr %7, align 4, !tbaa !9
  %212 = sub nsw i32 %211, 1
  %213 = load i32, ptr %11, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %34, ptr noundef nonnull align 8 dereferenceable(32) %35, i32 noundef %212, i32 noundef %213)
          to label %214 unwind label %233

214:                                              ; preds = %210
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  store i32 1, ptr %37, align 4, !tbaa !9
  br label %215

215:                                              ; preds = %250, %214
  %216 = load i32, ptr %37, align 4, !tbaa !9
  %217 = load i32, ptr %7, align 4, !tbaa !9
  %218 = icmp slt i32 %216, %217
  br i1 %218, label %238, label %219

219:                                              ; preds = %215
  store i32 5, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  br label %272

220:                                              ; preds = %204
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %12, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %13, align 4
  br label %228

224:                                              ; preds = %205
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %12, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #10
  br label %228

228:                                              ; preds = %224, %220
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #10
  br label %641

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

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

237:                                              ; preds = %233, %229
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #10
  br label %640

238:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 56, ptr %38) #10
  %239 = load ptr, ptr %6, align 8, !tbaa !5
  %240 = load i32, ptr %37, align 4, !tbaa !9
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %38, ptr noundef nonnull align 8 dereferenceable(56) %239, i32 noundef %240)
          to label %241 unwind label %253

241:                                              ; preds = %238
  %242 = load i32, ptr %37, align 4, !tbaa !9
  %243 = sub nsw i32 %242, 1
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %31, ptr noundef nonnull align 8 dereferenceable(56) %38, i32 noundef %243)
          to label %244 unwind label %257

244:                                              ; preds = %241
  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 @llvm.lifetime.start.p0(i64 56, ptr %39) #10
  %245 = load i32, ptr %37, align 4, !tbaa !9
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %39, ptr noundef nonnull align 8 dereferenceable(56) %10, i32 noundef %245)
          to label %246 unwind label %262

246:                                              ; preds = %244
  %247 = load i32, ptr %37, align 4, !tbaa !9
  %248 = sub nsw i32 %247, 1
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %34, ptr noundef nonnull align 8 dereferenceable(56) %39, i32 noundef %248)
          to label %249 unwind label %266

249:                                              ; preds = %246
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %39) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %39) #10
  br label %250

250:                                              ; preds = %249
  %251 = load i32, ptr %37, align 4, !tbaa !9
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %37, align 4, !tbaa !9
  br label %215, !llvm.loop !21

253:                                              ; preds = %238
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %12, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %13, align 4
  br label %261

257:                                              ; preds = %241
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %12, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %13, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %38) #10
  br label %261

261:                                              ; preds = %257, %253
  call void @llvm.lifetime.end.p0(i64 56, ptr %38) #10
  br label %271

262:                                              ; preds = %244
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %12, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %13, align 4
  br label %270

266:                                              ; preds = %246
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %12, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %13, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %39) #10
  br label %270

270:                                              ; preds = %266, %262
  call void @llvm.lifetime.end.p0(i64 56, ptr %39) #10
  br label %271

271:                                              ; preds = %270, %261
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  br label %639

272:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %42) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %43) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef @.str.120, ptr noundef nonnull align 1 dereferenceable(1) %44)
          to label %273 unwind label %285

273:                                              ; preds = %272
  %274 = load i32, ptr %11, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %42, ptr noundef nonnull align 8 dereferenceable(32) %43, i32 noundef 1, i32 noundef %274)
          to label %275 unwind label %289

275:                                              ; preds = %273
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %45) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %46) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef @.str.121, ptr noundef nonnull align 1 dereferenceable(1) %47)
          to label %276 unwind label %294

276:                                              ; preds = %275
  %277 = load i32, ptr %7, align 4, !tbaa !9
  %278 = load i32, ptr %11, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %45, ptr noundef nonnull align 8 dereferenceable(32) %46, i32 noundef %277, i32 noundef %278)
          to label %279 unwind label %298

279:                                              ; preds = %276
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #10
  store i32 0, ptr %48, align 4, !tbaa !9
  br label %280

280:                                              ; preds = %411, %279
  %281 = load i32, ptr %48, align 4, !tbaa !9
  %282 = load i32, ptr %7, align 4, !tbaa !9
  %283 = icmp slt i32 %281, %282
  br i1 %283, label %303, label %284

284:                                              ; preds = %280
  store i32 8, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #10
  br label %415

285:                                              ; preds = %272
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %12, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %13, align 4
  br label %293

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

293:                                              ; preds = %289, %285
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #10
  br label %638

294:                                              ; preds = %275
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %12, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %13, align 4
  br label %302

298:                                              ; preds = %276
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %12, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #10
  br label %302

302:                                              ; preds = %298, %294
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #10
  br label %637

303:                                              ; preds = %280
  %304 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 504) #11
          to label %305 unwind label %334

305:                                              ; preds = %303
  invoke void @_ZN7SGTELIB11TrainingSetC1ERKNS_6MatrixES3_(ptr noundef nonnull align 8 dereferenceable(504) %304, ptr noundef nonnull align 8 dereferenceable(56) %31, ptr noundef nonnull align 8 dereferenceable(56) %34)
          to label %306 unwind label %338

306:                                              ; preds = %305
  store ptr %304, ptr %41, align 8, !tbaa !5
  %307 = load ptr, ptr %41, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB11TrainingSet5buildEv(ptr noundef nonnull align 8 dereferenceable(504) %307)
          to label %308 unwind label %334

308:                                              ; preds = %306
  %309 = load ptr, ptr %41, align 8, !tbaa !5
  %310 = invoke noundef double @_ZNK7SGTELIB11TrainingSet11get_Ds_meanEv(ptr noundef nonnull align 8 dereferenceable(504) %309)
          to label %311 unwind label %334

311:                                              ; preds = %308
  store double %310, ptr %15, align 8, !tbaa !15
  %312 = load ptr, ptr %41, align 8, !tbaa !5
  %313 = invoke noundef double @_ZNK7SGTELIB11TrainingSet15get_X_scaling_aEi(ptr noundef nonnull align 8 dereferenceable(504) %312, i32 noundef 0)
          to label %314 unwind label %334

314:                                              ; preds = %311
  store double %313, ptr %19, align 8, !tbaa !15
  %315 = load ptr, ptr %41, align 8, !tbaa !5
  %316 = load ptr, ptr %5, align 8, !tbaa !5
  %317 = invoke noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %315, ptr noundef nonnull align 8 dereferenceable(32) %316)
          to label %318 unwind label %334

318:                                              ; preds = %314
  store ptr %317, ptr %40, align 8, !tbaa !5
  %319 = load double, ptr %16, align 8, !tbaa !15
  %320 = load double, ptr %15, align 8, !tbaa !15
  %321 = load double, ptr %14, align 8, !tbaa !15
  %322 = fdiv double %320, %321
  %323 = fmul double %319, %322
  %324 = load double, ptr %18, align 8, !tbaa !15
  %325 = load double, ptr %19, align 8, !tbaa !15
  %326 = fdiv double %324, %325
  %327 = fmul double %323, %326
  store double %327, ptr %17, align 8, !tbaa !15
  %328 = load i32, ptr %9, align 4, !tbaa !11
  %329 = icmp eq i32 %328, 10
  br i1 %329, label %330, label %342

330:                                              ; preds = %318
  %331 = load ptr, ptr %40, align 8, !tbaa !5
  %332 = load double, ptr %17, align 8, !tbaa !15
  invoke void @_ZN7SGTELIB9Surrogate15set_kernel_coefEd(ptr noundef nonnull align 8 dereferenceable(985) %331, double noundef %332)
          to label %333 unwind label %334

333:                                              ; preds = %330
  br label %342

334:                                              ; preds = %408, %357, %349, %345, %330, %314, %311, %308, %306, %303
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %12, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %13, align 4
  br label %414

338:                                              ; preds = %305
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %12, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %304, i64 noundef 504) #12
  br label %414

342:                                              ; preds = %333, %318
  %343 = load i32, ptr %9, align 4, !tbaa !11
  %344 = icmp eq i32 %343, 6
  br i1 %344, label %345, label %349

345:                                              ; preds = %342
  %346 = load ptr, ptr %40, align 8, !tbaa !5
  %347 = load double, ptr %17, align 8, !tbaa !15
  invoke void @_ZN7SGTELIB9Surrogate15set_kernel_coefEd(ptr noundef nonnull align 8 dereferenceable(985) %346, double noundef %347)
          to label %348 unwind label %334

348:                                              ; preds = %345
  br label %349

349:                                              ; preds = %348, %342
  %350 = load ptr, ptr %40, align 8, !tbaa !5
  %351 = invoke noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985) %350)
          to label %352 unwind label %334

352:                                              ; preds = %349
  %353 = load ptr, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %49) #10
  %354 = load ptr, ptr %6, align 8, !tbaa !5
  %355 = load i32, ptr %48, align 4, !tbaa !9
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %49, ptr noundef nonnull align 8 dereferenceable(56) %354, i32 noundef %355)
          to label %356 unwind label %374

356:                                              ; preds = %352
  invoke void @_ZN7SGTELIB9Surrogate7predictERKNS_6MatrixEPS1_(ptr noundef nonnull align 8 dereferenceable(985) %353, ptr noundef nonnull align 8 dereferenceable(56) %49, ptr noundef %42)
          to label %357 unwind label %378

357:                                              ; preds = %356
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %49) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %49) #10
  %358 = load i32, ptr %48, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %45, ptr noundef nonnull align 8 dereferenceable(56) %42, i32 noundef %358)
          to label %359 unwind label %334

359:                                              ; preds = %357
  %360 = load i32, ptr %48, align 4, !tbaa !9
  %361 = load i32, ptr %7, align 4, !tbaa !9
  %362 = sub nsw i32 %361, 1
  %363 = icmp slt i32 %360, %362
  br i1 %363, label %364, label %401

364:                                              ; preds = %359
  call void @llvm.lifetime.start.p0(i64 56, ptr %50) #10
  %365 = load ptr, ptr %6, align 8, !tbaa !5
  %366 = load i32, ptr %48, align 4, !tbaa !9
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %50, ptr noundef nonnull align 8 dereferenceable(56) %365, i32 noundef %366)
          to label %367 unwind label %383

367:                                              ; preds = %364
  %368 = load i32, ptr %48, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %31, ptr noundef nonnull align 8 dereferenceable(56) %50, i32 noundef %368)
          to label %369 unwind label %387

369:                                              ; preds = %367
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %50) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %50) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %51) #10
  %370 = load i32, ptr %48, align 4, !tbaa !9
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %51, ptr noundef nonnull align 8 dereferenceable(56) %10, i32 noundef %370)
          to label %371 unwind label %392

371:                                              ; preds = %369
  %372 = load i32, ptr %48, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %34, ptr noundef nonnull align 8 dereferenceable(56) %51, i32 noundef %372)
          to label %373 unwind label %396

373:                                              ; preds = %371
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %51) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %51) #10
  br label %401

374:                                              ; preds = %352
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %12, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %13, align 4
  br label %382

378:                                              ; preds = %356
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %12, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %13, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %49) #10
  br label %382

382:                                              ; preds = %378, %374
  call void @llvm.lifetime.end.p0(i64 56, ptr %49) #10
  br label %414

383:                                              ; preds = %364
  %384 = landingpad { ptr, i32 }
          cleanup
  %385 = extractvalue { ptr, i32 } %384, 0
  store ptr %385, ptr %12, align 8
  %386 = extractvalue { ptr, i32 } %384, 1
  store i32 %386, ptr %13, align 4
  br label %391

387:                                              ; preds = %367
  %388 = landingpad { ptr, i32 }
          cleanup
  %389 = extractvalue { ptr, i32 } %388, 0
  store ptr %389, ptr %12, align 8
  %390 = extractvalue { ptr, i32 } %388, 1
  store i32 %390, ptr %13, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %50) #10
  br label %391

391:                                              ; preds = %387, %383
  call void @llvm.lifetime.end.p0(i64 56, ptr %50) #10
  br label %414

392:                                              ; preds = %369
  %393 = landingpad { ptr, i32 }
          cleanup
  %394 = extractvalue { ptr, i32 } %393, 0
  store ptr %394, ptr %12, align 8
  %395 = extractvalue { ptr, i32 } %393, 1
  store i32 %395, ptr %13, align 4
  br label %400

396:                                              ; preds = %371
  %397 = landingpad { ptr, i32 }
          cleanup
  %398 = extractvalue { ptr, i32 } %397, 0
  store ptr %398, ptr %12, align 8
  %399 = extractvalue { ptr, i32 } %397, 1
  store i32 %399, ptr %13, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %51) #10
  br label %400

400:                                              ; preds = %396, %392
  call void @llvm.lifetime.end.p0(i64 56, ptr %51) #10
  br label %414

401:                                              ; preds = %373, %359
  %402 = load ptr, ptr %41, align 8, !tbaa !5
  %403 = icmp eq ptr %402, null
  br i1 %403, label %408, label %404

404:                                              ; preds = %401
  %405 = load ptr, ptr %402, align 8, !tbaa !22
  %406 = getelementptr inbounds ptr, ptr %405, i64 1
  %407 = load ptr, ptr %406, align 8
  call void %407(ptr noundef nonnull align 8 dereferenceable(504) %402) #10
  br label %408

408:                                              ; preds = %404, %401
  %409 = load ptr, ptr %40, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef %409)
          to label %410 unwind label %334

410:                                              ; preds = %408
  br label %411

411:                                              ; preds = %410
  %412 = load i32, ptr %48, align 4, !tbaa !9
  %413 = add nsw i32 %412, 1
  store i32 %413, ptr %48, align 4, !tbaa !9
  br label %280, !llvm.loop !24

414:                                              ; preds = %400, %391, %382, %338, %334
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #10
  br label %636

415:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #10
  %416 = load i32, ptr %11, align 4, !tbaa !9
  %417 = sext i32 %416 to i64
  %418 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %417, i64 8)
  %419 = extractvalue { i64, i1 } %418, 1
  %420 = extractvalue { i64, i1 } %418, 0
  %421 = select i1 %419, i64 -1, i64 %420
  %422 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %421) #11
          to label %423 unwind label %429

423:                                              ; preds = %415
  store ptr %422, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #10
  store i32 0, ptr %54, align 4, !tbaa !9
  br label %424

424:                                              ; preds = %469, %423
  %425 = load i32, ptr %54, align 4, !tbaa !9
  %426 = load i32, ptr %11, align 4, !tbaa !9
  %427 = icmp slt i32 %425, %426
  br i1 %427, label %433, label %428

428:                                              ; preds = %424
  store i32 11, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #10
  br label %472

429:                                              ; preds = %415
  %430 = landingpad { ptr, i32 }
          cleanup
  %431 = extractvalue { ptr, i32 } %430, 0
  store ptr %431, ptr %12, align 8
  %432 = extractvalue { ptr, i32 } %430, 1
  store i32 %432, ptr %13, align 4
  br label %635

433:                                              ; preds = %424
  store double 0.000000e+00, ptr %53, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #10
  store i32 0, ptr %55, align 4, !tbaa !9
  br label %434

434:                                              ; preds = %452, %433
  %435 = load i32, ptr %55, align 4, !tbaa !9
  %436 = load i32, ptr %7, align 4, !tbaa !9
  %437 = icmp slt i32 %435, %436
  br i1 %437, label %439, label %438

438:                                              ; preds = %434
  store i32 14, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #10
  br label %459

439:                                              ; preds = %434
  %440 = load i32, ptr %55, align 4, !tbaa !9
  %441 = load i32, ptr %54, align 4, !tbaa !9
  %442 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %10, i32 noundef %440, i32 noundef %441)
          to label %443 unwind label %455

443:                                              ; preds = %439
  %444 = load i32, ptr %55, align 4, !tbaa !9
  %445 = load i32, ptr %54, align 4, !tbaa !9
  %446 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %45, i32 noundef %444, i32 noundef %445)
          to label %447 unwind label %455

447:                                              ; preds = %443
  %448 = fsub double %442, %446
  %449 = call double @pow(double noundef %448, double noundef 2.000000e+00) #10
  %450 = load double, ptr %53, align 8, !tbaa !15
  %451 = fadd double %450, %449
  store double %451, ptr %53, align 8, !tbaa !15
  br label %452

452:                                              ; preds = %447
  %453 = load i32, ptr %55, align 4, !tbaa !9
  %454 = add nsw i32 %453, 1
  store i32 %454, ptr %55, align 4, !tbaa !9
  br label %434, !llvm.loop !25

455:                                              ; preds = %443, %439
  %456 = landingpad { ptr, i32 }
          cleanup
  %457 = extractvalue { ptr, i32 } %456, 0
  store ptr %457, ptr %12, align 8
  %458 = extractvalue { ptr, i32 } %456, 1
  store i32 %458, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #10
  br label %634

459:                                              ; preds = %438
  %460 = load double, ptr %53, align 8, !tbaa !15
  %461 = load i32, ptr %7, align 4, !tbaa !9
  %462 = sitofp i32 %461 to double
  %463 = fdiv double %460, %462
  %464 = call double @sqrt(double noundef %463) #10
  %465 = load ptr, ptr %52, align 8, !tbaa !5
  %466 = load i32, ptr %54, align 4, !tbaa !9
  %467 = sext i32 %466 to i64
  %468 = getelementptr inbounds double, ptr %465, i64 %467
  store double %464, ptr %468, align 8, !tbaa !15
  br label %469

469:                                              ; preds = %459
  %470 = load i32, ptr %54, align 4, !tbaa !9
  %471 = add nsw i32 %470, 1
  store i32 %471, ptr %54, align 4, !tbaa !9
  br label %424, !llvm.loop !26

472:                                              ; preds = %428
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #10
  call void @llvm.lifetime.start.p0(i64 376, ptr %57) #10
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %57)
          to label %473 unwind label %490

473:                                              ; preds = %472
  %474 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @.str.34)
          to label %475 unwind label %494

475:                                              ; preds = %473
  %476 = load ptr, ptr %5, align 8, !tbaa !5
  %477 = 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) %474, ptr noundef nonnull align 8 dereferenceable(32) %476)
          to label %478 unwind label %494

478:                                              ; preds = %475
  %479 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %477, ptr noundef @.str.6)
          to label %480 unwind label %494

480:                                              ; preds = %478
  %481 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @.str.122)
          to label %482 unwind label %494

482:                                              ; preds = %480
  %483 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @.str.123)
          to label %484 unwind label %494

484:                                              ; preds = %482
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #10
  store i32 0, ptr %58, align 4, !tbaa !9
  br label %485

485:                                              ; preds = %601, %484
  %486 = load i32, ptr %58, align 4, !tbaa !9
  %487 = load i32, ptr %11, align 4, !tbaa !9
  %488 = icmp slt i32 %486, %487
  br i1 %488, label %498, label %489

489:                                              ; preds = %485
  store i32 17, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #10
  br label %604

490:                                              ; preds = %472
  %491 = landingpad { ptr, i32 }
          cleanup
  %492 = extractvalue { ptr, i32 } %491, 0
  store ptr %492, ptr %12, align 8
  %493 = extractvalue { ptr, i32 } %491, 1
  store i32 %493, ptr %13, align 4
  br label %633

494:                                              ; preds = %621, %604, %482, %480, %478, %475, %473
  %495 = landingpad { ptr, i32 }
          cleanup
  %496 = extractvalue { ptr, i32 } %495, 0
  store ptr %496, ptr %12, align 8
  %497 = extractvalue { ptr, i32 } %495, 1
  store i32 %497, ptr %13, align 4
  br label %632

498:                                              ; preds = %485
  %499 = load ptr, ptr %57, align 8, !tbaa !22
  %500 = getelementptr i8, ptr %499, i64 -24
  %501 = load i64, ptr %500, align 8
  %502 = getelementptr inbounds i8, ptr %57, i64 %501
  %503 = invoke noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %502, i64 noundef 3)
          to label %504 unwind label %596

504:                                              ; preds = %498
  %505 = load i32, ptr %58, align 4, !tbaa !9
  %506 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %57, i32 noundef %505)
          to label %507 unwind label %596

507:                                              ; preds = %504
  %508 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %506, ptr noundef @.str.37)
          to label %509 unwind label %596

509:                                              ; preds = %507
  %510 = load ptr, ptr %57, align 8, !tbaa !22
  %511 = getelementptr i8, ptr %510, i64 -24
  %512 = load i64, ptr %511, align 8
  %513 = getelementptr inbounds i8, ptr %57, i64 %512
  %514 = invoke noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %513, i64 noundef 14)
          to label %515 unwind label %596

515:                                              ; preds = %509
  %516 = load ptr, ptr %29, align 8, !tbaa !5
  %517 = load i32, ptr %58, align 4, !tbaa !9
  %518 = sext i32 %517 to i64
  %519 = getelementptr inbounds double, ptr %516, i64 %518
  %520 = load double, ptr %519, align 8, !tbaa !15
  %521 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %57, double noundef %520)
          to label %522 unwind label %596

522:                                              ; preds = %515
  %523 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %521, ptr noundef @.str.124)
          to label %524 unwind label %596

524:                                              ; preds = %522
  %525 = load ptr, ptr %57, align 8, !tbaa !22
  %526 = getelementptr i8, ptr %525, i64 -24
  %527 = load i64, ptr %526, align 8
  %528 = getelementptr inbounds i8, ptr %57, i64 %527
  %529 = invoke noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %528, i64 noundef 14)
          to label %530 unwind label %596

530:                                              ; preds = %524
  %531 = load ptr, ptr %28, align 8, !tbaa !5
  %532 = load i32, ptr %58, align 4, !tbaa !9
  %533 = sext i32 %532 to i64
  %534 = getelementptr inbounds double, ptr %531, i64 %533
  %535 = load double, ptr %534, align 8, !tbaa !15
  %536 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %57, double noundef %535)
          to label %537 unwind label %596

537:                                              ; preds = %530
  %538 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %536, ptr noundef @.str.37)
          to label %539 unwind label %596

539:                                              ; preds = %537
  %540 = load ptr, ptr %57, align 8, !tbaa !22
  %541 = getelementptr i8, ptr %540, i64 -24
  %542 = load i64, ptr %541, align 8
  %543 = getelementptr inbounds i8, ptr %57, i64 %542
  %544 = invoke noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %543, i64 noundef 14)
          to label %545 unwind label %596

545:                                              ; preds = %539
  %546 = load ptr, ptr %52, align 8, !tbaa !5
  %547 = load i32, ptr %58, align 4, !tbaa !9
  %548 = sext i32 %547 to i64
  %549 = getelementptr inbounds double, ptr %546, i64 %548
  %550 = load double, ptr %549, align 8, !tbaa !15
  %551 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %57, double noundef %550)
          to label %552 unwind label %596

552:                                              ; preds = %545
  %553 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %551, ptr noundef @.str.37)
          to label %554 unwind label %596

554:                                              ; preds = %552
  %555 = load ptr, ptr %57, align 8, !tbaa !22
  %556 = getelementptr i8, ptr %555, i64 -24
  %557 = load i64, ptr %556, align 8
  %558 = getelementptr inbounds i8, ptr %57, i64 %557
  %559 = invoke noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %558, i64 noundef 14)
          to label %560 unwind label %596

560:                                              ; preds = %554
  %561 = load ptr, ptr %28, align 8, !tbaa !5
  %562 = load i32, ptr %58, align 4, !tbaa !9
  %563 = sext i32 %562 to i64
  %564 = getelementptr inbounds double, ptr %561, i64 %563
  %565 = load double, ptr %564, align 8, !tbaa !15
  %566 = load ptr, ptr %52, align 8, !tbaa !5
  %567 = load i32, ptr %58, align 4, !tbaa !9
  %568 = sext i32 %567 to i64
  %569 = getelementptr inbounds double, ptr %566, i64 %568
  %570 = load double, ptr %569, align 8, !tbaa !15
  %571 = fsub double %565, %570
  %572 = call double @llvm.fabs.f64(double %571)
  %573 = fmul double 2.000000e+00, %572
  %574 = load ptr, ptr %28, align 8, !tbaa !5
  %575 = load i32, ptr %58, align 4, !tbaa !9
  %576 = sext i32 %575 to i64
  %577 = getelementptr inbounds double, ptr %574, i64 %576
  %578 = load double, ptr %577, align 8, !tbaa !15
  %579 = load ptr, ptr %52, align 8, !tbaa !5
  %580 = load i32, ptr %58, align 4, !tbaa !9
  %581 = sext i32 %580 to i64
  %582 = getelementptr inbounds double, ptr %579, i64 %581
  %583 = load double, ptr %582, align 8, !tbaa !15
  %584 = fadd double %578, %583
  %585 = fdiv double %573, %584
  store double %585, ptr %56, align 8, !tbaa !15
  %586 = load double, ptr %56, align 8, !tbaa !15
  %587 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %57, double noundef %586)
          to label %588 unwind label %596

588:                                              ; preds = %560
  %589 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %587, ptr noundef @.str.38)
          to label %590 unwind label %596

590:                                              ; preds = %588
  %591 = load double, ptr %56, align 8, !tbaa !15
  %592 = fcmp ogt double %591, 1.000000e-02
  br i1 %592, label %593, label %600

593:                                              ; preds = %590
  %594 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @.str.115)
          to label %595 unwind label %596

595:                                              ; preds = %593
  br label %600

596:                                              ; preds = %593, %588, %560, %554, %552, %545, %539, %537, %530, %524, %522, %515, %509, %507, %504, %498
  %597 = landingpad { ptr, i32 }
          cleanup
  %598 = extractvalue { ptr, i32 } %597, 0
  store ptr %598, ptr %12, align 8
  %599 = extractvalue { ptr, i32 } %597, 1
  store i32 %599, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #10
  br label %632

600:                                              ; preds = %595, %590
  br label %601

601:                                              ; preds = %600
  %602 = load i32, ptr %58, align 4, !tbaa !9
  %603 = add nsw i32 %602, 1
  store i32 %603, ptr %58, align 4, !tbaa !9
  br label %485, !llvm.loop !27

604:                                              ; preds = %489
  %605 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @.str.123)
          to label %606 unwind label %494

606:                                              ; preds = %604
  %607 = load ptr, ptr %29, align 8, !tbaa !5
  %608 = icmp eq ptr %607, null
  br i1 %608, label %610, label %609

609:                                              ; preds = %606
  call void @_ZdaPv(ptr noundef %607) #12
  br label %610

610:                                              ; preds = %609, %606
  %611 = load ptr, ptr %28, align 8, !tbaa !5
  %612 = icmp eq ptr %611, null
  br i1 %612, label %614, label %613

613:                                              ; preds = %610
  call void @_ZdaPv(ptr noundef %611) #12
  br label %614

614:                                              ; preds = %613, %610
  %615 = load ptr, ptr %52, align 8, !tbaa !5
  %616 = icmp eq ptr %615, null
  br i1 %616, label %618, label %617

617:                                              ; preds = %614
  call void @_ZdaPv(ptr noundef %615) #12
  br label %618

618:                                              ; preds = %617, %614
  call void @llvm.lifetime.start.p0(i64 32, ptr %59) #10
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %59, ptr noundef nonnull align 8 dereferenceable(112) %57)
          to label %619 unwind label %623

619:                                              ; preds = %618
  %620 = 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) %59)
          to label %621 unwind label %627

621:                                              ; preds = %619
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %59) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %59) #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) %57)
          to label %622 unwind label %494

622:                                              ; preds = %621
  store i32 1, ptr %27, align 4
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %57) #10
  call void @llvm.lifetime.end.p0(i64 376, ptr %57) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %45) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %45) #10
  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.end.p0(i64 8, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %34) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %34) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %31) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  br label %644

623:                                              ; preds = %618
  %624 = landingpad { ptr, i32 }
          cleanup
  %625 = extractvalue { ptr, i32 } %624, 0
  store ptr %625, ptr %12, align 8
  %626 = extractvalue { ptr, i32 } %624, 1
  store i32 %626, ptr %13, align 4
  br label %631

627:                                              ; preds = %619
  %628 = landingpad { ptr, i32 }
          cleanup
  %629 = extractvalue { ptr, i32 } %628, 0
  store ptr %629, ptr %12, align 8
  %630 = extractvalue { ptr, i32 } %628, 1
  store i32 %630, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %59) #10
  br label %631

631:                                              ; preds = %627, %623
  call void @llvm.lifetime.end.p0(i64 32, ptr %59) #10
  br label %632

632:                                              ; preds = %631, %596, %494
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %57) #10
  br label %633

633:                                              ; preds = %632, %490
  call void @llvm.lifetime.end.p0(i64 376, ptr %57) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  br label %634

634:                                              ; preds = %633, %455
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #10
  br label %635

635:                                              ; preds = %634, %429
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #10
  br label %636

636:                                              ; preds = %635, %414
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %45) #10
  br label %637

637:                                              ; preds = %636, %302
  call void @llvm.lifetime.end.p0(i64 56, ptr %45) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %42) #10
  br label %638

638:                                              ; preds = %637, %293
  call void @llvm.lifetime.end.p0(i64 56, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  br label %639

639:                                              ; preds = %638, %271
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %34) #10
  br label %640

640:                                              ; preds = %639, %237
  call void @llvm.lifetime.end.p0(i64 56, ptr %34) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %31) #10
  br label %641

641:                                              ; preds = %640, %228
  call void @llvm.lifetime.end.p0(i64 56, ptr %31) #10
  br label %642

642:                                              ; preds = %641, %198, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  br label %643

643:                                              ; preds = %642, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  br label %645

644:                                              ; preds = %622, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %21) #10
  call void @llvm.lifetime.end.p0(i64 504, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  ret void

645:                                              ; preds = %643, %147, %138, %124, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %21) #10
  br label %646

646:                                              ; preds = %645, %108
  call void @llvm.lifetime.end.p0(i64 504, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  br label %647

647:                                              ; preds = %646, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  br label %648

648:                                              ; preds = %647
  %649 = load ptr, ptr %12, align 8
  %650 = load i32, ptr %13, align 4
  %651 = insertvalue { ptr, i32 } poison, ptr %649, 0
  %652 = insertvalue { ptr, i32 } %651, i32 %650, 1
  resume { ptr, i32 } %652
}

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 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 = !{!"_ZTSN7SGTELIB7model_tE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !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::TrainingSet" = type { ptr, i32, i32, i32, i8, ptr, i8, i32, double, double, i32, %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double }
%"class.SGTELIB::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.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.115 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [22 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

; 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 @_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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #8 align 2

; 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

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

37:                                               ; preds = %3
  %38 = invoke noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %5, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %39 unwind label %58

39:                                               ; preds = %37
  %40 = invoke noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985) %38)
          to label %41 unwind label %58

41:                                               ; preds = %39
  %42 = invoke noundef double @_ZNK7SGTELIB11TrainingSet11get_Ds_meanEv(ptr noundef nonnull align 8 dereferenceable(504) %5)
          to label %43 unwind label %58

43:                                               ; preds = %41
  %44 = invoke noundef double @_ZNK7SGTELIB11TrainingSet15get_X_scaling_aEi(ptr noundef nonnull align 8 dereferenceable(504) %5, i32 noundef 0)
          to label %45 unwind label %58

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

46:                                               ; preds = %45
  %47 = call noundef double @_ZNK7SGTELIB20Surrogate_Parameters15get_kernel_coefEv(ptr noundef nonnull align 8 dereferenceable(312) %6)
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %6) #11
  call void @llvm.lifetime.end.p0(i64 312, ptr nonnull %6) #11
  br i1 %40, label %75, label %48

48:                                               ; preds = %46
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef nonnull %38)
          to label %49 unwind label %58

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

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

51:                                               ; preds = %50
  %52 = 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) %7)
          to label %53 unwind label %66

53:                                               ; preds = %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #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 %9, ptr noundef nonnull @.str.117, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %54 unwind label %70

54:                                               ; preds = %53
  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) %9, ptr noundef nonnull @.str.32)
          to label %55 unwind label %72

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

56:                                               ; preds = %3
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %325

58:                                               ; preds = %48, %43, %41, %39, %37
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %324

60:                                               ; preds = %45
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 312, ptr nonnull %6) #11
  br label %324

62:                                               ; preds = %49
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %69

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

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

68:                                               ; preds = %66, %64
  %.pn = phi { ptr, i32 } [ %67, %66 ], [ %65, %64 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  br label %69

69:                                               ; preds = %68, %62
  %.pn.pn = phi { ptr, i32 } [ %.pn, %68 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #11
  br label %324

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

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

74:                                               ; preds = %72, %70
  %.pn155 = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #11
  br label %324

75:                                               ; preds = %46
  %76 = zext i32 %36 to i64
  %77 = icmp slt i32 %36, 0
  %78 = shl nuw nsw i64 %76, 3
  %79 = select i1 %77, i64 -1, i64 %78
  %80 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %79) #12
          to label %81 unwind label %84

81:                                               ; preds = %75
  %82 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %79) #12
          to label %.preheader197 unwind label %86

.preheader197:                                    ; preds = %81
  %83 = icmp sgt i32 %36, 0
  br i1 %83, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %93, %.preheader197
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef nonnull %38)
          to label %97 unwind label %86

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

86:                                               ; preds = %._crit_edge, %81
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %324

.lr.ph:                                           ; preds = %.preheader197, %93
  %indvars.iv = phi i64 [ %indvars.iv.next, %93 ], [ 0, %.preheader197 ]
  %88 = trunc nuw nsw i64 %indvars.iv to i32
  %89 = invoke noundef double @_ZN7SGTELIB9Surrogate10get_metricENS_8metric_tEi(ptr noundef nonnull align 8 dereferenceable(985) %38, i32 noundef 4, i32 noundef %88)
          to label %90 unwind label %95

90:                                               ; preds = %.lr.ph
  %91 = getelementptr inbounds double, ptr %80, i64 %indvars.iv
  store double %89, ptr %91, align 8, !tbaa !5
  %92 = invoke noundef double @_ZN7SGTELIB9Surrogate10get_metricENS_8metric_tEi(ptr noundef nonnull align 8 dereferenceable(985) %38, i32 noundef 2, i32 noundef %88)
          to label %93 unwind label %95

93:                                               ; preds = %90
  %94 = getelementptr inbounds double, ptr %82, i64 %indvars.iv
  store double %92, ptr %94, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %76
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

95:                                               ; preds = %90, %.lr.ph
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %324

97:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %10) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.118, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %98 unwind label %104

98:                                               ; preds = %97
  %99 = add nsw i32 %33, -1
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef %99, i32 noundef %34)
          to label %100 unwind label %106

100:                                              ; preds = %98
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %13) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull @.str.119, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %101 unwind label %109

101:                                              ; preds = %100
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 8 dereferenceable(32) %14, i32 noundef %99, i32 noundef %36)
          to label %102 unwind label %111

102:                                              ; preds = %101
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #11
  %103 = icmp sgt i32 %33, 1
  br i1 %103, label %.lr.ph207, label %._crit_edge208

._crit_edge208:                                   ; preds = %118, %102
  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.120, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %130 unwind label %150

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

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

108:                                              ; preds = %106, %104
  %.pn157 = phi { ptr, i32 } [ %107, %106 ], [ %105, %104 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #11
  br label %322

109:                                              ; preds = %100
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %113

111:                                              ; preds = %101
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #11
  br label %113

113:                                              ; preds = %111, %109
  %.pn159 = phi { ptr, i32 } [ %112, %111 ], [ %110, %109 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #11
  br label %321

.lr.ph207:                                        ; preds = %102, %118
  %.0150205 = phi i32 [ %119, %118 ], [ 1, %102 ]
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %16) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %16, ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %.0150205)
          to label %114 unwind label %120

114:                                              ; preds = %.lr.ph207
  %115 = add nsw i32 %.0150205, -1
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(56) %16, i32 noundef %115)
          to label %116 unwind label %122

116:                                              ; preds = %114
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %16) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %17) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %17, ptr noundef nonnull align 8 dereferenceable(56) %4, i32 noundef %.0150205)
          to label %117 unwind label %125

117:                                              ; preds = %116
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 8 dereferenceable(56) %17, i32 noundef %115)
          to label %118 unwind label %127

118:                                              ; preds = %117
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #11
  %119 = add nuw nsw i32 %.0150205, 1
  %exitcond232.not = icmp eq i32 %119, %33
  br i1 %exitcond232.not, label %._crit_edge208, label %.lr.ph207, !llvm.loop !11

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

122:                                              ; preds = %114
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #11
  br label %124

124:                                              ; preds = %122, %120
  %.pn182 = phi { ptr, i32 } [ %123, %122 ], [ %121, %120 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %16) #11
  br label %320

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

127:                                              ; preds = %117
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #11
  br label %129

129:                                              ; preds = %127, %125
  %.pn184 = phi { ptr, i32 } [ %128, %127 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #11
  br label %320

130:                                              ; preds = %._crit_edge208
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef 1, i32 noundef %36)
          to label %131 unwind label %152

131:                                              ; preds = %130
  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
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %21) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull @.str.121, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %132 unwind label %155

132:                                              ; preds = %131
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef %33, i32 noundef %36)
          to label %133 unwind label %157

133:                                              ; preds = %132
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #11
  %134 = icmp sgt i32 %33, 0
  br i1 %134, label %.lr.ph211.preheader, label %._crit_edge212

.lr.ph211.preheader:                              ; preds = %133
  %135 = insertelement <2 x double> poison, double %42, i64 0
  br label %.lr.ph211

._crit_edge212:                                   ; preds = %213, %133
  %136 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %79) #12
          to label %.preheader196 unwind label %225

.preheader196:                                    ; preds = %._crit_edge212
  br i1 %83, label %.preheader195.lr.ph, label %._crit_edge218

.preheader195.lr.ph:                              ; preds = %.preheader196
  %137 = sitofp i32 %33 to double
  br i1 %134, label %.preheader195.us, label %.preheader195.lr.ph.split

.preheader195.us:                                 ; preds = %.preheader195.lr.ph, %._crit_edge216.us
  %indvars.iv240 = phi i64 [ %indvars.iv.next241, %._crit_edge216.us ], [ 0, %.preheader195.lr.ph ]
  %138 = trunc nuw nsw i64 %indvars.iv240 to i32
  br label %139

139:                                              ; preds = %.preheader195.us, %139
  %.0117214.us = phi i32 [ 0, %.preheader195.us ], [ %144, %139 ]
  %.0119213.us = phi double [ 0.000000e+00, %.preheader195.us ], [ %143, %139 ]
  %140 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %4, i32 noundef %.0117214.us, i32 noundef %138)
  %141 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %21, i32 noundef %.0117214.us, i32 noundef %138)
  %142 = fsub double %140, %141
  %square.us = fmul double %142, %142
  %143 = fadd double %.0119213.us, %square.us
  %144 = add nuw nsw i32 %.0117214.us, 1
  %exitcond239.not = icmp eq i32 %144, %33
  br i1 %exitcond239.not, label %._crit_edge216.us, label %139, !llvm.loop !12

._crit_edge216.us:                                ; preds = %139
  %145 = fdiv double %143, %137
  %146 = call double @sqrt(double noundef %145) #11
  %147 = getelementptr inbounds double, ptr %136, i64 %indvars.iv240
  store double %146, ptr %147, align 8, !tbaa !5
  %indvars.iv.next241 = add nuw nsw i64 %indvars.iv240, 1
  %exitcond244.not = icmp eq i64 %indvars.iv.next241, %76
  br i1 %exitcond244.not, label %._crit_edge218, label %.preheader195.us, !llvm.loop !13

.preheader195.lr.ph.split:                        ; preds = %.preheader195.lr.ph
  %148 = fdiv double 0.000000e+00, %137
  %xtraiter = and i64 %76, 3
  %149 = icmp ult i32 %36, 4
  br i1 %149, label %._crit_edge218.loopexit268.unr-lcssa, label %.preheader195.lr.ph.split.new

.preheader195.lr.ph.split.new:                    ; preds = %.preheader195.lr.ph.split
  %unroll_iter = and i64 %76, 2147483644
  br label %.preheader195

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

152:                                              ; preds = %130
  %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 %319

155:                                              ; preds = %131
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %159

157:                                              ; preds = %132
  %158 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  br label %159

159:                                              ; preds = %157, %155
  %.pn163 = phi { ptr, i32 } [ %158, %157 ], [ %156, %155 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #11
  br label %318

.lr.ph211:                                        ; preds = %.lr.ph211.preheader, %213
  %.0148209 = phi i32 [ %214, %213 ], [ 0, %.lr.ph211.preheader ]
  %160 = invoke noalias noundef nonnull dereferenceable(504) ptr @_Znwm(i64 noundef 504) #12
          to label %161 unwind label %170

161:                                              ; preds = %.lr.ph211
  invoke void @_ZN7SGTELIB11TrainingSetC1ERKNS_6MatrixES3_(ptr noundef nonnull align 8 dereferenceable(504) %160, ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(56) %13)
          to label %162 unwind label %172

162:                                              ; preds = %161
  invoke void @_ZN7SGTELIB11TrainingSet5buildEv(ptr noundef nonnull align 8 dereferenceable(504) %160)
          to label %163 unwind label %170

163:                                              ; preds = %162
  %164 = invoke noundef double @_ZNK7SGTELIB11TrainingSet11get_Ds_meanEv(ptr noundef nonnull align 8 dereferenceable(504) %160)
          to label %165 unwind label %170

165:                                              ; preds = %163
  %166 = invoke noundef double @_ZNK7SGTELIB11TrainingSet15get_X_scaling_aEi(ptr noundef nonnull align 8 dereferenceable(504) %160, i32 noundef 0)
          to label %167 unwind label %170

167:                                              ; preds = %165
  %168 = invoke noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %160, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %169 unwind label %170

169:                                              ; preds = %167
  switch i32 %35, label %182 [
    i32 10, label %.invoke
    i32 6, label %.invoke
  ]

170:                                              ; preds = %.invoke, %209, %186, %182, %167, %165, %163, %162, %.lr.ph211
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %317

172:                                              ; preds = %161
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %160, i64 noundef 504) #13
  br label %317

.invoke:                                          ; preds = %169, %169
  %174 = insertelement <2 x double> poison, double %164, i64 0
  %175 = insertelement <2 x double> %174, double %44, i64 1
  %176 = insertelement <2 x double> %135, double %166, i64 1
  %177 = fdiv <2 x double> %175, %176
  %178 = extractelement <2 x double> %177, i64 0
  %179 = fmul double %178, 0.000000e+00
  %180 = extractelement <2 x double> %177, i64 1
  %181 = fmul double %179, %180
  invoke void @_ZN7SGTELIB9Surrogate15set_kernel_coefEd(ptr noundef nonnull align 8 dereferenceable(985) %168, double noundef %181)
          to label %182 unwind label %170

182:                                              ; preds = %.invoke, %169
  %183 = invoke noundef zeroext i1 @_ZN7SGTELIB9Surrogate5buildEv(ptr noundef nonnull align 8 dereferenceable(985) %168)
          to label %184 unwind label %170

184:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %24) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %24, ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %.0148209)
          to label %185 unwind label %194

185:                                              ; preds = %184
  invoke void @_ZN7SGTELIB9Surrogate7predictERKNS_6MatrixEPS1_(ptr noundef nonnull align 8 dereferenceable(985) %168, ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull %18)
          to label %186 unwind label %196

186:                                              ; preds = %185
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %24) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %24) #11
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(56) %18, i32 noundef %.0148209)
          to label %187 unwind label %170

187:                                              ; preds = %186
  %188 = icmp slt i32 %.0148209, %99
  br i1 %188, label %189, label %209

189:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %25) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %25, ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %.0148209)
          to label %190 unwind label %199

190:                                              ; preds = %189
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(56) %25, i32 noundef %.0148209)
          to label %191 unwind label %201

191:                                              ; preds = %190
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %25) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %25) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %26) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %26, ptr noundef nonnull align 8 dereferenceable(56) %4, i32 noundef %.0148209)
          to label %192 unwind label %204

192:                                              ; preds = %191
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 8 dereferenceable(56) %26, i32 noundef %.0148209)
          to label %193 unwind label %206

193:                                              ; preds = %192
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %26) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %26) #11
  br label %209

194:                                              ; preds = %184
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %198

196:                                              ; preds = %185
  %197 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %24) #11
  br label %198

198:                                              ; preds = %196, %194
  %.pn171 = phi { ptr, i32 } [ %197, %196 ], [ %195, %194 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %24) #11
  br label %317

199:                                              ; preds = %189
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %203

201:                                              ; preds = %190
  %202 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %25) #11
  br label %203

203:                                              ; preds = %201, %199
  %.pn173 = phi { ptr, i32 } [ %202, %201 ], [ %200, %199 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %25) #11
  br label %317

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

206:                                              ; preds = %192
  %207 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %26) #11
  br label %208

208:                                              ; preds = %206, %204
  %.pn175 = phi { ptr, i32 } [ %207, %206 ], [ %205, %204 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %26) #11
  br label %317

209:                                              ; preds = %187, %193
  %210 = load ptr, ptr %160, align 8, !tbaa !14
  %211 = getelementptr inbounds i8, ptr %210, i64 8
  %212 = load ptr, ptr %211, align 8
  call void %212(ptr noundef nonnull align 8 dereferenceable(504) %160) #11
  invoke void @_ZN7SGTELIB16surrogate_deleteEPNS_9SurrogateE(ptr noundef nonnull %168)
          to label %213 unwind label %170

213:                                              ; preds = %209
  %214 = add nuw nsw i32 %.0148209, 1
  %exitcond233.not = icmp eq i32 %214, %33
  br i1 %exitcond233.not, label %._crit_edge212, label %.lr.ph211, !llvm.loop !16

.preheader195:                                    ; preds = %.preheader195, %.preheader195.lr.ph.split.new
  %indvars.iv234 = phi i64 [ 0, %.preheader195.lr.ph.split.new ], [ %indvars.iv.next235.3, %.preheader195 ]
  %niter = phi i64 [ 0, %.preheader195.lr.ph.split.new ], [ %niter.next.3, %.preheader195 ]
  %215 = call double @sqrt(double noundef %148) #11
  %216 = getelementptr inbounds double, ptr %136, i64 %indvars.iv234
  store double %215, ptr %216, align 8, !tbaa !5
  %indvars.iv.next235 = or disjoint i64 %indvars.iv234, 1
  %217 = call double @sqrt(double noundef %148) #11
  %218 = getelementptr inbounds double, ptr %136, i64 %indvars.iv.next235
  store double %217, ptr %218, align 8, !tbaa !5
  %indvars.iv.next235.1 = or disjoint i64 %indvars.iv234, 2
  %219 = call double @sqrt(double noundef %148) #11
  %220 = getelementptr inbounds double, ptr %136, i64 %indvars.iv.next235.1
  store double %219, ptr %220, align 8, !tbaa !5
  %indvars.iv.next235.2 = or disjoint i64 %indvars.iv234, 3
  %221 = call double @sqrt(double noundef %148) #11
  %222 = getelementptr inbounds double, ptr %136, i64 %indvars.iv.next235.2
  store double %221, ptr %222, align 8, !tbaa !5
  %indvars.iv.next235.3 = add nuw nsw i64 %indvars.iv234, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge218.loopexit268.unr-lcssa, label %.preheader195, !llvm.loop !13

._crit_edge218.loopexit268.unr-lcssa:             ; preds = %.preheader195, %.preheader195.lr.ph.split
  %indvars.iv234.unr = phi i64 [ 0, %.preheader195.lr.ph.split ], [ %indvars.iv.next235.3, %.preheader195 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge218, label %.preheader195.epil

.preheader195.epil:                               ; preds = %._crit_edge218.loopexit268.unr-lcssa, %.preheader195.epil
  %indvars.iv234.epil = phi i64 [ %indvars.iv.next235.epil, %.preheader195.epil ], [ %indvars.iv234.unr, %._crit_edge218.loopexit268.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader195.epil ], [ 0, %._crit_edge218.loopexit268.unr-lcssa ]
  %223 = call double @sqrt(double noundef %148) #11
  %224 = getelementptr inbounds double, ptr %136, i64 %indvars.iv234.epil
  store double %223, ptr %224, align 8, !tbaa !5
  %indvars.iv.next235.epil = add nuw nsw i64 %indvars.iv234.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge218, label %.preheader195.epil, !llvm.loop !17

._crit_edge218:                                   ; preds = %._crit_edge218.loopexit268.unr-lcssa, %.preheader195.epil, %._crit_edge216.us, %.preheader196
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %27) #11
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %27)
          to label %227 unwind label %238

225:                                              ; preds = %._crit_edge212
  %226 = landingpad { ptr, i32 }
          cleanup
  br label %317

227:                                              ; preds = %._crit_edge218
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @.str.34)
          to label %229 unwind label %240

229:                                              ; preds = %227
  %230 = 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) %228, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %231 unwind label %240

231:                                              ; preds = %229
  %232 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %230, ptr noundef nonnull @.str.6)
          to label %233 unwind label %240

233:                                              ; preds = %231
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @.str.122)
          to label %235 unwind label %240

235:                                              ; preds = %233
  %236 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @.str.123)
          to label %.preheader unwind label %240

.preheader:                                       ; preds = %235
  br i1 %83, label %.lr.ph220, label %._crit_edge221

._crit_edge221:                                   ; preds = %304, %.preheader
  %237 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @.str.123)
          to label %305 unwind label %240

238:                                              ; preds = %._crit_edge218
  %239 = landingpad { ptr, i32 }
          cleanup
  br label %316

240:                                              ; preds = %308, %._crit_edge221, %235, %233, %231, %229, %227
  %241 = landingpad { ptr, i32 }
          cleanup
  br label %315

.lr.ph220:                                        ; preds = %.preheader, %304
  %indvars.iv245 = phi i64 [ %indvars.iv.next246, %304 ], [ 0, %.preheader ]
  %242 = load ptr, ptr %27, align 8, !tbaa !14
  %243 = getelementptr i8, ptr %242, i64 -24
  %244 = load i64, ptr %243, align 8
  %245 = getelementptr inbounds i8, ptr %27, i64 %244
  %246 = call noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %245, i64 noundef 3)
  %247 = trunc nuw nsw i64 %indvars.iv245 to i32
  %248 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %27, i32 noundef %247)
          to label %249 unwind label %302

249:                                              ; preds = %.lr.ph220
  %250 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %248, ptr noundef nonnull @.str.37)
          to label %251 unwind label %302

251:                                              ; preds = %249
  %252 = load ptr, ptr %27, align 8, !tbaa !14
  %253 = getelementptr i8, ptr %252, i64 -24
  %254 = load i64, ptr %253, align 8
  %255 = getelementptr inbounds i8, ptr %27, i64 %254
  %256 = call noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %255, i64 noundef 14)
  %257 = getelementptr inbounds double, ptr %82, i64 %indvars.iv245
  %258 = load double, ptr %257, align 8, !tbaa !5
  %259 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %27, double noundef %258)
          to label %260 unwind label %302

260:                                              ; preds = %251
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %259, ptr noundef nonnull @.str.124)
          to label %262 unwind label %302

262:                                              ; preds = %260
  %263 = load ptr, ptr %27, align 8, !tbaa !14
  %264 = getelementptr i8, ptr %263, i64 -24
  %265 = load i64, ptr %264, align 8
  %266 = getelementptr inbounds i8, ptr %27, i64 %265
  %267 = call noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %266, i64 noundef 14)
  %268 = getelementptr inbounds double, ptr %80, i64 %indvars.iv245
  %269 = load double, ptr %268, align 8, !tbaa !5
  %270 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %27, double noundef %269)
          to label %271 unwind label %302

271:                                              ; preds = %262
  %272 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %270, ptr noundef nonnull @.str.37)
          to label %273 unwind label %302

273:                                              ; preds = %271
  %274 = load ptr, ptr %27, align 8, !tbaa !14
  %275 = getelementptr i8, ptr %274, i64 -24
  %276 = load i64, ptr %275, align 8
  %277 = getelementptr inbounds i8, ptr %27, i64 %276
  %278 = call noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %277, i64 noundef 14)
  %279 = getelementptr inbounds double, ptr %136, i64 %indvars.iv245
  %280 = load double, ptr %279, align 8, !tbaa !5
  %281 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %27, double noundef %280)
          to label %282 unwind label %302

282:                                              ; preds = %273
  %283 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %281, ptr noundef nonnull @.str.37)
          to label %284 unwind label %302

284:                                              ; preds = %282
  %285 = load ptr, ptr %27, align 8, !tbaa !14
  %286 = getelementptr i8, ptr %285, i64 -24
  %287 = load i64, ptr %286, align 8
  %288 = getelementptr inbounds i8, ptr %27, i64 %287
  %289 = call noundef i64 @_ZNSt8ios_base5widthEl(ptr noundef nonnull align 8 dereferenceable(216) %288, i64 noundef 14)
  %290 = fsub double %269, %280
  %291 = call double @llvm.fabs.f64(double %290)
  %292 = fmul double %291, 2.000000e+00
  %293 = fadd double %269, %280
  %294 = fdiv double %292, %293
  %295 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %27, double noundef %294)
          to label %296 unwind label %302

296:                                              ; preds = %284
  %297 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %295, ptr noundef nonnull @.str.38)
          to label %298 unwind label %302

298:                                              ; preds = %296
  %299 = fcmp ogt double %294, 1.000000e-02
  br i1 %299, label %300, label %304

300:                                              ; preds = %298
  %301 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @.str.115)
          to label %304 unwind label %302

302:                                              ; preds = %300, %296, %284, %282, %273, %271, %262, %260, %251, %249, %.lr.ph220
  %303 = landingpad { ptr, i32 }
          cleanup
  br label %315

304:                                              ; preds = %298, %300
  %indvars.iv.next246 = add nuw nsw i64 %indvars.iv245, 1
  %exitcond249.not = icmp eq i64 %indvars.iv.next246, %76
  br i1 %exitcond249.not, label %._crit_edge221, label %.lr.ph220, !llvm.loop !19

305:                                              ; preds = %._crit_edge221
  call void @_ZdaPv(ptr noundef nonnull %82) #13
  call void @_ZdaPv(ptr noundef nonnull %80) #13
  call void @_ZdaPv(ptr noundef nonnull %136) #13
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #11
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull align 8 dereferenceable(112) %27)
          to label %306 unwind label %310

306:                                              ; preds = %305
  %307 = 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 %308 unwind label %312

308:                                              ; preds = %306
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #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) %27)
          to label %309 unwind label %240

309:                                              ; preds = %308
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %27) #11
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %27) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %21) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #11
  br label %323

310:                                              ; preds = %305
  %311 = landingpad { ptr, i32 }
          cleanup
  br label %314

312:                                              ; preds = %306
  %313 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #11
  br label %314

314:                                              ; preds = %312, %310
  %.pn165 = phi { ptr, i32 } [ %313, %312 ], [ %311, %310 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #11
  br label %315

315:                                              ; preds = %314, %302, %240
  %.pn167 = phi { ptr, i32 } [ %303, %302 ], [ %241, %240 ], [ %.pn165, %314 ]
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %27) #11
  br label %316

316:                                              ; preds = %315, %238
  %.pn167.pn = phi { ptr, i32 } [ %.pn167, %315 ], [ %239, %238 ]
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %27) #11
  br label %317

317:                                              ; preds = %225, %316, %170, %172, %198, %203, %208
  %.pn177.pn = phi { ptr, i32 } [ %171, %170 ], [ %.pn175, %208 ], [ %.pn173, %203 ], [ %.pn171, %198 ], [ %173, %172 ], [ %.pn167.pn, %316 ], [ %226, %225 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #11
  br label %318

318:                                              ; preds = %317, %159
  %.pn177.pn.pn = phi { ptr, i32 } [ %.pn177.pn, %317 ], [ %.pn163, %159 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %21) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #11
  br label %319

319:                                              ; preds = %318, %154
  %.pn177.pn.pn.pn = phi { ptr, i32 } [ %.pn177.pn.pn, %318 ], [ %.pn161, %154 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #11
  br label %320

320:                                              ; preds = %124, %129, %319
  %.pn184.pn.pn = phi { ptr, i32 } [ %.pn177.pn.pn.pn, %319 ], [ %.pn184, %129 ], [ %.pn182, %124 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #11
  br label %321

321:                                              ; preds = %320, %113
  %.pn184.pn.pn.pn = phi { ptr, i32 } [ %.pn184.pn.pn, %320 ], [ %.pn159, %113 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #11
  br label %322

322:                                              ; preds = %321, %108
  %.pn184.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn184.pn.pn.pn, %321 ], [ %.pn157, %108 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #11
  br label %324

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

324:                                              ; preds = %84, %322, %95, %86, %74, %69, %60, %58
  %.pn190.pn.pn = phi { ptr, i32 } [ %.pn155, %74 ], [ %.pn.pn, %69 ], [ %59, %58 ], [ %61, %60 ], [ %85, %84 ], [ %96, %95 ], [ %.pn184.pn.pn.pn.pn, %322 ], [ %87, %86 ]
  call void @_ZN7SGTELIB11TrainingSetD1Ev(ptr noundef nonnull align 8 dereferenceable(504) %5) #11
  br label %325

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

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 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 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !10}


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