; LLVM IR from buresjan/optim_lbm :: nomad/src/Algos/IterationUtils.ll (ZN9NOMAD_4_314IterationUtils4initEv)

; 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::__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::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" }
%"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::TrialPointStats" = type { ptr, %"class.std::vector", %"class.std::map", %"class.std::map", %"class.std::map", %"class.std::map", 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" = type { %"class.std::_Rb_tree.6" }
%"class.std::_Rb_tree.6" = 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" }

@_ZTIN9NOMAD_4_34StepE = external constant ptr
@_ZTIN9NOMAD_4_39AlgorithmE = external constant ptr
@_ZTIN9NOMAD_4_39IterationE = external constant ptr
@_ZTIN9NOMAD_4_313MegaIterationE = external constant ptr
@.str.9 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [130 x i8], align 1
@_ZTIN9NOMAD_4_313StepExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN9NOMAD_4_314IterationUtilsE = external dso_local constant { ptr, ptr }, align 8

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NOMAD_4_314IterationUtils4initEv(ptr noundef nonnull align 8 dereferenceable(328) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca i1, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %15 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 3
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = icmp eq ptr %16, null
  br i1 %17, label %20, label %18

18:                                               ; preds = %1
  %19 = call ptr @__dynamic_cast(ptr %16, ptr @_ZTIN9NOMAD_4_34StepE, ptr @_ZTIN9NOMAD_4_39AlgorithmE, i64 0) #4
  br label %21

20:                                               ; preds = %1
  br label %21

21:                                               ; preds = %20, %18
  %22 = phi ptr [ %19, %18 ], [ null, %20 ]
  store ptr %22, ptr %3, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = icmp ne ptr null, %23
  %25 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 7
  %26 = zext i1 %24 to i8
  store i8 %26, ptr %25, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %27 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 3
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = icmp eq ptr %28, null
  br i1 %29, label %32, label %30

30:                                               ; preds = %21
  %31 = call ptr @__dynamic_cast(ptr %28, ptr @_ZTIN9NOMAD_4_34StepE, ptr @_ZTIN9NOMAD_4_39IterationE, i64 0) #4
  br label %33

32:                                               ; preds = %21
  br label %33

33:                                               ; preds = %32, %30
  %34 = phi ptr [ %31, %30 ], [ null, %32 ]
  store ptr %34, ptr %4, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 4
  store ptr %35, ptr %36, align 8, !tbaa !33
  %37 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 4
  %38 = load ptr, ptr %37, align 8, !tbaa !33
  %39 = icmp eq ptr null, %38
  br i1 %39, label %40, label %46

40:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %41 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 3
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = call noundef ptr @_ZNK9NOMAD_4_34Step15getParentOfTypeIPNS_9IterationEEET_b(ptr noundef nonnull align 8 dereferenceable(140) %42, i1 noundef zeroext true)
  store ptr %43, ptr %5, align 8, !tbaa !5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 4
  store ptr %44, ptr %45, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %46

46:                                               ; preds = %40, %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %47 = icmp eq ptr %14, null
  br i1 %47, label %50, label %48

48:                                               ; preds = %46
  %49 = call ptr @__dynamic_cast(ptr %14, ptr @_ZTIN9NOMAD_4_314IterationUtilsE, ptr @_ZTIN9NOMAD_4_313MegaIterationE, i64 -2) #4
  br label %51

50:                                               ; preds = %46
  br label %51

51:                                               ; preds = %50, %48
  %52 = phi ptr [ %49, %48 ], [ null, %50 ]
  store ptr %52, ptr %6, align 8, !tbaa !5
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = icmp eq ptr null, %53
  br i1 %54, label %55, label %71

55:                                               ; preds = %51
  %56 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 3
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = icmp eq ptr %57, null
  br i1 %58, label %61, label %59

59:                                               ; preds = %55
  %60 = call ptr @__dynamic_cast(ptr %57, ptr @_ZTIN9NOMAD_4_34StepE, ptr @_ZTIN9NOMAD_4_313MegaIterationE, i64 0) #4
  br label %62

61:                                               ; preds = %55
  br label %62

62:                                               ; preds = %61, %59
  %63 = phi ptr [ %60, %59 ], [ null, %61 ]
  store ptr %63, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = icmp eq ptr null, %64
  br i1 %65, label %66, label %70

66:                                               ; preds = %62
  %67 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 3
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = call noundef ptr @_ZNK9NOMAD_4_34Step15getParentOfTypeIPNS_13MegaIterationEEET_b(ptr noundef nonnull align 8 dereferenceable(140) %68, i1 noundef zeroext true)
  store ptr %69, ptr %6, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %66, %62
  br label %71

71:                                               ; preds = %70, %51
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 5
  store ptr %72, ptr %73, align 8, !tbaa !34
  %74 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 7
  %75 = load i8, ptr %74, align 8, !tbaa !32, !range !35, !noundef !36
  %76 = trunc i8 %75 to i1
  br i1 %76, label %109, label %77

77:                                               ; preds = %71
  %78 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !33
  %80 = icmp eq ptr null, %79
  br i1 %80, label %81, label %109

81:                                               ; preds = %77
  %82 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 5
  %83 = load ptr, ptr %82, align 8, !tbaa !34
  %84 = icmp eq ptr null, %83
  br i1 %84, label %85, label %109

85:                                               ; preds = %81
  store i1 true, ptr %13, align 1
  %86 = call ptr @__cxa_allocate_exception(i64 112) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %87 unwind label %92

87:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %88 unwind label %96

88:                                               ; preds = %87
  %89 = getelementptr inbounds %"class.NOMAD_4_3::IterationUtils", ptr %14, i32 0, i32 3
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  invoke void @_ZN9NOMAD_4_313StepExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmS8_PKNS_4StepE(ptr noundef nonnull align 8 dereferenceable(112) %86, ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef 94, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef %90)
          to label %91 unwind label %100

91:                                               ; preds = %88
  store i1 false, ptr %13, align 1
  invoke void @__cxa_throw(ptr %86, ptr @_ZTIN9NOMAD_4_313StepExceptionE, ptr @_ZN9NOMAD_4_39ExceptionD2Ev) #5
          to label %115 unwind label %100

92:                                               ; preds = %85
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %9, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %10, align 4
  br label %105

96:                                               ; preds = %87
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %9, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %10, align 4
  br label %104

100:                                              ; preds = %91, %88
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %9, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  br label %104

104:                                              ; preds = %100, %96
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  br label %105

105:                                              ; preds = %104, %92
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #4
  %106 = load i1, ptr %13, align 1
  br i1 %106, label %107, label %108

107:                                              ; preds = %105
  call void @__cxa_free_exception(ptr %86) #4
  br label %108

108:                                              ; preds = %107, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %110

109:                                              ; preds = %81, %77, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void

110:                                              ; preds = %108
  %111 = load ptr, ptr %9, align 8
  %112 = load i32, ptr %10, align 4
  %113 = insertvalue { ptr, i32 } poison, ptr %111, 0
  %114 = insertvalue { ptr, i32 } %113, i32 %112, 1
  resume { ptr, i32 } %114

115:                                              ; preds = %91
  unreachable
}

; Function Attrs: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK9NOMAD_4_34Step15getParentOfTypeIPNS_9IterationEEET_b(ptr noundef nonnull align 8 dereferenceable(140), i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK9NOMAD_4_34Step15getParentOfTypeIPNS_13MegaIterationEEET_b(ptr noundef nonnull align 8 dereferenceable(140), i1 noundef zeroext) #2 align 2

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

; 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 = { nounwind willreturn memory(read) }
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, !6, i64 64}
!10 = !{!"_ZTSN9NOMAD_4_314IterationUtilsE", !11, i64 8, !19, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !20, i64 88, !30, i64 320, !31, 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, !19, i64 32}
!17 = !{!"_ZTSSt18_Rb_tree_node_base", !18, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSN9NOMAD_4_315TrialPointStatsE", !6, i64 0, !21, i64 8, !25, i64 32, !25, i64 80, !25, i64 128, !25, i64 176, !19, i64 224}
!21 = !{!"_ZTSSt6vectorIN9NOMAD_4_38EvalTypeESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN9NOMAD_4_38EvalTypeESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_38EvalTypeESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_38EvalTypeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt3mapIN9NOMAD_4_38EvalTypeEmSt4lessIS1_ESaISt4pairIKS1_mEEE", !26, i64 0}
!26 = !{!"_ZTSSt8_Rb_treeIN9NOMAD_4_38EvalTypeESt4pairIKS1_mESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !27, i64 0}
!27 = !{!"_ZTSNSt8_Rb_treeIN9NOMAD_4_38EvalTypeESt4pairIKS1_mESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !28, i64 0, !16, i64 8}
!28 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN9NOMAD_4_38EvalTypeEEE", !29, i64 0}
!29 = !{!"_ZTSSt4lessIN9NOMAD_4_38EvalTypeEE"}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"_ZTSN9NOMAD_4_311SuccessTypeE", !7, i64 0}
!32 = !{!10, !30, i64 320}
!33 = !{!10, !6, i64 72}
!34 = !{!10, !6, i64 80}
!35 = !{i8 0, i8 2}
!36 = !{}


; 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::__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 }

@_ZTIN9NOMAD_4_34StepE = external constant ptr
@_ZTIN9NOMAD_4_39AlgorithmE = external constant ptr
@_ZTIN9NOMAD_4_39IterationE = external constant ptr
@_ZTIN9NOMAD_4_313MegaIterationE = external constant ptr
@.str.9 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [130 x i8], align 1
@_ZTIN9NOMAD_4_313StepExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN9NOMAD_4_314IterationUtilsE = external dso_local constant { ptr, ptr }, align 8

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NOMAD_4_314IterationUtils4initEv(ptr noundef nonnull align 8 dereferenceable(328) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %.thread23, label %11

.thread23:                                        ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 320
  store i8 0, ptr %9, align 8, !tbaa !31
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr null, ptr %10, align 8, !tbaa !32
  br label %19

11:                                               ; preds = %1
  %12 = tail call ptr @__dynamic_cast(ptr nonnull %7, ptr nonnull @_ZTIN9NOMAD_4_34StepE, ptr nonnull @_ZTIN9NOMAD_4_39AlgorithmE, i64 0) #4
  %13 = icmp ne ptr %12, null
  %14 = zext i1 %13 to i8
  %15 = getelementptr inbounds i8, ptr %0, i64 320
  store i8 %14, ptr %15, align 8, !tbaa !31
  %16 = tail call ptr @__dynamic_cast(ptr nonnull %7, ptr nonnull @_ZTIN9NOMAD_4_34StepE, ptr nonnull @_ZTIN9NOMAD_4_39IterationE, i64 0) #4
  %17 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %16, ptr %17, align 8, !tbaa !32
  %18 = icmp eq ptr %16, null
  br i1 %18, label %19, label %23

19:                                               ; preds = %.thread23, %11
  %20 = phi ptr [ %10, %.thread23 ], [ %17, %11 ]
  %21 = phi ptr [ %9, %.thread23 ], [ %15, %11 ]
  %22 = tail call noundef ptr @_ZNK9NOMAD_4_34Step15getParentOfTypeIPNS_9IterationEEET_b(ptr noundef nonnull align 8 dereferenceable(140) %7, i1 noundef zeroext true)
  store ptr %22, ptr %20, align 8, !tbaa !32
  br label %23

23:                                               ; preds = %19, %11
  %24 = phi ptr [ %20, %19 ], [ %17, %11 ]
  %25 = phi ptr [ %21, %19 ], [ %15, %11 ]
  %26 = tail call ptr @__dynamic_cast(ptr nonnull %0, ptr nonnull @_ZTIN9NOMAD_4_314IterationUtilsE, ptr nonnull @_ZTIN9NOMAD_4_313MegaIterationE, i64 -2) #4
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %35

28:                                               ; preds = %23
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = icmp eq ptr %29, null
  br i1 %30, label %.thread24, label %31

31:                                               ; preds = %28
  %32 = tail call ptr @__dynamic_cast(ptr nonnull %29, ptr nonnull @_ZTIN9NOMAD_4_34StepE, ptr nonnull @_ZTIN9NOMAD_4_313MegaIterationE, i64 0) #4
  %33 = icmp eq ptr %32, null
  br i1 %33, label %.thread24, label %35

.thread24:                                        ; preds = %28, %31
  %34 = tail call noundef ptr @_ZNK9NOMAD_4_34Step15getParentOfTypeIPNS_13MegaIterationEEET_b(ptr noundef nonnull align 8 dereferenceable(140) %29, i1 noundef zeroext true)
  br label %35

35:                                               ; preds = %31, %.thread24, %23
  %.013 = phi ptr [ %34, %.thread24 ], [ %32, %31 ], [ %26, %23 ]
  %36 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %.013, ptr %36, align 8, !tbaa !33
  %37 = load i8, ptr %25, align 8, !tbaa !31, !range !34, !noundef !35
  %38 = trunc nuw i8 %37 to i1
  %.not = xor i1 %38, true
  %39 = load ptr, ptr %24, align 8
  %40 = icmp eq ptr %39, null
  %or.cond = select i1 %.not, i1 %40, i1 false
  %41 = icmp eq ptr %.013, null
  %or.cond22 = and i1 %41, %or.cond
  br i1 %or.cond22, label %42, label %56

42:                                               ; preds = %35
  %43 = tail call ptr @__cxa_allocate_exception(i64 112) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %44 unwind label %.thread25

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %45 unwind label %49

45:                                               ; preds = %44
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN9NOMAD_4_313StepExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmS8_PKNS_4StepE(ptr noundef nonnull align 8 dereferenceable(112) %43, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 94, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef %46)
          to label %47 unwind label %51

47:                                               ; preds = %45
  invoke void @__cxa_throw(ptr nonnull %43, ptr nonnull @_ZTIN9NOMAD_4_313StepExceptionE, ptr nonnull @_ZN9NOMAD_4_39ExceptionD2Ev) #5
          to label %57 unwind label %51

.thread25:                                        ; preds = %42
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  br label %54

49:                                               ; preds = %44
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %53

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

53:                                               ; preds = %49, %51
  %.pn = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ]
  %.1 = phi i1 [ %.0, %51 ], [ true, %49 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  br i1 %.1, label %54, label %55

54:                                               ; preds = %.thread25, %53
  %.pn.pn29 = phi { ptr, i32 } [ %48, %.thread25 ], [ %.pn, %53 ]
  call void @__cxa_free_exception(ptr %43) #4
  br label %55

55:                                               ; preds = %54, %53
  %.pn.pn28 = phi { ptr, i32 } [ %.pn.pn29, %54 ], [ %.pn, %53 ]
  resume { ptr, i32 } %.pn.pn28

56:                                               ; preds = %35
  ret void

57:                                               ; preds = %47
  unreachable
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK9NOMAD_4_34Step15getParentOfTypeIPNS_9IterationEEET_b(ptr noundef nonnull align 8 dereferenceable(140), i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK9NOMAD_4_34Step15getParentOfTypeIPNS_13MegaIterationEEET_b(ptr noundef nonnull align 8 dereferenceable(140), i1 noundef zeroext) local_unnamed_addr #2 align 2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NOMAD_4_313StepExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmS8_PKNS_4StepE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) 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 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 = { mustprogress nofree nounwind willreturn memory(read) }
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, !17, i64 64}
!6 = !{!"_ZTSN9NOMAD_4_314IterationUtilsE", !7, i64 8, !18, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !19, i64 88, !29, i64 320, !30, i64 324}
!7 = !{!"_ZTSSt3setIN9NOMAD_4_39EvalPointENS0_16EvalPointCompareESaIS1_EE", !8, i64 0}
!8 = !{!"_ZTSSt8_Rb_treeIN9NOMAD_4_39EvalPointES1_St9_IdentityIS1_ENS0_16EvalPointCompareESaIS1_EE", !9, i64 0}
!9 = !{!"_ZTSNSt8_Rb_treeIN9NOMAD_4_39EvalPointES1_St9_IdentityIS1_ENS0_16EvalPointCompareESaIS1_EE13_Rb_tree_implIS4_Lb1EEE", !10, i64 0, !12, i64 8}
!10 = !{!"_ZTSSt20_Rb_tree_key_compareIN9NOMAD_4_316EvalPointCompareEE", !11, i64 0}
!11 = !{!"_ZTSN9NOMAD_4_316EvalPointCompareE"}
!12 = !{!"_ZTSSt15_Rb_tree_header", !13, i64 0, !18, i64 32}
!13 = !{!"_ZTSSt18_Rb_tree_node_base", !14, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!14 = !{!"_ZTSSt14_Rb_tree_color", !15, i64 0}
!15 = !{!"omnipotent char", !16, i64 0}
!16 = !{!"Simple C++ TBAA"}
!17 = !{!"any pointer", !15, i64 0}
!18 = !{!"long", !15, i64 0}
!19 = !{!"_ZTSN9NOMAD_4_315TrialPointStatsE", !17, i64 0, !20, i64 8, !24, i64 32, !24, i64 80, !24, i64 128, !24, i64 176, !18, i64 224}
!20 = !{!"_ZTSSt6vectorIN9NOMAD_4_38EvalTypeESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN9NOMAD_4_38EvalTypeESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_38EvalTypeESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_38EvalTypeESaIS1_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!24 = !{!"_ZTSSt3mapIN9NOMAD_4_38EvalTypeEmSt4lessIS1_ESaISt4pairIKS1_mEEE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeIN9NOMAD_4_38EvalTypeESt4pairIKS1_mESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeIN9NOMAD_4_38EvalTypeESt4pairIKS1_mESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !27, i64 0, !12, i64 8}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN9NOMAD_4_38EvalTypeEEE", !28, i64 0}
!28 = !{!"_ZTSSt4lessIN9NOMAD_4_38EvalTypeEE"}
!29 = !{!"bool", !15, i64 0}
!30 = !{!"_ZTSN9NOMAD_4_311SuccessTypeE", !15, i64 0}
!31 = !{!6, !29, i64 320}
!32 = !{!6, !17, i64 72}
!33 = !{!6, !17, i64 80}
!34 = !{i8 0, i8 2}
!35 = !{}


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