; 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.nnptr::NNShared.16" = type { %"class.nnptr::NotNull.17" }
%"class.nnptr::NotNull.17" = type { %"class.std::shared_ptr.18" }
%"class.std::shared_ptr.18" = type { %"class.std::__shared_ptr.19" }
%"class.std::__shared_ptr.19" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = 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::function.29" = 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.anon.43 = type { i8 }
%"class.std::function.31" = type { %"class.std::_Function_base", ptr }
%class.anon.45 = type { i8 }
%"class.std::function.34" = type { %"class.std::_Function_base", ptr }
%class.anon.47 = type { i8 }
%class.anon.49 = type { i8 }
%"class.std::function.37" = type { %"class.std::_Function_base", ptr }
%class.anon.51 = type { i8 }
%"class.std::function.40" = type { %"class.std::_Function_base", ptr }
%class.anon.53 = type { i8 }

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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10make_nsseqN5nnptr8NNSharedI14ProblemContextEE(ptr dead_on_unwind noalias writable sret(%"class.nnptr::NNShared.16") align 8 %0, ptr noundef %1) #5 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca %"class.nnptr::NNShared", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::function.29", align 8
  %10 = alloca %class.anon.43, align 1
  %11 = alloca %"class.std::function.31", align 8
  %12 = alloca %class.anon.45, align 1
  %13 = alloca %"class.std::function.34", align 8
  %14 = alloca %class.anon.47, align 1
  %15 = alloca %"class.std::function.34", align 8
  %16 = alloca %class.anon.49, align 1
  %17 = alloca %"class.std::function.37", align 8
  %18 = alloca %class.anon.51, align 1
  %19 = alloca %"class.std::function.40", align 8
  %20 = alloca %class.anon.53, align 1
  %21 = alloca i1, align 1
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  %22 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 288) #6
  store i1 true, ptr %21, align 1
  invoke void @_ZN5nnptr8NNSharedI14ProblemContextEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %23 unwind label %27

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  call void @"_ZNSt8functionIFSt10unique_ptrIN8optframe4MoveISt4pairISt6vectorIiSaIiEENS1_10EvaluationIiEEES9_EESt14default_deleteISA_EEN5nnptr8NNSharedI14ProblemContextEERKS9_EEC2IZ10make_nsseqSH_E3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  call void @"_ZNSt8functionIFSt4pairIiiEN5nnptr8NNSharedI14ProblemContextEERKS0_ISt6vectorIiSaIiEEN8optframe10EvaluationIiEEEEEC2IZ10make_nsseqS5_E3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  call void @"_ZNSt8functionIFvN5nnptr8NNSharedI14ProblemContextEERSt4pairIiiEEEC2IZ10make_nsseqS3_E3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  call void @"_ZNSt8functionIFvN5nnptr8NNSharedI14ProblemContextEERSt4pairIiiEEEC2IZ10make_nsseqS3_E3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  call void @"_ZNSt8functionIFbN5nnptr8NNSharedI14ProblemContextEERSt4pairIiiEEEC2IZ10make_nsseqS3_E3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  call void @"_ZNSt8functionIFSt10unique_ptrIN8optframe4MoveISt4pairISt6vectorIiSaIiEENS1_10EvaluationIiEEES9_EESt14default_deleteISA_EEN5nnptr8NNSharedI14ProblemContextEERS3_IiiEEEC2IZ10make_nsseqSH_E3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  invoke void @_ZN8optframe6FNSSeqISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEC2EN5nnptr8NNSharedIS9_EESt8functionIFSt10unique_ptrINS_4MoveIS8_S8_EESt14default_deleteISH_EESD_RKS8_EESE_IFS2_SD_SM_EESE_IFvSD_RS2_EEST_SE_IFbSD_SR_EESE_IFSK_SD_SR_EE(ptr noundef nonnull align 8 dereferenceable(288) %22, ptr noundef %6, ptr noundef %9, ptr noundef %11, ptr noundef %13, ptr noundef %15, ptr noundef %17, ptr noundef %19)
          to label %24 unwind label %31

24:                                               ; preds = %23
  store i1 false, ptr %21, align 1
  invoke void @_ZN5nnptr8NNSharedIN8optframe6FNSSeqISt4pairIiiES3_ISt6vectorIiSaIiEENS1_10EvaluationIiEEE14ProblemContextEEEC2EPSC_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %22)
          to label %25 unwind label %31

25:                                               ; preds = %24
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @_ZN5nnptr8NNSharedI14ProblemContextED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  store i1 true, ptr %5, align 1
  %26 = load i1, ptr %5, align 1
  br i1 %26, label %40, label %39

27:                                               ; preds = %2
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %7, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %8, align 4
  br label %35

31:                                               ; preds = %24, %23
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @_ZN5nnptr8NNSharedI14ProblemContextED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  br label %35

35:                                               ; preds = %31, %27
  %36 = load i1, ptr %21, align 1
  br i1 %36, label %37, label %38

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

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

39:                                               ; preds = %25
  call void @_ZN5nnptr8NNSharedIN8optframe6FNSSeqISt4pairIiiES3_ISt6vectorIiSaIiEENS1_10EvaluationIiEEE14ProblemContextEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #7
  br label %40

40:                                               ; preds = %39, %25
  ret void

41:                                               ; preds = %38
  %42 = load ptr, ptr %7, align 8
  %43 = load i32, ptr %8, align 4
  %44 = insertvalue { ptr, i32 } poison, ptr %42, 0
  %45 = insertvalue { ptr, i32 } %44, i32 %43, 1
  resume { ptr, i32 } %45
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFSt10unique_ptrIN8optframe4MoveISt4pairISt6vectorIiSaIiEENS1_10EvaluationIiEEES9_EESt14default_deleteISA_EEN5nnptr8NNSharedI14ProblemContextEERKS9_EEC2IZ10make_nsseqSH_E3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFSt4pairIiiEN5nnptr8NNSharedI14ProblemContextEERKS0_ISt6vectorIiSaIiEEN8optframe10EvaluationIiEEEEEC2IZ10make_nsseqS5_E3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvN5nnptr8NNSharedI14ProblemContextEERSt4pairIiiEEEC2IZ10make_nsseqS3_E3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvN5nnptr8NNSharedI14ProblemContextEERSt4pairIiiEEEC2IZ10make_nsseqS3_E3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbN5nnptr8NNSharedI14ProblemContextEERSt4pairIiiEEEC2IZ10make_nsseqS3_E3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFSt10unique_ptrIN8optframe4MoveISt4pairISt6vectorIiSaIiEENS1_10EvaluationIiEEES9_EESt14default_deleteISA_EEN5nnptr8NNSharedI14ProblemContextEERS3_IiiEEEC2IZ10make_nsseqSH_E3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8optframe6FNSSeqISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEC2EN5nnptr8NNSharedIS9_EESt8functionIFSt10unique_ptrINS_4MoveIS8_S8_EESt14default_deleteISH_EESD_RKS8_EESE_IFS2_SD_SM_EESE_IFvSD_RS2_EEST_SE_IFbSD_SR_EESE_IFSK_SD_SR_EE(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #5 align 2

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

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

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

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


; 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.nnptr::NNShared.16" = type { %"class.nnptr::NotNull.17" }
%"class.nnptr::NotNull.17" = type { %"class.std::shared_ptr.18" }
%"class.std::shared_ptr.18" = type { %"class.std::__shared_ptr.19" }
%"class.std::__shared_ptr.19" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = 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::function.29" = 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.anon.43 = type { i8 }
%"class.std::function.31" = type { %"class.std::_Function_base", ptr }
%class.anon.45 = type { i8 }
%"class.std::function.34" = type { %"class.std::_Function_base", ptr }
%class.anon.47 = type { i8 }
%class.anon.49 = type { i8 }
%"class.std::function.37" = type { %"class.std::_Function_base", ptr }
%class.anon.51 = type { i8 }
%"class.std::function.40" = type { %"class.std::_Function_base", ptr }
%class.anon.53 = type { i8 }

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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10make_nsseqN5nnptr8NNSharedI14ProblemContextEE(ptr dead_on_unwind noalias writable sret(%"class.nnptr::NNShared.16") align 8 %0, ptr noundef %1) local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.nnptr::NNShared", align 8
  %4 = alloca %"class.std::function.29", align 8
  %5 = alloca %class.anon.43, align 1
  %6 = alloca %"class.std::function.31", align 8
  %7 = alloca %class.anon.45, align 1
  %8 = alloca %"class.std::function.34", align 8
  %9 = alloca %class.anon.47, align 1
  %10 = alloca %"class.std::function.34", align 8
  %11 = alloca %class.anon.49, align 1
  %12 = alloca %"class.std::function.37", align 8
  %13 = alloca %class.anon.51, align 1
  %14 = alloca %"class.std::function.40", align 8
  %15 = alloca %class.anon.53, align 1
  %16 = tail call noalias noundef nonnull dereferenceable(288) ptr @_Znwm(i64 noundef 288) #6
  call void @_ZN5nnptr8NNSharedI14ProblemContextEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  call void @"_ZNSt8functionIFSt10unique_ptrIN8optframe4MoveISt4pairISt6vectorIiSaIiEENS1_10EvaluationIiEEES9_EESt14default_deleteISA_EEN5nnptr8NNSharedI14ProblemContextEERKS9_EEC2IZ10make_nsseqSH_E3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @"_ZNSt8functionIFSt4pairIiiEN5nnptr8NNSharedI14ProblemContextEERKS0_ISt6vectorIiSaIiEEN8optframe10EvaluationIiEEEEEC2IZ10make_nsseqS5_E3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  call void @"_ZNSt8functionIFvN5nnptr8NNSharedI14ProblemContextEERSt4pairIiiEEEC2IZ10make_nsseqS3_E3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @"_ZNSt8functionIFvN5nnptr8NNSharedI14ProblemContextEERSt4pairIiiEEEC2IZ10make_nsseqS3_E3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  call void @"_ZNSt8functionIFbN5nnptr8NNSharedI14ProblemContextEERSt4pairIiiEEEC2IZ10make_nsseqS3_E3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #7
  call void @"_ZNSt8functionIFSt10unique_ptrIN8optframe4MoveISt4pairISt6vectorIiSaIiEENS1_10EvaluationIiEEES9_EESt14default_deleteISA_EEN5nnptr8NNSharedI14ProblemContextEERS3_IiiEEEC2IZ10make_nsseqSH_E3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  invoke void @_ZN8optframe6FNSSeqISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEC2EN5nnptr8NNSharedIS9_EESt8functionIFSt10unique_ptrINS_4MoveIS8_S8_EESt14default_deleteISH_EESD_RKS8_EESE_IFS2_SD_SM_EESE_IFvSD_RS2_EEST_SE_IFbSD_SR_EESE_IFSK_SD_SR_EE(ptr noundef nonnull align 8 dereferenceable(288) %16, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef nonnull %12, ptr noundef nonnull %14)
          to label %17 unwind label %19

17:                                               ; preds = %2
  invoke void @_ZN5nnptr8NNSharedIN8optframe6FNSSeqISt4pairIiiES3_ISt6vectorIiSaIiEENS1_10EvaluationIiEEE14ProblemContextEEEC2EPSC_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %16)
          to label %18 unwind label %19

18:                                               ; preds = %17
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @_ZN5nnptr8NNSharedI14ProblemContextED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  ret void

19:                                               ; preds = %17, %2
  %.0 = phi i1 [ false, %17 ], [ true, %2 ]
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @_ZN5nnptr8NNSharedI14ProblemContextED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  br i1 %.0, label %21, label %22

21:                                               ; preds = %19
  call void @_ZdlPvm(ptr noundef nonnull %16, i64 noundef 288) #8
  br label %22

22:                                               ; preds = %19, %21
  resume { ptr, i32 } %20
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFSt10unique_ptrIN8optframe4MoveISt4pairISt6vectorIiSaIiEENS1_10EvaluationIiEEES9_EESt14default_deleteISA_EEN5nnptr8NNSharedI14ProblemContextEERKS9_EEC2IZ10make_nsseqSH_E3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFSt4pairIiiEN5nnptr8NNSharedI14ProblemContextEERKS0_ISt6vectorIiSaIiEEN8optframe10EvaluationIiEEEEEC2IZ10make_nsseqS5_E3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvN5nnptr8NNSharedI14ProblemContextEERSt4pairIiiEEEC2IZ10make_nsseqS3_E3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvN5nnptr8NNSharedI14ProblemContextEERSt4pairIiiEEEC2IZ10make_nsseqS3_E3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbN5nnptr8NNSharedI14ProblemContextEERSt4pairIiiEEEC2IZ10make_nsseqS3_E3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFSt10unique_ptrIN8optframe4MoveISt4pairISt6vectorIiSaIiEENS1_10EvaluationIiEEES9_EESt14default_deleteISA_EEN5nnptr8NNSharedI14ProblemContextEERS3_IiiEEEC2IZ10make_nsseqSH_E3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8optframe6FNSSeqISt4pairIiiES1_ISt6vectorIiSaIiEENS_10EvaluationIiEEE14ProblemContextEC2EN5nnptr8NNSharedIS9_EESt8functionIFSt10unique_ptrINS_4MoveIS8_S8_EESt14default_deleteISH_EESD_RKS8_EESE_IFS2_SD_SM_EESE_IFvSD_RS2_EEST_SE_IFbSD_SR_EESE_IFSK_SD_SR_EE(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #5 align 2

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

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

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


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