; LLVM IR from cvanaret/Uno :: uno/ingredients/globalization_mechanisms (TrustRegionStrategy)

; 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.uno::GlobalizationMechanism" = type { ptr, %"class.std::unique_ptr", %"class.uno::Direction" }
%"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.uno::Direction" = type { i64, i64, %"class.uno::Vector", %"class.uno::Multipliers", %"class.uno::Multipliers", i32, double, double }
%"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" }
%"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] }>
%"struct.uno::Evaluations" = type { double, %"class.std::vector", %"class.uno::SparseVector", %"class.uno::RectangularMatrix" }
%"class.uno::SparseVector" = type { %"class.std::vector.46", %"class.std::vector", i64 }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = 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.51" }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = 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::TrustRegionStrategy" = type { %"class.uno::GlobalizationMechanism", double, double, double, double, double, double, double, double }

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3uno19TrustRegionStrategy21is_iterate_acceptableERNS_10StatisticsERKNS_5ModelERNS_7IterateES7_RKNS_9DirectionERNS_20WarmstartInformationERNS_13UserCallbacksE(ptr noundef nonnull align 8 dereferenceable(288) %0, ptr noundef nonnull align 8 dereferenceable(144) %1, ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef nonnull align 8 dereferenceable(532) %3, ptr noundef nonnull align 8 dereferenceable(532) %4, ptr noundef nonnull align 8 dereferenceable(208) %5, ptr noundef nonnull align 1 dereferenceable(6) %6, ptr noundef nonnull align 1 %7) #2 align 2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i8, align 1
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  %18 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  %19 = getelementptr inbounds %"class.uno::GlobalizationMechanism", ptr %18, i32 0, i32 1
  %20 = call noundef ptr @_ZNKSt10unique_ptrIN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #4
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  %22 = load ptr, ptr %11, align 8, !tbaa !5
  %23 = load ptr, ptr %12, align 8, !tbaa !5
  %24 = load ptr, ptr %13, align 8, !tbaa !5
  %25 = load ptr, ptr %14, align 8, !tbaa !5
  %26 = load ptr, ptr %15, align 8, !tbaa !5
  %27 = load ptr, ptr %16, align 8, !tbaa !5
  %28 = load ptr, ptr %20, align 8, !tbaa !9
  %29 = getelementptr inbounds ptr, ptr %28, i64 6
  %30 = load ptr, ptr %29, align 8
  %31 = call noundef zeroext i1 %30(ptr noundef nonnull align 8 dereferenceable(81) %20, ptr noundef nonnull align 8 dereferenceable(144) %21, ptr noundef nonnull align 8 dereferenceable(64) %22, ptr noundef nonnull align 8 dereferenceable(532) %23, ptr noundef nonnull align 8 dereferenceable(532) %24, ptr noundef nonnull align 8 dereferenceable(208) %25, double noundef 1.000000e+00, ptr noundef nonnull align 1 dereferenceable(6) %26, ptr noundef nonnull align 1 %27)
  %32 = zext i1 %31 to i8
  store i8 %32, ptr %17, align 1, !tbaa !11
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNK3uno19TrustRegionStrategy14set_statisticsERNS_10StatisticsERKNS_7IterateERKNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(288) %18, ptr noundef nonnull align 8 dereferenceable(144) %33, ptr noundef nonnull align 8 dereferenceable(532) %34, ptr noundef nonnull align 8 dereferenceable(208) %35)
  %36 = load i8, ptr %17, align 1, !tbaa !11, !range !13, !noundef !14
  %37 = trunc i8 %36 to i1
  br i1 %37, label %38, label %49

38:                                               ; preds = %8
  %39 = getelementptr inbounds %"class.uno::GlobalizationMechanism", ptr %18, i32 0, i32 1
  %40 = call noundef ptr @_ZNKSt10unique_ptrIN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #4
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  %43 = call noundef i32 @_ZN3uno28ConstraintRelaxationStrategy17check_terminationERKNS_5ModelERNS_7IterateE(ptr noundef nonnull align 8 dereferenceable(81) %40, ptr noundef nonnull align 8 dereferenceable(64) %41, ptr noundef nonnull align 8 dereferenceable(532) %42)
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.uno::Iterate", ptr %44, i32 0, i32 16
  store i32 %43, ptr %45, align 8, !tbaa !15
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds %"class.uno::Direction", ptr %46, i32 0, i32 6
  %48 = load double, ptr %47, align 8, !tbaa !42
  call void @_ZN3uno19TrustRegionStrategy24possibly_increase_radiusEd(ptr noundef nonnull align 8 dereferenceable(288) %18, double noundef %48)
  br label %61

49:                                               ; preds = %8
  %50 = getelementptr inbounds %"class.uno::TrustRegionStrategy", ptr %18, i32 0, i32 1
  %51 = load double, ptr %50, align 8, !tbaa !45
  %52 = getelementptr inbounds %"class.uno::TrustRegionStrategy", ptr %18, i32 0, i32 6
  %53 = load double, ptr %52, align 8, !tbaa !54
  %54 = fcmp olt double %51, %53
  br i1 %54, label %55, label %60

55:                                               ; preds = %49
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = call noundef zeroext i1 @_ZNK3uno19TrustRegionStrategy33check_termination_with_small_stepERKNS_5ModelERNS_7IterateE(ptr noundef nonnull align 8 dereferenceable(288) %18, ptr noundef nonnull align 8 dereferenceable(64) %56, ptr noundef nonnull align 8 dereferenceable(532) %57)
  %59 = zext i1 %58 to i8
  store i8 %59, ptr %17, align 1, !tbaa !11
  br label %60

60:                                               ; preds = %55, %49
  br label %61

61:                                               ; preds = %60, %38
  %62 = load i8, ptr %17, align 1, !tbaa !11, !range !13, !noundef !14
  %63 = trunc i8 %62 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  ret i1 %63
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3uno19TrustRegionStrategy14set_statisticsERNS_10StatisticsERKNS_7IterateERKNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(532), ptr noundef nonnull align 8 dereferenceable(208)) #2 align 2

declare noundef i32 @_ZN3uno28ConstraintRelaxationStrategy17check_terminationERKNS_5ModelERNS_7IterateE(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(532)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3uno19TrustRegionStrategy33check_termination_with_small_stepERKNS_5ModelERNS_7IterateE(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(532)) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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, !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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !41, i64 528}
!16 = !{!"_ZTSN3uno7IterateE", !17, i64 0, !17, i64 8, !18, i64 16, !23, i64 40, !23, i64 112, !24, i64 184, !25, i64 192, !12, i64 304, !12, i64 305, !12, i64 306, !12, i64 307, !24, i64 312, !36, i64 320, !36, i64 400, !38, i64 480, !41, i64 528}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSN3uno6VectorIdEE", !19, i64 0}
!19 = !{!"_ZTSSt6vectorIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSN3uno11MultipliersE", !18, i64 0, !18, i64 24, !18, i64 48}
!24 = !{!"double", !7, i64 0}
!25 = !{!"_ZTSN3uno11EvaluationsE", !24, i64 0, !19, i64 8, !26, i64 32, !31, i64 88}
!26 = !{!"_ZTSN3uno12SparseVectorIdEE", !27, i64 0, !19, i64 24, !17, i64 48}
!27 = !{!"_ZTSSt6vectorImSaImEE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseImSaImEE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSN3uno17RectangularMatrixIdEE", !32, i64 0}
!32 = !{!"_ZTSSt6vectorIN3uno12SparseVectorIdEESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN3uno12SparseVectorIdEESaIS2_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN3uno12SparseVectorIdEESaIS2_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN3uno12SparseVectorIdEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSN3uno13DualResidualsE", !24, i64 0, !24, i64 8, !24, i64 16, !24, i64 24, !37, i64 32}
!37 = !{!"_ZTSN3uno18LagrangianGradientIdEE", !18, i64 0, !18, i64 24}
!38 = !{!"_ZTSN3uno16ProgressMeasuresE", !24, i64 0, !39, i64 8, !24, i64 40}
!39 = !{!"_ZTSSt8functionIFddEE", !40, i64 0, !6, i64 24}
!40 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!41 = !{!"_ZTSN3uno13IterateStatusE", !7, i64 0}
!42 = !{!43, !24, i64 192}
!43 = !{!"_ZTSN3uno9DirectionE", !17, i64 0, !17, i64 8, !18, i64 16, !23, i64 40, !23, i64 112, !44, i64 184, !24, i64 192, !24, i64 200}
!44 = !{!"_ZTSN3uno16SubproblemStatusE", !7, i64 0}
!45 = !{!46, !24, i64 224}
!46 = !{!"_ZTSN3uno19TrustRegionStrategyE", !47, i64 0, !24, i64 224, !24, i64 232, !24, i64 240, !24, i64 248, !24, i64 256, !24, i64 264, !24, i64 272, !24, i64 280}
!47 = !{!"_ZTSN3uno22GlobalizationMechanismE", !48, i64 8, !43, i64 16}
!48 = !{!"_ZTSSt10unique_ptrIN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_EE", !49, i64 0}
!49 = !{!"_ZTSSt15__uniq_ptr_dataIN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_ELb1ELb1EE", !50, i64 0}
!50 = !{!"_ZTSSt15__uniq_ptr_implIN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_EE", !51, i64 0}
!51 = !{!"_ZTSSt5tupleIJPN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_EEE", !52, i64 0}
!52 = !{!"_ZTSSt11_Tuple_implILm0EJPN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_EEE", !53, i64 0}
!53 = !{!"_ZTSSt10_Head_baseILm0EPN3uno28ConstraintRelaxationStrategyELb0EE", !6, i64 0}
!54 = !{!46, !24, i64 264}


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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3uno19TrustRegionStrategy21is_iterate_acceptableERNS_10StatisticsERKNS_5ModelERNS_7IterateES7_RKNS_9DirectionERNS_20WarmstartInformationERNS_13UserCallbacksE(ptr noundef nonnull align 8 dereferenceable(288) %0, ptr noundef nonnull align 8 dereferenceable(144) %1, ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef nonnull align 8 dereferenceable(532) %3, ptr noundef nonnull align 8 dereferenceable(532) %4, ptr noundef nonnull align 8 dereferenceable(208) %5, ptr noundef nonnull align 1 dereferenceable(6) %6, ptr noundef nonnull align 1 %7) local_unnamed_addr #1 align 2 {
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = tail call noundef ptr @_ZNKSt10unique_ptrIN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 48
  %13 = load ptr, ptr %12, align 8
  %14 = tail call noundef zeroext i1 %13(ptr noundef nonnull align 8 dereferenceable(81) %10, ptr noundef nonnull align 8 dereferenceable(144) %1, ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef nonnull align 8 dereferenceable(532) %3, ptr noundef nonnull align 8 dereferenceable(532) %4, ptr noundef nonnull align 8 dereferenceable(208) %5, double noundef 1.000000e+00, ptr noundef nonnull align 1 dereferenceable(6) %6, ptr noundef nonnull align 1 %7)
  tail call void @_ZNK3uno19TrustRegionStrategy14set_statisticsERNS_10StatisticsERKNS_7IterateERKNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(288) %0, ptr noundef nonnull align 8 dereferenceable(144) %1, ptr noundef nonnull align 8 dereferenceable(532) %4, ptr noundef nonnull align 8 dereferenceable(208) %5)
  br i1 %14, label %15, label %21

15:                                               ; preds = %8
  %16 = tail call noundef ptr @_ZNKSt10unique_ptrIN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  %17 = tail call noundef i32 @_ZN3uno28ConstraintRelaxationStrategy17check_terminationERKNS_5ModelERNS_7IterateE(ptr noundef nonnull align 8 dereferenceable(81) %16, ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef nonnull align 8 dereferenceable(532) %4)
  %18 = getelementptr inbounds i8, ptr %4, i64 528
  store i32 %17, ptr %18, align 8, !tbaa !8
  %19 = getelementptr inbounds i8, ptr %5, i64 192
  %20 = load double, ptr %19, align 8, !tbaa !38
  tail call void @_ZN3uno19TrustRegionStrategy24possibly_increase_radiusEd(ptr noundef nonnull align 8 dereferenceable(288) %0, double noundef %20)
  br label %29

21:                                               ; preds = %8
  %22 = getelementptr inbounds i8, ptr %0, i64 224
  %23 = load double, ptr %22, align 8, !tbaa !41
  %24 = getelementptr inbounds i8, ptr %0, i64 264
  %25 = load double, ptr %24, align 8, !tbaa !50
  %26 = fcmp olt double %23, %25
  br i1 %26, label %27, label %29

27:                                               ; preds = %21
  %28 = tail call noundef zeroext i1 @_ZNK3uno19TrustRegionStrategy33check_termination_with_small_stepERKNS_5ModelERNS_7IterateE(ptr noundef nonnull align 8 dereferenceable(288) %0, ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef nonnull align 8 dereferenceable(532) %4)
  br label %29

29:                                               ; preds = %21, %27, %15
  %.0.in = phi i1 [ true, %15 ], [ %28, %27 ], [ false, %21 ]
  ret i1 %.0.in
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3uno19TrustRegionStrategy14set_statisticsERNS_10StatisticsERKNS_7IterateERKNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(532), ptr noundef nonnull align 8 dereferenceable(208)) local_unnamed_addr #1 align 2

declare noundef i32 @_ZN3uno28ConstraintRelaxationStrategy17check_terminationERKNS_5ModelERNS_7IterateE(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(532)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3uno19TrustRegionStrategy24possibly_increase_radiusEd(ptr noundef nonnull align 8 dereferenceable(288), double noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3uno19TrustRegionStrategy33check_termination_with_small_stepERKNS_5ModelERNS_7IterateE(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(532)) local_unnamed_addr #1 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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !37, i64 528}
!9 = !{!"_ZTSN3uno7IterateE", !10, i64 0, !10, 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}
!10 = !{!"long", !11, i64 0}
!11 = !{!"omnipotent char", !7, 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", !11, i64 0}
!18 = !{!"_ZTSN3uno11MultipliersE", !12, i64 0, !12, i64 24, !12, i64 48}
!19 = !{!"double", !11, i64 0}
!20 = !{!"_ZTSN3uno11EvaluationsE", !19, i64 0, !13, i64 8, !21, i64 32, !26, i64 88}
!21 = !{!"_ZTSN3uno12SparseVectorIdEE", !22, i64 0, !13, i64 24, !10, 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", !11, 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", !11, i64 0, !17, i64 16}
!37 = !{!"_ZTSN3uno13IterateStatusE", !11, i64 0}
!38 = !{!39, !19, i64 192}
!39 = !{!"_ZTSN3uno9DirectionE", !10, i64 0, !10, i64 8, !12, i64 16, !18, i64 40, !18, i64 112, !40, i64 184, !19, i64 192, !19, i64 200}
!40 = !{!"_ZTSN3uno16SubproblemStatusE", !11, i64 0}
!41 = !{!42, !19, i64 224}
!42 = !{!"_ZTSN3uno19TrustRegionStrategyE", !43, i64 0, !19, i64 224, !19, i64 232, !19, i64 240, !19, i64 248, !19, i64 256, !19, i64 264, !19, i64 272, !19, i64 280}
!43 = !{!"_ZTSN3uno22GlobalizationMechanismE", !44, i64 8, !39, i64 16}
!44 = !{!"_ZTSSt10unique_ptrIN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_EE", !45, i64 0}
!45 = !{!"_ZTSSt15__uniq_ptr_dataIN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_ELb1ELb1EE", !46, i64 0}
!46 = !{!"_ZTSSt15__uniq_ptr_implIN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_EE", !47, i64 0}
!47 = !{!"_ZTSSt5tupleIJPN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_EEE", !48, i64 0}
!48 = !{!"_ZTSSt11_Tuple_implILm0EJPN3uno28ConstraintRelaxationStrategyESt14default_deleteIS1_EEE", !49, i64 0}
!49 = !{!"_ZTSSt10_Head_baseILm0EPN3uno28ConstraintRelaxationStrategyELb0EE", !17, i64 0}
!50 = !{!42, !19, i64 264}


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