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

; 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_Ensemble_Stat" = type { %"class.SGTELIB::Surrogate.base", i32, i32, %"class.std::vector", ptr, ptr, %"class.SGTELIB::Matrix", i32, double, double, double, double }
%"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 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<SGTELIB::Surrogate *, std::allocator<SGTELIB::Surrogate *>>::_Vector_impl" }
%"struct.std::_Vector_base<SGTELIB::Surrogate *, std::allocator<SGTELIB::Surrogate *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SGTELIB::Surrogate *, std::allocator<SGTELIB::Surrogate *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SGTELIB::Surrogate *, std::allocator<SGTELIB::Surrogate *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.12 = external hidden unnamed_addr constant [102 x i8], align 1
@_ZTIN7SGTELIB9ExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.32 = external hidden unnamed_addr constant [60 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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 @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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 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

; 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: nounwind
declare void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

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

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat13compute_sigmaEiiRKSt6vectorIPNS_6MatrixESaIS3_EES7_S7_(ptr noundef nonnull align 8 dereferenceable(1136) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5) #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca %"class.SGTELIB::Matrix", align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator", align 1
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::allocator", align 1
  %30 = alloca i1, align 1
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %31 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store double 0.000000e+00, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 56, ptr %19) #6
  %32 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %31, i32 0, i32 2
  call void @_ZNK7SGTELIB20Surrogate_Parameters10get_weightEv(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %19, ptr noundef nonnull align 8 dereferenceable(312) %32)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %33 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %31, i32 0, i32 2
  %34 = invoke noundef i32 @_ZNK7SGTELIB20Surrogate_Parameters20get_uncertainty_typeEv(ptr noundef nonnull align 8 dereferenceable(312) %33)
          to label %35 unwind label %43

35:                                               ; preds = %6
  store i32 %34, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %178, %35
  %37 = load i32, ptr %23, align 4, !tbaa !9
  %38 = getelementptr inbounds %"class.SGTELIB::Surrogate_Ensemble_Stat", ptr %31, i32 0, i32 1
  %39 = load i32, ptr %38, align 4, !tbaa !15
  %40 = sub nsw i32 %39, 1
  %41 = icmp slt i32 %37, %40
  br i1 %41, label %47, label %42

42:                                               ; preds = %36
  store i32 2, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %181

43:                                               ; preds = %6
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %21, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %22, align 4
  br label %220

47:                                               ; preds = %36
  %48 = getelementptr inbounds %"class.SGTELIB::Surrogate_Ensemble_Stat", ptr %31, i32 0, i32 4
  %49 = load ptr, ptr %48, align 8, !tbaa !55
  %50 = load i32, ptr %23, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i8, ptr %49, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !56, !range !57, !noundef !58
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %177

55:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %56 = load i32, ptr %23, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %25, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %173, %55
  %59 = load i32, ptr %25, align 4, !tbaa !9
  %60 = getelementptr inbounds %"class.SGTELIB::Surrogate_Ensemble_Stat", ptr %31, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !15
  %62 = icmp slt i32 %59, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %58
  store i32 5, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %176

64:                                               ; preds = %58
  %65 = getelementptr inbounds %"class.SGTELIB::Surrogate_Ensemble_Stat", ptr %31, i32 0, i32 4
  %66 = load ptr, ptr %65, align 8, !tbaa !55
  %67 = load i32, ptr %25, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i8, ptr %66, i64 %68
  %70 = load i8, ptr %69, align 1, !tbaa !56, !range !57, !noundef !58
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %172

72:                                               ; preds = %64
  %73 = load i32, ptr %23, align 4, !tbaa !9
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %19, i32 noundef %73, i32 noundef %74)
          to label %76 unwind label %111

76:                                               ; preds = %72
  store double %75, ptr %16, align 8, !tbaa !11
  %77 = load i32, ptr %25, align 4, !tbaa !9
  %78 = load i32, ptr %9, align 4, !tbaa !9
  %79 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %19, i32 noundef %77, i32 noundef %78)
          to label %80 unwind label %111

80:                                               ; preds = %76
  store double %79, ptr %17, align 8, !tbaa !11
  %81 = load double, ptr %16, align 8, !tbaa !11
  %82 = getelementptr inbounds %"class.SGTELIB::Surrogate_Ensemble_Stat", ptr %31, i32 0, i32 1
  %83 = load i32, ptr %82, align 4, !tbaa !15
  %84 = sitofp i32 %83 to double
  %85 = fdiv double 1.000000e-13, %84
  %86 = fcmp ogt double %81, %85
  br i1 %86, label %87, label %171

87:                                               ; preds = %80
  %88 = load double, ptr %17, align 8, !tbaa !11
  %89 = getelementptr inbounds %"class.SGTELIB::Surrogate_Ensemble_Stat", ptr %31, i32 0, i32 1
  %90 = load i32, ptr %89, align 4, !tbaa !15
  %91 = sitofp i32 %90 to double
  %92 = fdiv double 1.000000e-13, %91
  %93 = fcmp ogt double %88, %92
  br i1 %93, label %94, label %171

94:                                               ; preds = %87
  %95 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %31, i32 0, i32 1
  %96 = load ptr, ptr %95, align 8, !tbaa !59
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = invoke noundef i32 @_ZNK7SGTELIB11TrainingSet7get_bboEi(ptr noundef nonnull align 8 dereferenceable(504) %96, i32 noundef %97)
          to label %99 unwind label %111

99:                                               ; preds = %94
  %100 = icmp eq i32 %98, 0
  br i1 %100, label %101, label %129

101:                                              ; preds = %99
  %102 = load i32, ptr %20, align 4, !tbaa !13
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %115

104:                                              ; preds = %101
  %105 = load i32, ptr %8, align 4, !tbaa !9
  %106 = load i32, ptr %23, align 4, !tbaa !9
  %107 = load i32, ptr %25, align 4, !tbaa !9
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = invoke noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat27compute_sigma_kl_obj_smoothEiiiRKSt6vectorIPNS_6MatrixESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(1136) %31, i32 noundef %105, i32 noundef %106, i32 noundef %107, ptr noundef nonnull align 8 dereferenceable(24) %108)
          to label %110 unwind label %111

110:                                              ; preds = %104
  store double %109, ptr %18, align 8, !tbaa !11
  br label %128

111:                                              ; preds = %150, %139, %129, %118, %104, %94, %76, %72
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %21, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %220

115:                                              ; preds = %101
  %116 = load i32, ptr %20, align 4, !tbaa !13
  %117 = icmp eq i32 %116, 1
  br i1 %117, label %118, label %127

118:                                              ; preds = %115
  %119 = load i32, ptr %8, align 4, !tbaa !9
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = load i32, ptr %23, align 4, !tbaa !9
  %122 = load i32, ptr %25, align 4, !tbaa !9
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = invoke noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat30compute_sigma_kl_obj_nonsmoothEiiiiRKSt6vectorIPNS_6MatrixESaIS3_EES7_(ptr noundef nonnull align 8 dereferenceable(1136) %31, i32 noundef %119, i32 noundef %120, i32 noundef %121, i32 noundef %122, ptr noundef nonnull align 8 dereferenceable(24) %123, ptr noundef nonnull align 8 dereferenceable(24) %124)
          to label %126 unwind label %111

126:                                              ; preds = %118
  store double %125, ptr %18, align 8, !tbaa !11
  br label %127

127:                                              ; preds = %126, %115
  br label %128

128:                                              ; preds = %127, %110
  br label %129

129:                                              ; preds = %128, %99
  %130 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %31, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !59
  %132 = load i32, ptr %9, align 4, !tbaa !9
  %133 = invoke noundef i32 @_ZNK7SGTELIB11TrainingSet7get_bboEi(ptr noundef nonnull align 8 dereferenceable(504) %131, i32 noundef %132)
          to label %134 unwind label %111

134:                                              ; preds = %129
  %135 = icmp eq i32 %133, 1
  br i1 %135, label %136, label %160

136:                                              ; preds = %134
  %137 = load i32, ptr %20, align 4, !tbaa !13
  %138 = icmp eq i32 %137, 0
  br i1 %138, label %139, label %147

139:                                              ; preds = %136
  %140 = load i32, ptr %8, align 4, !tbaa !9
  %141 = load i32, ptr %9, align 4, !tbaa !9
  %142 = load i32, ptr %23, align 4, !tbaa !9
  %143 = load i32, ptr %25, align 4, !tbaa !9
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = invoke noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat27compute_sigma_kl_con_smoothEiiiiRKSt6vectorIPNS_6MatrixESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(1136) %31, i32 noundef %140, i32 noundef %141, i32 noundef %142, i32 noundef %143, ptr noundef nonnull align 8 dereferenceable(24) %144)
          to label %146 unwind label %111

146:                                              ; preds = %139
  store double %145, ptr %18, align 8, !tbaa !11
  br label %159

147:                                              ; preds = %136
  %148 = load i32, ptr %20, align 4, !tbaa !13
  %149 = icmp eq i32 %148, 1
  br i1 %149, label %150, label %158

150:                                              ; preds = %147
  %151 = load i32, ptr %8, align 4, !tbaa !9
  %152 = load i32, ptr %9, align 4, !tbaa !9
  %153 = load i32, ptr %23, align 4, !tbaa !9
  %154 = load i32, ptr %25, align 4, !tbaa !9
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = invoke noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat30compute_sigma_kl_con_nonsmoothEiiiiRKSt6vectorIPNS_6MatrixESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(1136) %31, i32 noundef %151, i32 noundef %152, i32 noundef %153, i32 noundef %154, ptr noundef nonnull align 8 dereferenceable(24) %155)
          to label %157 unwind label %111

157:                                              ; preds = %150
  store double %156, ptr %18, align 8, !tbaa !11
  br label %158

158:                                              ; preds = %157, %147
  br label %159

159:                                              ; preds = %158, %146
  br label %160

160:                                              ; preds = %159, %134
  %161 = load double, ptr %16, align 8, !tbaa !11
  %162 = load double, ptr %17, align 8, !tbaa !11
  %163 = fmul double %161, %162
  %164 = load double, ptr %18, align 8, !tbaa !11
  %165 = load double, ptr %14, align 8, !tbaa !11
  %166 = call double @llvm.fmuladd.f64(double %163, double %164, double %165)
  store double %166, ptr %14, align 8, !tbaa !11
  %167 = load double, ptr %16, align 8, !tbaa !11
  %168 = load double, ptr %17, align 8, !tbaa !11
  %169 = load double, ptr %15, align 8, !tbaa !11
  %170 = call double @llvm.fmuladd.f64(double %167, double %168, double %169)
  store double %170, ptr %15, align 8, !tbaa !11
  br label %171

171:                                              ; preds = %160, %87, %80
  br label %172

172:                                              ; preds = %171, %64
  br label %173

173:                                              ; preds = %172
  %174 = load i32, ptr %25, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %25, align 4, !tbaa !9
  br label %58, !llvm.loop !60

176:                                              ; preds = %63
  br label %177

177:                                              ; preds = %176, %47
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %23, align 4, !tbaa !9
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %23, align 4, !tbaa !9
  br label %36, !llvm.loop !62

181:                                              ; preds = %42
  %182 = load double, ptr %15, align 8, !tbaa !11
  %183 = fcmp olt double %182, 1.000000e-13
  br i1 %183, label %184, label %206

184:                                              ; preds = %181
  store i1 true, ptr %30, align 1
  %185 = call ptr @__cxa_allocate_exception(i64 112) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %186 unwind label %189

186:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef @.str.32, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %187 unwind label %193

187:                                              ; preds = %186
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %185, ptr noundef nonnull align 8 dereferenceable(32) %26, i32 noundef 1094, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %188 unwind label %197

188:                                              ; preds = %187
  store i1 false, ptr %30, align 1
  invoke void @__cxa_throw(ptr %185, ptr @_ZTIN7SGTELIB9ExceptionE, ptr @_ZN7SGTELIB9ExceptionD2Ev) #7
          to label %226 unwind label %197

189:                                              ; preds = %184
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %21, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %22, align 4
  br label %202

193:                                              ; preds = %186
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %21, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %22, align 4
  br label %201

197:                                              ; preds = %188, %187
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %21, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %22, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  br label %201

201:                                              ; preds = %197, %193
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %202

202:                                              ; preds = %201, %189
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  %203 = load i1, ptr %30, align 1
  br i1 %203, label %204, label %205

204:                                              ; preds = %202
  call void @__cxa_free_exception(ptr %185) #6
  br label %205

205:                                              ; preds = %204, %202
  br label %220

206:                                              ; preds = %181
  %207 = load double, ptr %14, align 8, !tbaa !11
  %208 = fcmp olt double %207, 1.000000e-13
  br i1 %208, label %209, label %210

209:                                              ; preds = %206
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  br label %214

210:                                              ; preds = %206
  %211 = load double, ptr %14, align 8, !tbaa !11
  %212 = load double, ptr %15, align 8, !tbaa !11
  %213 = fdiv double %211, %212
  store double %213, ptr %13, align 8, !tbaa !11
  br label %214

214:                                              ; preds = %210, %209
  br label %215

215:                                              ; preds = %214
  %216 = getelementptr inbounds %"class.SGTELIB::Surrogate_Ensemble_Stat", ptr %31, i32 0, i32 9
  %217 = load double, ptr %216, align 8, !tbaa !63
  %218 = load double, ptr %13, align 8, !tbaa !11
  %219 = fmul double %217, %218
  store i32 1, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %19) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  ret double %219

220:                                              ; preds = %205, %111, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %19) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %221

221:                                              ; preds = %220
  %222 = load ptr, ptr %21, align 8
  %223 = load i32, ptr %22, align 4
  %224 = insertvalue { ptr, i32 } poison, ptr %222, 0
  %225 = insertvalue { ptr, i32 } %224, i32 %223, 1
  resume { ptr, i32 } %225

226:                                              ; preds = %188
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat27compute_sigma_kl_obj_smoothEiiiRKSt6vectorIPNS_6MatrixESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(1136), i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat30compute_sigma_kl_obj_nonsmoothEiiiiRKSt6vectorIPNS_6MatrixESaIS3_EES7_(ptr noundef nonnull align 8 dereferenceable(1136), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat27compute_sigma_kl_con_smoothEiiiiRKSt6vectorIPNS_6MatrixESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(1136), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat30compute_sigma_kl_con_nonsmoothEiiiiRKSt6vectorIPNS_6MatrixESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(1136), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN7SGTELIB13uncertainty_tE", !7, i64 0}
!15 = !{!16, !10, i64 988}
!16 = !{!"_ZTSN7SGTELIB23Surrogate_Ensemble_StatE", !17, i64 0, !10, i64 988, !10, i64 992, !51, i64 1000, !6, i64 1024, !6, i64 1032, !23, i64 1040, !10, i64 1096, !12, i64 1104, !12, i64 1112, !12, i64 1120, !12, i64 1128}
!17 = !{!"_ZTSN7SGTELIB9SurrogateE", !6, i64 8, !18, i64 16, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !29, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !30, i64 392, !35, i64 416, !12, i64 464, !43, i64 472, !29, i64 984}
!18 = !{!"_ZTSN7SGTELIB20Surrogate_ParametersE", !19, i64 8, !10, i64 12, !20, i64 16, !21, i64 20, !20, i64 24, !12, i64 32, !20, i64 40, !12, i64 48, !20, i64 56, !22, i64 60, !20, i64 64, !23, i64 72, !27, i64 128, !20, i64 132, !14, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !23, i64 176, !20, i64 232, !28, i64 236, !24, i64 240, !24, i64 272, !10, i64 304, !10, i64 308}
!19 = !{!"_ZTSN7SGTELIB7model_tE", !7, i64 0}
!20 = !{!"_ZTSN7SGTELIB14param_status_tE", !7, i64 0}
!21 = !{!"_ZTSN7SGTELIB8kernel_tE", !7, i64 0}
!22 = !{!"_ZTSN7SGTELIB10distance_tE", !7, i64 0}
!23 = !{!"_ZTSN7SGTELIB6MatrixE", !24, i64 8, !10, i64 40, !10, i64 44, !6, i64 48}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !26, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!26 = !{!"long", !7, i64 0}
!27 = !{!"_ZTSN7SGTELIB8weight_tE", !7, i64 0}
!28 = !{!"_ZTSN7SGTELIB8metric_tE", !7, i64 0}
!29 = !{!"bool", !7, i64 0}
!30 = !{!"_ZTSNSt7__cxx114listIiSaIiEEE", !31, i64 0}
!31 = !{!"_ZTSNSt7__cxx1110_List_baseIiSaIiEEE", !32, i64 0}
!32 = !{!"_ZTSNSt7__cxx1110_List_baseIiSaIiEE10_List_implE", !33, i64 0}
!33 = !{!"_ZTSNSt8__detail17_List_node_headerE", !34, i64 0, !26, i64 16}
!34 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!35 = !{!"_ZTSSt3mapIN7SGTELIB8metric_tENS0_6MatrixESt4lessIS1_ESaISt4pairIKS1_S2_EEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeIN7SGTELIB8metric_tESt4pairIKS1_NS0_6MatrixEESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeIN7SGTELIB8metric_tESt4pairIKS1_NS0_6MatrixEESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !38, i64 0, !40, i64 8}
!38 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN7SGTELIB8metric_tEEE", !39, i64 0}
!39 = !{!"_ZTSSt4lessIN7SGTELIB8metric_tEE"}
!40 = !{!"_ZTSSt15_Rb_tree_header", !41, i64 0, !26, i64 32}
!41 = !{!"_ZTSSt18_Rb_tree_node_base", !42, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!42 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!43 = !{!"_ZTSSt14basic_ofstreamIcSt11char_traitsIcEE", !44, i64 0, !45, i64 8}
!44 = !{!"_ZTSSo"}
!45 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !46, i64 0, !7, i64 64, !48, i64 104, !49, i64 120, !50, i64 124, !50, i64 132, !50, i64 140, !6, i64 152, !26, i64 160, !29, i64 168, !29, i64 169, !29, i64 170, !7, i64 171, !6, i64 176, !6, i64 184, !29, i64 192, !6, i64 200, !6, i64 208, !26, i64 216, !6, i64 224, !6, i64 232}
!46 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !47, i64 56}
!47 = !{!"_ZTSSt6locale", !6, i64 0}
!48 = !{!"_ZTSSt12__basic_fileIcE", !6, i64 0, !29, i64 8}
!49 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!50 = !{!"_ZTS11__mbstate_t", !10, i64 0, !7, i64 4}
!51 = !{!"_ZTSSt6vectorIPN7SGTELIB9SurrogateESaIS2_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseIPN7SGTELIB9SurrogateESaIS2_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIPN7SGTELIB9SurrogateESaIS2_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIPN7SGTELIB9SurrogateESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!55 = !{!16, !6, i64 1024}
!56 = !{!29, !29, i64 0}
!57 = !{i8 0, i8 2}
!58 = !{}
!59 = !{!17, !6, i64 8}
!60 = distinct !{!60, !61}
!61 = !{!"llvm.loop.mustprogress"}
!62 = distinct !{!62, !61}
!63 = !{!16, !12, i64 1112}


; 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.12 = external hidden unnamed_addr constant [102 x i8], align 1
@_ZTIN7SGTELIB9ExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.32 = external hidden unnamed_addr constant [60 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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 @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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 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

; 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: nounwind
declare void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat13compute_sigmaEiiRKSt6vectorIPNS_6MatrixESaIS3_EES7_S7_(ptr noundef nonnull align 8 dereferenceable(1136) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.SGTELIB::Matrix", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #6
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  call void @_ZNK7SGTELIB20Surrogate_Parameters10get_weightEv(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %7, ptr noundef nonnull align 8 dereferenceable(312) %12)
  %13 = call noundef i32 @_ZNK7SGTELIB20Surrogate_Parameters20get_uncertainty_typeEv(ptr noundef nonnull align 8 dereferenceable(312) %12)
  %14 = getelementptr inbounds i8, ptr %0, i64 988
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 1
  br i1 %16, label %.lr.ph103, label %._crit_edge.thread

.lr.ph103:                                        ; preds = %6
  %17 = getelementptr inbounds i8, ptr %0, i64 1024
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  br label %21

._crit_edge:                                      ; preds = %.loopexit
  %19 = extractelement <2 x double> %84, i64 1
  %20 = fcmp olt double %19, 1.000000e-13
  br i1 %20, label %._crit_edge.thread, label %99

21:                                               ; preds = %.lr.ph103, %.loopexit
  %22 = phi i32 [ %15, %.lr.ph103 ], [ %83, %.loopexit ]
  %indvars.iv109 = phi i64 [ 0, %.lr.ph103 ], [ %28, %.loopexit ]
  %indvars.iv = phi i64 [ 1, %.lr.ph103 ], [ %indvars.iv.next, %.loopexit ]
  %.063100 = phi double [ 0.000000e+00, %.lr.ph103 ], [ %.5, %.loopexit ]
  %23 = phi <2 x double> [ zeroinitializer, %.lr.ph103 ], [ %84, %.loopexit ]
  %24 = load ptr, ptr %17, align 8, !tbaa !51
  %25 = getelementptr inbounds i8, ptr %24, i64 %indvars.iv109
  %26 = load i8, ptr %25, align 1, !tbaa !52, !range !53, !noundef !54
  %27 = trunc nuw i8 %26 to i1
  %28 = add nuw nsw i64 %indvars.iv109, 1
  %29 = sext i32 %22 to i64
  %30 = icmp slt i64 %28, %29
  %or.cond117 = select i1 %27, i1 %30, i1 false
  br i1 %or.cond117, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %21
  %31 = trunc nuw nsw i64 %indvars.iv109 to i32
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %77
  %32 = phi i32 [ %22, %.lr.ph.preheader ], [ %78, %77 ]
  %33 = phi i32 [ %22, %.lr.ph.preheader ], [ %79, %77 ]
  %indvars.iv106 = phi i64 [ %indvars.iv, %.lr.ph.preheader ], [ %indvars.iv.next107, %77 ]
  %.16494 = phi double [ %.063100, %.lr.ph.preheader ], [ %.4, %77 ]
  %34 = phi <2 x double> [ %23, %.lr.ph.preheader ], [ %80, %77 ]
  %35 = load ptr, ptr %17, align 8, !tbaa !51
  %36 = getelementptr inbounds i8, ptr %35, i64 %indvars.iv106
  %37 = load i8, ptr %36, align 1, !tbaa !52, !range !53, !noundef !54
  %38 = trunc nuw i8 %37 to i1
  br i1 %38, label %39, label %77

39:                                               ; preds = %.lr.ph
  %40 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %31, i32 noundef %2)
  %41 = trunc nuw nsw i64 %indvars.iv106 to i32
  %42 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %41, i32 noundef %2)
  %43 = load i32, ptr %14, align 4, !tbaa !5
  %44 = sitofp i32 %43 to double
  %45 = fdiv double 1.000000e-13, %44
  %46 = fcmp ogt double %40, %45
  %47 = fcmp ogt double %42, %45
  %or.cond = and i1 %46, %47
  br i1 %or.cond, label %48, label %77

48:                                               ; preds = %39
  %49 = load ptr, ptr %18, align 8, !tbaa !55
  %50 = invoke noundef i32 @_ZNK7SGTELIB11TrainingSet7get_bboEi(ptr noundef nonnull align 8 dereferenceable(504) %49, i32 noundef %2)
          to label %51 unwind label %56

51:                                               ; preds = %48
  %52 = icmp eq i32 %50, 0
  br i1 %52, label %53, label %60

53:                                               ; preds = %51
  switch i32 %13, label %60 [
    i32 0, label %54
    i32 1, label %58
  ]

54:                                               ; preds = %53
  %55 = invoke noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat27compute_sigma_kl_obj_smoothEiiiRKSt6vectorIPNS_6MatrixESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(1136) %0, i32 noundef %1, i32 noundef %31, i32 noundef %41, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %60 unwind label %56

56:                                               ; preds = %68, %66, %60, %58, %54, %48
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %106

58:                                               ; preds = %53
  %59 = invoke noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat30compute_sigma_kl_obj_nonsmoothEiiiiRKSt6vectorIPNS_6MatrixESaIS3_EES7_(ptr noundef nonnull align 8 dereferenceable(1136) %0, i32 noundef %1, i32 noundef %2, i32 noundef %31, i32 noundef %41, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %60 unwind label %56

60:                                               ; preds = %58, %53, %54, %51
  %.265 = phi double [ %.16494, %51 ], [ %55, %54 ], [ %.16494, %53 ], [ %59, %58 ]
  %61 = load ptr, ptr %18, align 8, !tbaa !55
  %62 = invoke noundef i32 @_ZNK7SGTELIB11TrainingSet7get_bboEi(ptr noundef nonnull align 8 dereferenceable(504) %61, i32 noundef %2)
          to label %63 unwind label %56

63:                                               ; preds = %60
  %64 = icmp eq i32 %62, 1
  br i1 %64, label %65, label %70

65:                                               ; preds = %63
  switch i32 %13, label %70 [
    i32 0, label %66
    i32 1, label %68
  ]

66:                                               ; preds = %65
  %67 = invoke noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat27compute_sigma_kl_con_smoothEiiiiRKSt6vectorIPNS_6MatrixESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(1136) %0, i32 noundef %1, i32 noundef %2, i32 noundef %31, i32 noundef %41, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %70 unwind label %56

68:                                               ; preds = %65
  %69 = invoke noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat30compute_sigma_kl_con_nonsmoothEiiiiRKSt6vectorIPNS_6MatrixESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(1136) %0, i32 noundef %1, i32 noundef %2, i32 noundef %31, i32 noundef %41, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %70 unwind label %56

70:                                               ; preds = %68, %65, %66, %63
  %.3 = phi double [ %.265, %63 ], [ %67, %66 ], [ %.265, %65 ], [ %69, %68 ]
  %71 = fmul double %40, %42
  %72 = insertelement <2 x double> poison, double %71, i64 0
  %73 = insertelement <2 x double> %72, double %40, i64 1
  %74 = insertelement <2 x double> poison, double %.3, i64 0
  %75 = insertelement <2 x double> %74, double %42, i64 1
  %76 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %73, <2 x double> %75, <2 x double> %34)
  %.pre = load i32, ptr %14, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %.lr.ph, %70, %39
  %78 = phi i32 [ %.pre, %70 ], [ %43, %39 ], [ %32, %.lr.ph ]
  %79 = phi i32 [ %.pre, %70 ], [ %43, %39 ], [ %33, %.lr.ph ]
  %.4 = phi double [ %.3, %70 ], [ %.16494, %39 ], [ %.16494, %.lr.ph ]
  %80 = phi <2 x double> [ %76, %70 ], [ %34, %39 ], [ %34, %.lr.ph ]
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %81 = trunc nuw i64 %indvars.iv.next107 to i32
  %82 = icmp sgt i32 %79, %81
  br i1 %82, label %.lr.ph, label %.loopexit, !llvm.loop !56

.loopexit:                                        ; preds = %77, %21
  %83 = phi i32 [ %22, %21 ], [ %78, %77 ]
  %.5 = phi double [ %.063100, %21 ], [ %.4, %77 ]
  %84 = phi <2 x double> [ %23, %21 ], [ %80, %77 ]
  %85 = add nsw i32 %83, -1
  %86 = sext i32 %85 to i64
  %87 = icmp slt i64 %28, %86
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 %87, label %21, label %._crit_edge, !llvm.loop !58

._crit_edge.thread:                               ; preds = %6, %._crit_edge
  %88 = call ptr @__cxa_allocate_exception(i64 112) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %89 unwind label %.thread

89:                                               ; preds = %._crit_edge.thread
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.32, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %90 unwind label %93

90:                                               ; preds = %89
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %88, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 1094, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %91 unwind label %95

91:                                               ; preds = %90
  invoke void @__cxa_throw(ptr nonnull %88, ptr nonnull @_ZTIN7SGTELIB9ExceptionE, ptr nonnull @_ZN7SGTELIB9ExceptionD2Ev) #7
          to label %107 unwind label %95

.thread:                                          ; preds = %._crit_edge.thread
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %98

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

95:                                               ; preds = %91, %90
  %.0 = phi i1 [ false, %91 ], [ true, %90 ]
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %97

97:                                               ; preds = %93, %95
  %.pn = phi { ptr, i32 } [ %96, %95 ], [ %94, %93 ]
  %.1 = phi i1 [ %.0, %95 ], [ true, %93 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br i1 %.1, label %98, label %106

98:                                               ; preds = %.thread, %97
  %.pn.pn85 = phi { ptr, i32 } [ %92, %.thread ], [ %.pn, %97 ]
  call void @__cxa_free_exception(ptr %88) #6
  br label %106

99:                                               ; preds = %._crit_edge
  %100 = extractelement <2 x double> %84, i64 0
  %101 = fcmp olt double %100, 1.000000e-13
  %102 = fdiv double %100, %19
  %.062 = select i1 %101, double 0.000000e+00, double %102
  %103 = getelementptr inbounds i8, ptr %0, i64 1112
  %104 = load double, ptr %103, align 8, !tbaa !59
  %105 = fmul double %.062, %104
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #6
  ret double %105

106:                                              ; preds = %97, %98, %56
  %.pn81 = phi { ptr, i32 } [ %57, %56 ], [ %.pn.pn85, %98 ], [ %.pn, %97 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #6
  resume { ptr, i32 } %.pn81

107:                                              ; preds = %91
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat27compute_sigma_kl_obj_smoothEiiiRKSt6vectorIPNS_6MatrixESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(1136), i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat30compute_sigma_kl_obj_nonsmoothEiiiiRKSt6vectorIPNS_6MatrixESaIS3_EES7_(ptr noundef nonnull align 8 dereferenceable(1136), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat27compute_sigma_kl_con_smoothEiiiiRKSt6vectorIPNS_6MatrixESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(1136), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7SGTELIB23Surrogate_Ensemble_Stat30compute_sigma_kl_con_nonsmoothEiiiiRKSt6vectorIPNS_6MatrixESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(1136), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

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

!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, !13, i64 988}
!6 = !{!"_ZTSN7SGTELIB23Surrogate_Ensemble_StatE", !7, i64 0, !13, i64 988, !13, i64 992, !47, i64 1000, !8, i64 1024, !8, i64 1032, !18, i64 1040, !13, i64 1096, !16, i64 1104, !16, i64 1112, !16, i64 1120, !16, i64 1128}
!7 = !{!"_ZTSN7SGTELIB9SurrogateE", !8, 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, !8, i64 360, !8, i64 368, !8, i64 376, !8, i64 384, !26, i64 392, !31, i64 416, !16, i64 464, !39, i64 472, !25, i64 984}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!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", !9, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!"_ZTSN7SGTELIB14param_status_tE", !9, i64 0}
!15 = !{!"_ZTSN7SGTELIB8kernel_tE", !9, i64 0}
!16 = !{!"double", !9, i64 0}
!17 = !{!"_ZTSN7SGTELIB10distance_tE", !9, i64 0}
!18 = !{!"_ZTSN7SGTELIB6MatrixE", !19, i64 8, !13, i64 40, !13, i64 44, !8, i64 48}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !21, i64 8, !9, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !8, i64 0}
!21 = !{!"long", !9, i64 0}
!22 = !{!"_ZTSN7SGTELIB8weight_tE", !9, i64 0}
!23 = !{!"_ZTSN7SGTELIB13uncertainty_tE", !9, i64 0}
!24 = !{!"_ZTSN7SGTELIB8metric_tE", !9, i64 0}
!25 = !{!"bool", !9, 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", !8, i64 0, !8, 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, !8, i64 8, !8, i64 16, !8, i64 24}
!38 = !{!"_ZTSSt14_Rb_tree_color", !9, i64 0}
!39 = !{!"_ZTSSt14basic_ofstreamIcSt11char_traitsIcEE", !40, i64 0, !41, i64 8}
!40 = !{!"_ZTSSo"}
!41 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !42, i64 0, !9, i64 64, !44, i64 104, !45, i64 120, !46, i64 124, !46, i64 132, !46, i64 140, !8, i64 152, !21, i64 160, !25, i64 168, !25, i64 169, !25, i64 170, !9, i64 171, !8, i64 176, !8, i64 184, !25, i64 192, !8, i64 200, !8, i64 208, !21, i64 216, !8, i64 224, !8, i64 232}
!42 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !43, i64 56}
!43 = !{!"_ZTSSt6locale", !8, i64 0}
!44 = !{!"_ZTSSt12__basic_fileIcE", !8, i64 0, !25, i64 8}
!45 = !{!"_ZTSSt13_Ios_Openmode", !9, i64 0}
!46 = !{!"_ZTS11__mbstate_t", !13, i64 0, !9, i64 4}
!47 = !{!"_ZTSSt6vectorIPN7SGTELIB9SurrogateESaIS2_EE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseIPN7SGTELIB9SurrogateESaIS2_EE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIPN7SGTELIB9SurrogateESaIS2_EE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIPN7SGTELIB9SurrogateESaIS2_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!51 = !{!6, !8, i64 1024}
!52 = !{!25, !25, i64 0}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!7, !8, i64 8}
!56 = distinct !{!56, !57}
!57 = !{!"llvm.loop.mustprogress"}
!58 = distinct !{!58, !57}
!59 = !{!6, !16, i64 1112}


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