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

; 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::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 }
%"class.SGTELIB::Surrogate" = type <{ ptr, ptr, %"class.SGTELIB::Surrogate_Parameters", i32, i32, i32, i32, i32, i32, i8, [7 x i8], ptr, ptr, ptr, ptr, %"class.std::__cxx11::list", %"class.std::map", double, %"class.std::basic_ofstream", i8, [7 x i8] }>
%"class.SGTELIB::Surrogate_Parameters" = type { ptr, i32, i32, i32, i32, i32, double, i32, double, i32, i32, i32, %"class.SGTELIB::Matrix", i32, i32, i32, double, double, double, double, %"class.SGTELIB::Matrix", i32, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i32 }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" }
%"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<SGTELIB::metric_t, std::pair<const SGTELIB::metric_t, SGTELIB::Matrix>, std::_Select1st<std::pair<const SGTELIB::metric_t, SGTELIB::Matrix>>, std::less<SGTELIB::metric_t>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<SGTELIB::metric_t, std::pair<const SGTELIB::metric_t, SGTELIB::Matrix>, std::_Select1st<std::pair<const SGTELIB::metric_t, SGTELIB::Matrix>>, std::less<SGTELIB::metric_t>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.6 }
%union.anon.6 = type { i32 }
%"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.SGTELIB::Surrogate_LOWESS" = type { %"class.SGTELIB::Surrogate.base", i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.SGTELIB::Matrix" }
%"class.SGTELIB::Surrogate.base" = type <{ ptr, ptr, %"class.SGTELIB::Surrogate_Parameters", i32, i32, i32, i32, i32, i32, i8, [7 x i8], ptr, ptr, ptr, ptr, %"class.std::__cxx11::list", %"class.std::map", double, %"class.std::basic_ofstream", i8 }>

@.str = external hidden unnamed_addr constant [5 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: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 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 #2 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 #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7SGTELIB16Surrogate_LOWESS15delete_matricesEv(ptr noundef nonnull align 8 dereferenceable(1128)) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7SGTELIB16Surrogate_LOWESS12init_privateEv(ptr noundef nonnull align 8 dereferenceable(1128) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %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 ptr, align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %24 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 1
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = call noundef i32 @_ZNK7SGTELIB11TrainingSet8get_pvarEv(ptr noundef nonnull align 8 dereferenceable(504) %25)
  store i32 %26, ptr %4, align 4, !tbaa !47
  %27 = load i32, ptr %4, align 4, !tbaa !47
  %28 = icmp slt i32 %27, 2
  br i1 %28, label %29, label %30

29:                                               ; preds = %1
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %348

30:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %31 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = call noundef i32 @_ZNK7SGTELIB11TrainingSet13get_X_nbdiff1Ev(ptr noundef nonnull align 8 dereferenceable(504) %32)
  store i32 %33, ptr %6, align 4, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %34 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = call noundef i32 @_ZNK7SGTELIB11TrainingSet13get_X_nbdiff2Ev(ptr noundef nonnull align 8 dereferenceable(504) %35)
  store i32 %36, ptr %7, align 4, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %37 = load i32, ptr %6, align 4, !tbaa !47
  %38 = add nsw i32 1, %37
  store i32 %38, ptr %8, align 4, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %39 = load i32, ptr %6, align 4, !tbaa !47
  %40 = add nsw i32 1, %39
  %41 = load i32, ptr %7, align 4, !tbaa !47
  %42 = add nsw i32 %40, %41
  store i32 %42, ptr %9, align 4, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %43 = load i32, ptr %6, align 4, !tbaa !47
  %44 = add nsw i32 1, %43
  %45 = load i32, ptr %7, align 4, !tbaa !47
  %46 = load i32, ptr %7, align 4, !tbaa !47
  %47 = add nsw i32 %46, 1
  %48 = mul nsw i32 %45, %47
  %49 = sdiv i32 %48, 2
  %50 = add nsw i32 %44, %49
  store i32 %50, ptr %10, align 4, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %51 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 2
  %52 = call noundef i32 @_ZNK7SGTELIB20Surrogate_Parameters10get_degreeEv(ptr noundef nonnull align 8 dereferenceable(312) %51)
  store i32 %52, ptr %11, align 4, !tbaa !47
  %53 = load i32, ptr %4, align 4, !tbaa !47
  %54 = load i32, ptr %10, align 4, !tbaa !47
  %55 = icmp sgt i32 %53, %54
  %56 = zext i1 %55 to i32
  %57 = load i32, ptr %11, align 4, !tbaa !47
  %58 = icmp sge i32 %57, 2
  %59 = zext i1 %58 to i32
  %60 = and i32 %56, %59
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %66

62:                                               ; preds = %30
  %63 = load i32, ptr %10, align 4, !tbaa !47
  %64 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  store i32 %63, ptr %64, align 4, !tbaa !48
  %65 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 3
  store i32 20, ptr %65, align 4, !tbaa !50
  br label %99

66:                                               ; preds = %30
  %67 = load i32, ptr %4, align 4, !tbaa !47
  %68 = load i32, ptr %9, align 4, !tbaa !47
  %69 = icmp sgt i32 %67, %68
  %70 = zext i1 %69 to i32
  %71 = load i32, ptr %11, align 4, !tbaa !47
  %72 = icmp sge i32 %71, 2
  %73 = zext i1 %72 to i32
  %74 = and i32 %70, %73
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %80

76:                                               ; preds = %66
  %77 = load i32, ptr %9, align 4, !tbaa !47
  %78 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  store i32 %77, ptr %78, align 4, !tbaa !48
  %79 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 3
  store i32 15, ptr %79, align 4, !tbaa !50
  br label %98

80:                                               ; preds = %66
  %81 = load i32, ptr %4, align 4, !tbaa !47
  %82 = load i32, ptr %8, align 4, !tbaa !47
  %83 = icmp sgt i32 %81, %82
  %84 = zext i1 %83 to i32
  %85 = load i32, ptr %11, align 4, !tbaa !47
  %86 = icmp sge i32 %85, 1
  %87 = zext i1 %86 to i32
  %88 = and i32 %84, %87
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %94

90:                                               ; preds = %80
  %91 = load i32, ptr %8, align 4, !tbaa !47
  %92 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  store i32 %91, ptr %92, align 4, !tbaa !48
  %93 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 3
  store i32 10, ptr %93, align 4, !tbaa !50
  br label %97

94:                                               ; preds = %80
  %95 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  store i32 1, ptr %95, align 4, !tbaa !48
  %96 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 3
  store i32 0, ptr %96, align 4, !tbaa !50
  br label %97

97:                                               ; preds = %94, %90
  br label %98

98:                                               ; preds = %97, %76
  br label %99

99:                                               ; preds = %98, %62
  call void @_ZN7SGTELIB16Surrogate_LOWESS15delete_matricesEv(ptr noundef nonnull align 8 dereferenceable(1128) %23)
  %100 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 5
  %101 = load ptr, ptr %100, align 8, !tbaa !51
  %102 = icmp ne ptr %101, null
  br i1 %102, label %113, label %103

103:                                              ; preds = %99
  %104 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 7
  %105 = load i32, ptr %104, align 8, !tbaa !52
  %106 = sext i32 %105 to i64
  %107 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %106, i64 8)
  %108 = extractvalue { i64, i1 } %107, 1
  %109 = extractvalue { i64, i1 } %107, 0
  %110 = select i1 %108, i64 -1, i64 %109
  %111 = call noalias noundef nonnull ptr @_Znam(i64 noundef %110) #8
  %112 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 5
  store ptr %111, ptr %112, align 8, !tbaa !51
  br label %113

113:                                              ; preds = %103, %99
  %114 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 6
  %115 = load ptr, ptr %114, align 8, !tbaa !53
  %116 = icmp ne ptr %115, null
  br i1 %116, label %151, label %117

117:                                              ; preds = %113
  %118 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  %119 = load i32, ptr %118, align 4, !tbaa !48
  %120 = sext i32 %119 to i64
  %121 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %120, i64 8)
  %122 = extractvalue { i64, i1 } %121, 1
  %123 = extractvalue { i64, i1 } %121, 0
  %124 = select i1 %122, i64 -1, i64 %123
  %125 = call noalias noundef nonnull ptr @_Znam(i64 noundef %124) #8
  %126 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 6
  store ptr %125, ptr %126, align 8, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !47
  br label %127

127:                                              ; preds = %147, %117
  %128 = load i32, ptr %12, align 4, !tbaa !47
  %129 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  %130 = load i32, ptr %129, align 4, !tbaa !48
  %131 = icmp slt i32 %128, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %127
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %150

133:                                              ; preds = %127
  %134 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  %135 = load i32, ptr %134, align 4, !tbaa !48
  %136 = sext i32 %135 to i64
  %137 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %136, i64 8)
  %138 = extractvalue { i64, i1 } %137, 1
  %139 = extractvalue { i64, i1 } %137, 0
  %140 = select i1 %138, i64 -1, i64 %139
  %141 = call noalias noundef nonnull ptr @_Znam(i64 noundef %140) #8
  %142 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 6
  %143 = load ptr, ptr %142, align 8, !tbaa !53
  %144 = load i32, ptr %12, align 4, !tbaa !47
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds ptr, ptr %143, i64 %145
  store ptr %141, ptr %146, align 8, !tbaa !5
  br label %147

147:                                              ; preds = %133
  %148 = load i32, ptr %12, align 4, !tbaa !47
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %12, align 4, !tbaa !47
  br label %127, !llvm.loop !54

150:                                              ; preds = %132
  br label %151

151:                                              ; preds = %150, %113
  %152 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 4
  %153 = load ptr, ptr %152, align 8, !tbaa !56
  %154 = icmp ne ptr %153, null
  br i1 %154, label %189, label %155

155:                                              ; preds = %151
  %156 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 7
  %157 = load i32, ptr %156, align 8, !tbaa !52
  %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 = call noalias noundef nonnull ptr @_Znam(i64 noundef %162) #8
  %164 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 4
  store ptr %163, ptr %164, align 8, !tbaa !56
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !47
  br label %165

165:                                              ; preds = %185, %155
  %166 = load i32, ptr %13, align 4, !tbaa !47
  %167 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 7
  %168 = load i32, ptr %167, align 8, !tbaa !52
  %169 = icmp slt i32 %166, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %165
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %188

171:                                              ; preds = %165
  %172 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  %173 = load i32, ptr %172, align 4, !tbaa !48
  %174 = sext i32 %173 to i64
  %175 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %174, i64 8)
  %176 = extractvalue { i64, i1 } %175, 1
  %177 = extractvalue { i64, i1 } %175, 0
  %178 = select i1 %176, i64 -1, i64 %177
  %179 = call noalias noundef nonnull ptr @_Znam(i64 noundef %178) #8
  %180 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 4
  %181 = load ptr, ptr %180, align 8, !tbaa !56
  %182 = load i32, ptr %13, align 4, !tbaa !47
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds ptr, ptr %181, i64 %183
  store ptr %179, ptr %184, align 8, !tbaa !5
  br label %185

185:                                              ; preds = %171
  %186 = load i32, ptr %13, align 4, !tbaa !47
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %13, align 4, !tbaa !47
  br label %165, !llvm.loop !57

188:                                              ; preds = %170
  br label %189

189:                                              ; preds = %188, %151
  %190 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 7
  %191 = load ptr, ptr %190, align 8, !tbaa !58
  %192 = icmp ne ptr %191, null
  br i1 %192, label %227, label %193

193:                                              ; preds = %189
  %194 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  %195 = load i32, ptr %194, align 4, !tbaa !48
  %196 = sext i32 %195 to i64
  %197 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %196, i64 8)
  %198 = extractvalue { i64, i1 } %197, 1
  %199 = extractvalue { i64, i1 } %197, 0
  %200 = select i1 %198, i64 -1, i64 %199
  %201 = call noalias noundef nonnull ptr @_Znam(i64 noundef %200) #8
  %202 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 7
  store ptr %201, ptr %202, align 8, !tbaa !58
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !47
  br label %203

203:                                              ; preds = %223, %193
  %204 = load i32, ptr %14, align 4, !tbaa !47
  %205 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  %206 = load i32, ptr %205, align 4, !tbaa !48
  %207 = icmp slt i32 %204, %206
  br i1 %207, label %209, label %208

208:                                              ; preds = %203
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %226

209:                                              ; preds = %203
  %210 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 4
  %211 = load i32, ptr %210, align 4, !tbaa !59
  %212 = sext i32 %211 to i64
  %213 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %212, i64 8)
  %214 = extractvalue { i64, i1 } %213, 1
  %215 = extractvalue { i64, i1 } %213, 0
  %216 = select i1 %214, i64 -1, i64 %215
  %217 = call noalias noundef nonnull ptr @_Znam(i64 noundef %216) #8
  %218 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 7
  %219 = load ptr, ptr %218, align 8, !tbaa !58
  %220 = load i32, ptr %14, align 4, !tbaa !47
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds ptr, ptr %219, i64 %221
  store ptr %217, ptr %222, align 8, !tbaa !5
  br label %223

223:                                              ; preds = %209
  %224 = load i32, ptr %14, align 4, !tbaa !47
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %14, align 4, !tbaa !47
  br label %203, !llvm.loop !60

226:                                              ; preds = %208
  br label %227

227:                                              ; preds = %226, %189
  %228 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 8
  %229 = load ptr, ptr %228, align 8, !tbaa !61
  %230 = icmp ne ptr %229, null
  br i1 %230, label %258, label %231

231:                                              ; preds = %227
  %232 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  %233 = load i32, ptr %232, align 4, !tbaa !48
  %234 = sext i32 %233 to i64
  %235 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %234, i64 8)
  %236 = extractvalue { i64, i1 } %235, 1
  %237 = extractvalue { i64, i1 } %235, 0
  %238 = select i1 %236, i64 -1, i64 %237
  %239 = call noalias noundef nonnull ptr @_Znam(i64 noundef %238) #8
  %240 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 8
  store ptr %239, ptr %240, align 8, !tbaa !61
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !47
  br label %241

241:                                              ; preds = %254, %231
  %242 = load i32, ptr %15, align 4, !tbaa !47
  %243 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  %244 = load i32, ptr %243, align 4, !tbaa !48
  %245 = icmp slt i32 %242, %244
  br i1 %245, label %247, label %246

246:                                              ; preds = %241
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %257

247:                                              ; preds = %241
  %248 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #8
  %249 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 8
  %250 = load ptr, ptr %249, align 8, !tbaa !61
  %251 = load i32, ptr %15, align 4, !tbaa !47
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds ptr, ptr %250, i64 %252
  store ptr %248, ptr %253, align 8, !tbaa !5
  br label %254

254:                                              ; preds = %247
  %255 = load i32, ptr %15, align 4, !tbaa !47
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %15, align 4, !tbaa !47
  br label %241, !llvm.loop !62

257:                                              ; preds = %246
  br label %258

258:                                              ; preds = %257, %227
  %259 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 9
  %260 = load ptr, ptr %259, align 8, !tbaa !63
  %261 = icmp ne ptr %260, null
  br i1 %261, label %288, label %262

262:                                              ; preds = %258
  %263 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  %264 = load i32, ptr %263, align 4, !tbaa !48
  %265 = sext i32 %264 to i64
  %266 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %265, i64 8)
  %267 = extractvalue { i64, i1 } %266, 1
  %268 = extractvalue { i64, i1 } %266, 0
  %269 = select i1 %267, i64 -1, i64 %268
  %270 = call noalias noundef nonnull ptr @_Znam(i64 noundef %269) #8
  %271 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 9
  store ptr %270, ptr %271, align 8, !tbaa !63
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !47
  br label %272

272:                                              ; preds = %284, %262
  %273 = load i32, ptr %16, align 4, !tbaa !47
  %274 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  %275 = load i32, ptr %274, align 4, !tbaa !48
  %276 = icmp slt i32 %273, %275
  br i1 %276, label %278, label %277

277:                                              ; preds = %272
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %287

278:                                              ; preds = %272
  %279 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 9
  %280 = load ptr, ptr %279, align 8, !tbaa !63
  %281 = load i32, ptr %16, align 4, !tbaa !47
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds double, ptr %280, i64 %282
  store double 0.000000e+00, ptr %283, align 8, !tbaa !64
  br label %284

284:                                              ; preds = %278
  %285 = load i32, ptr %16, align 4, !tbaa !47
  %286 = add nsw i32 %285, 1
  store i32 %286, ptr %16, align 4, !tbaa !47
  br label %272, !llvm.loop !65

287:                                              ; preds = %277
  br label %288

288:                                              ; preds = %287, %258
  %289 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 12
  %290 = load ptr, ptr %289, align 8, !tbaa !66
  %291 = icmp ne ptr %290, null
  br i1 %291, label %320, label %292

292:                                              ; preds = %288
  %293 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 4
  %294 = load i32, ptr %293, align 4, !tbaa !59
  %295 = sext i32 %294 to i64
  %296 = call noalias noundef nonnull ptr @_Znam(i64 noundef %295) #8
  %297 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 12
  store ptr %296, ptr %297, align 8, !tbaa !66
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !47
  br label %298

298:                                              ; preds = %316, %292
  %299 = load i32, ptr %17, align 4, !tbaa !47
  %300 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 4
  %301 = load i32, ptr %300, align 4, !tbaa !59
  %302 = icmp slt i32 %299, %301
  br i1 %302, label %304, label %303

303:                                              ; preds = %298
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %319

304:                                              ; preds = %298
  %305 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 1
  %306 = load ptr, ptr %305, align 8, !tbaa !9
  %307 = load i32, ptr %17, align 4, !tbaa !47
  %308 = call noundef i32 @_ZNK7SGTELIB11TrainingSet12get_X_nbdiffEi(ptr noundef nonnull align 8 dereferenceable(504) %306, i32 noundef %307)
  %309 = icmp sgt i32 %308, 1
  %310 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 12
  %311 = load ptr, ptr %310, align 8, !tbaa !66
  %312 = load i32, ptr %17, align 4, !tbaa !47
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds i8, ptr %311, i64 %313
  %315 = zext i1 %309 to i8
  store i8 %315, ptr %314, align 1, !tbaa !67
  br label %316

316:                                              ; preds = %304
  %317 = load i32, ptr %17, align 4, !tbaa !47
  %318 = add nsw i32 %317, 1
  store i32 %318, ptr %17, align 4, !tbaa !47
  br label %298, !llvm.loop !68

319:                                              ; preds = %303
  br label %320

320:                                              ; preds = %319, %288
  call void @llvm.lifetime.start.p0(i64 56, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %321 unwind label %334

321:                                              ; preds = %320
  %322 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 4
  %323 = load i32, ptr %322, align 4, !tbaa !59
  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 %323)
          to label %324 unwind label %338

324:                                              ; preds = %321
  %325 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 13
  %326 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %325, ptr noundef nonnull align 8 dereferenceable(56) %18)
          to label %327 unwind label %342

327:                                              ; preds = %324
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %18) #7
  %328 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 1
  %329 = load i32, ptr %328, align 4, !tbaa !48
  %330 = getelementptr inbounds %"class.SGTELIB::Surrogate_LOWESS", ptr %23, i32 0, i32 2
  store i32 %329, ptr %330, align 8, !tbaa !69
  %331 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 7
  %332 = load i32, ptr %331, align 8, !tbaa !52
  %333 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %23, i32 0, i32 8
  store i32 %332, ptr %333, align 4, !tbaa !70
  store i1 true, ptr %2, align 1
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %348

334:                                              ; preds = %320
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %21, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %22, align 4
  br label %347

338:                                              ; preds = %321
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %21, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %22, align 4
  br label %346

342:                                              ; preds = %324
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %21, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %22, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #7
  br label %346

346:                                              ; preds = %342, %338
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %347

347:                                              ; preds = %346, %334
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %350

348:                                              ; preds = %327, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  %349 = load i1, ptr %2, align 1
  ret i1 %349

350:                                              ; preds = %347
  %351 = load ptr, ptr %21, align 8
  %352 = load i32, ptr %22, align 4
  %353 = insertvalue { ptr, i32 } poison, ptr %351, 0
  %354 = insertvalue { ptr, i32 } %353, i32 %352, 1
  resume { ptr, i32 } %354
}

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

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #3

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

!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, !6, i64 8}
!10 = !{!"_ZTSN7SGTELIB9SurrogateE", !6, i64 8, !11, i64 16, !13, i64 328, !13, i64 332, !13, i64 336, !13, i64 340, !13, i64 344, !13, i64 348, !25, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !26, i64 392, !31, i64 416, !16, i64 464, !39, i64 472, !25, i64 984}
!11 = !{!"_ZTSN7SGTELIB20Surrogate_ParametersE", !12, i64 8, !13, i64 12, !14, i64 16, !15, i64 20, !14, i64 24, !16, i64 32, !14, i64 40, !16, i64 48, !14, i64 56, !17, i64 60, !14, i64 64, !18, i64 72, !22, i64 128, !14, i64 132, !23, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !18, i64 176, !14, i64 232, !24, i64 236, !19, i64 240, !19, i64 272, !13, i64 304, !13, i64 308}
!12 = !{!"_ZTSN7SGTELIB7model_tE", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSN7SGTELIB14param_status_tE", !7, i64 0}
!15 = !{!"_ZTSN7SGTELIB8kernel_tE", !7, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN7SGTELIB10distance_tE", !7, i64 0}
!18 = !{!"_ZTSN7SGTELIB6MatrixE", !19, i64 8, !13, i64 40, !13, i64 44, !6, i64 48}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !21, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSN7SGTELIB8weight_tE", !7, i64 0}
!23 = !{!"_ZTSN7SGTELIB13uncertainty_tE", !7, i64 0}
!24 = !{!"_ZTSN7SGTELIB8metric_tE", !7, i64 0}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSNSt7__cxx114listIiSaIiEEE", !27, i64 0}
!27 = !{!"_ZTSNSt7__cxx1110_List_baseIiSaIiEEE", !28, i64 0}
!28 = !{!"_ZTSNSt7__cxx1110_List_baseIiSaIiEE10_List_implE", !29, i64 0}
!29 = !{!"_ZTSNSt8__detail17_List_node_headerE", !30, i64 0, !21, i64 16}
!30 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!31 = !{!"_ZTSSt3mapIN7SGTELIB8metric_tENS0_6MatrixESt4lessIS1_ESaISt4pairIKS1_S2_EEE", !32, i64 0}
!32 = !{!"_ZTSSt8_Rb_treeIN7SGTELIB8metric_tESt4pairIKS1_NS0_6MatrixEESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE", !33, i64 0}
!33 = !{!"_ZTSNSt8_Rb_treeIN7SGTELIB8metric_tESt4pairIKS1_NS0_6MatrixEESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !34, i64 0, !36, i64 8}
!34 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN7SGTELIB8metric_tEEE", !35, i64 0}
!35 = !{!"_ZTSSt4lessIN7SGTELIB8metric_tEE"}
!36 = !{!"_ZTSSt15_Rb_tree_header", !37, i64 0, !21, i64 32}
!37 = !{!"_ZTSSt18_Rb_tree_node_base", !38, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!38 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!39 = !{!"_ZTSSt14basic_ofstreamIcSt11char_traitsIcEE", !40, i64 0, !41, i64 8}
!40 = !{!"_ZTSSo"}
!41 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !42, i64 0, !7, i64 64, !44, i64 104, !45, i64 120, !46, i64 124, !46, i64 132, !46, i64 140, !6, i64 152, !21, i64 160, !25, i64 168, !25, i64 169, !25, i64 170, !7, i64 171, !6, i64 176, !6, i64 184, !25, i64 192, !6, i64 200, !6, i64 208, !21, i64 216, !6, i64 224, !6, i64 232}
!42 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !43, i64 56}
!43 = !{!"_ZTSSt6locale", !6, i64 0}
!44 = !{!"_ZTSSt12__basic_fileIcE", !6, i64 0, !25, i64 8}
!45 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!46 = !{!"_ZTS11__mbstate_t", !13, i64 0, !7, i64 4}
!47 = !{!13, !13, i64 0}
!48 = !{!49, !13, i64 988}
!49 = !{!"_ZTSN7SGTELIB16Surrogate_LOWESSE", !10, i64 0, !13, i64 988, !13, i64 992, !13, i64 996, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !6, i64 1040, !6, i64 1048, !6, i64 1056, !6, i64 1064, !18, i64 1072}
!50 = !{!49, !13, i64 996}
!51 = !{!49, !6, i64 1008}
!52 = !{!10, !13, i64 344}
!53 = !{!49, !6, i64 1016}
!54 = distinct !{!54, !55}
!55 = !{!"llvm.loop.mustprogress"}
!56 = !{!49, !6, i64 1000}
!57 = distinct !{!57, !55}
!58 = !{!49, !6, i64 1024}
!59 = !{!10, !13, i64 332}
!60 = distinct !{!60, !55}
!61 = !{!49, !6, i64 1032}
!62 = distinct !{!62, !55}
!63 = !{!49, !6, i64 1040}
!64 = !{!16, !16, i64 0}
!65 = distinct !{!65, !55}
!66 = !{!49, !6, i64 1064}
!67 = !{!25, !25, i64 0}
!68 = distinct !{!68, !55}
!69 = !{!49, !13, i64 992}
!70 = !{!10, !13, i64 348}


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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7SGTELIB16Surrogate_LOWESS15delete_matricesEv(ptr noundef nonnull align 8 dereferenceable(1128)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7SGTELIB16Surrogate_LOWESS12init_privateEv(ptr noundef nonnull align 8 dereferenceable(1128) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.SGTELIB::Matrix", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = tail call noundef i32 @_ZNK7SGTELIB11TrainingSet8get_pvarEv(ptr noundef nonnull align 8 dereferenceable(504) %6)
  %8 = icmp sgt i32 %7, 1
  br i1 %8, label %9, label %176

9:                                                ; preds = %1
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = tail call noundef i32 @_ZNK7SGTELIB11TrainingSet13get_X_nbdiff1Ev(ptr noundef nonnull align 8 dereferenceable(504) %10)
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = tail call noundef i32 @_ZNK7SGTELIB11TrainingSet13get_X_nbdiff2Ev(ptr noundef nonnull align 8 dereferenceable(504) %12)
  %14 = add nsw i32 %11, 1
  %15 = add nsw i32 %13, %14
  %16 = add nsw i32 %13, 1
  %17 = mul nsw i32 %16, %13
  %18 = sdiv i32 %17, 2
  %19 = add nsw i32 %18, %14
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = tail call noundef i32 @_ZNK7SGTELIB20Surrogate_Parameters10get_degreeEv(ptr noundef nonnull align 8 dereferenceable(312) %20)
  %22 = icmp sgt i32 %7, %19
  %23 = icmp sgt i32 %21, 1
  %24 = and i1 %23, %22
  br i1 %24, label %25, label %28

25:                                               ; preds = %9
  %26 = getelementptr inbounds i8, ptr %0, i64 988
  store i32 %19, ptr %26, align 4, !tbaa !46
  %27 = getelementptr inbounds i8, ptr %0, i64 996
  store i32 20, ptr %27, align 4, !tbaa !48
  br label %42

28:                                               ; preds = %9
  %29 = icmp sgt i32 %7, %15
  %30 = and i1 %29, %23
  br i1 %30, label %31, label %34

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %0, i64 988
  store i32 %15, ptr %32, align 4, !tbaa !46
  %33 = getelementptr inbounds i8, ptr %0, i64 996
  store i32 15, ptr %33, align 4, !tbaa !48
  br label %42

34:                                               ; preds = %28
  %35 = icmp sgt i32 %7, %14
  %36 = icmp sgt i32 %21, 0
  %37 = and i1 %35, %36
  %38 = getelementptr inbounds i8, ptr %0, i64 988
  %39 = getelementptr inbounds i8, ptr %0, i64 996
  br i1 %37, label %40, label %41

40:                                               ; preds = %34
  store i32 %14, ptr %38, align 4, !tbaa !46
  store i32 10, ptr %39, align 4, !tbaa !48
  br label %42

41:                                               ; preds = %34
  store i32 1, ptr %38, align 4, !tbaa !46
  store i32 0, ptr %39, align 4, !tbaa !48
  br label %42

42:                                               ; preds = %31, %41, %40, %25
  tail call void @_ZN7SGTELIB16Surrogate_LOWESS15delete_matricesEv(ptr noundef nonnull align 8 dereferenceable(1128) %0)
  %43 = getelementptr inbounds i8, ptr %0, i64 1008
  %44 = load ptr, ptr %43, align 8, !tbaa !49
  %.not = icmp eq ptr %44, null
  br i1 %.not, label %45, label %53

45:                                               ; preds = %42
  %46 = getelementptr inbounds i8, ptr %0, i64 344
  %47 = load i32, ptr %46, align 8, !tbaa !50
  %48 = sext i32 %47 to i64
  %49 = icmp slt i32 %47, 0
  %50 = shl nsw i64 %48, 3
  %51 = select i1 %49, i64 -1, i64 %50
  %52 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %51) #7
  store ptr %52, ptr %43, align 8, !tbaa !49
  br label %53

53:                                               ; preds = %45, %42
  %54 = getelementptr inbounds i8, ptr %0, i64 1016
  %55 = load ptr, ptr %54, align 8, !tbaa !51
  %.not52 = icmp eq ptr %55, null
  br i1 %.not52, label %56, label %.loopexit64

56:                                               ; preds = %53
  %57 = getelementptr inbounds i8, ptr %0, i64 988
  %58 = load i32, ptr %57, align 4, !tbaa !46
  %59 = sext i32 %58 to i64
  %60 = icmp slt i32 %58, 0
  %61 = shl nsw i64 %59, 3
  %62 = select i1 %60, i64 -1, i64 %61
  %63 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %62) #7
  store ptr %63, ptr %54, align 8, !tbaa !51
  %64 = icmp sgt i32 %58, 0
  br i1 %64, label %.lr.ph.preheader, label %.loopexit64

.lr.ph.preheader:                                 ; preds = %56
  %wide.trip.count = zext nneg i32 %58 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %65 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %62) #7
  %66 = load ptr, ptr %54, align 8, !tbaa !51
  %67 = getelementptr inbounds ptr, ptr %66, i64 %indvars.iv
  store ptr %65, ptr %67, align 8, !tbaa !52
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit64, label %.lr.ph, !llvm.loop !53

.loopexit64:                                      ; preds = %.lr.ph, %56, %53
  %68 = getelementptr inbounds i8, ptr %0, i64 1000
  %69 = load ptr, ptr %68, align 8, !tbaa !55
  %.not53 = icmp eq ptr %69, null
  br i1 %.not53, label %70, label %.loopexit63

70:                                               ; preds = %.loopexit64
  %71 = getelementptr inbounds i8, ptr %0, i64 344
  %72 = load i32, ptr %71, align 8, !tbaa !50
  %73 = sext i32 %72 to i64
  %74 = icmp slt i32 %72, 0
  %75 = shl nsw i64 %73, 3
  %76 = select i1 %74, i64 -1, i64 %75
  %77 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %76) #7
  store ptr %77, ptr %68, align 8, !tbaa !55
  %78 = icmp sgt i32 %72, 0
  br i1 %78, label %.lr.ph67, label %.loopexit63

.lr.ph67:                                         ; preds = %70
  %79 = getelementptr inbounds i8, ptr %0, i64 988
  %80 = load i32, ptr %79, align 4, !tbaa !46
  %81 = sext i32 %80 to i64
  %82 = icmp slt i32 %80, 0
  %83 = shl nsw i64 %81, 3
  %84 = select i1 %82, i64 -1, i64 %83
  %wide.trip.count80 = zext nneg i32 %72 to i64
  br label %85

85:                                               ; preds = %.lr.ph67, %85
  %indvars.iv77 = phi i64 [ 0, %.lr.ph67 ], [ %indvars.iv.next78, %85 ]
  %86 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %84) #7
  %87 = load ptr, ptr %68, align 8, !tbaa !55
  %88 = getelementptr inbounds ptr, ptr %87, i64 %indvars.iv77
  store ptr %86, ptr %88, align 8, !tbaa !52
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %exitcond81.not = icmp eq i64 %indvars.iv.next78, %wide.trip.count80
  br i1 %exitcond81.not, label %.loopexit63, label %85, !llvm.loop !56

.loopexit63:                                      ; preds = %85, %70, %.loopexit64
  %89 = getelementptr inbounds i8, ptr %0, i64 1024
  %90 = load ptr, ptr %89, align 8, !tbaa !57
  %.not54 = icmp eq ptr %90, null
  br i1 %.not54, label %91, label %.loopexit62

91:                                               ; preds = %.loopexit63
  %92 = getelementptr inbounds i8, ptr %0, i64 988
  %93 = load i32, ptr %92, align 4, !tbaa !46
  %94 = sext i32 %93 to i64
  %95 = icmp slt i32 %93, 0
  %96 = shl nsw i64 %94, 3
  %97 = select i1 %95, i64 -1, i64 %96
  %98 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %97) #7
  store ptr %98, ptr %89, align 8, !tbaa !57
  %99 = icmp sgt i32 %93, 0
  br i1 %99, label %.lr.ph69, label %.loopexit62

.lr.ph69:                                         ; preds = %91
  %100 = getelementptr inbounds i8, ptr %0, i64 332
  %101 = load i32, ptr %100, align 4, !tbaa !58
  %102 = sext i32 %101 to i64
  %103 = icmp slt i32 %101, 0
  %104 = shl nsw i64 %102, 3
  %105 = select i1 %103, i64 -1, i64 %104
  %wide.trip.count85 = zext nneg i32 %93 to i64
  br label %106

106:                                              ; preds = %.lr.ph69, %106
  %indvars.iv82 = phi i64 [ 0, %.lr.ph69 ], [ %indvars.iv.next83, %106 ]
  %107 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %105) #7
  %108 = load ptr, ptr %89, align 8, !tbaa !57
  %109 = getelementptr inbounds ptr, ptr %108, i64 %indvars.iv82
  store ptr %107, ptr %109, align 8, !tbaa !52
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %exitcond86.not = icmp eq i64 %indvars.iv.next83, %wide.trip.count85
  br i1 %exitcond86.not, label %.loopexit62, label %106, !llvm.loop !59

.loopexit62:                                      ; preds = %106, %91, %.loopexit63
  %110 = getelementptr inbounds i8, ptr %0, i64 1032
  %111 = load ptr, ptr %110, align 8, !tbaa !60
  %.not55 = icmp eq ptr %111, null
  br i1 %.not55, label %112, label %.loopexit61

112:                                              ; preds = %.loopexit62
  %113 = getelementptr inbounds i8, ptr %0, i64 988
  %114 = load i32, ptr %113, align 4, !tbaa !46
  %115 = sext i32 %114 to i64
  %116 = icmp slt i32 %114, 0
  %117 = shl nsw i64 %115, 3
  %118 = select i1 %116, i64 -1, i64 %117
  %119 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %118) #7
  store ptr %119, ptr %110, align 8, !tbaa !60
  %120 = icmp sgt i32 %114, 0
  br i1 %120, label %.lr.ph71.preheader, label %.loopexit61

.lr.ph71.preheader:                               ; preds = %112
  %wide.trip.count90 = zext nneg i32 %114 to i64
  br label %.lr.ph71

.lr.ph71:                                         ; preds = %.lr.ph71.preheader, %.lr.ph71
  %indvars.iv87 = phi i64 [ 0, %.lr.ph71.preheader ], [ %indvars.iv.next88, %.lr.ph71 ]
  %121 = tail call noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #7
  %122 = load ptr, ptr %110, align 8, !tbaa !60
  %123 = getelementptr inbounds ptr, ptr %122, i64 %indvars.iv87
  store ptr %121, ptr %123, align 8, !tbaa !52
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %exitcond91.not = icmp eq i64 %indvars.iv.next88, %wide.trip.count90
  br i1 %exitcond91.not, label %.loopexit61, label %.lr.ph71, !llvm.loop !61

.loopexit61:                                      ; preds = %.lr.ph71, %112, %.loopexit62
  %124 = getelementptr inbounds i8, ptr %0, i64 1040
  %125 = load ptr, ptr %124, align 8, !tbaa !62
  %.not56 = icmp eq ptr %125, null
  br i1 %.not56, label %126, label %.loopexit60

126:                                              ; preds = %.loopexit61
  %127 = getelementptr inbounds i8, ptr %0, i64 988
  %128 = load i32, ptr %127, align 4, !tbaa !46
  %129 = sext i32 %128 to i64
  %130 = icmp slt i32 %128, 0
  %131 = shl nsw i64 %129, 3
  %132 = select i1 %130, i64 -1, i64 %131
  %133 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %132) #7
  store ptr %133, ptr %124, align 8, !tbaa !62
  %134 = icmp sgt i32 %128, 0
  br i1 %134, label %.lr.ph73.preheader, label %.loopexit60

.lr.ph73.preheader:                               ; preds = %126
  %135 = zext nneg i32 %128 to i64
  %136 = shl nuw nsw i64 %135, 3
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %133, i8 0, i64 %136, i1 false), !tbaa !63
  br label %.loopexit60

.loopexit60:                                      ; preds = %.lr.ph73.preheader, %126, %.loopexit61
  %137 = getelementptr inbounds i8, ptr %0, i64 1064
  %138 = load ptr, ptr %137, align 8, !tbaa !64
  %.not57 = icmp eq ptr %138, null
  br i1 %.not57, label %139, label %.loopexit

139:                                              ; preds = %.loopexit60
  %140 = getelementptr inbounds i8, ptr %0, i64 332
  %141 = load i32, ptr %140, align 4, !tbaa !58
  %142 = sext i32 %141 to i64
  %143 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %142) #7
  store ptr %143, ptr %137, align 8, !tbaa !64
  %144 = icmp sgt i32 %141, 0
  br i1 %144, label %.lr.ph75, label %.loopexit

.lr.ph75:                                         ; preds = %139, %.lr.ph75
  %indvars.iv95 = phi i64 [ %indvars.iv.next96, %.lr.ph75 ], [ 0, %139 ]
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = trunc nuw nsw i64 %indvars.iv95 to i32
  %147 = tail call noundef i32 @_ZNK7SGTELIB11TrainingSet12get_X_nbdiffEi(ptr noundef nonnull align 8 dereferenceable(504) %145, i32 noundef %146)
  %148 = icmp sgt i32 %147, 1
  %149 = load ptr, ptr %137, align 8, !tbaa !64
  %150 = getelementptr inbounds i8, ptr %149, i64 %indvars.iv95
  %151 = zext i1 %148 to i8
  store i8 %151, ptr %150, align 1, !tbaa !65
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %152 = load i32, ptr %140, align 4, !tbaa !58
  %153 = sext i32 %152 to i64
  %154 = icmp slt i64 %indvars.iv.next96, %153
  br i1 %154, label %.lr.ph75, label %.loopexit, !llvm.loop !66

.loopexit:                                        ; preds = %.lr.ph75, %139, %.loopexit60
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %155 unwind label %168

155:                                              ; preds = %.loopexit
  %156 = getelementptr inbounds i8, ptr %0, i64 332
  %157 = load i32, ptr %156, align 4, !tbaa !58
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef 1, i32 noundef %157)
          to label %158 unwind label %170

158:                                              ; preds = %155
  %159 = getelementptr inbounds i8, ptr %0, i64 1072
  %160 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %159, ptr noundef nonnull align 8 dereferenceable(56) %2)
          to label %161 unwind label %172

161:                                              ; preds = %158
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #8
  %162 = getelementptr inbounds i8, ptr %0, i64 988
  %163 = load i32, ptr %162, align 4, !tbaa !46
  %164 = getelementptr inbounds i8, ptr %0, i64 992
  store i32 %163, ptr %164, align 8, !tbaa !67
  %165 = getelementptr inbounds i8, ptr %0, i64 344
  %166 = load i32, ptr %165, align 8, !tbaa !50
  %167 = getelementptr inbounds i8, ptr %0, i64 348
  store i32 %166, ptr %167, align 4, !tbaa !68
  br label %176

168:                                              ; preds = %.loopexit
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %175

170:                                              ; preds = %155
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %174

172:                                              ; preds = %158
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #8
  br label %174

174:                                              ; preds = %172, %170
  %.pn = phi { ptr, i32 } [ %173, %172 ], [ %171, %170 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  br label %175

175:                                              ; preds = %174, %168
  %.pn.pn = phi { ptr, i32 } [ %.pn, %174 ], [ %169, %168 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn.pn

176:                                              ; preds = %1, %161
  ret i1 %8
}

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

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

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

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

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

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

declare noundef i32 @_ZNK7SGTELIB11TrainingSet12get_X_nbdiffEi(ptr noundef nonnull align 8 dereferenceable(504), i32 noundef) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { 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, !7, i64 8}
!6 = !{!"_ZTSN7SGTELIB9SurrogateE", !7, i64 8, !10, i64 16, !12, i64 328, !12, i64 332, !12, i64 336, !12, i64 340, !12, i64 344, !12, i64 348, !24, i64 352, !7, i64 360, !7, i64 368, !7, i64 376, !7, i64 384, !25, i64 392, !30, i64 416, !15, i64 464, !38, i64 472, !24, i64 984}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN7SGTELIB20Surrogate_ParametersE", !11, i64 8, !12, i64 12, !13, i64 16, !14, i64 20, !13, i64 24, !15, i64 32, !13, i64 40, !15, i64 48, !13, i64 56, !16, i64 60, !13, i64 64, !17, i64 72, !21, i64 128, !13, i64 132, !22, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !17, i64 176, !13, i64 232, !23, i64 236, !18, i64 240, !18, i64 272, !12, i64 304, !12, i64 308}
!11 = !{!"_ZTSN7SGTELIB7model_tE", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTSN7SGTELIB14param_status_tE", !8, i64 0}
!14 = !{!"_ZTSN7SGTELIB8kernel_tE", !8, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_ZTSN7SGTELIB10distance_tE", !8, i64 0}
!17 = !{!"_ZTSN7SGTELIB6MatrixE", !18, i64 8, !12, i64 40, !12, i64 44, !7, i64 48}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !20, i64 8, !8, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!20 = !{!"long", !8, i64 0}
!21 = !{!"_ZTSN7SGTELIB8weight_tE", !8, i64 0}
!22 = !{!"_ZTSN7SGTELIB13uncertainty_tE", !8, i64 0}
!23 = !{!"_ZTSN7SGTELIB8metric_tE", !8, i64 0}
!24 = !{!"bool", !8, i64 0}
!25 = !{!"_ZTSNSt7__cxx114listIiSaIiEEE", !26, i64 0}
!26 = !{!"_ZTSNSt7__cxx1110_List_baseIiSaIiEEE", !27, i64 0}
!27 = !{!"_ZTSNSt7__cxx1110_List_baseIiSaIiEE10_List_implE", !28, i64 0}
!28 = !{!"_ZTSNSt8__detail17_List_node_headerE", !29, i64 0, !20, i64 16}
!29 = !{!"_ZTSNSt8__detail15_List_node_baseE", !7, i64 0, !7, i64 8}
!30 = !{!"_ZTSSt3mapIN7SGTELIB8metric_tENS0_6MatrixESt4lessIS1_ESaISt4pairIKS1_S2_EEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeIN7SGTELIB8metric_tESt4pairIKS1_NS0_6MatrixEESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeIN7SGTELIB8metric_tESt4pairIKS1_NS0_6MatrixEESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !33, i64 0, !35, i64 8}
!33 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN7SGTELIB8metric_tEEE", !34, i64 0}
!34 = !{!"_ZTSSt4lessIN7SGTELIB8metric_tEE"}
!35 = !{!"_ZTSSt15_Rb_tree_header", !36, i64 0, !20, i64 32}
!36 = !{!"_ZTSSt18_Rb_tree_node_base", !37, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!37 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!38 = !{!"_ZTSSt14basic_ofstreamIcSt11char_traitsIcEE", !39, i64 0, !40, i64 8}
!39 = !{!"_ZTSSo"}
!40 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !41, i64 0, !8, i64 64, !43, i64 104, !44, i64 120, !45, i64 124, !45, i64 132, !45, i64 140, !7, i64 152, !20, i64 160, !24, i64 168, !24, i64 169, !24, i64 170, !8, i64 171, !7, i64 176, !7, i64 184, !24, i64 192, !7, i64 200, !7, i64 208, !20, i64 216, !7, i64 224, !7, i64 232}
!41 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !42, i64 56}
!42 = !{!"_ZTSSt6locale", !7, i64 0}
!43 = !{!"_ZTSSt12__basic_fileIcE", !7, i64 0, !24, i64 8}
!44 = !{!"_ZTSSt13_Ios_Openmode", !8, i64 0}
!45 = !{!"_ZTS11__mbstate_t", !12, i64 0, !8, i64 4}
!46 = !{!47, !12, i64 988}
!47 = !{!"_ZTSN7SGTELIB16Surrogate_LOWESSE", !6, i64 0, !12, i64 988, !12, i64 992, !12, i64 996, !7, i64 1000, !7, i64 1008, !7, i64 1016, !7, i64 1024, !7, i64 1032, !7, i64 1040, !7, i64 1048, !7, i64 1056, !7, i64 1064, !17, i64 1072}
!48 = !{!47, !12, i64 996}
!49 = !{!47, !7, i64 1008}
!50 = !{!6, !12, i64 344}
!51 = !{!47, !7, i64 1016}
!52 = !{!7, !7, i64 0}
!53 = distinct !{!53, !54}
!54 = !{!"llvm.loop.mustprogress"}
!55 = !{!47, !7, i64 1000}
!56 = distinct !{!56, !54}
!57 = !{!47, !7, i64 1024}
!58 = !{!6, !12, i64 332}
!59 = distinct !{!59, !54}
!60 = !{!47, !7, i64 1032}
!61 = distinct !{!61, !54}
!62 = !{!47, !7, i64 1040}
!63 = !{!15, !15, i64 0}
!64 = !{!47, !7, i64 1064}
!65 = !{!24, !24, i64 0}
!66 = distinct !{!66, !54}
!67 = !{!47, !12, i64 992}
!68 = !{!6, !12, i64 348}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass