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

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

@.str = external hidden unnamed_addr constant [96 x i8], align 1
@_ZTIN7SGTELIB9ExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

declare ptr @__cxa_allocate_exception(i64)

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

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

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

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca i1, align 1
  %14 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %15 = alloca i1, align 1
  %16 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %17 = alloca i1, align 1
  %18 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %19 = alloca i1, align 1
  %20 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %21 = alloca i1, align 1
  %22 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %23 = alloca i1, align 1
  %24 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %25 = alloca i1, align 1
  %26 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %27 = alloca i1, align 1
  %28 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %29 = alloca i1, align 1
  %30 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %31 = alloca i1, align 1
  %32 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %33 = alloca i1, align 1
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca %"class.std::allocator", align 1
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::allocator", align 1
  %38 = alloca i1, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 312, ptr %6) #8
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN7SGTELIB20Surrogate_ParametersC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(312) %6, ptr noundef nonnull align 8 dereferenceable(32) %39)
  %40 = invoke noundef i32 @_ZNK7SGTELIB20Surrogate_Parameters8get_typeEv(ptr noundef nonnull align 8 dereferenceable(312) %6)
          to label %41 unwind label %42

41:                                               ; preds = %2
  switch i32 %40, label %255 [
    i32 9, label %46
    i32 3, label %75
    i32 4, label %93
    i32 5, label %111
    i32 6, label %129
    i32 7, label %147
    i32 10, label %165
    i32 11, label %183
    i32 12, label %201
    i32 13, label %219
    i32 8, label %237
  ]

42:                                               ; preds = %237, %219, %201, %183, %165, %147, %129, %111, %93, %75, %2
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %7, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %8, align 4
  br label %279

46:                                               ; preds = %41
  store i1 true, ptr %13, align 1
  %47 = call ptr @__cxa_allocate_exception(i64 112) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %48 unwind label %53

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef @.str.2, ptr noundef nonnull align 8 dereferenceable(32) %49)
          to label %50 unwind label %57

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

51:                                               ; preds = %50
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %47, ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef 65, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %52 unwind label %65

52:                                               ; preds = %51
  store i1 false, ptr %13, align 1
  invoke void @__cxa_throw(ptr %47, ptr @_ZTIN7SGTELIB9ExceptionE, ptr @_ZN7SGTELIB9ExceptionD2Ev) #9
          to label %285 unwind label %65

53:                                               ; preds = %46
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %7, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %8, align 4
  br label %71

57:                                               ; preds = %48
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %7, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %8, align 4
  br label %70

61:                                               ; preds = %50
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %7, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %8, align 4
  br label %69

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

69:                                               ; preds = %65, %61
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %70

70:                                               ; preds = %69, %57
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br label %71

71:                                               ; preds = %70, %53
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  %72 = load i1, ptr %13, align 1
  br i1 %72, label %73, label %74

73:                                               ; preds = %71
  call void @__cxa_free_exception(ptr %47) #8
  br label %74

74:                                               ; preds = %73, %71
  br label %279

75:                                               ; preds = %41
  %76 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1216) #10
          to label %77 unwind label %42

77:                                               ; preds = %75
  store i1 true, ptr %15, align 1
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %14, ptr noundef nonnull align 8 dereferenceable(312) %6)
          to label %79 unwind label %81

79:                                               ; preds = %77
  invoke void @_ZN7SGTELIB13Surrogate_PRSC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1216) %76, ptr noundef nonnull align 8 dereferenceable(504) %78, ptr noundef %14)
          to label %80 unwind label %85

80:                                               ; preds = %79
  store i1 false, ptr %15, align 1
  store ptr %76, ptr %5, align 8, !tbaa !5
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %14) #8
  br label %277

81:                                               ; preds = %77
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %7, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %8, align 4
  br label %89

85:                                               ; preds = %79
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %7, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %8, align 4
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %14) #8
  br label %89

89:                                               ; preds = %85, %81
  %90 = load i1, ptr %15, align 1
  br i1 %90, label %91, label %92

91:                                               ; preds = %89
  call void @_ZdlPvm(ptr noundef %76, i64 noundef 1216) #11
  br label %92

92:                                               ; preds = %91, %89
  br label %279

93:                                               ; preds = %41
  %94 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1216) #10
          to label %95 unwind label %42

95:                                               ; preds = %93
  store i1 true, ptr %17, align 1
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %16, ptr noundef nonnull align 8 dereferenceable(312) %6)
          to label %97 unwind label %99

97:                                               ; preds = %95
  invoke void @_ZN7SGTELIB18Surrogate_PRS_EDGEC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1216) %94, ptr noundef nonnull align 8 dereferenceable(504) %96, ptr noundef %16)
          to label %98 unwind label %103

98:                                               ; preds = %97
  store i1 false, ptr %17, align 1
  store ptr %94, ptr %5, align 8, !tbaa !5
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %16) #8
  br label %277

99:                                               ; preds = %95
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %7, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %8, align 4
  br label %107

103:                                              ; preds = %97
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %7, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %8, align 4
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %16) #8
  br label %107

107:                                              ; preds = %103, %99
  %108 = load i1, ptr %17, align 1
  br i1 %108, label %109, label %110

109:                                              ; preds = %107
  call void @_ZdlPvm(ptr noundef %94, i64 noundef 1216) #11
  br label %110

110:                                              ; preds = %109, %107
  br label %279

111:                                              ; preds = %41
  %112 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1272) #10
          to label %113 unwind label %42

113:                                              ; preds = %111
  store i1 true, ptr %19, align 1
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %18, ptr noundef nonnull align 8 dereferenceable(312) %6)
          to label %115 unwind label %117

115:                                              ; preds = %113
  invoke void @_ZN7SGTELIB17Surrogate_PRS_CATC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1268) %112, ptr noundef nonnull align 8 dereferenceable(504) %114, ptr noundef %18)
          to label %116 unwind label %121

116:                                              ; preds = %115
  store i1 false, ptr %19, align 1
  store ptr %112, ptr %5, align 8, !tbaa !5
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %18) #8
  br label %277

117:                                              ; preds = %113
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %7, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %8, align 4
  br label %125

121:                                              ; preds = %115
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %7, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %8, align 4
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %18) #8
  br label %125

125:                                              ; preds = %121, %117
  %126 = load i1, ptr %19, align 1
  br i1 %126, label %127, label %128

127:                                              ; preds = %125
  call void @_ZdlPvm(ptr noundef %112, i64 noundef 1272) #11
  br label %128

128:                                              ; preds = %127, %125
  br label %279

129:                                              ; preds = %41
  %130 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 992) #10
          to label %131 unwind label %42

131:                                              ; preds = %129
  store i1 true, ptr %21, align 1
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %20, ptr noundef nonnull align 8 dereferenceable(312) %6)
          to label %133 unwind label %135

133:                                              ; preds = %131
  invoke void @_ZN7SGTELIB12Surrogate_KSC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(985) %130, ptr noundef nonnull align 8 dereferenceable(504) %132, ptr noundef %20)
          to label %134 unwind label %139

134:                                              ; preds = %133
  store i1 false, ptr %21, align 1
  store ptr %130, ptr %5, align 8, !tbaa !5
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %20) #8
  br label %277

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

139:                                              ; preds = %133
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %7, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %8, align 4
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %20) #8
  br label %143

143:                                              ; preds = %139, %135
  %144 = load i1, ptr %21, align 1
  br i1 %144, label %145, label %146

145:                                              ; preds = %143
  call void @_ZdlPvm(ptr noundef %130, i64 noundef 992) #11
  br label %146

146:                                              ; preds = %145, %143
  br label %279

147:                                              ; preds = %41
  %148 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 992) #10
          to label %149 unwind label %42

149:                                              ; preds = %147
  store i1 true, ptr %23, align 1
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %22, ptr noundef nonnull align 8 dereferenceable(312) %6)
          to label %151 unwind label %153

151:                                              ; preds = %149
  invoke void @_ZN7SGTELIB12Surrogate_CNC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(985) %148, ptr noundef nonnull align 8 dereferenceable(504) %150, ptr noundef %22)
          to label %152 unwind label %157

152:                                              ; preds = %151
  store i1 false, ptr %23, align 1
  store ptr %148, ptr %5, align 8, !tbaa !5
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %22) #8
  br label %277

153:                                              ; preds = %149
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %7, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %8, align 4
  br label %161

157:                                              ; preds = %151
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %7, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %8, align 4
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %22) #8
  br label %161

161:                                              ; preds = %157, %153
  %162 = load i1, ptr %23, align 1
  br i1 %162, label %163, label %164

163:                                              ; preds = %161
  call void @_ZdlPvm(ptr noundef %148, i64 noundef 992) #11
  br label %164

164:                                              ; preds = %163, %161
  br label %279

165:                                              ; preds = %41
  %166 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1304) #10
          to label %167 unwind label %42

167:                                              ; preds = %165
  store i1 true, ptr %25, align 1
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %24, ptr noundef nonnull align 8 dereferenceable(312) %6)
          to label %169 unwind label %171

169:                                              ; preds = %167
  invoke void @_ZN7SGTELIB13Surrogate_RBFC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1304) %166, ptr noundef nonnull align 8 dereferenceable(504) %168, ptr noundef %24)
          to label %170 unwind label %175

170:                                              ; preds = %169
  store i1 false, ptr %25, align 1
  store ptr %166, ptr %5, align 8, !tbaa !5
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %24) #8
  br label %277

171:                                              ; preds = %167
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %7, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %8, align 4
  br label %179

175:                                              ; preds = %169
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %7, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %8, align 4
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %24) #8
  br label %179

179:                                              ; preds = %175, %171
  %180 = load i1, ptr %25, align 1
  br i1 %180, label %181, label %182

181:                                              ; preds = %179
  call void @_ZdlPvm(ptr noundef %166, i64 noundef 1304) #11
  br label %182

182:                                              ; preds = %181, %179
  br label %279

183:                                              ; preds = %41
  %184 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1128) #10
          to label %185 unwind label %42

185:                                              ; preds = %183
  store i1 true, ptr %27, align 1
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %26, ptr noundef nonnull align 8 dereferenceable(312) %6)
          to label %187 unwind label %189

187:                                              ; preds = %185
  invoke void @_ZN7SGTELIB16Surrogate_LOWESSC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1128) %184, ptr noundef nonnull align 8 dereferenceable(504) %186, ptr noundef %26)
          to label %188 unwind label %193

188:                                              ; preds = %187
  store i1 false, ptr %27, align 1
  store ptr %184, ptr %5, align 8, !tbaa !5
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %26) #8
  br label %277

189:                                              ; preds = %185
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %7, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %8, align 4
  br label %197

193:                                              ; preds = %187
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %7, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %8, align 4
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %26) #8
  br label %197

197:                                              ; preds = %193, %189
  %198 = load i1, ptr %27, align 1
  br i1 %198, label %199, label %200

199:                                              ; preds = %197
  call void @_ZdlPvm(ptr noundef %184, i64 noundef 1128) #11
  br label %200

200:                                              ; preds = %199, %197
  br label %279

201:                                              ; preds = %41
  %202 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1040) #10
          to label %203 unwind label %42

203:                                              ; preds = %201
  store i1 true, ptr %29, align 1
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %28, ptr noundef nonnull align 8 dereferenceable(312) %6)
          to label %205 unwind label %207

205:                                              ; preds = %203
  invoke void @_ZN7SGTELIB18Surrogate_EnsembleC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1040) %202, ptr noundef nonnull align 8 dereferenceable(504) %204, ptr noundef %28)
          to label %206 unwind label %211

206:                                              ; preds = %205
  store i1 false, ptr %29, align 1
  store ptr %202, ptr %5, align 8, !tbaa !5
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %28) #8
  br label %277

207:                                              ; preds = %203
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %7, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %8, align 4
  br label %215

211:                                              ; preds = %205
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %7, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %8, align 4
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %28) #8
  br label %215

215:                                              ; preds = %211, %207
  %216 = load i1, ptr %29, align 1
  br i1 %216, label %217, label %218

217:                                              ; preds = %215
  call void @_ZdlPvm(ptr noundef %202, i64 noundef 1040) #11
  br label %218

218:                                              ; preds = %217, %215
  br label %279

219:                                              ; preds = %41
  %220 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1136) #10
          to label %221 unwind label %42

221:                                              ; preds = %219
  store i1 true, ptr %31, align 1
  %222 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %30, ptr noundef nonnull align 8 dereferenceable(312) %6)
          to label %223 unwind label %225

223:                                              ; preds = %221
  invoke void @_ZN7SGTELIB23Surrogate_Ensemble_StatC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1136) %220, ptr noundef nonnull align 8 dereferenceable(504) %222, ptr noundef %30)
          to label %224 unwind label %229

224:                                              ; preds = %223
  store i1 false, ptr %31, align 1
  store ptr %220, ptr %5, align 8, !tbaa !5
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %30) #8
  br label %277

225:                                              ; preds = %221
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %7, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %8, align 4
  br label %233

229:                                              ; preds = %223
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %7, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %8, align 4
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %30) #8
  br label %233

233:                                              ; preds = %229, %225
  %234 = load i1, ptr %31, align 1
  br i1 %234, label %235, label %236

235:                                              ; preds = %233
  call void @_ZdlPvm(ptr noundef %220, i64 noundef 1136) #11
  br label %236

236:                                              ; preds = %235, %233
  br label %279

237:                                              ; preds = %41
  %238 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1336) #10
          to label %239 unwind label %42

239:                                              ; preds = %237
  store i1 true, ptr %33, align 1
  %240 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %32, ptr noundef nonnull align 8 dereferenceable(312) %6)
          to label %241 unwind label %243

241:                                              ; preds = %239
  invoke void @_ZN7SGTELIB17Surrogate_KrigingC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1336) %238, ptr noundef nonnull align 8 dereferenceable(504) %240, ptr noundef %32)
          to label %242 unwind label %247

242:                                              ; preds = %241
  store i1 false, ptr %33, align 1
  store ptr %238, ptr %5, align 8, !tbaa !5
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %32) #8
  br label %277

243:                                              ; preds = %239
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %7, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %8, align 4
  br label %251

247:                                              ; preds = %241
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %7, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %8, align 4
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %32) #8
  br label %251

251:                                              ; preds = %247, %243
  %252 = load i1, ptr %33, align 1
  br i1 %252, label %253, label %254

253:                                              ; preds = %251
  call void @_ZdlPvm(ptr noundef %238, i64 noundef 1336) #11
  br label %254

254:                                              ; preds = %253, %251
  br label %279

255:                                              ; preds = %41
  store i1 true, ptr %38, align 1
  %256 = call ptr @__cxa_allocate_exception(i64 112) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %257 unwind label %260

257:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %258 unwind label %264

258:                                              ; preds = %257
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %256, ptr noundef nonnull align 8 dereferenceable(32) %34, i32 noundef 109, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %259 unwind label %268

259:                                              ; preds = %258
  store i1 false, ptr %38, align 1
  invoke void @__cxa_throw(ptr %256, ptr @_ZTIN7SGTELIB9ExceptionE, ptr @_ZN7SGTELIB9ExceptionD2Ev) #9
          to label %285 unwind label %268

260:                                              ; preds = %255
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %7, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %8, align 4
  br label %273

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

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

272:                                              ; preds = %268, %264
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #8
  br label %273

273:                                              ; preds = %272, %260
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #8
  %274 = load i1, ptr %38, align 1
  br i1 %274, label %275, label %276

275:                                              ; preds = %273
  call void @__cxa_free_exception(ptr %256) #8
  br label %276

276:                                              ; preds = %275, %273
  br label %279

277:                                              ; preds = %242, %224, %206, %188, %170, %152, %134, %116, %98, %80
  %278 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %6) #8
  call void @llvm.lifetime.end.p0(i64 312, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  ret ptr %278

279:                                              ; preds = %276, %254, %236, %218, %200, %182, %164, %146, %128, %110, %92, %74, %42
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %6) #8
  call void @llvm.lifetime.end.p0(i64 312, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %280

280:                                              ; preds = %279
  %281 = load ptr, ptr %7, align 8
  %282 = load i32, ptr %8, align 4
  %283 = insertvalue { ptr, i32 } poison, ptr %281, 0
  %284 = insertvalue { ptr, i32 } %283, i32 %282, 1
  resume { ptr, i32 } %284

285:                                              ; preds = %259, %52
  unreachable
}

declare void @_ZN7SGTELIB20Surrogate_ParametersC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(312), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7SGTELIB20Surrogate_Parameters8get_typeEv(ptr noundef nonnull align 8 dereferenceable(312)) #3 align 2

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

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312), ptr noundef nonnull align 8 dereferenceable(312)) unnamed_addr #6 align 2

declare void @_ZN7SGTELIB13Surrogate_PRSC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1216), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

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

declare void @_ZN7SGTELIB18Surrogate_PRS_EDGEC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1216), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB17Surrogate_PRS_CATC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1268), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB12Surrogate_KSC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(985), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB12Surrogate_CNC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(985), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB13Surrogate_RBFC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1304), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB16Surrogate_LOWESSC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1128), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB18Surrogate_EnsembleC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1040), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB23Surrogate_Ensemble_StatC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1136), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB17Surrogate_KrigingC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1336), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "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 = { nounwind }
attributes #9 = { noreturn }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { 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"}


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

@.str = external hidden unnamed_addr constant [96 x i8], align 1
@_ZTIN7SGTELIB9ExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN7SGTELIB17Surrogate_FactoryERNS_11TrainingSetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %9 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %10 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %11 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %12 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %13 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %14 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %15 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %16 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %17 = alloca %"class.SGTELIB::Surrogate_Parameters", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 312, ptr nonnull %3) #8
  call void @_ZN7SGTELIB20Surrogate_ParametersC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(312) %3, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %22 = call noundef i32 @_ZNK7SGTELIB20Surrogate_Parameters8get_typeEv(ptr noundef nonnull align 8 dereferenceable(312) %3)
  switch i32 %22, label %131 [
    i32 9, label %25
    i32 3, label %41
    i32 4, label %50
    i32 5, label %59
    i32 6, label %68
    i32 7, label %77
    i32 10, label %86
    i32 11, label %95
    i32 12, label %104
    i32 13, label %113
    i32 8, label %122
  ]

23:                                               ; preds = %122, %113, %104, %95, %86, %77, %68, %59, %50, %41
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %144

25:                                               ; preds = %2
  %26 = call ptr @__cxa_allocate_exception(i64 112) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %27 unwind label %.thread

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

28:                                               ; preds = %27
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.3)
          to label %29 unwind label %34

29:                                               ; preds = %28
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %26, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 65, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %30 unwind label %36

30:                                               ; preds = %29
  invoke void @__cxa_throw(ptr nonnull %26, ptr nonnull @_ZTIN7SGTELIB9ExceptionE, ptr nonnull @_ZN7SGTELIB9ExceptionD2Ev) #9
          to label %145 unwind label %36

.thread:                                          ; preds = %25
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  br label %40

32:                                               ; preds = %27
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %39

34:                                               ; preds = %28
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %38

36:                                               ; preds = %30, %29
  %.026 = phi i1 [ false, %30 ], [ true, %29 ]
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  br label %38

38:                                               ; preds = %36, %34
  %.pn69 = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ]
  %.127 = phi i1 [ %.026, %36 ], [ true, %34 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br label %39

39:                                               ; preds = %32, %38
  %.pn69.pn = phi { ptr, i32 } [ %.pn69, %38 ], [ %33, %32 ]
  %.228 = phi i1 [ %.127, %38 ], [ true, %32 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  br i1 %.228, label %40, label %144

40:                                               ; preds = %.thread, %39
  %.pn69.pn.pn79 = phi { ptr, i32 } [ %31, %.thread ], [ %.pn69.pn, %39 ]
  call void @__cxa_free_exception(ptr %26) #8
  br label %144

41:                                               ; preds = %2
  %42 = invoke noalias noundef nonnull dereferenceable(1216) ptr @_Znwm(i64 noundef 1216) #10
          to label %43 unwind label %23

43:                                               ; preds = %41
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %8, ptr noundef nonnull align 8 dereferenceable(312) %3)
          to label %44 unwind label %45

44:                                               ; preds = %43
  invoke void @_ZN7SGTELIB13Surrogate_PRSC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1216) %42, ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull %8)
          to label %143 unwind label %47

45:                                               ; preds = %43
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %49

47:                                               ; preds = %44
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %8) #8
  br label %49

49:                                               ; preds = %45, %47
  %.pn67 = phi { ptr, i32 } [ %48, %47 ], [ %46, %45 ]
  call void @_ZdlPvm(ptr noundef nonnull %42, i64 noundef 1216) #11
  br label %144

50:                                               ; preds = %2
  %51 = invoke noalias noundef nonnull dereferenceable(1216) ptr @_Znwm(i64 noundef 1216) #10
          to label %52 unwind label %23

52:                                               ; preds = %50
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %9, ptr noundef nonnull align 8 dereferenceable(312) %3)
          to label %53 unwind label %54

53:                                               ; preds = %52
  invoke void @_ZN7SGTELIB18Surrogate_PRS_EDGEC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1216) %51, ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull %9)
          to label %143 unwind label %56

54:                                               ; preds = %52
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

56:                                               ; preds = %53
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %9) #8
  br label %58

58:                                               ; preds = %54, %56
  %.pn65 = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @_ZdlPvm(ptr noundef nonnull %51, i64 noundef 1216) #11
  br label %144

59:                                               ; preds = %2
  %60 = invoke noalias noundef nonnull dereferenceable(1272) ptr @_Znwm(i64 noundef 1272) #10
          to label %61 unwind label %23

61:                                               ; preds = %59
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %10, ptr noundef nonnull align 8 dereferenceable(312) %3)
          to label %62 unwind label %63

62:                                               ; preds = %61
  invoke void @_ZN7SGTELIB17Surrogate_PRS_CATC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1268) %60, ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull %10)
          to label %143 unwind label %65

63:                                               ; preds = %61
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %67

65:                                               ; preds = %62
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %10) #8
  br label %67

67:                                               ; preds = %63, %65
  %.pn63 = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  call void @_ZdlPvm(ptr noundef nonnull %60, i64 noundef 1272) #11
  br label %144

68:                                               ; preds = %2
  %69 = invoke noalias noundef nonnull dereferenceable(992) ptr @_Znwm(i64 noundef 992) #10
          to label %70 unwind label %23

70:                                               ; preds = %68
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %11, ptr noundef nonnull align 8 dereferenceable(312) %3)
          to label %71 unwind label %72

71:                                               ; preds = %70
  invoke void @_ZN7SGTELIB12Surrogate_KSC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(985) %69, ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull %11)
          to label %143 unwind label %74

72:                                               ; preds = %70
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %71
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %11) #8
  br label %76

76:                                               ; preds = %72, %74
  %.pn61 = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @_ZdlPvm(ptr noundef nonnull %69, i64 noundef 992) #11
  br label %144

77:                                               ; preds = %2
  %78 = invoke noalias noundef nonnull dereferenceable(992) ptr @_Znwm(i64 noundef 992) #10
          to label %79 unwind label %23

79:                                               ; preds = %77
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %12, ptr noundef nonnull align 8 dereferenceable(312) %3)
          to label %80 unwind label %81

80:                                               ; preds = %79
  invoke void @_ZN7SGTELIB12Surrogate_CNC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(985) %78, ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull %12)
          to label %143 unwind label %83

81:                                               ; preds = %79
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %85

83:                                               ; preds = %80
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %12) #8
  br label %85

85:                                               ; preds = %81, %83
  %.pn59 = phi { ptr, i32 } [ %84, %83 ], [ %82, %81 ]
  call void @_ZdlPvm(ptr noundef nonnull %78, i64 noundef 992) #11
  br label %144

86:                                               ; preds = %2
  %87 = invoke noalias noundef nonnull dereferenceable(1304) ptr @_Znwm(i64 noundef 1304) #10
          to label %88 unwind label %23

88:                                               ; preds = %86
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %13, ptr noundef nonnull align 8 dereferenceable(312) %3)
          to label %89 unwind label %90

89:                                               ; preds = %88
  invoke void @_ZN7SGTELIB13Surrogate_RBFC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1304) %87, ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull %13)
          to label %143 unwind label %92

90:                                               ; preds = %88
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %94

92:                                               ; preds = %89
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %13) #8
  br label %94

94:                                               ; preds = %90, %92
  %.pn57 = phi { ptr, i32 } [ %93, %92 ], [ %91, %90 ]
  call void @_ZdlPvm(ptr noundef nonnull %87, i64 noundef 1304) #11
  br label %144

95:                                               ; preds = %2
  %96 = invoke noalias noundef nonnull dereferenceable(1128) ptr @_Znwm(i64 noundef 1128) #10
          to label %97 unwind label %23

97:                                               ; preds = %95
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %14, ptr noundef nonnull align 8 dereferenceable(312) %3)
          to label %98 unwind label %99

98:                                               ; preds = %97
  invoke void @_ZN7SGTELIB16Surrogate_LOWESSC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1128) %96, ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull %14)
          to label %143 unwind label %101

99:                                               ; preds = %97
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %98
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %14) #8
  br label %103

103:                                              ; preds = %99, %101
  %.pn55 = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @_ZdlPvm(ptr noundef nonnull %96, i64 noundef 1128) #11
  br label %144

104:                                              ; preds = %2
  %105 = invoke noalias noundef nonnull dereferenceable(1040) ptr @_Znwm(i64 noundef 1040) #10
          to label %106 unwind label %23

106:                                              ; preds = %104
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %15, ptr noundef nonnull align 8 dereferenceable(312) %3)
          to label %107 unwind label %108

107:                                              ; preds = %106
  invoke void @_ZN7SGTELIB18Surrogate_EnsembleC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1040) %105, ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull %15)
          to label %143 unwind label %110

108:                                              ; preds = %106
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %112

110:                                              ; preds = %107
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %15) #8
  br label %112

112:                                              ; preds = %108, %110
  %.pn53 = phi { ptr, i32 } [ %111, %110 ], [ %109, %108 ]
  call void @_ZdlPvm(ptr noundef nonnull %105, i64 noundef 1040) #11
  br label %144

113:                                              ; preds = %2
  %114 = invoke noalias noundef nonnull dereferenceable(1136) ptr @_Znwm(i64 noundef 1136) #10
          to label %115 unwind label %23

115:                                              ; preds = %113
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %16, ptr noundef nonnull align 8 dereferenceable(312) %3)
          to label %116 unwind label %117

116:                                              ; preds = %115
  invoke void @_ZN7SGTELIB23Surrogate_Ensemble_StatC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1136) %114, ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull %16)
          to label %143 unwind label %119

117:                                              ; preds = %115
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %121

119:                                              ; preds = %116
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %16) #8
  br label %121

121:                                              ; preds = %117, %119
  %.pn51 = phi { ptr, i32 } [ %120, %119 ], [ %118, %117 ]
  call void @_ZdlPvm(ptr noundef nonnull %114, i64 noundef 1136) #11
  br label %144

122:                                              ; preds = %2
  %123 = invoke noalias noundef nonnull dereferenceable(1336) ptr @_Znwm(i64 noundef 1336) #10
          to label %124 unwind label %23

124:                                              ; preds = %122
  invoke void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312) %17, ptr noundef nonnull align 8 dereferenceable(312) %3)
          to label %125 unwind label %126

125:                                              ; preds = %124
  invoke void @_ZN7SGTELIB17Surrogate_KrigingC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1336) %123, ptr noundef nonnull align 8 dereferenceable(504) %0, ptr noundef nonnull %17)
          to label %143 unwind label %128

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

128:                                              ; preds = %125
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %17) #8
  br label %130

130:                                              ; preds = %126, %128
  %.pn = phi { ptr, i32 } [ %129, %128 ], [ %127, %126 ]
  call void @_ZdlPvm(ptr noundef nonnull %123, i64 noundef 1336) #11
  br label %144

131:                                              ; preds = %2
  %132 = call ptr @__cxa_allocate_exception(i64 112) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %133 unwind label %.thread80

133:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %134 unwind label %137

134:                                              ; preds = %133
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %132, ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef 109, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %135 unwind label %139

135:                                              ; preds = %134
  invoke void @__cxa_throw(ptr nonnull %132, ptr nonnull @_ZTIN7SGTELIB9ExceptionE, ptr nonnull @_ZN7SGTELIB9ExceptionD2Ev) #9
          to label %145 unwind label %139

.thread80:                                        ; preds = %131
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #8
  br label %142

137:                                              ; preds = %133
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %141

139:                                              ; preds = %135, %134
  %.0 = phi i1 [ false, %135 ], [ true, %134 ]
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  br label %141

141:                                              ; preds = %137, %139
  %.pn73 = phi { ptr, i32 } [ %140, %139 ], [ %138, %137 ]
  %.1 = phi i1 [ %.0, %139 ], [ true, %137 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #8
  br i1 %.1, label %142, label %144

142:                                              ; preds = %.thread80, %141
  %.pn73.pn83 = phi { ptr, i32 } [ %136, %.thread80 ], [ %.pn73, %141 ]
  call void @__cxa_free_exception(ptr %132) #8
  br label %144

143:                                              ; preds = %125, %116, %107, %98, %89, %80, %71, %62, %53, %44
  %.sink = phi ptr [ %8, %44 ], [ %9, %53 ], [ %10, %62 ], [ %11, %71 ], [ %12, %80 ], [ %13, %89 ], [ %14, %98 ], [ %15, %107 ], [ %16, %116 ], [ %17, %125 ]
  %.049 = phi ptr [ %42, %44 ], [ %51, %53 ], [ %60, %62 ], [ %69, %71 ], [ %78, %80 ], [ %87, %89 ], [ %96, %98 ], [ %105, %107 ], [ %114, %116 ], [ %123, %125 ]
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %.sink) #8
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %3) #8
  call void @llvm.lifetime.end.p0(i64 312, ptr nonnull %3) #8
  ret ptr %.049

144:                                              ; preds = %141, %142, %130, %121, %112, %103, %94, %85, %76, %67, %58, %49, %39, %40, %23
  %.pn73.pn.pn = phi { ptr, i32 } [ %.pn73.pn83, %142 ], [ %.pn73, %141 ], [ %.pn, %130 ], [ %24, %23 ], [ %.pn51, %121 ], [ %.pn53, %112 ], [ %.pn55, %103 ], [ %.pn57, %94 ], [ %.pn59, %85 ], [ %.pn61, %76 ], [ %.pn63, %67 ], [ %.pn65, %58 ], [ %.pn67, %49 ], [ %.pn69.pn.pn79, %40 ], [ %.pn69.pn, %39 ]
  call void @_ZN7SGTELIB20Surrogate_ParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %3) #8
  call void @llvm.lifetime.end.p0(i64 312, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn73.pn.pn

145:                                              ; preds = %135, %30
  unreachable
}

declare void @_ZN7SGTELIB20Surrogate_ParametersC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(312), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7SGTELIB20Surrogate_Parameters8get_typeEv(ptr noundef nonnull align 8 dereferenceable(312)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7SGTELIB20Surrogate_ParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(312), ptr noundef nonnull align 8 dereferenceable(312)) unnamed_addr #6 align 2

declare void @_ZN7SGTELIB13Surrogate_PRSC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1216), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

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

declare void @_ZN7SGTELIB18Surrogate_PRS_EDGEC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1216), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB17Surrogate_PRS_CATC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1268), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB12Surrogate_KSC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(985), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB12Surrogate_CNC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(985), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB13Surrogate_RBFC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1304), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB16Surrogate_LOWESSC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1128), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB18Surrogate_EnsembleC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1040), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB23Surrogate_Ensemble_StatC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1136), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

declare void @_ZN7SGTELIB17Surrogate_KrigingC1ERNS_11TrainingSetENS_20Surrogate_ParametersE(ptr noundef nonnull align 8 dereferenceable(1336), ptr noundef nonnull align 8 dereferenceable(504), ptr noundef) unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "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 = { nounwind }
attributes #9 = { noreturn }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { 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)"}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass