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

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.SGTELIB::Matrix" = type { ptr, %"class.std::__cxx11::basic_string", i32, i32, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.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" }
%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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.23 = external hidden unnamed_addr constant [88 x i8], align 1
@_ZTIN7SGTELIB9ExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.45 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [25 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

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

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

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

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

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

declare void @_ZN7SGTELIB20Surrogate_Parameters5checkEv(ptr noundef nonnull align 8 dereferenceable(312)) #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7SGTELIB9Surrogate19optimize_parametersEv(ptr noundef nonnull align 8 dereferenceable(985) %0) #5 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 double, align 8
  %10 = alloca i8, align 1
  %11 = alloca %"class.SGTELIB::Matrix", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.SGTELIB::Matrix", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.SGTELIB::Matrix", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator", align 1
  %28 = alloca i1, align 1
  %29 = alloca i32, align 4
  %30 = alloca %"class.SGTELIB::Matrix", align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator", align 1
  %33 = alloca i32, align 4
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca i32, align 4
  %37 = alloca %"class.SGTELIB::Matrix", align 8
  %38 = alloca %"class.SGTELIB::Matrix", align 8
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca %"class.std::allocator", align 1
  %41 = alloca double, align 8
  %42 = alloca double, align 8
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  %45 = alloca i8, align 1
  %46 = alloca double, align 8
  %47 = alloca %"class.SGTELIB::Matrix", align 8
  %48 = alloca %"class.SGTELIB::Matrix", align 8
  %49 = alloca %"class.SGTELIB::Matrix", align 8
  %50 = alloca %"class.std::__cxx11::basic_string", align 8
  %51 = alloca %"class.std::allocator", align 1
  %52 = alloca i8, align 1
  %53 = alloca i32, align 4
  %54 = alloca %"class.SGTELIB::Matrix", align 8
  %55 = alloca %"class.std::__cxx11::basic_string", align 8
  %56 = alloca %"class.std::allocator", align 1
  %57 = alloca %"class.SGTELIB::Matrix", align 8
  %58 = alloca %"class.std::__cxx11::basic_string", align 8
  %59 = alloca %"class.std::allocator", align 1
  %60 = alloca double, align 8
  %61 = alloca double, align 8
  %62 = alloca %"class.std::__cxx11::basic_string", align 8
  %63 = alloca %"class.std::allocator", align 1
  %64 = alloca %"class.std::__cxx11::basic_string", align 8
  %65 = alloca %"class.std::allocator", align 1
  %66 = alloca i1, align 1
  %67 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %68 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #11
  %69 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %68, i32 0, i32 2
  %70 = call noundef i32 @_ZN7SGTELIB20Surrogate_Parameters29get_nb_parameter_optimizationEv(ptr noundef nonnull align 8 dereferenceable(312) %69)
  store i32 %70, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #11
  %71 = load i32, ptr %4, align 4, !tbaa !9
  %72 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %68, i32 0, i32 2
  %73 = call noundef i32 @_ZNK7SGTELIB20Surrogate_Parameters10get_budgetEv(ptr noundef nonnull align 8 dereferenceable(312) %72)
  %74 = mul nsw i32 %71, %73
  store i32 %74, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #11
  store i8 0, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 56, ptr %11) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.45, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %75 unwind label %119

75:                                               ; preds = %1
  %76 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 1, i32 noundef %76)
          to label %77 unwind label %123

77:                                               ; preds = %75
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr %16) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.46, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %78 unwind label %128

78:                                               ; preds = %77
  %79 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %16, ptr noundef nonnull align 8 dereferenceable(32) %17, i32 noundef 1, i32 noundef %79)
          to label %80 unwind label %132

80:                                               ; preds = %78
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #11
  %81 = load i32, ptr %4, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %82) #12
          to label %84 unwind label %137

84:                                               ; preds = %80
  store ptr %83, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #11
  %85 = load i32, ptr %4, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %86, i64 4)
  %88 = extractvalue { i64, i1 } %87, 1
  %89 = extractvalue { i64, i1 } %87, 0
  %90 = select i1 %88, i64 -1, i64 %89
  %91 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %90) #12
          to label %92 unwind label %141

92:                                               ; preds = %84
  store ptr %91, ptr %20, align 8, !tbaa !5
  %93 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %68, i32 0, i32 2
  %94 = load ptr, ptr %20, align 8, !tbaa !5
  %95 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZN7SGTELIB20Surrogate_Parameters12get_x_boundsEPNS_6MatrixES2_PNS_14param_domain_tEPb(ptr noundef nonnull align 8 dereferenceable(312) %93, ptr noundef %11, ptr noundef %16, ptr noundef %94, ptr noundef %95)
          to label %96 unwind label %141

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 56, ptr %21) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @.str.47, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %97 unwind label %145

97:                                               ; preds = %96
  %98 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef 1, i32 noundef %98)
          to label %99 unwind label %149

99:                                               ; preds = %97
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #11
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %222, %99
  %101 = load i32, ptr %6, align 4, !tbaa !9
  %102 = load i32, ptr %4, align 4, !tbaa !9
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %104, label %225

104:                                              ; preds = %100
  %105 = load ptr, ptr %20, align 8, !tbaa !5
  %106 = load i32, ptr %6, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i32, ptr %105, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !13
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %111, label %198

111:                                              ; preds = %104
  %112 = load ptr, ptr %19, align 8, !tbaa !5
  %113 = load i32, ptr %6, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i8, ptr %112, i64 %114
  %116 = load i8, ptr %115, align 1, !tbaa !11, !range !15, !noundef !16
  %117 = trunc i8 %116 to i1
  br i1 %117, label %118, label %154

118:                                              ; preds = %111
  store double 1.000000e+00, ptr %9, align 8, !tbaa !17
  br label %169

119:                                              ; preds = %1
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %14, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %15, align 4
  br label %127

123:                                              ; preds = %75
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %14, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  br label %127

127:                                              ; preds = %123, %119
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #11
  br label %768

128:                                              ; preds = %77
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %14, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %15, align 4
  br label %136

132:                                              ; preds = %78
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %14, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  br label %136

136:                                              ; preds = %132, %128
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #11
  br label %767

137:                                              ; preds = %80
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %14, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %15, align 4
  br label %766

141:                                              ; preds = %92, %84
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %14, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %15, align 4
  br label %765

145:                                              ; preds = %96
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %14, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %15, align 4
  br label %153

149:                                              ; preds = %97
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %14, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  br label %153

153:                                              ; preds = %149, %145
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #11
  br label %764

154:                                              ; preds = %111
  %155 = load i32, ptr %6, align 4, !tbaa !9
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %16, i32 noundef %155)
          to label %157 unwind label %165

157:                                              ; preds = %154
  %158 = load double, ptr %156, align 8, !tbaa !17
  %159 = load i32, ptr %6, align 4, !tbaa !9
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %11, i32 noundef %159)
          to label %161 unwind label %165

161:                                              ; preds = %157
  %162 = load double, ptr %160, align 8, !tbaa !17
  %163 = fsub double %158, %162
  %164 = fdiv double %163, 5.000000e+00
  store double %164, ptr %9, align 8, !tbaa !17
  br label %169

165:                                              ; preds = %217, %213, %209, %205, %169, %157, %154
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %14, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %15, align 4
  br label %763

169:                                              ; preds = %161, %118
  %170 = load i32, ptr %6, align 4, !tbaa !9
  %171 = load double, ptr %9, align 8, !tbaa !17
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %21, i32 noundef 0, i32 noundef %170, double noundef %171)
          to label %172 unwind label %165

172:                                              ; preds = %169
  %173 = load double, ptr %9, align 8, !tbaa !17
  %174 = fcmp olt double %173, 1.000000e-13
  br i1 %174, label %175, label %197

175:                                              ; preds = %172
  store i1 true, ptr %28, align 1
  %176 = call ptr @__cxa_allocate_exception(i64 112) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef @.str.23, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %177 unwind label %180

177:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef @.str.48, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %178 unwind label %184

178:                                              ; preds = %177
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %176, ptr noundef nonnull align 8 dereferenceable(32) %24, i32 noundef 1283, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %179 unwind label %188

179:                                              ; preds = %178
  store i1 false, ptr %28, align 1
  invoke void @__cxa_throw(ptr %176, ptr @_ZTIN7SGTELIB9ExceptionE, ptr @_ZN7SGTELIB9ExceptionD2Ev) #13
          to label %774 unwind label %188

180:                                              ; preds = %175
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %14, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %15, align 4
  br label %193

184:                                              ; preds = %177
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %14, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %15, align 4
  br label %192

188:                                              ; preds = %179, %178
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %14, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #11
  br label %192

192:                                              ; preds = %188, %184
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  br label %193

193:                                              ; preds = %192, %180
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #11
  %194 = load i1, ptr %28, align 1
  br i1 %194, label %195, label %196

195:                                              ; preds = %193
  call void @__cxa_free_exception(ptr %176) #11
  br label %196

196:                                              ; preds = %195, %193
  br label %763

197:                                              ; preds = %172
  br label %221

198:                                              ; preds = %104
  %199 = load ptr, ptr %20, align 8, !tbaa !5
  %200 = load i32, ptr %6, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds i32, ptr %199, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !13
  %204 = icmp eq i32 %203, 3
  br i1 %204, label %205, label %217

205:                                              ; preds = %198
  %206 = load i32, ptr %6, align 4, !tbaa !9
  %207 = load i32, ptr %6, align 4, !tbaa !9
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %16, i32 noundef %207)
          to label %209 unwind label %165

209:                                              ; preds = %205
  %210 = load double, ptr %208, align 8, !tbaa !17
  %211 = load i32, ptr %6, align 4, !tbaa !9
  %212 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %11, i32 noundef %211)
          to label %213 unwind label %165

213:                                              ; preds = %209
  %214 = load double, ptr %212, align 8, !tbaa !17
  %215 = fsub double %210, %214
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %21, i32 noundef 0, i32 noundef %206, double noundef %215)
          to label %216 unwind label %165

216:                                              ; preds = %213
  br label %220

217:                                              ; preds = %198
  %218 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %21, i32 noundef 0, i32 noundef %218, double noundef 1.000000e+00)
          to label %219 unwind label %165

219:                                              ; preds = %217
  br label %220

220:                                              ; preds = %219, %216
  br label %221

221:                                              ; preds = %220, %197
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %6, align 4, !tbaa !9
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %6, align 4, !tbaa !9
  br label %100, !llvm.loop !19

225:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #11
  %226 = load i32, ptr %5, align 4, !tbaa !9
  %227 = sdiv i32 %226, 10
  store i32 %227, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %30) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.49, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %228 unwind label %274

228:                                              ; preds = %225
  %229 = load i32, ptr %29, align 4, !tbaa !9
  %230 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %30, ptr noundef nonnull align 8 dereferenceable(32) %31, i32 noundef %229, i32 noundef %230)
          to label %231 unwind label %278

231:                                              ; preds = %228
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #11
  store i32 1, ptr %33, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %232

232:                                              ; preds = %307, %231
  %233 = load i32, ptr %7, align 4, !tbaa !9
  %234 = load i32, ptr %4, align 4, !tbaa !9
  %235 = icmp slt i32 %233, %234
  br i1 %235, label %236, label %311

236:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #11
  %237 = load i32, ptr %7, align 4, !tbaa !9
  %238 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %11, i32 noundef %237)
          to label %239 unwind label %283

239:                                              ; preds = %236
  %240 = load double, ptr %238, align 8, !tbaa !17
  store double %240, ptr %34, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #11
  %241 = load i32, ptr %7, align 4, !tbaa !9
  %242 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %16, i32 noundef %241)
          to label %243 unwind label %287

243:                                              ; preds = %239
  %244 = load double, ptr %242, align 8, !tbaa !17
  store double %244, ptr %35, align 8, !tbaa !17
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %245

245:                                              ; preds = %303, %243
  %246 = load i32, ptr %6, align 4, !tbaa !9
  %247 = load i32, ptr %29, align 4, !tbaa !9
  %248 = icmp slt i32 %246, %247
  br i1 %248, label %249, label %306

249:                                              ; preds = %245
  %250 = load i32, ptr %6, align 4, !tbaa !9
  %251 = sub nsw i32 %250, 1
  %252 = sitofp i32 %251 to double
  %253 = load i32, ptr %29, align 4, !tbaa !9
  %254 = sub nsw i32 %253, 2
  %255 = sitofp i32 %254 to double
  %256 = fdiv double %252, %255
  store double %256, ptr %9, align 8, !tbaa !17
  %257 = load ptr, ptr %19, align 8, !tbaa !5
  %258 = load i32, ptr %7, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds i8, ptr %257, i64 %259
  %261 = load i8, ptr %260, align 1, !tbaa !11, !range !15, !noundef !16
  %262 = trunc i8 %261 to i1
  br i1 %262, label %263, label %291

263:                                              ; preds = %249
  %264 = load i32, ptr %7, align 4, !tbaa !9
  %265 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %11, i32 noundef %264)
          to label %266 unwind label %287

266:                                              ; preds = %263
  %267 = load double, ptr %265, align 8, !tbaa !17
  %268 = load double, ptr %35, align 8, !tbaa !17
  %269 = load double, ptr %34, align 8, !tbaa !17
  %270 = fdiv double %268, %269
  %271 = load double, ptr %9, align 8, !tbaa !17
  %272 = call double @pow(double noundef %270, double noundef %271) #11
  %273 = fmul double %267, %272
  store double %273, ptr %9, align 8, !tbaa !17
  br label %298

274:                                              ; preds = %225
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %14, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %15, align 4
  br label %282

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

282:                                              ; preds = %278, %274
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #11
  br label %762

283:                                              ; preds = %236
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %14, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %15, align 4
  br label %310

287:                                              ; preds = %298, %263, %239
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %14, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  br label %310

291:                                              ; preds = %249
  %292 = load double, ptr %34, align 8, !tbaa !17
  %293 = load double, ptr %35, align 8, !tbaa !17
  %294 = load double, ptr %34, align 8, !tbaa !17
  %295 = fsub double %293, %294
  %296 = load double, ptr %9, align 8, !tbaa !17
  %297 = call double @llvm.fmuladd.f64(double %295, double %296, double %292)
  store double %297, ptr %9, align 8, !tbaa !17
  br label %298

298:                                              ; preds = %291, %266
  %299 = load i32, ptr %6, align 4, !tbaa !9
  %300 = load i32, ptr %7, align 4, !tbaa !9
  %301 = load double, ptr %9, align 8, !tbaa !17
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %30, i32 noundef %299, i32 noundef %300, double noundef %301)
          to label %302 unwind label %287

302:                                              ; preds = %298
  br label %303

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

306:                                              ; preds = %245
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #11
  br label %307

307:                                              ; preds = %306
  %308 = load i32, ptr %7, align 4, !tbaa !9
  %309 = add nsw i32 %308, 1
  store i32 %309, ptr %7, align 4, !tbaa !9
  br label %232, !llvm.loop !22

310:                                              ; preds = %287, %283
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #11
  br label %761

311:                                              ; preds = %232
  %312 = load i32, ptr %4, align 4, !tbaa !9
  %313 = icmp sgt i32 %312, 1
  br i1 %313, label %314, label %364

314:                                              ; preds = %311
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #11
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %315

315:                                              ; preds = %360, %314
  %316 = load i32, ptr %7, align 4, !tbaa !9
  %317 = load i32, ptr %4, align 4, !tbaa !9
  %318 = icmp slt i32 %316, %317
  br i1 %318, label %319, label %363

319:                                              ; preds = %315
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %320

320:                                              ; preds = %356, %319
  %321 = load i32, ptr %6, align 4, !tbaa !9
  %322 = load i32, ptr %29, align 4, !tbaa !9
  %323 = icmp slt i32 %321, %322
  br i1 %323, label %324, label %359

324:                                              ; preds = %320
  %325 = load i32, ptr %6, align 4, !tbaa !9
  %326 = invoke noundef double @_ZN7SGTELIB12uniform_randEv()
          to label %327 unwind label %346

327:                                              ; preds = %324
  %328 = load i32, ptr %29, align 4, !tbaa !9
  %329 = load i32, ptr %6, align 4, !tbaa !9
  %330 = sub nsw i32 %328, %329
  %331 = sitofp i32 %330 to double
  %332 = fmul double %326, %331
  %333 = call double @llvm.floor.f64(double %332)
  %334 = fptosi double %333 to i32
  %335 = add nsw i32 %325, %334
  store i32 %335, ptr %36, align 4, !tbaa !9
  %336 = load i32, ptr %36, align 4, !tbaa !9
  %337 = load i32, ptr %6, align 4, !tbaa !9
  %338 = icmp slt i32 %336, %337
  br i1 %338, label %343, label %339

339:                                              ; preds = %327
  %340 = load i32, ptr %36, align 4, !tbaa !9
  %341 = load i32, ptr %29, align 4, !tbaa !9
  %342 = icmp sge i32 %340, %341
  br i1 %342, label %343, label %350

343:                                              ; preds = %339, %327
  %344 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.50)
          to label %345 unwind label %346

345:                                              ; preds = %343
  call void @exit(i32 noundef 0) #14
  unreachable

346:                                              ; preds = %350, %343, %324
  %347 = landingpad { ptr, i32 }
          cleanup
  %348 = extractvalue { ptr, i32 } %347, 0
  store ptr %348, ptr %14, align 8
  %349 = extractvalue { ptr, i32 } %347, 1
  store i32 %349, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #11
  br label %761

350:                                              ; preds = %339
  %351 = load i32, ptr %6, align 4, !tbaa !9
  %352 = load i32, ptr %7, align 4, !tbaa !9
  %353 = load i32, ptr %36, align 4, !tbaa !9
  %354 = load i32, ptr %7, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6Matrix4swapEiiii(ptr noundef nonnull align 8 dereferenceable(56) %30, i32 noundef %351, i32 noundef %352, i32 noundef %353, i32 noundef %354)
          to label %355 unwind label %346

355:                                              ; preds = %350
  br label %356

356:                                              ; preds = %355
  %357 = load i32, ptr %6, align 4, !tbaa !9
  %358 = add nsw i32 %357, 1
  store i32 %358, ptr %6, align 4, !tbaa !9
  br label %320, !llvm.loop !23

359:                                              ; preds = %320
  br label %360

360:                                              ; preds = %359
  %361 = load i32, ptr %7, align 4, !tbaa !9
  %362 = add nsw i32 %361, 1
  store i32 %362, ptr %7, align 4, !tbaa !9
  br label %315, !llvm.loop !24

363:                                              ; preds = %315
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #11
  br label %364

364:                                              ; preds = %363, %311
  call void @llvm.lifetime.start.p0(i64 56, ptr %37) #11
  %365 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %68, i32 0, i32 2
  invoke void @_ZN7SGTELIB20Surrogate_Parameters5get_xEv(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %37, ptr noundef nonnull align 8 dereferenceable(312) %365)
          to label %366 unwind label %417

366:                                              ; preds = %364
  invoke void @_ZN7SGTELIB6Matrix8add_rowsERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %30, ptr noundef nonnull align 8 dereferenceable(56) %37)
          to label %367 unwind label %421

367:                                              ; preds = %366
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %37) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %37) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr %38) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef @.str.51, ptr noundef nonnull align 1 dereferenceable(1) %40)
          to label %368 unwind label %426

368:                                              ; preds = %367
  %369 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %38, ptr noundef nonnull align 8 dereferenceable(32) %39, i32 noundef 1, i32 noundef %369)
          to label %370 unwind label %430

370:                                              ; preds = %368
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #11
  store double 0x7FEFFFFFFFFFFFFF, ptr %41, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #11
  store double 0x7FEFFFFFFFFFFFFF, ptr %42, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #11
  store double 5.000000e-01, ptr %46, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 56, ptr %47) #11
  invoke void @_ZN7SGTELIB6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(56) %47)
          to label %371 unwind label %435

371:                                              ; preds = %370
  call void @llvm.lifetime.start.p0(i64 56, ptr %48) #11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %48, ptr noundef nonnull align 8 dereferenceable(56) %30, i32 noundef 0)
          to label %372 unwind label %439

372:                                              ; preds = %371
  call void @llvm.lifetime.start.p0(i64 56, ptr %49) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %50) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %51) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef @.str.52, ptr noundef nonnull align 1 dereferenceable(1) %51)
          to label %373 unwind label %443

373:                                              ; preds = %372
  %374 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %49, ptr noundef nonnull align 8 dereferenceable(32) %50, i32 noundef 0, i32 noundef %374)
          to label %375 unwind label %447

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

376:                                              ; preds = %731, %375
  %377 = load i32, ptr %5, align 4, !tbaa !9
  %378 = icmp sgt i32 %377, 0
  br i1 %378, label %379, label %732

379:                                              ; preds = %376
  store i8 0, ptr %45, align 1, !tbaa !11
  %380 = load i32, ptr %53, align 4, !tbaa !9
  %381 = icmp ne i32 %380, 0
  br i1 %381, label %382, label %497

382:                                              ; preds = %379
  call void @llvm.lifetime.start.p0(i64 56, ptr %54) #11
  %383 = load ptr, ptr %20, align 8, !tbaa !5
  %384 = load double, ptr %46, align 8, !tbaa !17
  invoke void @_ZN7SGTELIB6Matrix19get_poll_directionsERKS0_PKNS_14param_domain_tEd(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %54, ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef %383, double noundef %384)
          to label %385 unwind label %452

385:                                              ; preds = %382
  %386 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %47, ptr noundef nonnull align 8 dereferenceable(56) %54)
          to label %387 unwind label %456

387:                                              ; preds = %385
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %54) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %54) #11
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %388

388:                                              ; preds = %482, %387
  %389 = load i32, ptr %6, align 4, !tbaa !9
  %390 = invoke noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %47)
          to label %391 unwind label %461

391:                                              ; preds = %388
  %392 = icmp slt i32 %389, %390
  br i1 %392, label %393, label %485

393:                                              ; preds = %391
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %394

394:                                              ; preds = %476, %393
  %395 = load i32, ptr %7, align 4, !tbaa !9
  %396 = load i32, ptr %4, align 4, !tbaa !9
  %397 = icmp slt i32 %395, %396
  br i1 %397, label %398, label %479

398:                                              ; preds = %394
  %399 = load i32, ptr %7, align 4, !tbaa !9
  %400 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %48, i32 noundef %399)
          to label %401 unwind label %461

401:                                              ; preds = %398
  %402 = load double, ptr %400, align 8, !tbaa !17
  store double %402, ptr %9, align 8, !tbaa !17
  %403 = load ptr, ptr %19, align 8, !tbaa !5
  %404 = load i32, ptr %7, align 4, !tbaa !9
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds i8, ptr %403, i64 %405
  %407 = load i8, ptr %406, align 1, !tbaa !11, !range !15, !noundef !16
  %408 = trunc i8 %407 to i1
  br i1 %408, label %409, label %465

409:                                              ; preds = %401
  %410 = load i32, ptr %6, align 4, !tbaa !9
  %411 = load i32, ptr %7, align 4, !tbaa !9
  %412 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %47, i32 noundef %410, i32 noundef %411)
          to label %413 unwind label %461

413:                                              ; preds = %409
  %414 = call double @pow(double noundef 4.000000e+00, double noundef %412) #11
  %415 = load double, ptr %9, align 8, !tbaa !17
  %416 = fmul double %415, %414
  store double %416, ptr %9, align 8, !tbaa !17
  br label %472

417:                                              ; preds = %364
  %418 = landingpad { ptr, i32 }
          cleanup
  %419 = extractvalue { ptr, i32 } %418, 0
  store ptr %419, ptr %14, align 8
  %420 = extractvalue { ptr, i32 } %418, 1
  store i32 %420, ptr %15, align 4
  br label %425

421:                                              ; preds = %366
  %422 = landingpad { ptr, i32 }
          cleanup
  %423 = extractvalue { ptr, i32 } %422, 0
  store ptr %423, ptr %14, align 8
  %424 = extractvalue { ptr, i32 } %422, 1
  store i32 %424, ptr %15, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %37) #11
  br label %425

425:                                              ; preds = %421, %417
  call void @llvm.lifetime.end.p0(i64 56, ptr %37) #11
  br label %761

426:                                              ; preds = %367
  %427 = landingpad { ptr, i32 }
          cleanup
  %428 = extractvalue { ptr, i32 } %427, 0
  store ptr %428, ptr %14, align 8
  %429 = extractvalue { ptr, i32 } %427, 1
  store i32 %429, ptr %15, align 4
  br label %434

430:                                              ; preds = %368
  %431 = landingpad { ptr, i32 }
          cleanup
  %432 = extractvalue { ptr, i32 } %431, 0
  store ptr %432, ptr %14, align 8
  %433 = extractvalue { ptr, i32 } %431, 1
  store i32 %433, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #11
  br label %434

434:                                              ; preds = %430, %426
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #11
  br label %760

435:                                              ; preds = %370
  %436 = landingpad { ptr, i32 }
          cleanup
  %437 = extractvalue { ptr, i32 } %436, 0
  store ptr %437, ptr %14, align 8
  %438 = extractvalue { ptr, i32 } %436, 1
  store i32 %438, ptr %15, align 4
  br label %759

439:                                              ; preds = %371
  %440 = landingpad { ptr, i32 }
          cleanup
  %441 = extractvalue { ptr, i32 } %440, 0
  store ptr %441, ptr %14, align 8
  %442 = extractvalue { ptr, i32 } %440, 1
  store i32 %442, ptr %15, align 4
  br label %758

443:                                              ; preds = %372
  %444 = landingpad { ptr, i32 }
          cleanup
  %445 = extractvalue { ptr, i32 } %444, 0
  store ptr %445, ptr %14, align 8
  %446 = extractvalue { ptr, i32 } %444, 1
  store i32 %446, ptr %15, align 4
  br label %451

447:                                              ; preds = %373
  %448 = landingpad { ptr, i32 }
          cleanup
  %449 = extractvalue { ptr, i32 } %448, 0
  store ptr %449, ptr %14, align 8
  %450 = extractvalue { ptr, i32 } %448, 1
  store i32 %450, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #11
  br label %451

451:                                              ; preds = %447, %443
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #11
  br label %757

452:                                              ; preds = %382
  %453 = landingpad { ptr, i32 }
          cleanup
  %454 = extractvalue { ptr, i32 } %453, 0
  store ptr %454, ptr %14, align 8
  %455 = extractvalue { ptr, i32 } %453, 1
  store i32 %455, ptr %15, align 4
  br label %460

456:                                              ; preds = %385
  %457 = landingpad { ptr, i32 }
          cleanup
  %458 = extractvalue { ptr, i32 } %457, 0
  store ptr %458, ptr %14, align 8
  %459 = extractvalue { ptr, i32 } %457, 1
  store i32 %459, ptr %15, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %54) #11
  br label %460

460:                                              ; preds = %456, %452
  call void @llvm.lifetime.end.p0(i64 56, ptr %54) #11
  br label %756

461:                                              ; preds = %741, %738, %736, %734, %732, %691, %676, %673, %671, %669, %667, %659, %517, %501, %497, %479, %472, %465, %409, %398, %388
  %462 = landingpad { ptr, i32 }
          cleanup
  %463 = extractvalue { ptr, i32 } %462, 0
  store ptr %463, ptr %14, align 8
  %464 = extractvalue { ptr, i32 } %462, 1
  store i32 %464, ptr %15, align 4
  br label %756

465:                                              ; preds = %401
  %466 = load i32, ptr %6, align 4, !tbaa !9
  %467 = load i32, ptr %7, align 4, !tbaa !9
  %468 = invoke noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %47, i32 noundef %466, i32 noundef %467)
          to label %469 unwind label %461

469:                                              ; preds = %465
  %470 = load double, ptr %9, align 8, !tbaa !17
  %471 = fadd double %470, %468
  store double %471, ptr %9, align 8, !tbaa !17
  br label %472

472:                                              ; preds = %469, %413
  %473 = load i32, ptr %7, align 4, !tbaa !9
  %474 = load double, ptr %9, align 8, !tbaa !17
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %38, i32 noundef 0, i32 noundef %473, double noundef %474)
          to label %475 unwind label %461

475:                                              ; preds = %472
  br label %476

476:                                              ; preds = %475
  %477 = load i32, ptr %7, align 4, !tbaa !9
  %478 = add nsw i32 %477, 1
  store i32 %478, ptr %7, align 4, !tbaa !9
  br label %394, !llvm.loop !25

479:                                              ; preds = %394
  %480 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %47, ptr noundef nonnull align 8 dereferenceable(56) %38, i32 noundef %480)
          to label %481 unwind label %461

481:                                              ; preds = %479
  br label %482

482:                                              ; preds = %481
  %483 = load i32, ptr %6, align 4, !tbaa !9
  %484 = add nsw i32 %483, 1
  store i32 %484, ptr %6, align 4, !tbaa !9
  br label %388, !llvm.loop !26

485:                                              ; preds = %391
  call void @llvm.lifetime.start.p0(i64 32, ptr %55) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %56) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef @.str.53, ptr noundef nonnull align 1 dereferenceable(1) %56)
          to label %486 unwind label %488

486:                                              ; preds = %485
  invoke void @_ZN7SGTELIB6Matrix8set_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %47, ptr noundef nonnull align 8 dereferenceable(32) %55)
          to label %487 unwind label %492

487:                                              ; preds = %486
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #11
  br label %500

488:                                              ; preds = %485
  %489 = landingpad { ptr, i32 }
          cleanup
  %490 = extractvalue { ptr, i32 } %489, 0
  store ptr %490, ptr %14, align 8
  %491 = extractvalue { ptr, i32 } %489, 1
  store i32 %491, ptr %15, align 4
  br label %496

492:                                              ; preds = %486
  %493 = landingpad { ptr, i32 }
          cleanup
  %494 = extractvalue { ptr, i32 } %493, 0
  store ptr %494, ptr %14, align 8
  %495 = extractvalue { ptr, i32 } %493, 1
  store i32 %495, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #11
  br label %496

496:                                              ; preds = %492, %488
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #11
  br label %756

497:                                              ; preds = %379
  %498 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %47, ptr noundef nonnull align 8 dereferenceable(56) %30)
          to label %499 unwind label %461

499:                                              ; preds = %497
  br label %500

500:                                              ; preds = %499, %487
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %501

501:                                              ; preds = %705, %500
  %502 = load i32, ptr %6, align 4, !tbaa !9
  %503 = invoke noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %47)
          to label %504 unwind label %461

504:                                              ; preds = %501
  %505 = icmp slt i32 %502, %503
  br i1 %505, label %506, label %708

506:                                              ; preds = %504
  call void @llvm.lifetime.start.p0(i64 56, ptr %57) #11
  %507 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %57, ptr noundef nonnull align 8 dereferenceable(56) %47, i32 noundef %507)
          to label %508 unwind label %535

508:                                              ; preds = %506
  %509 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %38, ptr noundef nonnull align 8 dereferenceable(56) %57)
          to label %510 unwind label %539

510:                                              ; preds = %508
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %57) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %57) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %58) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %59) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %58, ptr noundef @.str.51, ptr noundef nonnull align 1 dereferenceable(1) %59)
          to label %511 unwind label %544

511:                                              ; preds = %510
  invoke void @_ZN7SGTELIB6Matrix8set_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %38, ptr noundef nonnull align 8 dereferenceable(32) %58)
          to label %512 unwind label %548

512:                                              ; preds = %511
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %59) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %58) #11
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %513

513:                                              ; preds = %654, %512
  %514 = load i32, ptr %7, align 4, !tbaa !9
  %515 = load i32, ptr %4, align 4, !tbaa !9
  %516 = icmp slt i32 %514, %515
  br i1 %516, label %517, label %659

517:                                              ; preds = %513
  %518 = load i32, ptr %7, align 4, !tbaa !9
  %519 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %38, i32 noundef %518)
          to label %520 unwind label %461

520:                                              ; preds = %517
  %521 = load double, ptr %519, align 8, !tbaa !17
  store double %521, ptr %9, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #11
  %522 = load i32, ptr %7, align 4, !tbaa !9
  %523 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %11, i32 noundef %522)
          to label %524 unwind label %553

524:                                              ; preds = %520
  %525 = load double, ptr %523, align 8, !tbaa !17
  store double %525, ptr %60, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #11
  %526 = load i32, ptr %7, align 4, !tbaa !9
  %527 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %16, i32 noundef %526)
          to label %528 unwind label %557

528:                                              ; preds = %524
  %529 = load double, ptr %527, align 8, !tbaa !17
  store double %529, ptr %61, align 8, !tbaa !17
  %530 = load ptr, ptr %20, align 8, !tbaa !5
  %531 = load i32, ptr %7, align 4, !tbaa !9
  %532 = sext i32 %531 to i64
  %533 = getelementptr inbounds i32, ptr %530, i64 %532
  %534 = load i32, ptr %533, align 4, !tbaa !13
  switch i32 %534, label %650 [
    i32 0, label %561
    i32 1, label %574
    i32 3, label %591
    i32 2, label %623
    i32 4, label %628
  ]

535:                                              ; preds = %506
  %536 = landingpad { ptr, i32 }
          cleanup
  %537 = extractvalue { ptr, i32 } %536, 0
  store ptr %537, ptr %14, align 8
  %538 = extractvalue { ptr, i32 } %536, 1
  store i32 %538, ptr %15, align 4
  br label %543

539:                                              ; preds = %508
  %540 = landingpad { ptr, i32 }
          cleanup
  %541 = extractvalue { ptr, i32 } %540, 0
  store ptr %541, ptr %14, align 8
  %542 = extractvalue { ptr, i32 } %540, 1
  store i32 %542, ptr %15, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %57) #11
  br label %543

543:                                              ; preds = %539, %535
  call void @llvm.lifetime.end.p0(i64 56, ptr %57) #11
  br label %756

544:                                              ; preds = %510
  %545 = landingpad { ptr, i32 }
          cleanup
  %546 = extractvalue { ptr, i32 } %545, 0
  store ptr %546, ptr %14, align 8
  %547 = extractvalue { ptr, i32 } %545, 1
  store i32 %547, ptr %15, align 4
  br label %552

548:                                              ; preds = %511
  %549 = landingpad { ptr, i32 }
          cleanup
  %550 = extractvalue { ptr, i32 } %549, 0
  store ptr %550, ptr %14, align 8
  %551 = extractvalue { ptr, i32 } %549, 1
  store i32 %551, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #11
  br label %552

552:                                              ; preds = %548, %544
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %59) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %58) #11
  br label %756

553:                                              ; preds = %520
  %554 = landingpad { ptr, i32 }
          cleanup
  %555 = extractvalue { ptr, i32 } %554, 0
  store ptr %555, ptr %14, align 8
  %556 = extractvalue { ptr, i32 } %554, 1
  store i32 %556, ptr %15, align 4
  br label %658

557:                                              ; preds = %650, %591, %574, %524
  %558 = landingpad { ptr, i32 }
          cleanup
  %559 = extractvalue { ptr, i32 } %558, 0
  store ptr %559, ptr %14, align 8
  %560 = extractvalue { ptr, i32 } %558, 1
  store i32 %560, ptr %15, align 4
  br label %657

561:                                              ; preds = %528
  %562 = load double, ptr %9, align 8, !tbaa !17
  %563 = load double, ptr %60, align 8, !tbaa !17
  %564 = fcmp olt double %562, %563
  br i1 %564, label %565, label %567

565:                                              ; preds = %561
  %566 = load double, ptr %60, align 8, !tbaa !17
  store double %566, ptr %9, align 8, !tbaa !17
  br label %567

567:                                              ; preds = %565, %561
  %568 = load double, ptr %9, align 8, !tbaa !17
  %569 = load double, ptr %61, align 8, !tbaa !17
  %570 = fcmp ogt double %568, %569
  br i1 %570, label %571, label %573

571:                                              ; preds = %567
  %572 = load double, ptr %61, align 8, !tbaa !17
  store double %572, ptr %9, align 8, !tbaa !17
  br label %573

573:                                              ; preds = %571, %567
  br label %650

574:                                              ; preds = %528
  %575 = load double, ptr %9, align 8, !tbaa !17
  %576 = invoke noundef i32 @_ZN7SGTELIB5roundEd(double noundef %575)
          to label %577 unwind label %557

577:                                              ; preds = %574
  %578 = sitofp i32 %576 to double
  store double %578, ptr %9, align 8, !tbaa !17
  %579 = load double, ptr %9, align 8, !tbaa !17
  %580 = load double, ptr %60, align 8, !tbaa !17
  %581 = fcmp olt double %579, %580
  br i1 %581, label %582, label %584

582:                                              ; preds = %577
  %583 = load double, ptr %60, align 8, !tbaa !17
  store double %583, ptr %9, align 8, !tbaa !17
  br label %584

584:                                              ; preds = %582, %577
  %585 = load double, ptr %9, align 8, !tbaa !17
  %586 = load double, ptr %61, align 8, !tbaa !17
  %587 = fcmp ogt double %585, %586
  br i1 %587, label %588, label %590

588:                                              ; preds = %584
  %589 = load double, ptr %61, align 8, !tbaa !17
  store double %589, ptr %9, align 8, !tbaa !17
  br label %590

590:                                              ; preds = %588, %584
  br label %650

591:                                              ; preds = %528
  %592 = load double, ptr %9, align 8, !tbaa !17
  %593 = invoke noundef i32 @_ZN7SGTELIB5roundEd(double noundef %592)
          to label %594 unwind label %557

594:                                              ; preds = %591
  store i32 %593, ptr %8, align 4, !tbaa !9
  br label %595

595:                                              ; preds = %600, %594
  %596 = load i32, ptr %8, align 4, !tbaa !9
  %597 = sitofp i32 %596 to double
  %598 = load double, ptr %61, align 8, !tbaa !17
  %599 = fcmp ogt double %597, %598
  br i1 %599, label %600, label %607

600:                                              ; preds = %595
  %601 = load double, ptr %61, align 8, !tbaa !17
  %602 = load double, ptr %60, align 8, !tbaa !17
  %603 = fsub double %601, %602
  %604 = fptosi double %603 to i32
  %605 = load i32, ptr %8, align 4, !tbaa !9
  %606 = sub nsw i32 %605, %604
  store i32 %606, ptr %8, align 4, !tbaa !9
  br label %595, !llvm.loop !27

607:                                              ; preds = %595
  br label %608

608:                                              ; preds = %613, %607
  %609 = load i32, ptr %8, align 4, !tbaa !9
  %610 = sitofp i32 %609 to double
  %611 = load double, ptr %60, align 8, !tbaa !17
  %612 = fcmp olt double %610, %611
  br i1 %612, label %613, label %620

613:                                              ; preds = %608
  %614 = load double, ptr %61, align 8, !tbaa !17
  %615 = load double, ptr %60, align 8, !tbaa !17
  %616 = fsub double %614, %615
  %617 = fptosi double %616 to i32
  %618 = load i32, ptr %8, align 4, !tbaa !9
  %619 = add nsw i32 %618, %617
  store i32 %619, ptr %8, align 4, !tbaa !9
  br label %608, !llvm.loop !28

620:                                              ; preds = %608
  %621 = load i32, ptr %8, align 4, !tbaa !9
  %622 = sitofp i32 %621 to double
  store double %622, ptr %9, align 8, !tbaa !17
  br label %650

623:                                              ; preds = %528
  %624 = load double, ptr %9, align 8, !tbaa !17
  %625 = fcmp ogt double %624, 0.000000e+00
  %626 = zext i1 %625 to i64
  %627 = select i1 %625, double 1.000000e+00, double 0.000000e+00
  store double %627, ptr %9, align 8, !tbaa !17
  br label %650

628:                                              ; preds = %528
  store i1 true, ptr %66, align 1
  %629 = call ptr @__cxa_allocate_exception(i64 112) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %62) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %63) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %63) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef @.str.23, ptr noundef nonnull align 1 dereferenceable(1) %63)
          to label %630 unwind label %633

630:                                              ; preds = %628
  call void @llvm.lifetime.start.p0(i64 32, ptr %64) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %65) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %65) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %64, ptr noundef @.str.54, ptr noundef nonnull align 1 dereferenceable(1) %65)
          to label %631 unwind label %637

631:                                              ; preds = %630
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %629, ptr noundef nonnull align 8 dereferenceable(32) %62, i32 noundef 1474, ptr noundef nonnull align 8 dereferenceable(32) %64)
          to label %632 unwind label %641

632:                                              ; preds = %631
  store i1 false, ptr %66, align 1
  invoke void @__cxa_throw(ptr %629, ptr @_ZTIN7SGTELIB9ExceptionE, ptr @_ZN7SGTELIB9ExceptionD2Ev) #13
          to label %774 unwind label %641

633:                                              ; preds = %628
  %634 = landingpad { ptr, i32 }
          cleanup
  %635 = extractvalue { ptr, i32 } %634, 0
  store ptr %635, ptr %14, align 8
  %636 = extractvalue { ptr, i32 } %634, 1
  store i32 %636, ptr %15, align 4
  br label %646

637:                                              ; preds = %630
  %638 = landingpad { ptr, i32 }
          cleanup
  %639 = extractvalue { ptr, i32 } %638, 0
  store ptr %639, ptr %14, align 8
  %640 = extractvalue { ptr, i32 } %638, 1
  store i32 %640, ptr %15, align 4
  br label %645

641:                                              ; preds = %632, %631
  %642 = landingpad { ptr, i32 }
          cleanup
  %643 = extractvalue { ptr, i32 } %642, 0
  store ptr %643, ptr %14, align 8
  %644 = extractvalue { ptr, i32 } %642, 1
  store i32 %644, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #11
  br label %645

645:                                              ; preds = %641, %637
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %65) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %65) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %64) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #11
  br label %646

646:                                              ; preds = %645, %633
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %63) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %62) #11
  %647 = load i1, ptr %66, align 1
  br i1 %647, label %648, label %649

648:                                              ; preds = %646
  call void @__cxa_free_exception(ptr %629) #11
  br label %649

649:                                              ; preds = %648, %646
  br label %657

650:                                              ; preds = %623, %620, %590, %573, %528
  %651 = load i32, ptr %7, align 4, !tbaa !9
  %652 = load double, ptr %9, align 8, !tbaa !17
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %38, i32 noundef 0, i32 noundef %651, double noundef %652)
          to label %653 unwind label %557

653:                                              ; preds = %650
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #11
  br label %654

654:                                              ; preds = %653
  %655 = load i32, ptr %7, align 4, !tbaa !9
  %656 = add nsw i32 %655, 1
  store i32 %656, ptr %7, align 4, !tbaa !9
  br label %513, !llvm.loop !29

657:                                              ; preds = %649, %557
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #11
  br label %658

658:                                              ; preds = %657, %553
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #11
  br label %756

659:                                              ; preds = %513
  %660 = invoke noundef i32 @_ZN7SGTELIB6Matrix8find_rowERS0_(ptr noundef nonnull align 8 dereferenceable(56) %49, ptr noundef nonnull align 8 dereferenceable(56) %38)
          to label %661 unwind label %461

661:                                              ; preds = %659
  %662 = icmp ne i32 %660, -1
  %663 = zext i1 %662 to i8
  store i8 %663, ptr %52, align 1, !tbaa !11
  %664 = load i8, ptr %52, align 1, !tbaa !11, !range !15, !noundef !16
  %665 = trunc i8 %664 to i1
  br i1 %665, label %666, label %667

666:                                              ; preds = %661
  br label %697

667:                                              ; preds = %661
  %668 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %68, i32 0, i32 2
  invoke void @_ZN7SGTELIB20Surrogate_Parameters5set_xERKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(312) %668, ptr noundef nonnull align 8 dereferenceable(56) %38)
          to label %669 unwind label %461

669:                                              ; preds = %667
  %670 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %68, i32 0, i32 2
  invoke void @_ZN7SGTELIB20Surrogate_Parameters5checkEv(ptr noundef nonnull align 8 dereferenceable(312) %670)
          to label %671 unwind label %461

671:                                              ; preds = %669
  %672 = invoke noundef double @_ZN7SGTELIB9Surrogate14eval_objectiveEv(ptr noundef nonnull align 8 dereferenceable(985) %68)
          to label %673 unwind label %461

673:                                              ; preds = %671
  store double %672, ptr %43, align 8, !tbaa !17
  %674 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %68, i32 0, i32 2
  %675 = invoke noundef double @_ZN7SGTELIB20Surrogate_Parameters13get_x_penaltyEv(ptr noundef nonnull align 8 dereferenceable(312) %674)
          to label %676 unwind label %461

676:                                              ; preds = %673
  store double %675, ptr %44, align 8, !tbaa !17
  %677 = load i32, ptr %5, align 4, !tbaa !9
  %678 = add nsw i32 %677, -1
  store i32 %678, ptr %5, align 4, !tbaa !9
  invoke void @_ZN7SGTELIB6Matrix8add_rowsERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %49, ptr noundef nonnull align 8 dereferenceable(56) %38)
          to label %679 unwind label %461

679:                                              ; preds = %676
  %680 = load double, ptr %43, align 8, !tbaa !17
  %681 = load double, ptr %41, align 8, !tbaa !17
  %682 = fcmp olt double %680, %681
  br i1 %682, label %691, label %683

683:                                              ; preds = %679
  %684 = load double, ptr %43, align 8, !tbaa !17
  %685 = load double, ptr %41, align 8, !tbaa !17
  %686 = fcmp oeq double %684, %685
  br i1 %686, label %687, label %696

687:                                              ; preds = %683
  %688 = load double, ptr %44, align 8, !tbaa !17
  %689 = load double, ptr %42, align 8, !tbaa !17
  %690 = fcmp olt double %688, %689
  br i1 %690, label %691, label %696

691:                                              ; preds = %687, %679
  %692 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 8 dereferenceable(56) %38)
          to label %693 unwind label %461

693:                                              ; preds = %691
  %694 = load double, ptr %43, align 8, !tbaa !17
  store double %694, ptr %41, align 8, !tbaa !17
  %695 = load double, ptr %44, align 8, !tbaa !17
  store double %695, ptr %42, align 8, !tbaa !17
  store i8 1, ptr %45, align 1, !tbaa !11
  br label %696

696:                                              ; preds = %693, %687, %683
  br label %697

697:                                              ; preds = %696, %666
  %698 = load i32, ptr %53, align 4, !tbaa !9
  %699 = icmp ne i32 %698, 0
  br i1 %699, label %700, label %704

700:                                              ; preds = %697
  %701 = load i8, ptr %45, align 1, !tbaa !11, !range !15, !noundef !16
  %702 = trunc i8 %701 to i1
  br i1 %702, label %703, label %704

703:                                              ; preds = %700
  br label %708

704:                                              ; preds = %700, %697
  br label %705

705:                                              ; preds = %704
  %706 = load i32, ptr %6, align 4, !tbaa !9
  %707 = add nsw i32 %706, 1
  store i32 %707, ptr %6, align 4, !tbaa !9
  br label %501, !llvm.loop !30

708:                                              ; preds = %703, %504
  %709 = load i32, ptr %53, align 4, !tbaa !9
  %710 = icmp ne i32 %709, 0
  br i1 %710, label %711, label %721

711:                                              ; preds = %708
  %712 = load i8, ptr %45, align 1, !tbaa !11, !range !15, !noundef !16
  %713 = trunc i8 %712 to i1
  br i1 %713, label %714, label %717

714:                                              ; preds = %711
  %715 = load double, ptr %46, align 8, !tbaa !17
  %716 = fmul double %715, 2.000000e+00
  store double %716, ptr %46, align 8, !tbaa !17
  br label %720

717:                                              ; preds = %711
  %718 = load double, ptr %46, align 8, !tbaa !17
  %719 = fdiv double %718, 2.000000e+00
  store double %719, ptr %46, align 8, !tbaa !17
  br label %720

720:                                              ; preds = %717, %714
  br label %721

721:                                              ; preds = %720, %708
  %722 = load i32, ptr %53, align 4, !tbaa !9
  %723 = add nsw i32 %722, 1
  store i32 %723, ptr %53, align 4, !tbaa !9
  %724 = load double, ptr %46, align 8, !tbaa !17
  %725 = fcmp olt double %724, 0x3EB0C6F7A0B5ED8D
  br i1 %725, label %726, label %727

726:                                              ; preds = %721
  br label %732

727:                                              ; preds = %721
  %728 = load i32, ptr %5, align 4, !tbaa !9
  %729 = icmp sle i32 %728, 0
  br i1 %729, label %730, label %731

730:                                              ; preds = %727
  br label %732

731:                                              ; preds = %727
  br label %376, !llvm.loop !31

732:                                              ; preds = %730, %726, %376
  %733 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %68, i32 0, i32 2
  invoke void @_ZN7SGTELIB20Surrogate_Parameters5set_xERKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(312) %733, ptr noundef nonnull align 8 dereferenceable(56) %48)
          to label %734 unwind label %461

734:                                              ; preds = %732
  %735 = getelementptr inbounds %"class.SGTELIB::Surrogate", ptr %68, i32 0, i32 2
  invoke void @_ZN7SGTELIB20Surrogate_Parameters5checkEv(ptr noundef nonnull align 8 dereferenceable(312) %735)
          to label %736 unwind label %461

736:                                              ; preds = %734
  %737 = invoke noundef double @_ZN7SGTELIB9Surrogate14eval_objectiveEv(ptr noundef nonnull align 8 dereferenceable(985) %68)
          to label %738 unwind label %461

738:                                              ; preds = %736
  %739 = invoke noundef zeroext i1 @_ZNK7SGTELIB6Matrix7has_nanEv(ptr noundef nonnull align 8 dereferenceable(56) %48)
          to label %740 unwind label %461

740:                                              ; preds = %738
  br i1 %739, label %744, label %741

741:                                              ; preds = %740
  %742 = invoke noundef zeroext i1 @_ZNK7SGTELIB6Matrix7has_infEv(ptr noundef nonnull align 8 dereferenceable(56) %48)
          to label %743 unwind label %461

743:                                              ; preds = %741
  br i1 %742, label %744, label %745

744:                                              ; preds = %743, %740
  store i1 false, ptr %2, align 1
  store i32 1, ptr %67, align 4
  br label %754

745:                                              ; preds = %743
  %746 = load ptr, ptr %19, align 8, !tbaa !5
  %747 = icmp eq ptr %746, null
  br i1 %747, label %749, label %748

748:                                              ; preds = %745
  call void @_ZdaPv(ptr noundef %746) #15
  br label %749

749:                                              ; preds = %748, %745
  %750 = load ptr, ptr %20, align 8, !tbaa !5
  %751 = icmp eq ptr %750, null
  br i1 %751, label %753, label %752

752:                                              ; preds = %749
  call void @_ZdaPv(ptr noundef %750) #15
  br label %753

753:                                              ; preds = %752, %749
  store i1 true, ptr %2, align 1
  store i32 1, ptr %67, align 4
  br label %754

754:                                              ; preds = %753, %744
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %52) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %49) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %49) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %48) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %48) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %47) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %47) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %38) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #11
  %755 = load i1, ptr %2, align 1
  ret i1 %755

756:                                              ; preds = %658, %552, %543, %496, %461, %460
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %52) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %49) #11
  br label %757

757:                                              ; preds = %756, %451
  call void @llvm.lifetime.end.p0(i64 56, ptr %49) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %48) #11
  br label %758

758:                                              ; preds = %757, %439
  call void @llvm.lifetime.end.p0(i64 56, ptr %48) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %47) #11
  br label %759

759:                                              ; preds = %758, %435
  call void @llvm.lifetime.end.p0(i64 56, ptr %47) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %38) #11
  br label %760

760:                                              ; preds = %759, %434
  call void @llvm.lifetime.end.p0(i64 56, ptr %38) #11
  br label %761

761:                                              ; preds = %760, %425, %346, %310
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #11
  br label %762

762:                                              ; preds = %761, %282
  call void @llvm.lifetime.end.p0(i64 56, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #11
  br label %763

763:                                              ; preds = %762, %196, %165
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #11
  br label %764

764:                                              ; preds = %763, %153
  call void @llvm.lifetime.end.p0(i64 56, ptr %21) #11
  br label %765

765:                                              ; preds = %764, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  br label %766

766:                                              ; preds = %765, %137
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #11
  br label %767

767:                                              ; preds = %766, %136
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #11
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #11
  br label %768

768:                                              ; preds = %767, %127
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #11
  br label %769

769:                                              ; preds = %768
  %770 = load ptr, ptr %14, align 8
  %771 = load i32, ptr %15, align 4
  %772 = insertvalue { ptr, i32 } poison, ptr %770, 0
  %773 = insertvalue { ptr, i32 } %772, i32 %771, 1
  resume { ptr, i32 } %773

774:                                              ; preds = %632, %179
  unreachable
}

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

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

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56)) #6 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7SGTELIB6Matrix8set_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #4

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

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

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

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

declare void @_ZN7SGTELIB20Surrogate_Parameters12get_x_boundsEPNS_6MatrixES2_PNS_14param_domain_tEPb(ptr noundef nonnull align 8 dereferenceable(312), ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare noundef double @_ZN7SGTELIB12uniform_randEv() #3

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #9

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

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

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

declare void @_ZN7SGTELIB6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3

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

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

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

declare noundef i32 @_ZN7SGTELIB5roundEd(double noundef) #3

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

declare void @_ZN7SGTELIB20Surrogate_Parameters5set_xERKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(312), ptr noundef nonnull align 8 dereferenceable(56)) #3

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

declare noundef double @_ZN7SGTELIB20Surrogate_Parameters13get_x_penaltyEv(ptr noundef nonnull align 8 dereferenceable(312)) #3

declare noundef zeroext i1 @_ZNK7SGTELIB6Matrix7has_nanEv(ptr noundef nonnull align 8 dereferenceable(56)) #3

declare noundef zeroext i1 @_ZNK7SGTELIB6Matrix7has_infEv(ptr noundef nonnull align 8 dereferenceable(56)) #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN7SGTELIB14param_domain_tE", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}
!30 = distinct !{!30, !20}
!31 = distinct !{!31, !20}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.SGTELIB::Matrix" = type { ptr, %"class.std::__cxx11::basic_string", i32, i32, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.23 = external hidden unnamed_addr constant [88 x i8], align 1
@_ZTIN7SGTELIB9ExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.45 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [25 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

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

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

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

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

declare void @_ZN7SGTELIB20Surrogate_Parameters5checkEv(ptr noundef nonnull align 8 dereferenceable(312)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7SGTELIB9Surrogate19optimize_parametersEv(ptr noundef nonnull align 8 dereferenceable(985) %0) local_unnamed_addr #5 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 = alloca %"class.SGTELIB::Matrix", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %"class.SGTELIB::Matrix", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.SGTELIB::Matrix", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca %"class.SGTELIB::Matrix", align 8
  %19 = alloca %"class.SGTELIB::Matrix", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator", align 1
  %22 = alloca %"class.SGTELIB::Matrix", align 8
  %23 = alloca %"class.SGTELIB::Matrix", align 8
  %24 = alloca %"class.SGTELIB::Matrix", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator", align 1
  %27 = alloca %"class.SGTELIB::Matrix", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::allocator", align 1
  %30 = alloca %"class.SGTELIB::Matrix", align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator", align 1
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator", align 1
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::allocator", align 1
  %37 = getelementptr inbounds i8, ptr %0, i64 16
  %38 = tail call noundef i32 @_ZN7SGTELIB20Surrogate_Parameters29get_nb_parameter_optimizationEv(ptr noundef nonnull align 8 dereferenceable(312) %37)
  %39 = tail call noundef i32 @_ZNK7SGTELIB20Surrogate_Parameters10get_budgetEv(ptr noundef nonnull align 8 dereferenceable(312) %37)
  %40 = mul i32 %39, %38
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %2) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.45, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %41 unwind label %63

41:                                               ; preds = %1
  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 %38)
          to label %42 unwind label %65

42:                                               ; preds = %41
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #12
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %5) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.46, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %43 unwind label %68

43:                                               ; preds = %42
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef 1, i32 noundef %38)
          to label %44 unwind label %70

44:                                               ; preds = %43
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #12
  %45 = sext i32 %38 to i64
  %46 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %45) #13
          to label %47 unwind label %73

47:                                               ; preds = %44
  %48 = icmp slt i32 %38, 0
  %49 = shl nsw i64 %45, 2
  %50 = select i1 %48, i64 -1, i64 %49
  %51 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %50) #13
          to label %52 unwind label %75

52:                                               ; preds = %47
  invoke void @_ZN7SGTELIB20Surrogate_Parameters12get_x_boundsEPNS_6MatrixES2_PNS_14param_domain_tEPb(ptr noundef nonnull align 8 dereferenceable(312) %37, ptr noundef nonnull %2, ptr noundef nonnull %5, ptr noundef nonnull %51, ptr noundef nonnull %46)
          to label %53 unwind label %75

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.47, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %54 unwind label %77

54:                                               ; preds = %53
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef 1, i32 noundef %38)
          to label %55 unwind label %79

55:                                               ; preds = %54
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #12
  %56 = icmp sgt i32 %38, 0
  br i1 %56, label %.lr.ph.preheader, label %._crit_edge

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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %120
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %120 ]
  %57 = getelementptr inbounds i32, ptr %51, i64 %indvars.iv
  %58 = load i32, ptr %57, align 4, !tbaa !5
  switch i32 %58, label %116 [
    i32 0, label %59
    i32 3, label %107
  ]

59:                                               ; preds = %.lr.ph
  %60 = getelementptr inbounds i8, ptr %46, i64 %indvars.iv
  %61 = load i8, ptr %60, align 1, !tbaa !9, !range !11, !noundef !12
  %62 = trunc nuw i8 %61 to i1
  %.pre = trunc nuw nsw i64 %indvars.iv to i32
  br i1 %62, label %._crit_edge462, label %82

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

65:                                               ; preds = %41
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #12
  br label %67

67:                                               ; preds = %65, %63
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #12
  br label %385

68:                                               ; preds = %42
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %72

70:                                               ; preds = %43
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  br label %72

72:                                               ; preds = %70, %68
  %.pn250 = phi { ptr, i32 } [ %71, %70 ], [ %69, %68 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #12
  br label %384

73:                                               ; preds = %44
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %383

75:                                               ; preds = %52, %47
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %383

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

79:                                               ; preds = %54
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #12
  br label %81

81:                                               ; preds = %79, %77
  %.pn252 = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #12
  br label %382

82:                                               ; preds = %59
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %5, i32 noundef %.pre)
          to label %84 unwind label %91

84:                                               ; preds = %82
  %85 = load double, ptr %83, align 8, !tbaa !13
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %.pre)
          to label %87 unwind label %91

87:                                               ; preds = %84
  %88 = load double, ptr %86, align 8, !tbaa !13
  %89 = fsub double %85, %88
  %90 = fdiv double %89, 5.000000e+00
  br label %._crit_edge462

91:                                               ; preds = %.invoke, %110, %107, %._crit_edge462, %84, %82
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %381

._crit_edge462:                                   ; preds = %59, %87
  %.0188 = phi double [ %90, %87 ], [ 1.000000e+00, %59 ]
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %8, i32 noundef 0, i32 noundef %.pre, double noundef %.0188)
          to label %93 unwind label %91

93:                                               ; preds = %._crit_edge462
  %94 = fcmp olt double %.0188, 1.000000e-13
  br i1 %94, label %95, label %120

95:                                               ; preds = %93
  %96 = call ptr @__cxa_allocate_exception(i64 112) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.23, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %97 unwind label %.thread

97:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.48, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %98 unwind label %101

98:                                               ; preds = %97
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %96, ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef 1283, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %99 unwind label %103

99:                                               ; preds = %98
  invoke void @__cxa_throw(ptr nonnull %96, ptr nonnull @_ZTIN7SGTELIB9ExceptionE, ptr nonnull @_ZN7SGTELIB9ExceptionD2Ev) #14
          to label %386 unwind label %103

.thread:                                          ; preds = %95
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #12
  br label %106

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

103:                                              ; preds = %99, %98
  %.0230 = phi i1 [ false, %99 ], [ true, %98 ]
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #12
  br label %105

105:                                              ; preds = %101, %103
  %.1231 = phi i1 [ %.0230, %103 ], [ true, %101 ]
  %.pn288 = phi { ptr, i32 } [ %104, %103 ], [ %102, %101 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #12
  br i1 %.1231, label %106, label %381

106:                                              ; preds = %.thread, %105
  %.pn288.pn302 = phi { ptr, i32 } [ %100, %.thread ], [ %.pn288, %105 ]
  call void @__cxa_free_exception(ptr %96) #12
  br label %381

107:                                              ; preds = %.lr.ph
  %108 = trunc nuw nsw i64 %indvars.iv to i32
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %5, i32 noundef %108)
          to label %110 unwind label %91

110:                                              ; preds = %107
  %111 = load double, ptr %109, align 8, !tbaa !13
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %108)
          to label %113 unwind label %91

113:                                              ; preds = %110
  %114 = load double, ptr %112, align 8, !tbaa !13
  %115 = fsub double %111, %114
  br label %.invoke

116:                                              ; preds = %.lr.ph
  %117 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.invoke

.invoke:                                          ; preds = %113, %116
  %118 = phi i32 [ %117, %116 ], [ %108, %113 ]
  %119 = phi double [ 1.000000e+00, %116 ], [ %115, %113 ]
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %8, i32 noundef 0, i32 noundef %118, double noundef %119)
          to label %120 unwind label %91

120:                                              ; preds = %.invoke, %93
  %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 %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %120, %55
  %121 = sdiv i32 %40, 10
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %15) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.49, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %122 unwind label %159

122:                                              ; preds = %._crit_edge
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %15, ptr noundef nonnull align 8 dereferenceable(32) %16, i32 noundef %121, i32 noundef %38)
          to label %123 unwind label %161

123:                                              ; preds = %122
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #12
  br i1 %56, label %.lr.ph394, label %.loopexit341

.lr.ph394:                                        ; preds = %123
  %124 = icmp sgt i32 %40, 9
  %125 = add nsw i32 %121, -2
  %126 = sitofp i32 %125 to double
  br i1 %124, label %.lr.ph394.split.us.preheader, label %.lr.ph394.split

.lr.ph394.split.us.preheader:                     ; preds = %.lr.ph394
  %wide.trip.count448 = zext nneg i32 %38 to i64
  br label %.lr.ph394.split.us

.lr.ph394.split.us:                               ; preds = %.lr.ph394.split.us.preheader, %._crit_edge391.us
  %indvars.iv445 = phi i64 [ 0, %.lr.ph394.split.us.preheader ], [ %indvars.iv.next446, %._crit_edge391.us ]
  %127 = trunc nuw nsw i64 %indvars.iv445 to i32
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %127)
          to label %129 unwind label %.split.us

129:                                              ; preds = %.lr.ph394.split.us
  %130 = load double, ptr %128, align 8, !tbaa !13
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %5, i32 noundef %127)
          to label %.lr.ph390.us unwind label %.loopexit.split-lp343.split.us

.lr.ph390.us:                                     ; preds = %129
  %132 = load double, ptr %131, align 8, !tbaa !13
  %133 = getelementptr inbounds i8, ptr %46, i64 %indvars.iv445
  %134 = fsub double %132, %130
  %135 = fdiv double %132, %130
  br label %136

136:                                              ; preds = %.lr.ph390.us, %151
  %.1166388.us = phi i32 [ 0, %.lr.ph390.us ], [ %152, %151 ]
  %137 = add nsw i32 %.1166388.us, -1
  %138 = sitofp i32 %137 to double
  %139 = fdiv double %138, %126
  %140 = load i8, ptr %133, align 1, !tbaa !9, !range !11, !noundef !12
  %141 = trunc nuw i8 %140 to i1
  br i1 %141, label %144, label %142

142:                                              ; preds = %136
  %143 = call double @llvm.fmuladd.f64(double %134, double %139, double %130)
  br label %150

144:                                              ; preds = %136
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %127)
          to label %146 unwind label %.loopexit342.split.us

146:                                              ; preds = %144
  %147 = load double, ptr %145, align 8, !tbaa !13
  %148 = call double @pow(double noundef %135, double noundef %139) #12
  %149 = fmul double %147, %148
  br label %150

150:                                              ; preds = %146, %142
  %.1189.us = phi double [ %149, %146 ], [ %143, %142 ]
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %15, i32 noundef %.1166388.us, i32 noundef %127, double noundef %.1189.us)
          to label %151 unwind label %.loopexit342.split.us

151:                                              ; preds = %150
  %152 = add nuw nsw i32 %.1166388.us, 1
  %exitcond444.not = icmp eq i32 %152, %121
  br i1 %exitcond444.not, label %._crit_edge391.us, label %136, !llvm.loop !17

._crit_edge391.us:                                ; preds = %151
  %indvars.iv.next446 = add nuw nsw i64 %indvars.iv445, 1
  %exitcond449.not = icmp eq i64 %indvars.iv.next446, %wide.trip.count448
  br i1 %exitcond449.not, label %._crit_edge395, label %.lr.ph394.split.us, !llvm.loop !18

.split.us:                                        ; preds = %.lr.ph394.split.us
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp343

.loopexit.split-lp343.split.us:                   ; preds = %129
  %lpad.loopexit.split-lp345.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp343

.loopexit342.split.us:                            ; preds = %150, %144
  %lpad.loopexit344.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp343

.lr.ph394.split:                                  ; preds = %.lr.ph394, %157
  %.0174392 = phi i32 [ %158, %157 ], [ 0, %.lr.ph394 ]
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %.0174392)
          to label %155 unwind label %.split

155:                                              ; preds = %.lr.ph394.split
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %5, i32 noundef %.0174392)
          to label %157 unwind label %.loopexit.split-lp343.split

157:                                              ; preds = %155
  %158 = add nuw nsw i32 %.0174392, 1
  %exitcond443.not = icmp eq i32 %158, %38
  br i1 %exitcond443.not, label %._crit_edge395, label %.lr.ph394.split, !llvm.loop !18

159:                                              ; preds = %._crit_edge
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %163

161:                                              ; preds = %122
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #12
  br label %163

163:                                              ; preds = %161, %159
  %.pn254 = phi { ptr, i32 } [ %162, %161 ], [ %160, %159 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #12
  br label %380

.split:                                           ; preds = %.lr.ph394.split
  %164 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp343

.loopexit.split-lp343.split:                      ; preds = %155
  %lpad.loopexit.split-lp345 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp343

._crit_edge395:                                   ; preds = %157, %._crit_edge391.us
  %165 = icmp ne i32 %38, 1
  %166 = icmp sgt i32 %40, 9
  %or.cond = and i1 %165, %166
  br i1 %or.cond, label %.preheader334.us, label %.loopexit341

.preheader334.us:                                 ; preds = %._crit_edge395, %._crit_edge400.us
  %.1175401.us = phi i32 [ %180, %._crit_edge400.us ], [ 1, %._crit_edge395 ]
  br label %167

167:                                              ; preds = %.preheader334.us, %178
  %.2167398.us = phi i32 [ 0, %.preheader334.us ], [ %179, %178 ]
  %168 = invoke noundef double @_ZN7SGTELIB12uniform_randEv()
          to label %169 unwind label %.loopexit335.split.us

169:                                              ; preds = %167
  %170 = sub nsw i32 %121, %.2167398.us
  %171 = sitofp i32 %170 to double
  %172 = fmul double %168, %171
  %173 = call double @llvm.floor.f64(double %172)
  %174 = fptosi double %173 to i32
  %175 = add nsw i32 %.2167398.us, %174
  %176 = icmp sgt i32 %174, -1
  %.not283.us = icmp slt i32 %175, %121
  %or.cond.us = select i1 %176, i1 %.not283.us, i1 false
  br i1 %or.cond.us, label %177, label %.split404.us

177:                                              ; preds = %169
  invoke void @_ZN7SGTELIB6Matrix4swapEiiii(ptr noundef nonnull align 8 dereferenceable(56) %15, i32 noundef %.2167398.us, i32 noundef %.1175401.us, i32 noundef %175, i32 noundef %.1175401.us)
          to label %178 unwind label %.loopexit335.split.us

178:                                              ; preds = %177
  %179 = add nuw nsw i32 %.2167398.us, 1
  %exitcond450.not = icmp eq i32 %179, %121
  br i1 %exitcond450.not, label %._crit_edge400.us, label %167, !llvm.loop !19

._crit_edge400.us:                                ; preds = %178
  %180 = add nuw nsw i32 %.1175401.us, 1
  %exitcond451.not = icmp eq i32 %180, %38
  br i1 %exitcond451.not, label %.loopexit341, label %.preheader334.us, !llvm.loop !20

.loopexit335.split.us:                            ; preds = %177, %167
  %lpad.loopexit337.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp343

.split404.us:                                     ; preds = %169
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.50)
          to label %182 unwind label %.loopexit.split-lp336

182:                                              ; preds = %.split404.us
  call void @exit(i32 noundef 0) #15
  unreachable

.loopexit.split-lp336:                            ; preds = %.split404.us
  %lpad.loopexit.split-lp338 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp343

.loopexit341:                                     ; preds = %._crit_edge400.us, %123, %._crit_edge395
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %18) #12
  invoke void @_ZN7SGTELIB20Surrogate_Parameters5get_xEv(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %18, ptr noundef nonnull align 8 dereferenceable(312) %37)
          to label %183 unwind label %217

183:                                              ; preds = %.loopexit341
  invoke void @_ZN7SGTELIB6Matrix8add_rowsERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %15, ptr noundef nonnull align 8 dereferenceable(56) %18)
          to label %184 unwind label %219

184:                                              ; preds = %183
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #12
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #12
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %19) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull @.str.51, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %185 unwind label %222

185:                                              ; preds = %184
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef 1, i32 noundef %38)
          to label %186 unwind label %224

186:                                              ; preds = %185
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #12
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %22) #12
  invoke void @_ZN7SGTELIB6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(56) %22)
          to label %187 unwind label %227

187:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %23) #12
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %23, ptr noundef nonnull align 8 dereferenceable(56) %15, i32 noundef 0)
          to label %188 unwind label %229

188:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %24) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %26) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull @.str.52, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %189 unwind label %231

189:                                              ; preds = %188
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef 0, i32 noundef %38)
          to label %190 unwind label %233

190:                                              ; preds = %189
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #12
  %.old1 = icmp sgt i32 %40, 0
  br i1 %.old1, label %.preheader330, label %.loopexit333

.preheader330:                                    ; preds = %190
  %wide.trip.count455 = zext nneg i32 %38 to i64
  %wide.trip.count460 = zext nneg i32 %38 to i64
  br label %191

191:                                              ; preds = %.preheader330, %361
  %.0184 = phi double [ %.3187313, %361 ], [ 0x7FEFFFFFFFFFFFFF, %.preheader330 ]
  %.0180 = phi double [ %.3183315, %361 ], [ 0x7FEFFFFFFFFFFFFF, %.preheader330 ]
  %.0169 = phi double [ %.1170, %361 ], [ 5.000000e-01, %.preheader330 ]
  %.0164 = phi i32 [ %363, %361 ], [ 0, %.preheader330 ]
  %.0161 = phi i32 [ %.3318, %361 ], [ %40, %.preheader330 ]
  %.not = icmp eq i32 %.0164, 0
  br i1 %.not, label %252, label %192

192:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %27) #12
  invoke void @_ZN7SGTELIB6Matrix19get_poll_directionsERKS0_PKNS_14param_domain_tEd(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %27, ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull %51, double noundef %.0169)
          to label %193 unwind label %236

193:                                              ; preds = %192
  %194 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %22, ptr noundef nonnull align 8 dereferenceable(56) %27)
          to label %195 unwind label %238

195:                                              ; preds = %193
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %27) #12
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %27) #12
  %196 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %22)
  %197 = icmp sgt i32 %196, 0
  br i1 %197, label %.preheader321.lr.ph, label %._crit_edge409

.preheader321.lr.ph:                              ; preds = %195
  br i1 %56, label %.preheader321.us, label %.preheader321

.preheader321.us:                                 ; preds = %.preheader321.lr.ph, %198
  %.3168408.us = phi i32 [ %199, %198 ], [ 0, %.preheader321.lr.ph ]
  br label %202

198:                                              ; preds = %._crit_edge407.us
  %199 = add nuw nsw i32 %.3168408.us, 1
  %200 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %22)
  %201 = icmp slt i32 %199, %200
  br i1 %201, label %.preheader321.us, label %._crit_edge409, !llvm.loop !21

202:                                              ; preds = %.preheader321.us, %216
  %indvars.iv452 = phi i64 [ 0, %.preheader321.us ], [ %indvars.iv.next453, %216 ]
  %203 = trunc nuw nsw i64 %indvars.iv452 to i32
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %23, i32 noundef %203)
          to label %205 unwind label %.loopexit.split-lp.loopexit.split.us

205:                                              ; preds = %202
  %206 = load double, ptr %204, align 8, !tbaa !13
  %207 = getelementptr inbounds i8, ptr %46, i64 %indvars.iv452
  %208 = load i8, ptr %207, align 1, !tbaa !9, !range !11, !noundef !12
  %209 = trunc nuw i8 %208 to i1
  %210 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %22, i32 noundef %.3168408.us, i32 noundef %203)
  br i1 %209, label %213, label %211

211:                                              ; preds = %205
  %212 = fadd double %206, %210
  br label %215

213:                                              ; preds = %205
  %mul.us = fmul double %210, 2.000000e+00
  %exp2.us = call double @exp2(double %mul.us)
  %214 = fmul double %206, %exp2.us
  br label %215

215:                                              ; preds = %213, %211
  %.2190.us = phi double [ %214, %213 ], [ %212, %211 ]
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %19, i32 noundef 0, i32 noundef %203, double noundef %.2190.us)
          to label %216 unwind label %.loopexit.split-lp.loopexit.split.us

216:                                              ; preds = %215
  %indvars.iv.next453 = add nuw nsw i64 %indvars.iv452, 1
  %exitcond456.not = icmp eq i64 %indvars.iv.next453, %wide.trip.count455
  br i1 %exitcond456.not, label %._crit_edge407.us, label %202, !llvm.loop !22

._crit_edge407.us:                                ; preds = %216
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %22, ptr noundef nonnull align 8 dereferenceable(56) %19, i32 noundef %.3168408.us)
          to label %198 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split.us

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split.us: ; preds = %._crit_edge407.us
  %lpad.loopexit327.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split.us:             ; preds = %215, %202
  %lpad.loopexit322.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.preheader321:                                    ; preds = %.preheader321.lr.ph, %241
  %.3168408 = phi i32 [ %242, %241 ], [ 0, %.preheader321.lr.ph ]
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %22, ptr noundef nonnull align 8 dereferenceable(56) %19, i32 noundef %.3168408)
          to label %241 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split

217:                                              ; preds = %.loopexit341
  %218 = landingpad { ptr, i32 }
          cleanup
  br label %221

219:                                              ; preds = %183
  %220 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #12
  br label %221

221:                                              ; preds = %219, %217
  %.pn256 = phi { ptr, i32 } [ %220, %219 ], [ %218, %217 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #12
  br label %.loopexit.split-lp343

222:                                              ; preds = %184
  %223 = landingpad { ptr, i32 }
          cleanup
  br label %226

224:                                              ; preds = %185
  %225 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #12
  br label %226

226:                                              ; preds = %224, %222
  %.pn258 = phi { ptr, i32 } [ %225, %224 ], [ %223, %222 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #12
  br label %379

227:                                              ; preds = %186
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %378

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

231:                                              ; preds = %188
  %232 = landingpad { ptr, i32 }
          cleanup
  br label %235

233:                                              ; preds = %189
  %234 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #12
  br label %235

235:                                              ; preds = %233, %231
  %.pn260 = phi { ptr, i32 } [ %234, %233 ], [ %232, %231 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #12
  br label %376

236:                                              ; preds = %192
  %237 = landingpad { ptr, i32 }
          cleanup
  br label %240

238:                                              ; preds = %193
  %239 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %27) #12
  br label %240

240:                                              ; preds = %238, %236
  %.pn262 = phi { ptr, i32 } [ %239, %238 ], [ %237, %236 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %27) #12
  br label %.loopexit.split-lp

.loopexit320:                                     ; preds = %.lr.ph419
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %._crit_edge420, %334, %335, %336, %338, %340, %347
  %lpad.loopexit325 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split: ; preds = %.preheader321
  %lpad.loopexit327 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %252
  %lpad.loopexit331 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %.loopexit333, %365, %366, %368, %371
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

241:                                              ; preds = %.preheader321
  %242 = add nuw nsw i32 %.3168408, 1
  %243 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %22)
  %244 = icmp slt i32 %242, %243
  br i1 %244, label %.preheader321, label %._crit_edge409, !llvm.loop !21

._crit_edge409:                                   ; preds = %241, %198, %195
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %29) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull @.str.53, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %245 unwind label %247

245:                                              ; preds = %._crit_edge409
  invoke void @_ZN7SGTELIB6Matrix8set_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %22, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %246 unwind label %249

246:                                              ; preds = %245
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #12
  br label %254

247:                                              ; preds = %._crit_edge409
  %248 = landingpad { ptr, i32 }
          cleanup
  br label %251

249:                                              ; preds = %245
  %250 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #12
  br label %251

251:                                              ; preds = %249, %247
  %.pn264 = phi { ptr, i32 } [ %250, %249 ], [ %248, %247 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #12
  br label %.loopexit.split-lp

252:                                              ; preds = %191
  %253 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %22, ptr noundef nonnull align 8 dereferenceable(56) %15)
          to label %254 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

254:                                              ; preds = %252, %246
  %255 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %22)
  %256 = icmp sgt i32 %255, 0
  br i1 %256, label %.lr.ph427, label %._crit_edge428

.lr.ph427:                                        ; preds = %254, %352
  %.1162425 = phi i32 [ %.2163, %352 ], [ %.0161, %254 ]
  %.4424 = phi i32 [ %353, %352 ], [ 0, %254 ]
  %.0171423 = phi i8 [ %.1172, %352 ], [ 0, %254 ]
  %.1181422 = phi double [ %.2182, %352 ], [ %.0180, %254 ]
  %.1185421 = phi double [ %.2186, %352 ], [ %.0184, %254 ]
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %30) #12
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %30, ptr noundef nonnull align 8 dereferenceable(56) %22, i32 noundef %.4424)
          to label %257 unwind label %274

257:                                              ; preds = %.lr.ph427
  %258 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef nonnull align 8 dereferenceable(56) %30)
          to label %259 unwind label %276

259:                                              ; preds = %257
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #12
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %30) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %32) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull @.str.51, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %260 unwind label %279

260:                                              ; preds = %259
  invoke void @_ZN7SGTELIB6Matrix8set_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %261 unwind label %281

261:                                              ; preds = %260
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #12
  br i1 %56, label %.lr.ph419, label %._crit_edge420

.lr.ph419:                                        ; preds = %261, %331
  %indvars.iv457 = phi i64 [ %indvars.iv.next458, %331 ], [ 0, %261 ]
  %262 = trunc nuw nsw i64 %indvars.iv457 to i32
  %263 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %19, i32 noundef %262)
          to label %264 unwind label %.loopexit320

264:                                              ; preds = %.lr.ph419
  %265 = load double, ptr %263, align 8, !tbaa !13
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %262)
          to label %267 unwind label %284

267:                                              ; preds = %264
  %268 = load double, ptr %266, align 8, !tbaa !13
  %269 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %5, i32 noundef %262)
          to label %270 unwind label %286

270:                                              ; preds = %267
  %271 = load double, ptr %269, align 8, !tbaa !13
  %272 = getelementptr inbounds i32, ptr %51, i64 %indvars.iv457
  %273 = load i32, ptr %272, align 4, !tbaa !5
  switch i32 %273, label %.loopexit [
    i32 0, label %288
    i32 1, label %292
    i32 3, label %299
    i32 2, label %316
    i32 4, label %319
  ]

274:                                              ; preds = %.lr.ph427
  %275 = landingpad { ptr, i32 }
          cleanup
  br label %278

276:                                              ; preds = %257
  %277 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #12
  br label %278

278:                                              ; preds = %276, %274
  %.pn266 = phi { ptr, i32 } [ %277, %276 ], [ %275, %274 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %30) #12
  br label %.loopexit.split-lp

279:                                              ; preds = %259
  %280 = landingpad { ptr, i32 }
          cleanup
  br label %283

281:                                              ; preds = %260
  %282 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #12
  br label %283

283:                                              ; preds = %281, %279
  %.pn268 = phi { ptr, i32 } [ %282, %281 ], [ %280, %279 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #12
  br label %.loopexit.split-lp

284:                                              ; preds = %264
  %285 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

286:                                              ; preds = %.loopexit, %299, %292, %267
  %287 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

288:                                              ; preds = %270
  %289 = fcmp olt double %265, %268
  %.3191 = select i1 %289, double %268, double %265
  %290 = fcmp ogt double %.3191, %271
  br i1 %290, label %291, label %.loopexit

291:                                              ; preds = %288
  br label %.loopexit

292:                                              ; preds = %270
  %293 = invoke noundef i32 @_ZN7SGTELIB5roundEd(double noundef %265)
          to label %294 unwind label %286

294:                                              ; preds = %292
  %295 = sitofp i32 %293 to double
  %296 = fcmp ogt double %268, %295
  %.4192 = select i1 %296, double %268, double %295
  %297 = fcmp ogt double %.4192, %271
  br i1 %297, label %298, label %.loopexit

298:                                              ; preds = %294
  br label %.loopexit

299:                                              ; preds = %270
  %300 = invoke noundef i32 @_ZN7SGTELIB5roundEd(double noundef %265)
          to label %.preheader319 unwind label %286

.preheader319:                                    ; preds = %299
  %301 = sitofp i32 %300 to double
  %302 = fcmp olt double %271, %301
  br i1 %302, label %.lr.ph413, label %.preheader

.lr.ph413:                                        ; preds = %.preheader319
  %303 = fsub double %271, %268
  %304 = fptosi double %303 to i32
  br label %308

.preheader:                                       ; preds = %308, %.preheader319
  %.pre-phi = phi double [ %301, %.preheader319 ], [ %310, %308 ]
  %.0178.lcssa = phi i32 [ %300, %.preheader319 ], [ %309, %308 ]
  %305 = fcmp ogt double %268, %.pre-phi
  br i1 %305, label %.lr.ph415, label %.loopexit

.lr.ph415:                                        ; preds = %.preheader
  %306 = fsub double %271, %268
  %307 = fptosi double %306 to i32
  br label %312

308:                                              ; preds = %.lr.ph413, %308
  %.0178412 = phi i32 [ %300, %.lr.ph413 ], [ %309, %308 ]
  %309 = sub nsw i32 %.0178412, %304
  %310 = sitofp i32 %309 to double
  %311 = fcmp olt double %271, %310
  br i1 %311, label %308, label %.preheader, !llvm.loop !23

312:                                              ; preds = %.lr.ph415, %312
  %.1179414 = phi i32 [ %.0178.lcssa, %.lr.ph415 ], [ %313, %312 ]
  %313 = add nsw i32 %.1179414, %307
  %314 = sitofp i32 %313 to double
  %315 = fcmp ogt double %268, %314
  br i1 %315, label %312, label %.loopexit, !llvm.loop !24

316:                                              ; preds = %270
  %317 = fcmp ogt double %265, 0.000000e+00
  %318 = select i1 %317, double 1.000000e+00, double 0.000000e+00
  br label %.loopexit

319:                                              ; preds = %270
  %320 = call ptr @__cxa_allocate_exception(i64 112) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %33) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %34) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull @.str.23, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %321 unwind label %.thread303

321:                                              ; preds = %319
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %35) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %36) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull @.str.54, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %322 unwind label %325

322:                                              ; preds = %321
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %320, ptr noundef nonnull align 8 dereferenceable(32) %33, i32 noundef 1474, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %323 unwind label %327

323:                                              ; preds = %322
  invoke void @__cxa_throw(ptr nonnull %320, ptr nonnull @_ZTIN7SGTELIB9ExceptionE, ptr nonnull @_ZN7SGTELIB9ExceptionD2Ev) #14
          to label %386 unwind label %327

.thread303:                                       ; preds = %319
  %324 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #12
  br label %330

325:                                              ; preds = %321
  %326 = landingpad { ptr, i32 }
          cleanup
  br label %329

327:                                              ; preds = %323, %322
  %.0 = phi i1 [ false, %323 ], [ true, %322 ]
  %328 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #12
  br label %329

329:                                              ; preds = %325, %327
  %.pn271 = phi { ptr, i32 } [ %328, %327 ], [ %326, %325 ]
  %.1 = phi i1 [ %.0, %327 ], [ true, %325 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %36) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #12
  br i1 %.1, label %330, label %.loopexit.split-lp

330:                                              ; preds = %.thread303, %329
  %.pn271.pn306 = phi { ptr, i32 } [ %324, %.thread303 ], [ %.pn271, %329 ]
  call void @__cxa_free_exception(ptr %320) #12
  br label %.loopexit.split-lp

.loopexit:                                        ; preds = %312, %.preheader, %294, %298, %288, %291, %316, %270
  %.5 = phi double [ %265, %270 ], [ %318, %316 ], [ %271, %298 ], [ %.4192, %294 ], [ %271, %291 ], [ %.3191, %288 ], [ %.pre-phi, %.preheader ], [ %314, %312 ]
  invoke void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %19, i32 noundef 0, i32 noundef %262, double noundef %.5)
          to label %331 unwind label %286

331:                                              ; preds = %.loopexit
  %indvars.iv.next458 = add nuw nsw i64 %indvars.iv457, 1
  %exitcond461.not = icmp eq i64 %indvars.iv.next458, %wide.trip.count460
  br i1 %exitcond461.not, label %._crit_edge420, label %.lr.ph419, !llvm.loop !25

._crit_edge420:                                   ; preds = %331, %261
  %332 = invoke noundef i32 @_ZN7SGTELIB6Matrix8find_rowERS0_(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 8 dereferenceable(56) %19)
          to label %333 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

333:                                              ; preds = %._crit_edge420
  %.not270 = icmp eq i32 %332, -1
  br i1 %.not270, label %334, label %349

334:                                              ; preds = %333
  invoke void @_ZN7SGTELIB20Surrogate_Parameters5set_xERKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(312) %37, ptr noundef nonnull align 8 dereferenceable(56) %19)
          to label %335 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

335:                                              ; preds = %334
  invoke void @_ZN7SGTELIB20Surrogate_Parameters5checkEv(ptr noundef nonnull align 8 dereferenceable(312) %37)
          to label %336 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

336:                                              ; preds = %335
  %337 = invoke noundef double @_ZN7SGTELIB9Surrogate14eval_objectiveEv(ptr noundef nonnull align 8 dereferenceable(985) %0)
          to label %338 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

338:                                              ; preds = %336
  %339 = invoke noundef double @_ZN7SGTELIB20Surrogate_Parameters13get_x_penaltyEv(ptr noundef nonnull align 8 dereferenceable(312) %37)
          to label %340 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

340:                                              ; preds = %338
  %341 = add nsw i32 %.1162425, -1
  invoke void @_ZN7SGTELIB6Matrix8add_rowsERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 8 dereferenceable(56) %19)
          to label %342 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

342:                                              ; preds = %340
  %343 = fcmp olt double %337, %.1185421
  br i1 %343, label %347, label %344

344:                                              ; preds = %342
  %345 = fcmp oeq double %337, %.1185421
  %346 = fcmp olt double %339, %.1181422
  %or.cond297 = select i1 %345, i1 %346, i1 false
  br i1 %or.cond297, label %347, label %349

347:                                              ; preds = %344, %342
  %348 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %23, ptr noundef nonnull align 8 dereferenceable(56) %19)
          to label %349 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

349:                                              ; preds = %347, %344, %333
  %.2186 = phi double [ %.1185421, %333 ], [ %.1185421, %344 ], [ %337, %347 ]
  %.2182 = phi double [ %.1181422, %333 ], [ %.1181422, %344 ], [ %339, %347 ]
  %.1172 = phi i8 [ %.0171423, %333 ], [ %.0171423, %344 ], [ 1, %347 ]
  %.2163 = phi i32 [ %.1162425, %333 ], [ %341, %344 ], [ %341, %347 ]
  br i1 %.not, label %352, label %350

350:                                              ; preds = %349
  %351 = trunc nuw i8 %.1172 to i1
  br i1 %351, label %.thread307, label %352

352:                                              ; preds = %349, %350
  %353 = add nuw nsw i32 %.4424, 1
  %354 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %22)
  %355 = icmp slt i32 %353, %354
  br i1 %355, label %.lr.ph427, label %._crit_edge428, !llvm.loop !26

._crit_edge428:                                   ; preds = %352, %254
  %.1185.lcssa = phi double [ %.0184, %254 ], [ %.2186, %352 ]
  %.1181.lcssa = phi double [ %.0180, %254 ], [ %.2182, %352 ]
  %.0171.lcssa = phi i8 [ 0, %254 ], [ %.1172, %352 ]
  %.1162.lcssa = phi i32 [ %.0161, %254 ], [ %.2163, %352 ]
  br i1 %.not, label %361, label %.thread307

.thread307:                                       ; preds = %350, %._crit_edge428
  %.3317 = phi i32 [ %.1162.lcssa, %._crit_edge428 ], [ %.2163, %350 ]
  %.2173316 = phi i8 [ %.0171.lcssa, %._crit_edge428 ], [ %.1172, %350 ]
  %.3183314 = phi double [ %.1181.lcssa, %._crit_edge428 ], [ %.2182, %350 ]
  %.3187312 = phi double [ %.1185.lcssa, %._crit_edge428 ], [ %.2186, %350 ]
  %356 = trunc nuw i8 %.2173316 to i1
  br i1 %356, label %357, label %359

357:                                              ; preds = %.thread307
  %358 = fmul double %.0169, 2.000000e+00
  br label %361

359:                                              ; preds = %.thread307
  %360 = fmul double %.0169, 5.000000e-01
  br label %361

361:                                              ; preds = %357, %359, %._crit_edge428
  %.3318 = phi i32 [ %.3317, %357 ], [ %.3317, %359 ], [ %.1162.lcssa, %._crit_edge428 ]
  %.3183315 = phi double [ %.3183314, %357 ], [ %.3183314, %359 ], [ %.1181.lcssa, %._crit_edge428 ]
  %.3187313 = phi double [ %.3187312, %357 ], [ %.3187312, %359 ], [ %.1185.lcssa, %._crit_edge428 ]
  %.1170 = phi double [ %358, %357 ], [ %360, %359 ], [ %.0169, %._crit_edge428 ]
  %362 = fcmp uge double %.1170, 0x3EB0C6F7A0B5ED8D
  %363 = add nuw nsw i32 %.0164, 1
  %364 = icmp sgt i32 %.3318, 0
  %or.cond299 = select i1 %362, i1 %364, i1 false
  br i1 %or.cond299, label %191, label %.loopexit333, !llvm.loop !27

.loopexit333:                                     ; preds = %361, %190
  invoke void @_ZN7SGTELIB20Surrogate_Parameters5set_xERKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(312) %37, ptr noundef nonnull align 8 dereferenceable(56) %23)
          to label %365 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

365:                                              ; preds = %.loopexit333
  invoke void @_ZN7SGTELIB20Surrogate_Parameters5checkEv(ptr noundef nonnull align 8 dereferenceable(312) %37)
          to label %366 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

366:                                              ; preds = %365
  %367 = invoke noundef double @_ZN7SGTELIB9Surrogate14eval_objectiveEv(ptr noundef nonnull align 8 dereferenceable(985) %0)
          to label %368 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

368:                                              ; preds = %366
  %369 = invoke noundef zeroext i1 @_ZNK7SGTELIB6Matrix7has_nanEv(ptr noundef nonnull align 8 dereferenceable(56) %23)
          to label %370 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

370:                                              ; preds = %368
  br i1 %369, label %375, label %371

371:                                              ; preds = %370
  %372 = invoke noundef zeroext i1 @_ZNK7SGTELIB6Matrix7has_infEv(ptr noundef nonnull align 8 dereferenceable(56) %23)
          to label %373 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

373:                                              ; preds = %371
  br i1 %372, label %375, label %374

374:                                              ; preds = %373
  call void @_ZdaPv(ptr noundef nonnull %46) #16
  call void @_ZdaPv(ptr noundef nonnull %51) #16
  br label %375

375:                                              ; preds = %370, %373, %374
  %.0160 = phi i1 [ true, %374 ], [ false, %373 ], [ false, %370 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %24) #12
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %24) #12
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #12
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %23) #12
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %22) #12
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %22) #12
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %19) #12
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %19) #12
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %15) #12
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %15) #12
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #12
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #12
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #12
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #12
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #12
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #12
  ret i1 %.0160

.loopexit.split-lp:                               ; preds = %.loopexit320, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split.us, %.loopexit.split-lp.loopexit.split.us, %284, %329, %330, %286, %283, %278, %251, %240
  %.pn277 = phi { ptr, i32 } [ %.pn268, %283 ], [ %.pn266, %278 ], [ %.pn264, %251 ], [ %.pn262, %240 ], [ %285, %284 ], [ %287, %286 ], [ %.pn271.pn306, %330 ], [ %.pn271, %329 ], [ %lpad.loopexit, %.loopexit320 ], [ %lpad.loopexit322.us, %.loopexit.split-lp.loopexit.split.us ], [ %lpad.loopexit325, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit327, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split ], [ %lpad.loopexit327.us, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split.us ], [ %lpad.loopexit331, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %24) #12
  br label %376

376:                                              ; preds = %.loopexit.split-lp, %235
  %.pn277.pn = phi { ptr, i32 } [ %.pn277, %.loopexit.split-lp ], [ %.pn260, %235 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %24) #12
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #12
  br label %377

377:                                              ; preds = %376, %229
  %.pn277.pn.pn = phi { ptr, i32 } [ %.pn277.pn, %376 ], [ %230, %229 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %23) #12
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %22) #12
  br label %378

378:                                              ; preds = %377, %227
  %.pn277.pn.pn.pn = phi { ptr, i32 } [ %.pn277.pn.pn, %377 ], [ %228, %227 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %22) #12
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %19) #12
  br label %379

379:                                              ; preds = %378, %226
  %.pn277.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn277.pn.pn.pn, %378 ], [ %.pn258, %226 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %19) #12
  br label %.loopexit.split-lp343

.loopexit.split-lp343:                            ; preds = %.loopexit335.split.us, %.loopexit.split-lp336, %.loopexit342.split.us, %.loopexit.split-lp343.split.us, %.loopexit.split-lp343.split, %.split, %.split.us, %379, %221
  %.pn284.pn = phi { ptr, i32 } [ %.pn277.pn.pn.pn.pn, %379 ], [ %.pn256, %221 ], [ %164, %.split ], [ %153, %.split.us ], [ %lpad.loopexit344.us, %.loopexit342.split.us ], [ %lpad.loopexit.split-lp345, %.loopexit.split-lp343.split ], [ %lpad.loopexit.split-lp345.us, %.loopexit.split-lp343.split.us ], [ %lpad.loopexit337.us, %.loopexit335.split.us ], [ %lpad.loopexit.split-lp338, %.loopexit.split-lp336 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %15) #12
  br label %380

380:                                              ; preds = %.loopexit.split-lp343, %163
  %.pn284.pn.pn = phi { ptr, i32 } [ %.pn284.pn, %.loopexit.split-lp343 ], [ %.pn254, %163 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %15) #12
  br label %381

381:                                              ; preds = %105, %106, %380, %91
  %.pn288.pn.pn = phi { ptr, i32 } [ %.pn288.pn302, %106 ], [ %.pn288, %105 ], [ %92, %91 ], [ %.pn284.pn.pn, %380 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #12
  br label %382

382:                                              ; preds = %381, %81
  %.pn288.pn.pn.pn = phi { ptr, i32 } [ %.pn288.pn.pn, %381 ], [ %.pn252, %81 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #12
  br label %383

383:                                              ; preds = %75, %382, %73
  %.pn288.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %74, %73 ], [ %.pn288.pn.pn.pn, %382 ], [ %76, %75 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #12
  br label %384

384:                                              ; preds = %383, %72
  %.pn288.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn288.pn.pn.pn.pn.pn, %383 ], [ %.pn250, %72 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #12
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #12
  br label %385

385:                                              ; preds = %384, %67
  %.pn288.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn288.pn.pn.pn.pn.pn.pn, %384 ], [ %.pn, %67 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #12
  resume { ptr, i32 } %.pn288.pn.pn.pn.pn.pn.pn.pn

386:                                              ; preds = %323, %99
  unreachable
}

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

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

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: inlinehint mustprogress uwtable
declare dso_local void @_ZN7SGTELIB6Matrix8set_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #7

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

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

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

declare void @_ZN7SGTELIB20Surrogate_Parameters12get_x_boundsEPNS_6MatrixES2_PNS_14param_domain_tEPb(ptr noundef nonnull align 8 dereferenceable(312), ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef double @_ZN7SGTELIB12uniform_randEv() local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #8

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #10

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

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

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

declare void @_ZN7SGTELIB6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3

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

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

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

declare noundef i32 @_ZN7SGTELIB5roundEd(double noundef) local_unnamed_addr #3

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

declare void @_ZN7SGTELIB20Surrogate_Parameters5set_xERKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(312), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN7SGTELIB9Surrogate14eval_objectiveEv(ptr noundef nonnull align 8 dereferenceable(985)) local_unnamed_addr #5 align 2

declare noundef double @_ZN7SGTELIB20Surrogate_Parameters13get_x_penaltyEv(ptr noundef nonnull align 8 dereferenceable(312)) local_unnamed_addr #3

declare noundef zeroext i1 @_ZNK7SGTELIB6Matrix7has_nanEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3

declare noundef zeroext i1 @_ZNK7SGTELIB6Matrix7has_infEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3

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

declare double @exp2(double) local_unnamed_addr

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_ZTSN7SGTELIB14param_domain_tE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}


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