; LLVM IR from optframe/optframe :: src/OptFrameLib (OptFrameLib)

; 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.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.FCoreApi1Engine = type { %"class.std::map", i32, i32, %"class.optframe::Loader", %"class.optframe::CheckCommand" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_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.optframe::Loader" = type { %"class.optframe::HeuristicFactory", %"class.std::map", %"class.std::map.26" }
%"class.optframe::HeuristicFactory" = type { ptr, i32, %"class.nnptr::NNShared", ptr, %"class.std::map.3", %"class.std::vector", %"class.std::vector.11", %"class.std::vector.16", %"class.std::map.21" }
%"class.nnptr::NNShared" = type { %"class.nnptr::NotNull" }
%"class.nnptr::NotNull" = type { %"class.std::shared_ptr" }
%"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::map.3" = type { %"class.std::_Rb_tree.4" }
%"class.std::_Rb_tree.4" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<std::shared_ptr<optframe::Component>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<std::shared_ptr<optframe::Component>>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<std::shared_ptr<optframe::Component>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<std::shared_ptr<optframe::Component>>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<optframe::ComponentBuilder<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *, std::allocator<optframe::ComponentBuilder<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<optframe::ComponentBuilder<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *, std::allocator<optframe::ComponentBuilder<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<optframe::ComponentBuilder<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *, std::allocator<optframe::ComponentBuilder<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<optframe::ComponentBuilder<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *, std::allocator<optframe::ComponentBuilder<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<optframe::ComponentMultiBuilder<FCoreLibSolution> *, std::allocator<optframe::ComponentMultiBuilder<FCoreLibSolution> *>>::_Vector_impl" }
%"struct.std::_Vector_base<optframe::ComponentMultiBuilder<FCoreLibSolution> *, std::allocator<optframe::ComponentMultiBuilder<FCoreLibSolution> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<optframe::ComponentMultiBuilder<FCoreLibSolution> *, std::allocator<optframe::ComponentMultiBuilder<FCoreLibSolution> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<optframe::ComponentMultiBuilder<FCoreLibSolution> *, std::allocator<optframe::ComponentMultiBuilder<FCoreLibSolution> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<optframe::Action<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *, std::allocator<optframe::Action<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<optframe::Action<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *, std::allocator<optframe::Action<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<optframe::Action<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *, std::allocator<optframe::Action<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<optframe::Action<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *, std::allocator<optframe::Action<std::pair<FCoreLibSolution, optframe::Evaluation<>>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.21" = type { %"class.std::_Rb_tree.22" }
%"class.std::_Rb_tree.22" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<std::vector<std::shared_ptr<optframe::Component>>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<std::vector<std::shared_ptr<optframe::Component>>>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<std::vector<std::shared_ptr<optframe::Component>>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<std::vector<std::shared_ptr<optframe::Component>>>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.26" = type { %"class.std::_Rb_tree.27" }
%"class.std::_Rb_tree.27" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char>>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char>>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.optframe::CheckCommand" = type <{ %"class.optframe::Component.base", i8, i8, i8, [4 x i8], %"class.std::vector.31", %"class.std::vector.36", %"class.std::vector.41", %"class.std::vector.46", %"class.std::vector.51", %"class.std::vector.56", %"class.std::vector.61", %"class.std::function.66", i8, [7 x i8] }>
%"class.optframe::Component.base" = type <{ ptr, ptr, ptr, i32, i8, i8, i8, i8, i8 }>
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<std::shared_ptr<optframe::Evaluator<FCoreLibSolution, optframe::Evaluation<>>>, std::allocator<std::shared_ptr<optframe::Evaluator<FCoreLibSolution, optframe::Evaluation<>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<optframe::Evaluator<FCoreLibSolution, optframe::Evaluation<>>>, std::allocator<std::shared_ptr<optframe::Evaluator<FCoreLibSolution, optframe::Evaluation<>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<optframe::Evaluator<FCoreLibSolution, optframe::Evaluation<>>>, std::allocator<std::shared_ptr<optframe::Evaluator<FCoreLibSolution, optframe::Evaluation<>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<optframe::Evaluator<FCoreLibSolution, optframe::Evaluation<>>>, std::allocator<std::shared_ptr<optframe::Evaluator<FCoreLibSolution, optframe::Evaluation<>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<std::shared_ptr<optframe::InitialSearch<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::InitialSearch<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<optframe::InitialSearch<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::InitialSearch<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<optframe::InitialSearch<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::InitialSearch<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<optframe::InitialSearch<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::InitialSearch<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<std::shared_ptr<FCoreLibSolution>, std::allocator<std::shared_ptr<FCoreLibSolution>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<FCoreLibSolution>, std::allocator<std::shared_ptr<FCoreLibSolution>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<FCoreLibSolution>, std::allocator<std::shared_ptr<FCoreLibSolution>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<FCoreLibSolution>, std::allocator<std::shared_ptr<FCoreLibSolution>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<std::shared_ptr<optframe::Move<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::Move<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<optframe::Move<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::Move<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<optframe::Move<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::Move<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<optframe::Move<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::Move<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<std::shared_ptr<optframe::NS<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::NS<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<optframe::NS<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::NS<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<optframe::NS<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::NS<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<optframe::NS<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::NS<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.56" = type { %"struct.std::_Vector_base.57" }
%"struct.std::_Vector_base.57" = type { %"struct.std::_Vector_base<std::shared_ptr<optframe::NSSeq<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::NSSeq<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<optframe::NSSeq<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::NSSeq<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<optframe::NSSeq<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::NSSeq<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<optframe::NSSeq<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::NSSeq<std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.61" = type { %"struct.std::_Vector_base.62" }
%"struct.std::_Vector_base.62" = type { %"struct.std::_Vector_base<std::shared_ptr<optframe::NSEnum<std::pair<FCoreLibSolution, optframe::Evaluation<>>, std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::NSEnum<std::pair<FCoreLibSolution, optframe::Evaluation<>>, std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<optframe::NSEnum<std::pair<FCoreLibSolution, optframe::Evaluation<>>, std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::NSEnum<std::pair<FCoreLibSolution, optframe::Evaluation<>>, std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<optframe::NSEnum<std::pair<FCoreLibSolution, optframe::Evaluation<>>, std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::NSEnum<std::pair<FCoreLibSolution, optframe::Evaluation<>>, std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<optframe::NSEnum<std::pair<FCoreLibSolution, optframe::Evaluation<>>, std::pair<FCoreLibSolution, optframe::Evaluation<>>>>, std::allocator<std::shared_ptr<optframe::NSEnum<std::pair<FCoreLibSolution, optframe::Evaluation<>>, std::pair<FCoreLibSolution, optframe::Evaluation<>>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::function.66" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [50 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local ptr @optframe_api1d_create_engine(i32 noundef %0) #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca ptr, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = icmp sle i32 %11, 0
  br i1 %12, label %13, label %14

13:                                               ; preds = %1
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %13, %1
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = icmp sge i32 %15, 4
  br i1 %16, label %17, label %18

17:                                               ; preds = %14
  store i32 4, ptr %2, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %17, %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %19 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %19, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %20 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 608) #8
  invoke void @_ZN15FCoreApi1EngineC2Ev(ptr noundef nonnull align 8 dereferenceable(608) %20)
          to label %21 unwind label %27

21:                                               ; preds = %18
  store ptr %20, ptr %4, align 8, !tbaa !11
  %22 = load i32, ptr %3, align 4, !tbaa !9
  %23 = icmp eq i32 %22, -1
  br i1 %23, label %24, label %31

24:                                               ; preds = %21
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %31

27:                                               ; preds = %18
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %5, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %20, i64 noundef 608) #9
  br label %51

31:                                               ; preds = %24, %21
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #7
  %32 = load i32, ptr %2, align 4, !tbaa !5
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %7, i32 noundef %32) #7
  %33 = load ptr, ptr %4, align 8, !tbaa !11
  %34 = getelementptr inbounds %class.FCoreApi1Engine, ptr %33, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %35 unwind label %42

35:                                               ; preds = %31
  %36 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %34, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %37 unwind label %46

37:                                               ; preds = %35
  %38 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #7
  %39 = load ptr, ptr %4, align 8, !tbaa !11
  call void @_ZN15FCoreApi1Engine16updateParametersEv(ptr noundef nonnull align 8 dereferenceable(608) %39)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %40 = load ptr, ptr %4, align 8, !tbaa !11
  store ptr %40, ptr %10, align 8, !tbaa !11
  %41 = load ptr, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  ret ptr %41

42:                                               ; preds = %31
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %5, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %6, align 4
  br label %50

46:                                               ; preds = %35
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %5, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %6, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %50

50:                                               ; preds = %46, %42
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #7
  br label %51

51:                                               ; preds = %50, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %52

52:                                               ; preds = %51
  %53 = load ptr, ptr %5, align 8
  %54 = load i32, ptr %6, align 4
  %55 = insertvalue { ptr, i32 } poison, ptr %53, 0
  %56 = insertvalue { ptr, i32 } %55, i32 %54, 1
  resume { ptr, i32 } %56
}

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 #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 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN6modlog8LogLevelE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}


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

@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @optframe_api1d_create_engine(i32 noundef %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = tail call noalias noundef nonnull dereferenceable(608) ptr @_Znwm(i64 noundef 608) #7
  invoke void @_ZN15FCoreApi1EngineC2Ev(ptr noundef nonnull align 8 dereferenceable(608) %5)
          to label %8 unwind label %6

6:                                                ; preds = %1
  %7 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %5, i64 noundef 608) #8
  br label %19

8:                                                ; preds = %1
  %spec.store.select = tail call i32 @llvm.smax.i32(i32 %0, i32 0)
  %9 = tail call i32 @llvm.umin.i32(i32 %spec.store.select, i32 4)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #9
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %2, i32 noundef %9) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %10 unwind label %14

10:                                               ; preds = %8
  %11 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %12 unwind label %16

12:                                               ; preds = %10
  %13 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #9
  call void @_ZN15FCoreApi1Engine16updateParametersEv(ptr noundef nonnull align 8 dereferenceable(608) %5)
  ret ptr %5

14:                                               ; preds = %8
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %18

16:                                               ; preds = %10
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  br label %18

18:                                               ; preds = %16, %14
  %.pn = phi { ptr, i32 } [ %17, %16 ], [ %15, %14 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #9
  br label %19

19:                                               ; preds = %18, %6
  %.pn.pn = phi { ptr, i32 } [ %.pn, %18 ], [ %7, %6 ]
  resume { ptr, i32 } %.pn.pn
}

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #6

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


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