; LLVM IR from cvanaret/Uno :: uno (Uno)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.uno::Result" = type { i32, [4 x i8], %"class.uno::Iterate", i64, i64, i64, double, i64, i64, i64, i64, i64, i64 }
%"class.uno::Iterate" = type <{ i64, i64, %"class.uno::Vector", %"class.uno::Multipliers", %"class.uno::Multipliers", double, %"struct.uno::Evaluations", i8, i8, i8, i8, [4 x i8], double, %"class.uno::DualResiduals", %"class.uno::DualResiduals", %"struct.uno::ProgressMeasures", i32, [4 x i8] }>
%"class.uno::Vector" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.uno::Multipliers" = type { %"class.uno::Vector", %"class.uno::Vector", %"class.uno::Vector" }
%"struct.uno::Evaluations" = type { double, %"class.std::vector", %"class.uno::SparseVector", %"class.uno::RectangularMatrix" }
%"class.uno::SparseVector" = type { %"class.std::vector.13", %"class.std::vector", i64 }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.uno::RectangularMatrix" = type { %"class.std::vector.18" }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<uno::SparseVector<double>, std::allocator<uno::SparseVector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<uno::SparseVector<double>, std::allocator<uno::SparseVector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<uno::SparseVector<double>, std::allocator<uno::SparseVector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<uno::SparseVector<double>, std::allocator<uno::SparseVector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.uno::DualResiduals" = type { double, double, double, double, %"class.uno::LagrangianGradient" }
%"class.uno::LagrangianGradient" = type { %"class.uno::Vector", %"class.uno::Vector" }
%"struct.uno::ProgressMeasures" = type { double, %"class.std::function", double }
%"class.std::function" = 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.uno::Uno" = type { %"class.std::unique_ptr", i64, double, i8, %"class.std::__cxx11::basic_string" }
%"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.1" }
%"struct.std::_Head_base.1" = 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.uno::Model" = type { ptr, %"class.std::__cxx11::basic_string", i64, i64, double }

@_ZN3uno7Iterate21number_eval_objectiveE = external global i64, align 8
@_ZN3uno7Iterate23number_eval_constraintsE = external global i64, align 8
@_ZN3uno7Iterate30number_eval_objective_gradientE = external global i64, align 8
@_ZN3uno7Iterate20number_eval_jacobianE = external global i64, align 8

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

declare i32 @__gxx_personality_v0(...)

; 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 dso_local noundef ptr @_ZNKSt10unique_ptrIN3uno22GlobalizationMechanismESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

declare noundef double @_ZNK3uno5Timer12get_durationEv(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3uno3Uno13create_resultERKNS_5ModelENS_18OptimizationStatusERNS_7IterateEmRKNS_5TimerE(ptr dead_on_unwind noalias writable sret(%"struct.uno::Result") align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %1, ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(532) %4, i64 noundef %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %8, align 8
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store i64 %5, ptr %13, align 8, !tbaa !11
  store ptr %6, ptr %14, align 8, !tbaa !5
  %19 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %20 = getelementptr inbounds %"class.uno::Uno", ptr %19, i32 0, i32 0
  %21 = call noundef ptr @_ZNKSt10unique_ptrIN3uno22GlobalizationMechanismESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  %22 = call noundef i64 @_ZNK3uno22GlobalizationMechanism29get_number_subproblems_solvedEv(ptr noundef nonnull align 8 dereferenceable(224) %21)
  store i64 %22, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %23 = getelementptr inbounds %"class.uno::Uno", ptr %19, i32 0, i32 0
  %24 = call noundef ptr @_ZNKSt10unique_ptrIN3uno22GlobalizationMechanismESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  %25 = call noundef i64 @_ZNK3uno22GlobalizationMechanism28get_hessian_evaluation_countEv(ptr noundef nonnull align 8 dereferenceable(224) %24)
  store i64 %25, ptr %16, align 8, !tbaa !11
  %26 = getelementptr inbounds %"struct.uno::Result", ptr %0, i32 0, i32 0
  %27 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %27, ptr %26, align 8, !tbaa !13
  %28 = getelementptr inbounds %"struct.uno::Result", ptr %0, i32 0, i32 2
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN3uno7IterateC2EOS0_(ptr noundef nonnull align 8 dereferenceable(532) %28, ptr noundef nonnull align 8 dereferenceable(532) %29) #5
  %30 = getelementptr inbounds %"struct.uno::Result", ptr %0, i32 0, i32 3
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.uno::Model", ptr %31, i32 0, i32 2
  %33 = load i64, ptr %32, align 8, !tbaa !41
  store i64 %33, ptr %30, align 8, !tbaa !45
  %34 = getelementptr inbounds %"struct.uno::Result", ptr %0, i32 0, i32 4
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.uno::Model", ptr %35, i32 0, i32 3
  %37 = load i64, ptr %36, align 8, !tbaa !46
  store i64 %37, ptr %34, align 8, !tbaa !47
  %38 = getelementptr inbounds %"struct.uno::Result", ptr %0, i32 0, i32 5
  %39 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %39, ptr %38, align 8, !tbaa !48
  %40 = getelementptr inbounds %"struct.uno::Result", ptr %0, i32 0, i32 6
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = invoke noundef double @_ZNK3uno5Timer12get_durationEv(ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %43 unwind label %56

43:                                               ; preds = %7
  store double %42, ptr %40, align 8, !tbaa !49
  %44 = getelementptr inbounds %"struct.uno::Result", ptr %0, i32 0, i32 7
  %45 = load i64, ptr @_ZN3uno7Iterate21number_eval_objectiveE, align 8, !tbaa !11
  store i64 %45, ptr %44, align 8, !tbaa !50
  %46 = getelementptr inbounds %"struct.uno::Result", ptr %0, i32 0, i32 8
  %47 = load i64, ptr @_ZN3uno7Iterate23number_eval_constraintsE, align 8, !tbaa !11
  store i64 %47, ptr %46, align 8, !tbaa !51
  %48 = getelementptr inbounds %"struct.uno::Result", ptr %0, i32 0, i32 9
  %49 = load i64, ptr @_ZN3uno7Iterate30number_eval_objective_gradientE, align 8, !tbaa !11
  store i64 %49, ptr %48, align 8, !tbaa !52
  %50 = getelementptr inbounds %"struct.uno::Result", ptr %0, i32 0, i32 10
  %51 = load i64, ptr @_ZN3uno7Iterate20number_eval_jacobianE, align 8, !tbaa !11
  store i64 %51, ptr %50, align 8, !tbaa !53
  %52 = getelementptr inbounds %"struct.uno::Result", ptr %0, i32 0, i32 11
  %53 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %53, ptr %52, align 8, !tbaa !54
  %54 = getelementptr inbounds %"struct.uno::Result", ptr %0, i32 0, i32 12
  %55 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %55, ptr %54, align 8, !tbaa !55
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  ret void

56:                                               ; preds = %7
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %17, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %18, align 4
  call void @_ZN3uno7IterateD2Ev(ptr noundef nonnull align 8 dereferenceable(532) %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %60

60:                                               ; preds = %56
  %61 = load ptr, ptr %17, align 8
  %62 = load i32, ptr %18, align 4
  %63 = insertvalue { ptr, i32 } poison, ptr %61, 0
  %64 = insertvalue { ptr, i32 } %63, i32 %62, 1
  resume { ptr, i32 } %64
}

declare noundef i64 @_ZNK3uno22GlobalizationMechanism29get_number_subproblems_solvedEv(ptr noundef nonnull align 8 dereferenceable(224)) #2

declare noundef i64 @_ZNK3uno22GlobalizationMechanism28get_hessian_evaluation_countEv(ptr noundef nonnull align 8 dereferenceable(224)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3uno7IterateC2EOS0_(ptr noundef nonnull align 8 dereferenceable(532), ptr noundef nonnull align 8 dereferenceable(532)) 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 = { "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 = { 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 #5 = { 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 = !{!"_ZTSN3uno18OptimizationStatusE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN3uno6ResultE", !10, i64 0, !15, i64 8, !12, i64 544, !12, i64 552, !12, i64 560, !22, i64 568, !12, i64 576, !12, i64 584, !12, i64 592, !12, i64 600, !12, i64 608, !12, i64 616}
!15 = !{!"_ZTSN3uno7IterateE", !12, i64 0, !12, i64 8, !16, i64 16, !21, i64 40, !21, i64 112, !22, i64 184, !23, i64 192, !34, i64 304, !34, i64 305, !34, i64 306, !34, i64 307, !22, i64 312, !35, i64 320, !35, i64 400, !37, i64 480, !40, i64 528}
!16 = !{!"_ZTSN3uno6VectorIdEE", !17, i64 0}
!17 = !{!"_ZTSSt6vectorIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSN3uno11MultipliersE", !16, i64 0, !16, i64 24, !16, i64 48}
!22 = !{!"double", !7, i64 0}
!23 = !{!"_ZTSN3uno11EvaluationsE", !22, i64 0, !17, i64 8, !24, i64 32, !29, i64 88}
!24 = !{!"_ZTSN3uno12SparseVectorIdEE", !25, i64 0, !17, i64 24, !12, i64 48}
!25 = !{!"_ZTSSt6vectorImSaImEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseImSaImEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSN3uno17RectangularMatrixIdEE", !30, i64 0}
!30 = !{!"_ZTSSt6vectorIN3uno12SparseVectorIdEESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN3uno12SparseVectorIdEESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN3uno12SparseVectorIdEESaIS2_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN3uno12SparseVectorIdEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"bool", !7, i64 0}
!35 = !{!"_ZTSN3uno13DualResidualsE", !22, i64 0, !22, i64 8, !22, i64 16, !22, i64 24, !36, i64 32}
!36 = !{!"_ZTSN3uno18LagrangianGradientIdEE", !16, i64 0, !16, i64 24}
!37 = !{!"_ZTSN3uno16ProgressMeasuresE", !22, i64 0, !38, i64 8, !22, i64 40}
!38 = !{!"_ZTSSt8functionIFddEE", !39, i64 0, !6, i64 24}
!39 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!40 = !{!"_ZTSN3uno13IterateStatusE", !7, i64 0}
!41 = !{!42, !12, i64 40}
!42 = !{!"_ZTSN3uno5ModelE", !43, i64 8, !12, i64 40, !12, i64 48, !22, i64 56}
!43 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !44, i64 0, !12, i64 8, !7, i64 16}
!44 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!45 = !{!14, !12, i64 544}
!46 = !{!42, !12, i64 48}
!47 = !{!14, !12, i64 552}
!48 = !{!14, !12, i64 560}
!49 = !{!14, !22, i64 568}
!50 = !{!14, !12, i64 576}
!51 = !{!14, !12, i64 584}
!52 = !{!14, !12, i64 592}
!53 = !{!14, !12, i64 600}
!54 = !{!14, !12, i64 608}
!55 = !{!14, !12, i64 616}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.uno::Result" = type { i32, [4 x i8], %"class.uno::Iterate", i64, i64, i64, double, i64, i64, i64, i64, i64, i64 }
%"class.uno::Iterate" = type <{ i64, i64, %"class.uno::Vector", %"class.uno::Multipliers", %"class.uno::Multipliers", double, %"struct.uno::Evaluations", i8, i8, i8, i8, [4 x i8], double, %"class.uno::DualResiduals", %"class.uno::DualResiduals", %"struct.uno::ProgressMeasures", i32, [4 x i8] }>
%"class.uno::Vector" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.uno::Multipliers" = type { %"class.uno::Vector", %"class.uno::Vector", %"class.uno::Vector" }
%"struct.uno::Evaluations" = type { double, %"class.std::vector", %"class.uno::SparseVector", %"class.uno::RectangularMatrix" }
%"class.uno::SparseVector" = type { %"class.std::vector.13", %"class.std::vector", i64 }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.uno::RectangularMatrix" = type { %"class.std::vector.18" }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<uno::SparseVector<double>, std::allocator<uno::SparseVector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<uno::SparseVector<double>, std::allocator<uno::SparseVector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<uno::SparseVector<double>, std::allocator<uno::SparseVector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<uno::SparseVector<double>, std::allocator<uno::SparseVector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.uno::DualResiduals" = type { double, double, double, double, %"class.uno::LagrangianGradient" }
%"class.uno::LagrangianGradient" = type { %"class.uno::Vector", %"class.uno::Vector" }
%"struct.uno::ProgressMeasures" = type { double, %"class.std::function", double }
%"class.std::function" = 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 } }

@_ZN3uno7Iterate21number_eval_objectiveE = external local_unnamed_addr global i64, align 8
@_ZN3uno7Iterate23number_eval_constraintsE = external local_unnamed_addr global i64, align 8
@_ZN3uno7Iterate30number_eval_objective_gradientE = external local_unnamed_addr global i64, align 8
@_ZN3uno7Iterate20number_eval_jacobianE = external local_unnamed_addr global i64, align 8

declare i32 @__gxx_personality_v0(...)

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

declare noundef double @_ZNK3uno5Timer12get_durationEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3uno3Uno13create_resultERKNS_5ModelENS_18OptimizationStatusERNS_7IterateEmRKNS_5TimerE(ptr dead_on_unwind noalias writable sret(%"struct.uno::Result") align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(64) %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(532) %4, i64 noundef %5, ptr noundef nonnull align 8 dereferenceable(8) %6) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = tail call noundef ptr @_ZNKSt10unique_ptrIN3uno22GlobalizationMechanismESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #4
  %9 = tail call noundef i64 @_ZNK3uno22GlobalizationMechanism29get_number_subproblems_solvedEv(ptr noundef nonnull align 8 dereferenceable(224) %8)
  %10 = tail call noundef ptr @_ZNKSt10unique_ptrIN3uno22GlobalizationMechanismESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #4
  %11 = tail call noundef i64 @_ZNK3uno22GlobalizationMechanism28get_hessian_evaluation_countEv(ptr noundef nonnull align 8 dereferenceable(224) %10)
  store i32 %3, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN3uno7IterateC2EOS0_(ptr noundef nonnull align 8 dereferenceable(532) %12, ptr noundef nonnull align 8 dereferenceable(532) %4) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 544
  %14 = getelementptr inbounds i8, ptr %2, i64 40
  %15 = load <2 x i64>, ptr %14, align 8, !tbaa !38
  store <2 x i64> %15, ptr %13, align 8, !tbaa !38
  %16 = getelementptr inbounds i8, ptr %0, i64 560
  store i64 %5, ptr %16, align 8, !tbaa !39
  %17 = invoke noundef double @_ZNK3uno5Timer12get_durationEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %18 unwind label %30

18:                                               ; preds = %7
  %19 = getelementptr inbounds i8, ptr %0, i64 568
  store double %17, ptr %19, align 8, !tbaa !40
  %20 = getelementptr inbounds i8, ptr %0, i64 576
  %21 = load i64, ptr @_ZN3uno7Iterate21number_eval_objectiveE, align 8, !tbaa !38
  store i64 %21, ptr %20, align 8, !tbaa !41
  %22 = getelementptr inbounds i8, ptr %0, i64 584
  %23 = load i64, ptr @_ZN3uno7Iterate23number_eval_constraintsE, align 8, !tbaa !38
  store i64 %23, ptr %22, align 8, !tbaa !42
  %24 = getelementptr inbounds i8, ptr %0, i64 592
  %25 = load i64, ptr @_ZN3uno7Iterate30number_eval_objective_gradientE, align 8, !tbaa !38
  store i64 %25, ptr %24, align 8, !tbaa !43
  %26 = getelementptr inbounds i8, ptr %0, i64 600
  %27 = load i64, ptr @_ZN3uno7Iterate20number_eval_jacobianE, align 8, !tbaa !38
  store i64 %27, ptr %26, align 8, !tbaa !44
  %28 = getelementptr inbounds i8, ptr %0, i64 608
  store i64 %11, ptr %28, align 8, !tbaa !45
  %29 = getelementptr inbounds i8, ptr %0, i64 616
  store i64 %9, ptr %29, align 8, !tbaa !46
  ret void

30:                                               ; preds = %7
  %31 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3uno7IterateD2Ev(ptr noundef nonnull align 8 dereferenceable(532) %12) #4
  resume { ptr, i32 } %31
}

declare noundef i64 @_ZNK3uno22GlobalizationMechanism29get_number_subproblems_solvedEv(ptr noundef nonnull align 8 dereferenceable(224)) local_unnamed_addr #1

declare noundef i64 @_ZNK3uno22GlobalizationMechanism28get_hessian_evaluation_countEv(ptr noundef nonnull align 8 dereferenceable(224)) local_unnamed_addr #1

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

attributes #0 = { 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 #1 = { "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 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 = { 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 #4 = { 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, !7, i64 0}
!6 = !{!"_ZTSN3uno6ResultE", !7, i64 0, !10, i64 8, !11, i64 544, !11, i64 552, !11, i64 560, !19, i64 568, !11, i64 576, !11, i64 584, !11, i64 592, !11, i64 600, !11, i64 608, !11, i64 616}
!7 = !{!"_ZTSN3uno18OptimizationStatusE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3uno7IterateE", !11, i64 0, !11, i64 8, !12, i64 16, !18, i64 40, !18, i64 112, !19, i64 184, !20, i64 192, !31, i64 304, !31, i64 305, !31, i64 306, !31, i64 307, !19, i64 312, !32, i64 320, !32, i64 400, !34, i64 480, !37, i64 528}
!11 = !{!"long", !8, i64 0}
!12 = !{!"_ZTSN3uno6VectorIdEE", !13, i64 0}
!13 = !{!"_ZTSSt6vectorIdSaIdEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{!"_ZTSN3uno11MultipliersE", !12, i64 0, !12, i64 24, !12, i64 48}
!19 = !{!"double", !8, i64 0}
!20 = !{!"_ZTSN3uno11EvaluationsE", !19, i64 0, !13, i64 8, !21, i64 32, !26, i64 88}
!21 = !{!"_ZTSN3uno12SparseVectorIdEE", !22, i64 0, !13, i64 24, !11, i64 48}
!22 = !{!"_ZTSSt6vectorImSaImEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseImSaImEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!26 = !{!"_ZTSN3uno17RectangularMatrixIdEE", !27, i64 0}
!27 = !{!"_ZTSSt6vectorIN3uno12SparseVectorIdEESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIN3uno12SparseVectorIdEESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN3uno12SparseVectorIdEESaIS2_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN3uno12SparseVectorIdEESaIS2_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!31 = !{!"bool", !8, i64 0}
!32 = !{!"_ZTSN3uno13DualResidualsE", !19, i64 0, !19, i64 8, !19, i64 16, !19, i64 24, !33, i64 32}
!33 = !{!"_ZTSN3uno18LagrangianGradientIdEE", !12, i64 0, !12, i64 24}
!34 = !{!"_ZTSN3uno16ProgressMeasuresE", !19, i64 0, !35, i64 8, !19, i64 40}
!35 = !{!"_ZTSSt8functionIFddEE", !36, i64 0, !17, i64 24}
!36 = !{!"_ZTSSt14_Function_base", !8, i64 0, !17, i64 16}
!37 = !{!"_ZTSN3uno13IterateStatusE", !8, i64 0}
!38 = !{!11, !11, i64 0}
!39 = !{!6, !11, i64 560}
!40 = !{!6, !19, i64 568}
!41 = !{!6, !11, i64 576}
!42 = !{!6, !11, i64 584}
!43 = !{!6, !11, i64 592}
!44 = !{!6, !11, i64 600}
!45 = !{!6, !11, i64 608}
!46 = !{!6, !11, i64 616}


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