; LLVM IR from cvanaret/Uno :: uno/ingredients/constraint_relaxation_strategies (l1Relaxation)

; 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::Sum" = type { ptr, %"class.uno::MatrixVectorProduct" }
%"class.uno::MatrixVectorProduct" = type { ptr, ptr }
%"class.uno::l1Relaxation" = type { %"class.uno::ConstraintRelaxationStrategy.base", double, double, i8, %"class.std::unique_ptr.10", %"class.std::unique_ptr.10", double, %"struct.uno::l1RelaxationParameters", double, %"class.uno::Multipliers" }
%"class.uno::ConstraintRelaxationStrategy.base" = type <{ ptr, %"class.std::unique_ptr", %"class.std::unique_ptr.2", i32, i32, double, double, double, i64, i64, double, 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.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::unique_ptr.2" = type { %"struct.std::__uniq_ptr_data.3" }
%"struct.std::__uniq_ptr_data.3" = type { %"class.std::__uniq_ptr_impl.4" }
%"class.std::__uniq_ptr_impl.4" = type { %"class.std::tuple.5" }
%"class.std::tuple.5" = type { %"struct.std::_Tuple_impl.6" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"class.std::unique_ptr.10" = type { %"struct.std::__uniq_ptr_data.11" }
%"struct.std::__uniq_ptr_data.11" = type { %"class.std::__uniq_ptr_impl.12" }
%"class.std::__uniq_ptr_impl.12" = type { %"class.std::tuple.13" }
%"class.std::tuple.13" = type { %"struct.std::_Tuple_impl.14" }
%"struct.std::_Tuple_impl.14" = type { %"struct.std::_Head_base.17" }
%"struct.std::_Head_base.17" = type { ptr }
%"struct.uno::l1RelaxationParameters" = type { i8, double, double, double, double }
%"class.uno::Multipliers" = type { %"class.uno::Vector", %"class.uno::Vector", %"class.uno::Vector" }
%"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::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::Direction" = type { i64, i64, %"class.uno::Vector", %"class.uno::Multipliers", %"class.uno::Multipliers", i32, double, double }

@.str.18 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [67 x i8], align 1

; 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 void @_ZN3uno12l1Relaxation24solve_l1_relaxed_problemERNS_10StatisticsERKNS_5ModelERNS_7IterateERNS_9DirectionEdRNS_20WarmstartInformationE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(532), ptr noundef nonnull align 8 dereferenceable(208), double noundef, ptr noundef nonnull align 1 dereferenceable(6)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3uno5Model20constraint_violationINS_3SumIRSt6vectorIdSaIdEENS_19MatrixVectorProductIRNS_17RectangularMatrixIdEERNS_6VectorIdEEEELi0EEEEEdRKT_NS_4NormE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3unoplIRSt6vectorIdSaIdEENS_19MatrixVectorProductIRNS_17RectangularMatrixIdEERNS_6VectorIdEEEEEENS_3SumIT_T0_Li0EEEOSE_OSF_(ptr dead_on_unwind noalias writable sret(%"class.uno::Sum") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN3unomlIRNS_17RectangularMatrixIdEERNS_6VectorIdEETnNSt9enable_ifIXsr3stdE9is_same_vINSt16remove_referenceIT_E4type10value_typeENS8_IT0_E4type10value_typeEEEiE4typeELi0EEENS_19MatrixVectorProductIS9_SD_EEOS9_OSD_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3uno12l1Relaxation47enforce_linearized_residual_sufficient_decreaseERNS_10StatisticsERKNS_5ModelERNS_7IterateERNS_9DirectionEddRNS_20WarmstartInformationE(ptr noundef nonnull align 8 dereferenceable(256) %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(208) %4, double noundef %5, double noundef %6, ptr noundef nonnull align 1 dereferenceable(6) %7) #1 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 double, align 8
  %15 = alloca double, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca %"class.uno::Sum", align 8
  %20 = alloca %"class.uno::MatrixVectorProduct", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  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 double %5, ptr %14, align 8, !tbaa !9
  store double %6, ptr %15, align 8, !tbaa !9
  store ptr %7, ptr %16, align 8, !tbaa !5
  %23 = load ptr, ptr %9, align 8
  br label %24

24:                                               ; preds = %36, %8
  %25 = getelementptr inbounds %"class.uno::l1Relaxation", ptr %23, i32 0, i32 1
  %26 = load double, ptr %25, align 8, !tbaa !11
  %27 = fcmp olt double 0.000000e+00, %26
  br i1 %27, label %28, label %34

28:                                               ; preds = %24
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = load double, ptr %14, align 8, !tbaa !9
  %31 = load double, ptr %15, align 8, !tbaa !9
  %32 = call noundef zeroext i1 @_ZNK3uno12l1Relaxation39linearized_residual_sufficient_decreaseERKNS_7IterateEdd(ptr noundef nonnull align 8 dereferenceable(256) %23, ptr noundef nonnull align 8 dereferenceable(532) %29, double noundef %30, double noundef %31)
  %33 = xor i1 %32, true
  br label %34

34:                                               ; preds = %28, %24
  %35 = phi i1 [ false, %24 ], [ %33, %28 ]
  br i1 %35, label %36, label %72

36:                                               ; preds = %34
  %37 = getelementptr inbounds %"class.uno::l1Relaxation", ptr %23, i32 0, i32 7
  %38 = getelementptr inbounds %"struct.uno::l1RelaxationParameters", ptr %37, i32 0, i32 1
  %39 = load double, ptr %38, align 8, !tbaa !42
  %40 = getelementptr inbounds %"class.uno::l1Relaxation", ptr %23, i32 0, i32 1
  %41 = load double, ptr %40, align 8, !tbaa !11
  %42 = fdiv double %41, %39
  store double %42, ptr %40, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 4, ptr %17, align 4, !tbaa !43
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIA43_cEERKNS_5LevelES4_RKT_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 1 dereferenceable(43) @.str.30)
  %44 = getelementptr inbounds %"class.uno::l1Relaxation", ptr %23, i32 0, i32 1
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIdEERKNS_5LevelES3_RT_(ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 8 dereferenceable(8) %44)
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #3
  store i8 10, ptr %18, align 1, !tbaa !45
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIcEERKNS_5LevelES3_RKT_(ptr noundef nonnull align 4 dereferenceable(4) %45, ptr noundef nonnull align 1 dereferenceable(1) %18)
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.uno::l1Relaxation", ptr %23, i32 0, i32 1
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN3uno12l1Relaxation24solve_l1_relaxed_problemERNS_10StatisticsERKNS_5ModelERNS_7IterateERNS_9DirectionEdRNS_20WarmstartInformationE(ptr noundef nonnull align 8 dereferenceable(256) %23, ptr noundef nonnull align 8 dereferenceable(144) %47, ptr noundef nonnull align 8 dereferenceable(64) %48, ptr noundef nonnull align 8 dereferenceable(532) %49, ptr noundef nonnull align 8 dereferenceable(208) %50, double noundef %52, ptr noundef nonnull align 1 dereferenceable(6) %53)
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #3
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.uno::Iterate", ptr %55, i32 0, i32 6
  %57 = getelementptr inbounds %"struct.uno::Evaluations", ptr %56, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #3
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = getelementptr inbounds %"class.uno::Iterate", ptr %58, i32 0, i32 6
  %60 = getelementptr inbounds %"struct.uno::Evaluations", ptr %59, i32 0, i32 3
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.uno::Direction", ptr %61, i32 0, i32 2
  %63 = call { ptr, ptr } @_ZN3unomlIRNS_17RectangularMatrixIdEERNS_6VectorIdEETnNSt9enable_ifIXsr3stdE9is_same_vINSt16remove_referenceIT_E4type10value_typeENS8_IT0_E4type10value_typeEEEiE4typeELi0EEENS_19MatrixVectorProductIS9_SD_EEOS9_OSD_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 8 dereferenceable(24) %62)
  %64 = getelementptr inbounds { ptr, ptr }, ptr %20, i32 0, i32 0
  %65 = extractvalue { ptr, ptr } %63, 0
  store ptr %65, ptr %64, align 8
  %66 = getelementptr inbounds { ptr, ptr }, ptr %20, i32 0, i32 1
  %67 = extractvalue { ptr, ptr } %63, 1
  store ptr %67, ptr %66, align 8
  call void @_ZN3unoplIRSt6vectorIdSaIdEENS_19MatrixVectorProductIRNS_17RectangularMatrixIdEERNS_6VectorIdEEEEEENS_3SumIT_T0_Li0EEEOSE_OSF_(ptr dead_on_unwind writable sret(%"class.uno::Sum") align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(16) %20)
  %68 = call noundef double @_ZNK3uno5Model20constraint_violationINS_3SumIRSt6vectorIdSaIdEENS_19MatrixVectorProductIRNS_17RectangularMatrixIdEERNS_6VectorIdEEEELi0EEEEEdRKT_NS_4NormE(ptr noundef nonnull align 8 dereferenceable(64) %54, ptr noundef nonnull align 8 dereferenceable(24) %19, i32 noundef 0)
  store double %68, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 4, ptr %21, align 4, !tbaa !43
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIA34_cEERKNS_5LevelES4_RKT_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 1 dereferenceable(34) @.str.18)
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIdEERKNS_5LevelES3_RT_(ptr noundef nonnull align 4 dereferenceable(4) %69, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIA3_cEERKNS_5LevelES4_RKT_(ptr noundef nonnull align 4 dereferenceable(4) %70, ptr noundef nonnull align 1 dereferenceable(3) @.str.19)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %24, !llvm.loop !46

72:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  store i32 4, ptr %22, align 4, !tbaa !43
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIA67_cEERKNS_5LevelES4_RKT_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 1 dereferenceable(67) @.str.31)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3uno12l1Relaxation39linearized_residual_sufficient_decreaseERKNS_7IterateEdd(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(532), double noundef, double noundef) #1 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 88}
!12 = !{!"_ZTSN3uno12l1RelaxationE", !13, i64 0, !10, i64 88, !10, i64 96, !28, i64 104, !29, i64 112, !29, i64 120, !10, i64 128, !35, i64 136, !10, i64 176, !36, i64 184}
!13 = !{!"_ZTSN3uno28ConstraintRelaxationStrategyE", !14, i64 8, !20, i64 16, !26, i64 24, !26, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !27, i64 56, !27, i64 64, !10, i64 72, !28, i64 80}
!14 = !{!"_ZTSSt10unique_ptrIN3uno21GlobalizationStrategyESt14default_deleteIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_dataIN3uno21GlobalizationStrategyESt14default_deleteIS1_ELb1ELb1EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_implIN3uno21GlobalizationStrategyESt14default_deleteIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt5tupleIJPN3uno21GlobalizationStrategyESt14default_deleteIS1_EEE", !18, i64 0}
!18 = !{!"_ZTSSt11_Tuple_implILm0EJPN3uno21GlobalizationStrategyESt14default_deleteIS1_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_Head_baseILm0EPN3uno21GlobalizationStrategyELb0EE", !6, i64 0}
!20 = !{!"_ZTSSt10unique_ptrIN3uno24InequalityHandlingMethodESt14default_deleteIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_dataIN3uno24InequalityHandlingMethodESt14default_deleteIS1_ELb1ELb1EE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_implIN3uno24InequalityHandlingMethodESt14default_deleteIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt5tupleIJPN3uno24InequalityHandlingMethodESt14default_deleteIS1_EEE", !24, i64 0}
!24 = !{!"_ZTSSt11_Tuple_implILm0EJPN3uno24InequalityHandlingMethodESt14default_deleteIS1_EEE", !25, i64 0}
!25 = !{!"_ZTSSt10_Head_baseILm0EPN3uno24InequalityHandlingMethodELb0EE", !6, i64 0}
!26 = !{!"_ZTSN3uno4NormE", !7, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSSt10unique_ptrIN3uno12HessianModelESt14default_deleteIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataIN3uno12HessianModelESt14default_deleteIS1_ELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implIN3uno12HessianModelESt14default_deleteIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPN3uno12HessianModelESt14default_deleteIS1_EEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPN3uno12HessianModelESt14default_deleteIS1_EEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPN3uno12HessianModelELb0EE", !6, i64 0}
!35 = !{!"_ZTSN3uno22l1RelaxationParametersE", !28, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!36 = !{!"_ZTSN3uno11MultipliersE", !37, i64 0, !37, i64 24, !37, i64 48}
!37 = !{!"_ZTSN3uno6VectorIdEE", !38, i64 0}
!38 = !{!"_ZTSSt6vectorIdSaIdEE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!12, !10, i64 144}
!43 = !{!44, !44, i64 0}
!44 = !{!"_ZTSN3uno5LevelE", !7, i64 0}
!45 = !{!7, !7, i64 0}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}


; 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.uno::Sum" = type { ptr, %"class.uno::MatrixVectorProduct" }
%"class.uno::MatrixVectorProduct" = type { ptr, ptr }

@.str.18 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [67 x i8], align 1

; 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 void @_ZN3uno12l1Relaxation24solve_l1_relaxed_problemERNS_10StatisticsERKNS_5ModelERNS_7IterateERNS_9DirectionEdRNS_20WarmstartInformationE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(532), ptr noundef nonnull align 8 dereferenceable(208), double noundef, ptr noundef nonnull align 1 dereferenceable(6)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3uno5Model20constraint_violationINS_3SumIRSt6vectorIdSaIdEENS_19MatrixVectorProductIRNS_17RectangularMatrixIdEERNS_6VectorIdEEEELi0EEEEEdRKT_NS_4NormE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3unoplIRSt6vectorIdSaIdEENS_19MatrixVectorProductIRNS_17RectangularMatrixIdEERNS_6VectorIdEEEEEENS_3SumIT_T0_Li0EEEOSE_OSF_(ptr dead_on_unwind noalias writable sret(%"class.uno::Sum") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN3unomlIRNS_17RectangularMatrixIdEERNS_6VectorIdEETnNSt9enable_ifIXsr3stdE9is_same_vINSt16remove_referenceIT_E4type10value_typeENS8_IT0_E4type10value_typeEEEiE4typeELi0EEENS_19MatrixVectorProductIS9_SD_EEOS9_OSD_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3uno12l1Relaxation47enforce_linearized_residual_sufficient_decreaseERNS_10StatisticsERKNS_5ModelERNS_7IterateERNS_9DirectionEddRNS_20WarmstartInformationE(ptr noundef nonnull align 8 dereferenceable(256) %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(208) %4, double noundef %5, double noundef %6, ptr noundef nonnull align 1 dereferenceable(6) %7) local_unnamed_addr #1 align 2 {
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca %"class.uno::Sum", align 8
  %13 = alloca %"class.uno::MatrixVectorProduct", align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store double %5, ptr %9, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 88
  %17 = load double, ptr %16, align 8, !tbaa !9
  %18 = fcmp ogt double %17, 0.000000e+00
  br i1 %18, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %8
  %19 = getelementptr inbounds i8, ptr %0, i64 144
  %20 = getelementptr inbounds i8, ptr %3, i64 200
  %21 = getelementptr inbounds i8, ptr %3, i64 280
  %22 = getelementptr inbounds i8, ptr %4, i64 16
  %23 = getelementptr inbounds i8, ptr %13, i64 8
  br label %24

24:                                               ; preds = %.lr.ph, %27
  %25 = load double, ptr %9, align 8, !tbaa !5
  %26 = call noundef zeroext i1 @_ZNK3uno12l1Relaxation39linearized_residual_sufficient_decreaseERKNS_7IterateEdd(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(532) %3, double noundef %25, double noundef %6)
  br i1 %26, label %.critedge, label %27

27:                                               ; preds = %24
  %28 = load double, ptr %19, align 8, !tbaa !41
  %29 = load double, ptr %16, align 8, !tbaa !9
  %30 = fdiv double %29, %28
  store double %30, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  store i32 4, ptr %10, align 4, !tbaa !42
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIA43_cEERKNS_5LevelES4_RKT_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 1 dereferenceable(43) @.str.30)
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIdEERKNS_5LevelES3_RT_(ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #3
  store i8 10, ptr %11, align 1, !tbaa !44
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIcEERKNS_5LevelES3_RKT_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 1 dereferenceable(1) %11)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  %34 = load double, ptr %16, align 8, !tbaa !9
  call void @_ZN3uno12l1Relaxation24solve_l1_relaxed_problemERNS_10StatisticsERKNS_5ModelERNS_7IterateERNS_9DirectionEdRNS_20WarmstartInformationE(ptr noundef nonnull align 8 dereferenceable(256) %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(208) %4, double noundef %34, ptr noundef nonnull align 1 dereferenceable(6) %7)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #3
  %35 = call { ptr, ptr } @_ZN3unomlIRNS_17RectangularMatrixIdEERNS_6VectorIdEETnNSt9enable_ifIXsr3stdE9is_same_vINSt16remove_referenceIT_E4type10value_typeENS8_IT0_E4type10value_typeEEEiE4typeELi0EEENS_19MatrixVectorProductIS9_SD_EEOS9_OSD_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %22)
  %36 = extractvalue { ptr, ptr } %35, 0
  store ptr %36, ptr %13, align 8
  %37 = extractvalue { ptr, ptr } %35, 1
  store ptr %37, ptr %23, align 8
  call void @_ZN3unoplIRSt6vectorIdSaIdEENS_19MatrixVectorProductIRNS_17RectangularMatrixIdEERNS_6VectorIdEEEEEENS_3SumIT_T0_Li0EEEOSE_OSF_(ptr dead_on_unwind nonnull writable sret(%"class.uno::Sum") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(16) %13)
  %38 = call noundef double @_ZNK3uno5Model20constraint_violationINS_3SumIRSt6vectorIdSaIdEENS_19MatrixVectorProductIRNS_17RectangularMatrixIdEERNS_6VectorIdEEEELi0EEEEEdRKT_NS_4NormE(ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 0)
  store double %38, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  store i32 4, ptr %14, align 4, !tbaa !42
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIA34_cEERKNS_5LevelES4_RKT_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 1 dereferenceable(34) @.str.18)
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIdEERKNS_5LevelES3_RT_(ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIA3_cEERKNS_5LevelES4_RKT_(ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 1 dereferenceable(3) @.str.19)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  %42 = load double, ptr %16, align 8, !tbaa !9
  %43 = fcmp ogt double %42, 0.000000e+00
  br i1 %43, label %24, label %.critedge, !llvm.loop !45

.critedge:                                        ; preds = %24, %27, %8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #3
  store i32 4, ptr %15, align 4, !tbaa !42
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3unolsIA67_cEERKNS_5LevelES4_RKT_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 1 dereferenceable(67) @.str.31)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3uno12l1Relaxation39linearized_residual_sufficient_decreaseERKNS_7IterateEdd(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(532), double noundef, double noundef) local_unnamed_addr #1 align 2

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

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

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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 88}
!10 = !{!"_ZTSN3uno12l1RelaxationE", !11, i64 0, !6, i64 88, !6, i64 96, !27, i64 104, !28, i64 112, !28, i64 120, !6, i64 128, !34, i64 136, !6, i64 176, !35, i64 184}
!11 = !{!"_ZTSN3uno28ConstraintRelaxationStrategyE", !12, i64 8, !19, i64 16, !25, i64 24, !25, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !26, i64 56, !26, i64 64, !6, i64 72, !27, i64 80}
!12 = !{!"_ZTSSt10unique_ptrIN3uno21GlobalizationStrategyESt14default_deleteIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt15__uniq_ptr_dataIN3uno21GlobalizationStrategyESt14default_deleteIS1_ELb1ELb1EE", !14, i64 0}
!14 = !{!"_ZTSSt15__uniq_ptr_implIN3uno21GlobalizationStrategyESt14default_deleteIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt5tupleIJPN3uno21GlobalizationStrategyESt14default_deleteIS1_EEE", !16, i64 0}
!16 = !{!"_ZTSSt11_Tuple_implILm0EJPN3uno21GlobalizationStrategyESt14default_deleteIS1_EEE", !17, i64 0}
!17 = !{!"_ZTSSt10_Head_baseILm0EPN3uno21GlobalizationStrategyELb0EE", !18, i64 0}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"_ZTSSt10unique_ptrIN3uno24InequalityHandlingMethodESt14default_deleteIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_dataIN3uno24InequalityHandlingMethodESt14default_deleteIS1_ELb1ELb1EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_implIN3uno24InequalityHandlingMethodESt14default_deleteIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt5tupleIJPN3uno24InequalityHandlingMethodESt14default_deleteIS1_EEE", !23, i64 0}
!23 = !{!"_ZTSSt11_Tuple_implILm0EJPN3uno24InequalityHandlingMethodESt14default_deleteIS1_EEE", !24, i64 0}
!24 = !{!"_ZTSSt10_Head_baseILm0EPN3uno24InequalityHandlingMethodELb0EE", !18, i64 0}
!25 = !{!"_ZTSN3uno4NormE", !7, i64 0}
!26 = !{!"long", !7, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"_ZTSSt10unique_ptrIN3uno12HessianModelESt14default_deleteIS1_EE", !29, i64 0}
!29 = !{!"_ZTSSt15__uniq_ptr_dataIN3uno12HessianModelESt14default_deleteIS1_ELb1ELb1EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_implIN3uno12HessianModelESt14default_deleteIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt5tupleIJPN3uno12HessianModelESt14default_deleteIS1_EEE", !32, i64 0}
!32 = !{!"_ZTSSt11_Tuple_implILm0EJPN3uno12HessianModelESt14default_deleteIS1_EEE", !33, i64 0}
!33 = !{!"_ZTSSt10_Head_baseILm0EPN3uno12HessianModelELb0EE", !18, i64 0}
!34 = !{!"_ZTSN3uno22l1RelaxationParametersE", !27, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!35 = !{!"_ZTSN3uno11MultipliersE", !36, i64 0, !36, i64 24, !36, i64 48}
!36 = !{!"_ZTSN3uno6VectorIdEE", !37, i64 0}
!37 = !{!"_ZTSSt6vectorIdSaIdEE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!41 = !{!10, !6, i64 144}
!42 = !{!43, !43, i64 0}
!43 = !{!"_ZTSN3uno5LevelE", !7, i64 0}
!44 = !{!7, !7, i64 0}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass