; LLVM IR from optframe/optframe :: demo/03_QuickstartTSP_VNS_BRKGA (mainTSP-fcore-brkga-part1)

; 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.anon = type { i8 }
%class.anon.14 = type { i8 }
%"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.7" }
%"struct.std::_Head_base.7" = type { ptr }
%"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 }
%"struct.std::pair" = type { i32, i32 }
%"class.std::function.8" = 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 } }
%"class.std::function.10" = type { %"class.std::_Function_base", ptr }
%"class.std::function.12" = type { %"class.std::_Function_base", ptr }

@_ZN8optframe21fDefaultCanBeAppliedPISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEE = external dso_local global %class.anon, align 1
@_ZN8optframe18fDefaultCompareEqPISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEE = external dso_local global %class.anon.14, align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_Z10fApplySwapN5nnptr8NNSharedI14ProblemContextEERKSt4pairIiiERS3_ISt6vectorIiSaIiEEN8optframe10EvaluationIiEEE(ptr noundef, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(80)) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12makeMoveSwapN5nnptr8NNSharedI14ProblemContextEEii(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8 %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.nnptr::NNShared", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair", align 4
  %13 = alloca %"class.std::function.8", align 8
  %14 = alloca %"class.std::function.10", align 8
  %15 = alloca %"class.std::function.12", align 8
  %16 = alloca i1, align 1
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %17 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 160) #6
  store i1 true, ptr %16, align 1
  invoke void @_ZN5nnptr8NNSharedI14ProblemContextEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %18 unwind label %22

18:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %19 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %20 unwind label %26

20:                                               ; preds = %18
  store i64 %19, ptr %12, align 4
  call void @_ZNSt8functionIFSt4pairIiiEN5nnptr8NNSharedI14ProblemContextEERKS1_RS0_ISt6vectorIiSaIiEEN8optframe10EvaluationIiEEEEEC2IRSG_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @_Z10fApplySwapN5nnptr8NNSharedI14ProblemContextEERKSt4pairIiiERS3_ISt6vectorIiSaIiEEN8optframe10EvaluationIiEEE) #7
  call void @_ZNSt8functionIFbN5nnptr8NNSharedI14ProblemContextEERKSt4pairIiiERKS4_ISt6vectorIiSaIiEEN8optframe10EvaluationIiEEEEEC2IRNSB_21fDefaultCanBeAppliedPIS5_SE_S2_EMUlS3_S7_SG_E_EvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 1 dereferenceable(1) @_ZN8optframe21fDefaultCanBeAppliedPISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEE) #7
  call void @_ZNSt8functionIFbN5nnptr8NNSharedI14ProblemContextEERKSt4pairIiiERKN8optframe4MoveIS4_ISt6vectorIiSaIiEENS8_10EvaluationIiEEESF_EEEEC2IRNS8_18fDefaultCompareEqPIS5_SF_S2_EMUlS3_S7_SI_E_EvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 1 dereferenceable(1) @_ZN8optframe18fDefaultCompareEqPISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEE) #7
  invoke void @_ZN8optframe6FMovePISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEC2EN5nnptr8NNSharedIS9_EERKS2_St8functionIFS2_SD_SF_RS8_EESG_IFbSD_SF_RKS8_EESG_IFbSD_SF_RKNS_4MoveIS8_S8_EEEE(ptr noundef nonnull align 8 dereferenceable(160) %17, ptr noundef %9, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef %13, ptr noundef %14, ptr noundef %15)
          to label %21 unwind label %30

21:                                               ; preds = %20
  store i1 false, ptr %16, align 1
  call void @_ZNSt10unique_ptrIN8optframe4MoveISt4pairISt6vectorIiSaIiEENS0_10EvaluationIiEEES8_EESt14default_deleteIS9_EEC2ISB_vEEPS9_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %17) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @_ZN5nnptr8NNSharedI14ProblemContextED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  ret void

22:                                               ; preds = %4
  %23 = landingpad { ptr, i32 }
          cleanup
  %24 = extractvalue { ptr, i32 } %23, 0
  store ptr %24, ptr %10, align 8
  %25 = extractvalue { ptr, i32 } %23, 1
  store i32 %25, ptr %11, align 4
  br label %35

26:                                               ; preds = %18
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %10, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %11, align 4
  br label %34

30:                                               ; preds = %20
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %10, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %11, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %34

34:                                               ; preds = %30, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @_ZN5nnptr8NNSharedI14ProblemContextED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  br label %35

35:                                               ; preds = %34, %22
  %36 = load i1, ptr %16, align 1
  br i1 %36, label %37, label %38

37:                                               ; preds = %35
  call void @_ZdlPvm(ptr noundef %17, i64 noundef 160) #8
  br label %38

38:                                               ; preds = %37, %35
  br label %39

39:                                               ; preds = %38
  %40 = load ptr, ptr %10, align 8
  %41 = load i32, ptr %11, align 4
  %42 = insertvalue { ptr, i32 } poison, ptr %40, 0
  %43 = insertvalue { ptr, i32 } %42, i32 %41, 1
  resume { ptr, i32 } %43
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5nnptr8NNSharedI14ProblemContextEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5nnptr8NNSharedI14ProblemContextED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { 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 #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { builtin allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; 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.anon = type { i8 }
%class.anon.14 = type { i8 }
%"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.7" }
%"struct.std::_Head_base.7" = type { ptr }
%"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 }
%"struct.std::pair" = type { i32, i32 }
%"class.std::function.8" = 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 } }
%"class.std::function.10" = type { %"class.std::_Function_base", ptr }
%"class.std::function.12" = type { %"class.std::_Function_base", ptr }

@_ZN8optframe21fDefaultCanBeAppliedPISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEE = external dso_local global %class.anon, align 1
@_ZN8optframe18fDefaultCompareEqPISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEE = external dso_local global %class.anon.14, align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_Z10fApplySwapN5nnptr8NNSharedI14ProblemContextEERKSt4pairIiiERS3_ISt6vectorIiSaIiEEN8optframe10EvaluationIiEEE(ptr noundef, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(80)) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12makeMoveSwapN5nnptr8NNSharedI14ProblemContextEEii(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8 %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.nnptr::NNShared", align 8
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca %"class.std::function.8", align 8
  %10 = alloca %"class.std::function.10", align 8
  %11 = alloca %"class.std::function.12", align 8
  store i32 %2, ptr %5, align 4, !tbaa !5
  store i32 %3, ptr %6, align 4, !tbaa !5
  %12 = tail call noalias noundef nonnull dereferenceable(160) ptr @_Znwm(i64 noundef 160) #6
  call void @_ZN5nnptr8NNSharedI14ProblemContextEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %13 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %14 unwind label %16

14:                                               ; preds = %4
  store i64 %13, ptr %8, align 8
  call void @_ZNSt8functionIFSt4pairIiiEN5nnptr8NNSharedI14ProblemContextEERKS1_RS0_ISt6vectorIiSaIiEEN8optframe10EvaluationIiEEEEEC2IRSG_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @_Z10fApplySwapN5nnptr8NNSharedI14ProblemContextEERKSt4pairIiiERS3_ISt6vectorIiSaIiEEN8optframe10EvaluationIiEEE) #7
  call void @_ZNSt8functionIFbN5nnptr8NNSharedI14ProblemContextEERKSt4pairIiiERKS4_ISt6vectorIiSaIiEEN8optframe10EvaluationIiEEEEEC2IRNSB_21fDefaultCanBeAppliedPIS5_SE_S2_EMUlS3_S7_SG_E_EvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 1 dereferenceable(1) @_ZN8optframe21fDefaultCanBeAppliedPISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEE) #7
  call void @_ZNSt8functionIFbN5nnptr8NNSharedI14ProblemContextEERKSt4pairIiiERKN8optframe4MoveIS4_ISt6vectorIiSaIiEENS8_10EvaluationIiEEESF_EEEEC2IRNS8_18fDefaultCompareEqPIS5_SF_S2_EMUlS3_S7_SI_E_EvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 1 dereferenceable(1) @_ZN8optframe18fDefaultCompareEqPISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEE) #7
  invoke void @_ZN8optframe6FMovePISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEC2EN5nnptr8NNSharedIS9_EERKS2_St8functionIFS2_SD_SF_RS8_EESG_IFbSD_SF_RKS8_EESG_IFbSD_SF_RKNS_4MoveIS8_S8_EEEE(ptr noundef nonnull align 8 dereferenceable(160) %12, ptr noundef nonnull %7, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11)
          to label %15 unwind label %18

15:                                               ; preds = %14
  call void @_ZNSt10unique_ptrIN8optframe4MoveISt4pairISt6vectorIiSaIiEENS0_10EvaluationIiEEES8_EESt14default_deleteIS9_EEC2ISB_vEEPS9_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %12) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN5nnptr8NNSharedI14ProblemContextED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  ret void

16:                                               ; preds = %4
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %20

18:                                               ; preds = %14
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %20

20:                                               ; preds = %18, %16
  %.pn = phi { ptr, i32 } [ %19, %18 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN5nnptr8NNSharedI14ProblemContextED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @_ZdlPvm(ptr noundef nonnull %12, i64 noundef 160) #8
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5nnptr8NNSharedI14ProblemContextEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5nnptr8NNSharedI14ProblemContextED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

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

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

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


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