; LLVM IR from buresjan/optim_lbm :: nomad/src/Algos/NelderMead/NMReflective.ll (ZN9NOMAD_4_312NMReflective6runImpEv)

; 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"

%"struct.std::_Rb_tree_const_iterator" = type { 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.NOMAD_4_3::Step" = type <{ ptr, ptr, i32, [4 x i8], %"class.std::shared_ptr", %"class.std::shared_ptr.3", %"class.std::shared_ptr.6", %"class.NOMAD_4_3::SuccessStats", i32, [4 x i8] }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = type { ptr, %"class.std::__shared_count" }
%"class.NOMAD_4_3::SuccessStats" = type { %"class.std::map", i64, i64 }
%"class.std::map" = type { %"class.std::_Rb_tree.9" }
%"class.std::_Rb_tree.9" = type { %"struct.std::_Rb_tree<std::pair<NOMAD_4_3::StepType, NOMAD_4_3::SuccessType>, std::pair<const std::pair<NOMAD_4_3::StepType, NOMAD_4_3::SuccessType>, unsigned long>, std::_Select1st<std::pair<const std::pair<NOMAD_4_3::StepType, NOMAD_4_3::SuccessType>, unsigned long>>, std::less<std::pair<NOMAD_4_3::StepType, NOMAD_4_3::SuccessType>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<NOMAD_4_3::StepType, NOMAD_4_3::SuccessType>, std::pair<const std::pair<NOMAD_4_3::StepType, NOMAD_4_3::SuccessType>, unsigned long>, std::_Select1st<std::pair<const std::pair<NOMAD_4_3::StepType, NOMAD_4_3::SuccessType>, unsigned long>>, std::less<std::pair<NOMAD_4_3::StepType, NOMAD_4_3::SuccessType>>>::_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.NOMAD_4_3::NMIterationUtils" = type { %"class.NOMAD_4_3::IterationUtils", double, double, double, ptr, ptr, %"class.NOMAD_4_3::ArrayOfDouble", %"class.NOMAD_4_3::Double", i32, %"class.std::shared_ptr.23" }
%"class.NOMAD_4_3::IterationUtils" = type { ptr, %"class.std::set", i64, ptr, ptr, ptr, %"class.NOMAD_4_3::TrialPointStats", i8, i32 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<NOMAD_4_3::EvalPoint, NOMAD_4_3::EvalPoint, std::_Identity<NOMAD_4_3::EvalPoint>, NOMAD_4_3::EvalPointCompare>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<NOMAD_4_3::EvalPoint, NOMAD_4_3::EvalPoint, std::_Identity<NOMAD_4_3::EvalPoint>, NOMAD_4_3::EvalPointCompare>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.NOMAD_4_3::TrialPointStats" = type { ptr, %"class.std::vector", %"class.std::map.17", %"class.std::map.17", %"class.std::map.17", %"class.std::map.17", i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<NOMAD_4_3::EvalType, std::allocator<NOMAD_4_3::EvalType>>::_Vector_impl" }
%"struct.std::_Vector_base<NOMAD_4_3::EvalType, std::allocator<NOMAD_4_3::EvalType>>::_Vector_impl" = type { %"struct.std::_Vector_base<NOMAD_4_3::EvalType, std::allocator<NOMAD_4_3::EvalType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<NOMAD_4_3::EvalType, std::allocator<NOMAD_4_3::EvalType>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.17" = type { %"class.std::_Rb_tree.18" }
%"class.std::_Rb_tree.18" = type { %"struct.std::_Rb_tree<NOMAD_4_3::EvalType, std::pair<const NOMAD_4_3::EvalType, unsigned long>, std::_Select1st<std::pair<const NOMAD_4_3::EvalType, unsigned long>>, std::less<NOMAD_4_3::EvalType>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<NOMAD_4_3::EvalType, std::pair<const NOMAD_4_3::EvalType, unsigned long>, std::_Select1st<std::pair<const NOMAD_4_3::EvalType, unsigned long>>, std::less<NOMAD_4_3::EvalType>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.NOMAD_4_3::ArrayOfDouble" = type { ptr, i64, ptr }
%"class.NOMAD_4_3::Double" = type <{ ptr, double, i8, [7 x i8] }>
%"class.std::shared_ptr.23" = type { %"class.std::__shared_ptr.24" }
%"class.std::__shared_ptr.24" = type { ptr, %"class.std::__shared_count" }
%"class.NOMAD_4_3::NMReflective" = type { %"class.NOMAD_4_3::Step.base", %"class.NOMAD_4_3::NMIterationUtils", i32, [4 x i8], %"class.NOMAD_4_3::Double", %"class.NOMAD_4_3::Double", %"class.NOMAD_4_3::Double", %"class.NOMAD_4_3::Double", %"class.NOMAD_4_3::EvalPoint", %"class.NOMAD_4_3::EvalPoint", %"class.NOMAD_4_3::EvalPoint", %"class.NOMAD_4_3::EvalPoint", %"class.std::vector.42", %"class.std::vector.42" }
%"class.NOMAD_4_3::Step.base" = type <{ ptr, ptr, i32, [4 x i8], %"class.std::shared_ptr", %"class.std::shared_ptr.3", %"class.std::shared_ptr.6", %"class.NOMAD_4_3::SuccessStats", i32 }>
%"class.NOMAD_4_3::EvalPoint" = type { %"class.NOMAD_4_3::Point", [3 x %"class.std::unique_ptr"], i32, i32, i16, %"class.std::shared_ptr.28", %"class.std::vector.31", %"class.std::shared_ptr.36", %"class.NOMAD_4_3::Double", %"class.std::shared_ptr.39" }
%"class.NOMAD_4_3::Point" = type { %"class.NOMAD_4_3::ArrayOfDouble" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.27" }
%"struct.std::_Head_base.27" = type { ptr }
%"class.std::shared_ptr.28" = type { %"class.std::__shared_ptr.29" }
%"class.std::__shared_ptr.29" = type { ptr, %"class.std::__shared_count" }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<NOMAD_4_3::StepType, std::allocator<NOMAD_4_3::StepType>>::_Vector_impl" }
%"struct.std::_Vector_base<NOMAD_4_3::StepType, std::allocator<NOMAD_4_3::StepType>>::_Vector_impl" = type { %"struct.std::_Vector_base<NOMAD_4_3::StepType, std::allocator<NOMAD_4_3::StepType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<NOMAD_4_3::StepType, std::allocator<NOMAD_4_3::StepType>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr.36" = type { %"class.std::__shared_ptr.37" }
%"class.std::__shared_ptr.37" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.39" = type { %"class.std::__shared_ptr.40" }
%"class.std::__shared_ptr.40" = type { ptr, %"class.std::__shared_count" }
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<NOMAD_4_3::EvalPoint, std::allocator<NOMAD_4_3::EvalPoint>>::_Vector_impl" }
%"struct.std::_Vector_base<NOMAD_4_3::EvalPoint, std::allocator<NOMAD_4_3::EvalPoint>>::_Vector_impl" = type { %"struct.std::_Vector_base<NOMAD_4_3::EvalPoint, std::allocator<NOMAD_4_3::EvalPoint>>::_Vector_impl_data" }
%"struct.std::_Vector_base<NOMAD_4_3::EvalPoint, std::allocator<NOMAD_4_3::EvalPoint>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.13 = external hidden unnamed_addr constant [96 x i8], align 1
@_ZTIN9NOMAD_4_39ExceptionE = external constant ptr
@.str.22 = external hidden unnamed_addr constant [81 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9NOMAD_4_312NMReflective6runImpEv(ptr noundef nonnull align 8 dereferenceable(1376) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca i1, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #4
  store i8 0, ptr %3, align 1, !tbaa !9
  %16 = getelementptr inbounds %"class.NOMAD_4_3::Step", ptr %15, i32 0, i32 4
  %17 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9NOMAD_4_314AllStopReasonsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = getelementptr inbounds ptr, ptr %18, i64 4
  %20 = load ptr, ptr %19, align 8
  %21 = call noundef zeroext i1 %20(ptr noundef nonnull align 8 dereferenceable(24) %17)
  br i1 %21, label %26, label %22

22:                                               ; preds = %1
  %23 = getelementptr inbounds i8, ptr %15, i64 144
  %24 = call noundef zeroext i1 @_ZN9NOMAD_4_314IterationUtils15evalTrialPointsEPKNS_4StepEmNS_8StepTypeE(ptr noundef nonnull align 8 dereferenceable(328) %23, ptr noundef %15, i64 noundef -1, i32 noundef 57)
  %25 = zext i1 %24 to i8
  store i8 %25, ptr %3, align 1, !tbaa !9
  br label %26

26:                                               ; preds = %22, %1
  %27 = getelementptr inbounds i8, ptr %15, i64 144
  %28 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_314IterationUtils14getTrialPointsEv(ptr noundef nonnull align 8 dereferenceable(328) %27)
  %29 = call noundef i64 @_ZNKSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %28) #4
  %30 = icmp ugt i64 %29, 0
  br i1 %30, label %31, label %90

31:                                               ; preds = %26
  %32 = getelementptr inbounds i8, ptr %15, i64 144
  %33 = getelementptr inbounds %"class.NOMAD_4_3::NMIterationUtils", ptr %32, i32 0, i32 8
  %34 = load i32, ptr %33, align 8, !tbaa !13
  switch i32 %34, label %67 [
    i32 28, label %35
    i32 21, label %43
    i32 27, label %51
    i32 25, label %59
  ]

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %36 = getelementptr inbounds i8, ptr %15, i64 144
  %37 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_314IterationUtils14getTrialPointsEv(ptr noundef nonnull align 8 dereferenceable(328) %36)
  %38 = call ptr @_ZNKSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %37) #4
  %39 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %4, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  %40 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNKSt23_Rb_tree_const_iteratorIN9NOMAD_4_39EvalPointEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %41 = getelementptr inbounds %"class.NOMAD_4_3::NMReflective", ptr %15, i32 0, i32 8
  %42 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN9NOMAD_4_39EvalPointaSERKS0_(ptr noundef nonnull align 8 dereferenceable(160) %41, ptr noundef nonnull align 8 dereferenceable(160) %40)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %89

43:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %44 = getelementptr inbounds i8, ptr %15, i64 144
  %45 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_314IterationUtils14getTrialPointsEv(ptr noundef nonnull align 8 dereferenceable(328) %44)
  %46 = call ptr @_ZNKSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %45) #4
  %47 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %5, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  %48 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNKSt23_Rb_tree_const_iteratorIN9NOMAD_4_39EvalPointEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %49 = getelementptr inbounds %"class.NOMAD_4_3::NMReflective", ptr %15, i32 0, i32 9
  %50 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN9NOMAD_4_39EvalPointaSERKS0_(ptr noundef nonnull align 8 dereferenceable(160) %49, ptr noundef nonnull align 8 dereferenceable(160) %48)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %89

51:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %52 = getelementptr inbounds i8, ptr %15, i64 144
  %53 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_314IterationUtils14getTrialPointsEv(ptr noundef nonnull align 8 dereferenceable(328) %52)
  %54 = call ptr @_ZNKSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %53) #4
  %55 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %6, i32 0, i32 0
  store ptr %54, ptr %55, align 8
  %56 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNKSt23_Rb_tree_const_iteratorIN9NOMAD_4_39EvalPointEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %57 = getelementptr inbounds %"class.NOMAD_4_3::NMReflective", ptr %15, i32 0, i32 10
  %58 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN9NOMAD_4_39EvalPointaSERKS0_(ptr noundef nonnull align 8 dereferenceable(160) %57, ptr noundef nonnull align 8 dereferenceable(160) %56)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %89

59:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %60 = getelementptr inbounds i8, ptr %15, i64 144
  %61 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_314IterationUtils14getTrialPointsEv(ptr noundef nonnull align 8 dereferenceable(328) %60)
  %62 = call ptr @_ZNKSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %61) #4
  %63 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %7, i32 0, i32 0
  store ptr %62, ptr %63, align 8
  %64 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNKSt23_Rb_tree_const_iteratorIN9NOMAD_4_39EvalPointEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %65 = getelementptr inbounds %"class.NOMAD_4_3::NMReflective", ptr %15, i32 0, i32 11
  %66 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN9NOMAD_4_39EvalPointaSERKS0_(ptr noundef nonnull align 8 dereferenceable(160) %65, ptr noundef nonnull align 8 dereferenceable(160) %64)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %89

67:                                               ; preds = %31
  store i1 true, ptr %14, align 1
  %68 = call ptr @__cxa_allocate_exception(i64 112) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %69 unwind label %72

69:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %70 unwind label %76

70:                                               ; preds = %69
  invoke void @_ZN9NOMAD_4_39ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmS8_(ptr noundef nonnull align 8 dereferenceable(112) %68, ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef 159, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %71 unwind label %80

71:                                               ; preds = %70
  store i1 false, ptr %14, align 1
  invoke void @__cxa_throw(ptr %68, ptr @_ZTIN9NOMAD_4_39ExceptionE, ptr @_ZN9NOMAD_4_39ExceptionD2Ev) #5
          to label %111 unwind label %80

72:                                               ; preds = %67
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %10, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %11, align 4
  br label %85

76:                                               ; preds = %69
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %10, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %11, align 4
  br label %84

80:                                               ; preds = %71, %70
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %10, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  br label %84

84:                                               ; preds = %80, %76
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  br label %85

85:                                               ; preds = %84, %72
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #4
  %86 = load i1, ptr %14, align 1
  br i1 %86, label %87, label %88

87:                                               ; preds = %85
  call void @__cxa_free_exception(ptr %68) #4
  br label %88

88:                                               ; preds = %87, %85
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #4
  br label %106

89:                                               ; preds = %59, %51, %43, %35
  br label %90

90:                                               ; preds = %89, %26
  %91 = getelementptr inbounds %"class.NOMAD_4_3::Step", ptr %15, i32 0, i32 4
  %92 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9NOMAD_4_314AllStopReasonsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %91) #4
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = getelementptr inbounds ptr, ptr %93, i64 4
  %95 = load ptr, ptr %94, align 8
  %96 = call noundef zeroext i1 %95(ptr noundef nonnull align 8 dereferenceable(24) %92)
  br i1 %96, label %98, label %97

97:                                               ; preds = %90
  call void @_ZN9NOMAD_4_312NMReflective17setNextNMStepTypeEv(ptr noundef nonnull align 8 dereferenceable(1376) %15)
  br label %98

98:                                               ; preds = %97, %90
  %99 = getelementptr inbounds i8, ptr %15, i64 144
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  %101 = getelementptr inbounds ptr, ptr %100, i64 2
  %102 = load ptr, ptr %101, align 8
  %103 = call noundef zeroext i1 %102(ptr noundef nonnull align 8 dereferenceable(328) %99)
  %104 = load i8, ptr %3, align 1, !tbaa !9, !range !43, !noundef !44
  %105 = trunc i8 %104 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #4
  ret i1 %105

106:                                              ; preds = %88
  %107 = load ptr, ptr %10, align 8
  %108 = load i32, ptr %11, align 4
  %109 = insertvalue { ptr, i32 } poison, ptr %107, 0
  %110 = insertvalue { ptr, i32 } %109, i32 %108, 1
  resume { ptr, i32 } %110

111:                                              ; preds = %71
  unreachable
}

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

declare noundef zeroext i1 @_ZN9NOMAD_4_314IterationUtils15evalTrialPointsEPKNS_4StepEmNS_8StepTypeE(ptr noundef nonnull align 8 dereferenceable(328), ptr noundef, i64 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_314IterationUtils14getTrialPointsEv(ptr noundef nonnull align 8 dereferenceable(328)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

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

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

declare noundef nonnull align 8 dereferenceable(160) ptr @_ZN9NOMAD_4_39EvalPointaSERKS0_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(160)) #3

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !39, i64 416}
!14 = !{!"_ZTSN9NOMAD_4_316NMIterationUtilsE", !15, i64 0, !36, i64 328, !36, i64 336, !36, i64 344, !6, i64 352, !6, i64 360, !37, i64 368, !38, i64 392, !39, i64 416, !40, i64 424}
!15 = !{!"_ZTSN9NOMAD_4_314IterationUtilsE", !16, i64 8, !24, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !25, i64 88, !10, i64 320, !35, i64 324}
!16 = !{!"_ZTSSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt8_Rb_treeIN9NOMAD_4_39EvalPointES1_St9_IdentityIS1_ENS0_16EvalPointCompareESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt8_Rb_treeIN9NOMAD_4_39EvalPointES1_St9_IdentityIS1_ENS0_16EvalPointCompareESaIS1_EE13_Rb_tree_implIS4_Lb1EEE", !19, i64 0, !21, i64 8}
!19 = !{!"_ZTSSt20_Rb_tree_key_compareIN9NOMAD_4_316EvalPointCompareEE", !20, i64 0}
!20 = !{!"_ZTSN9NOMAD_4_316EvalPointCompareE"}
!21 = !{!"_ZTSSt15_Rb_tree_header", !22, i64 0, !24, i64 32}
!22 = !{!"_ZTSSt18_Rb_tree_node_base", !23, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSN9NOMAD_4_315TrialPointStatsE", !6, i64 0, !26, i64 8, !30, i64 32, !30, i64 80, !30, i64 128, !30, i64 176, !24, i64 224}
!26 = !{!"_ZTSSt6vectorIN9NOMAD_4_38EvalTypeESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN9NOMAD_4_38EvalTypeESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_38EvalTypeESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_38EvalTypeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt3mapIN9NOMAD_4_38EvalTypeEmSt4lessIS1_ESaISt4pairIKS1_mEEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeIN9NOMAD_4_38EvalTypeESt4pairIKS1_mESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeIN9NOMAD_4_38EvalTypeESt4pairIKS1_mESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !33, i64 0, !21, i64 8}
!33 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN9NOMAD_4_38EvalTypeEEE", !34, i64 0}
!34 = !{!"_ZTSSt4lessIN9NOMAD_4_38EvalTypeEE"}
!35 = !{!"_ZTSN9NOMAD_4_311SuccessTypeE", !7, i64 0}
!36 = !{!"double", !7, i64 0}
!37 = !{!"_ZTSN9NOMAD_4_313ArrayOfDoubleE", !24, i64 8, !6, i64 16}
!38 = !{!"_ZTSN9NOMAD_4_36DoubleE", !36, i64 8, !10, i64 16}
!39 = !{!"_ZTSN9NOMAD_4_38StepTypeE", !7, i64 0}
!40 = !{!"_ZTSSt10shared_ptrISt3setIN9NOMAD_4_39EvalPointENS1_25NMSimplexEvalPointCompareESaIS2_EEE", !41, i64 0}
!41 = !{!"_ZTSSt12__shared_ptrISt3setIN9NOMAD_4_39EvalPointENS1_25NMSimplexEvalPointCompareESaIS2_EELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !42, i64 8}
!42 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!43 = !{i8 0, i8 2}
!44 = !{}


; 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"

%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str.13 = external hidden unnamed_addr constant [96 x i8], align 1
@_ZTIN9NOMAD_4_39ExceptionE = external constant ptr
@.str.22 = external hidden unnamed_addr constant [81 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NOMAD_4_39ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmS8_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, ptr noundef nonnull align 8 dereferenceable(32)) 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: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9NOMAD_4_312NMReflective6runImpEv(ptr noundef nonnull align 8 dereferenceable(1376) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN9NOMAD_4_314AllStopReasonsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 32
  %14 = load ptr, ptr %13, align 8
  %15 = tail call noundef zeroext i1 %14(ptr noundef nonnull align 8 dereferenceable(24) %11)
  br i1 %15, label %19, label %16

16:                                               ; preds = %1
  %17 = getelementptr inbounds i8, ptr %0, i64 144
  %18 = tail call noundef zeroext i1 @_ZN9NOMAD_4_314IterationUtils15evalTrialPointsEPKNS_4StepEmNS_8StepTypeE(ptr noundef nonnull align 8 dereferenceable(328) %17, ptr noundef nonnull %0, i64 noundef -1, i32 noundef 57)
  br label %19

19:                                               ; preds = %16, %1
  %.08 = phi i1 [ false, %1 ], [ %18, %16 ]
  %20 = getelementptr inbounds i8, ptr %0, i64 144
  %21 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_314IterationUtils14getTrialPointsEv(ptr noundef nonnull align 8 dereferenceable(328) %20)
  %22 = tail call noundef i64 @_ZNKSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #4
  %.not = icmp eq i64 %22, 0
  br i1 %.not, label %63, label %23

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %0, i64 560
  %25 = load i32, ptr %24, align 8, !tbaa !8
  switch i32 %25, label %50 [
    i32 28, label %26
    i32 21, label %32
    i32 27, label %38
    i32 25, label %44
  ]

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %27 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_314IterationUtils14getTrialPointsEv(ptr noundef nonnull align 8 dereferenceable(328) %20)
  %28 = tail call ptr @_ZNKSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %27) #4
  store ptr %28, ptr %2, align 8
  %29 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNKSt23_Rb_tree_const_iteratorIN9NOMAD_4_39EvalPointEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  %30 = getelementptr inbounds i8, ptr %0, i64 688
  %31 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN9NOMAD_4_39EvalPointaSERKS0_(ptr noundef nonnull align 8 dereferenceable(160) %30, ptr noundef nonnull align 8 dereferenceable(160) %29)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  br label %63

32:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %33 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_314IterationUtils14getTrialPointsEv(ptr noundef nonnull align 8 dereferenceable(328) %20)
  %34 = tail call ptr @_ZNKSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %33) #4
  store ptr %34, ptr %3, align 8
  %35 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNKSt23_Rb_tree_const_iteratorIN9NOMAD_4_39EvalPointEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %36 = getelementptr inbounds i8, ptr %0, i64 848
  %37 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN9NOMAD_4_39EvalPointaSERKS0_(ptr noundef nonnull align 8 dereferenceable(160) %36, ptr noundef nonnull align 8 dereferenceable(160) %35)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %63

38:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %39 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_314IterationUtils14getTrialPointsEv(ptr noundef nonnull align 8 dereferenceable(328) %20)
  %40 = tail call ptr @_ZNKSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %39) #4
  store ptr %40, ptr %4, align 8
  %41 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNKSt23_Rb_tree_const_iteratorIN9NOMAD_4_39EvalPointEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %42 = getelementptr inbounds i8, ptr %0, i64 1008
  %43 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN9NOMAD_4_39EvalPointaSERKS0_(ptr noundef nonnull align 8 dereferenceable(160) %42, ptr noundef nonnull align 8 dereferenceable(160) %41)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %63

44:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %45 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_314IterationUtils14getTrialPointsEv(ptr noundef nonnull align 8 dereferenceable(328) %20)
  %46 = tail call ptr @_ZNKSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %45) #4
  store ptr %46, ptr %5, align 8
  %47 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNKSt23_Rb_tree_const_iteratorIN9NOMAD_4_39EvalPointEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %48 = getelementptr inbounds i8, ptr %0, i64 1168
  %49 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN9NOMAD_4_39EvalPointaSERKS0_(ptr noundef nonnull align 8 dereferenceable(160) %48, ptr noundef nonnull align 8 dereferenceable(160) %47)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %63

50:                                               ; preds = %23
  %51 = tail call ptr @__cxa_allocate_exception(i64 112) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %52 unwind label %.thread

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

53:                                               ; preds = %52
  invoke void @_ZN9NOMAD_4_39ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmS8_(ptr noundef nonnull align 8 dereferenceable(112) %51, ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef 159, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %54 unwind label %58

54:                                               ; preds = %53
  invoke void @__cxa_throw(ptr nonnull %51, ptr nonnull @_ZTIN9NOMAD_4_39ExceptionE, ptr nonnull @_ZN9NOMAD_4_39ExceptionD2Ev) #5
          to label %75 unwind label %58

.thread:                                          ; preds = %50
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br label %61

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

58:                                               ; preds = %54, %53
  %.0 = phi i1 [ false, %54 ], [ true, %53 ]
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  br label %60

60:                                               ; preds = %56, %58
  %.pn = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  %.1 = phi i1 [ %.0, %58 ], [ true, %56 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br i1 %.1, label %61, label %62

61:                                               ; preds = %.thread, %60
  %.pn.pn14 = phi { ptr, i32 } [ %55, %.thread ], [ %.pn, %60 ]
  call void @__cxa_free_exception(ptr %51) #4
  br label %62

62:                                               ; preds = %61, %60
  %.pn.pn13 = phi { ptr, i32 } [ %.pn.pn14, %61 ], [ %.pn, %60 ]
  resume { ptr, i32 } %.pn.pn13

63:                                               ; preds = %26, %32, %38, %44, %19
  %64 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9NOMAD_4_314AllStopReasonsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 32
  %67 = load ptr, ptr %66, align 8
  %68 = call noundef zeroext i1 %67(ptr noundef nonnull align 8 dereferenceable(24) %64)
  br i1 %68, label %70, label %69

69:                                               ; preds = %63
  call void @_ZN9NOMAD_4_312NMReflective17setNextNMStepTypeEv(ptr noundef nonnull align 8 dereferenceable(1376) %0)
  br label %70

70:                                               ; preds = %69, %63
  %71 = load ptr, ptr %20, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  %73 = load ptr, ptr %72, align 8
  %74 = call noundef zeroext i1 %73(ptr noundef nonnull align 8 dereferenceable(328) %20)
  ret i1 %.08

75:                                               ; preds = %54
  unreachable
}

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

declare noundef zeroext i1 @_ZN9NOMAD_4_314IterationUtils15evalTrialPointsEPKNS_4StepEmNS_8StepTypeE(ptr noundef nonnull align 8 dereferenceable(328), ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9NOMAD_4_314IterationUtils14getTrialPointsEv(ptr noundef nonnull align 8 dereferenceable(328)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

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

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

declare noundef nonnull align 8 dereferenceable(160) ptr @_ZN9NOMAD_4_39EvalPointaSERKS0_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #3

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !37, i64 416}
!9 = !{!"_ZTSN9NOMAD_4_316NMIterationUtilsE", !10, i64 0, !34, i64 328, !34, i64 336, !34, i64 344, !20, i64 352, !20, i64 360, !35, i64 368, !36, i64 392, !37, i64 416, !38, i64 424}
!10 = !{!"_ZTSN9NOMAD_4_314IterationUtilsE", !11, i64 8, !21, i64 56, !20, i64 64, !20, i64 72, !20, i64 80, !22, i64 88, !32, i64 320, !33, i64 324}
!11 = !{!"_ZTSSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt8_Rb_treeIN9NOMAD_4_39EvalPointES1_St9_IdentityIS1_ENS0_16EvalPointCompareESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSNSt8_Rb_treeIN9NOMAD_4_39EvalPointES1_St9_IdentityIS1_ENS0_16EvalPointCompareESaIS1_EE13_Rb_tree_implIS4_Lb1EEE", !14, i64 0, !16, i64 8}
!14 = !{!"_ZTSSt20_Rb_tree_key_compareIN9NOMAD_4_316EvalPointCompareEE", !15, i64 0}
!15 = !{!"_ZTSN9NOMAD_4_316EvalPointCompareE"}
!16 = !{!"_ZTSSt15_Rb_tree_header", !17, i64 0, !21, i64 32}
!17 = !{!"_ZTSSt18_Rb_tree_node_base", !18, i64 0, !20, i64 8, !20, i64 16, !20, i64 24}
!18 = !{!"_ZTSSt14_Rb_tree_color", !19, i64 0}
!19 = !{!"omnipotent char", !7, i64 0}
!20 = !{!"any pointer", !19, i64 0}
!21 = !{!"long", !19, i64 0}
!22 = !{!"_ZTSN9NOMAD_4_315TrialPointStatsE", !20, i64 0, !23, i64 8, !27, i64 32, !27, i64 80, !27, i64 128, !27, i64 176, !21, i64 224}
!23 = !{!"_ZTSSt6vectorIN9NOMAD_4_38EvalTypeESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN9NOMAD_4_38EvalTypeESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_38EvalTypeESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_38EvalTypeESaIS1_EE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!27 = !{!"_ZTSSt3mapIN9NOMAD_4_38EvalTypeEmSt4lessIS1_ESaISt4pairIKS1_mEEE", !28, i64 0}
!28 = !{!"_ZTSSt8_Rb_treeIN9NOMAD_4_38EvalTypeESt4pairIKS1_mESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !29, i64 0}
!29 = !{!"_ZTSNSt8_Rb_treeIN9NOMAD_4_38EvalTypeESt4pairIKS1_mESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !30, i64 0, !16, i64 8}
!30 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN9NOMAD_4_38EvalTypeEEE", !31, i64 0}
!31 = !{!"_ZTSSt4lessIN9NOMAD_4_38EvalTypeEE"}
!32 = !{!"bool", !19, i64 0}
!33 = !{!"_ZTSN9NOMAD_4_311SuccessTypeE", !19, i64 0}
!34 = !{!"double", !19, i64 0}
!35 = !{!"_ZTSN9NOMAD_4_313ArrayOfDoubleE", !21, i64 8, !20, i64 16}
!36 = !{!"_ZTSN9NOMAD_4_36DoubleE", !34, i64 8, !32, i64 16}
!37 = !{!"_ZTSN9NOMAD_4_38StepTypeE", !19, i64 0}
!38 = !{!"_ZTSSt10shared_ptrISt3setIN9NOMAD_4_39EvalPointENS1_25NMSimplexEvalPointCompareESaIS2_EEE", !39, i64 0}
!39 = !{!"_ZTSSt12__shared_ptrISt3setIN9NOMAD_4_39EvalPointENS1_25NMSimplexEvalPointCompareESaIS2_EELN9__gnu_cxx12_Lock_policyE2EE", !20, i64 0, !40, i64 8}
!40 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !20, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass