; LLVM IR from cvanaret/Uno :: uno/optimization/Iterate.ll (ZN3uno7IterateC2Emm)

; 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::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.0", %"class.std::vector", i64 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.5" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 } }

@_ZN3uno3INFIdEE = external dso_local constant double, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3uno7IterateC2Emm(ptr noundef nonnull align 8 dereferenceable(532) %0, i64 noundef %1, i64 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store i64 %2, ptr %6, align 8, !tbaa !9
  %9 = load ptr, ptr %4, align 8
  %10 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 0
  %11 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %11, ptr %10, align 8, !tbaa !11
  %12 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 1
  %13 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %13, ptr %12, align 8, !tbaa !38
  %14 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 2
  %15 = load i64, ptr %5, align 8, !tbaa !9
  call void @_ZN3uno6VectorIdEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %15)
  %16 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 3
  %17 = load i64, ptr %5, align 8, !tbaa !9
  %18 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZN3uno11MultipliersC1Emm(ptr noundef nonnull align 8 dereferenceable(72) %16, i64 noundef %17, i64 noundef %18)
          to label %19 unwind label %48

19:                                               ; preds = %3
  %20 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 4
  %21 = load i64, ptr %5, align 8, !tbaa !9
  %22 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZN3uno11MultipliersC1Emm(ptr noundef nonnull align 8 dereferenceable(72) %20, i64 noundef %21, i64 noundef %22)
          to label %23 unwind label %52

23:                                               ; preds = %19
  %24 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 5
  store double 1.000000e+00, ptr %24, align 8, !tbaa !39
  %25 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 6
  %26 = load i64, ptr %5, align 8, !tbaa !9
  %27 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZN3uno11EvaluationsC2Emm(ptr noundef nonnull align 8 dereferenceable(112) %25, i64 noundef %26, i64 noundef %27)
          to label %28 unwind label %56

28:                                               ; preds = %23
  %29 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 7
  store i8 0, ptr %29, align 8, !tbaa !40
  %30 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 8
  store i8 0, ptr %30, align 1, !tbaa !41
  %31 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 9
  store i8 0, ptr %31, align 2, !tbaa !42
  %32 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 10
  store i8 0, ptr %32, align 1, !tbaa !43
  %33 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 12
  %34 = load double, ptr @_ZN3uno3INFIdEE, align 8, !tbaa !44
  store double %34, ptr %33, align 8, !tbaa !45
  %35 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 13
  %36 = load i64, ptr %5, align 8, !tbaa !9
  invoke void @_ZN3uno13DualResidualsC2Em(ptr noundef nonnull align 8 dereferenceable(80) %35, i64 noundef %36)
          to label %37 unwind label %60

37:                                               ; preds = %28
  %38 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 14
  %39 = load i64, ptr %5, align 8, !tbaa !9
  invoke void @_ZN3uno13DualResidualsC2Em(ptr noundef nonnull align 8 dereferenceable(80) %38, i64 noundef %39)
          to label %40 unwind label %64

40:                                               ; preds = %37
  %41 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 15
  %42 = getelementptr inbounds %"struct.uno::ProgressMeasures", ptr %41, i32 0, i32 0
  %43 = load double, ptr @_ZN3uno3INFIdEE, align 8, !tbaa !44
  store double %43, ptr %42, align 8, !tbaa !46
  %44 = getelementptr inbounds %"struct.uno::ProgressMeasures", ptr %41, i32 0, i32 1
  call void @_ZNSt8functionIFddEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #4
  %45 = getelementptr inbounds %"struct.uno::ProgressMeasures", ptr %41, i32 0, i32 2
  %46 = load double, ptr @_ZN3uno3INFIdEE, align 8, !tbaa !44
  store double %46, ptr %45, align 8, !tbaa !47
  %47 = getelementptr inbounds %"class.uno::Iterate", ptr %9, i32 0, i32 16
  store i32 0, ptr %47, align 8, !tbaa !48
  ret void

48:                                               ; preds = %3
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %7, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %8, align 4
  br label %71

52:                                               ; preds = %19
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %7, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %8, align 4
  br label %70

56:                                               ; preds = %23
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %7, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %8, align 4
  br label %69

60:                                               ; preds = %28
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %7, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %8, align 4
  br label %68

64:                                               ; preds = %37
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %7, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %8, align 4
  call void @_ZN3uno13DualResidualsD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %35) #4
  br label %68

68:                                               ; preds = %64, %60
  call void @_ZN3uno11EvaluationsD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %25) #4
  br label %69

69:                                               ; preds = %68, %56
  call void @_ZN3uno11MultipliersD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %20) #4
  br label %70

70:                                               ; preds = %69, %52
  call void @_ZN3uno11MultipliersD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %16) #4
  br label %71

71:                                               ; preds = %70, %48
  call void @_ZN3uno6VectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  br label %72

72:                                               ; preds = %71
  %73 = load ptr, ptr %7, align 8
  %74 = load i32, ptr %8, align 4
  %75 = insertvalue { ptr, i32 } poison, ptr %73, 0
  %76 = insertvalue { ptr, i32 } %75, i32 %74, 1
  resume { ptr, i32 } %76
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3uno6VectorIdEC2Em(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #0 align 2

declare void @_ZN3uno11MultipliersC1Emm(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef, i64 noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3uno11EvaluationsC2Emm(ptr noundef nonnull align 8 dereferenceable(112), i64 noundef, i64 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3uno13DualResidualsC2Em(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) unnamed_addr #0 align 2

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

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

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

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

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

attributes #0 = { 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 #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 = { 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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN3uno7IterateE", !10, i64 0, !10, i64 8, !13, 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}
!13 = !{!"_ZTSN3uno6VectorIdEE", !14, i64 0}
!14 = !{!"_ZTSSt6vectorIdSaIdEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSN3uno11MultipliersE", !13, i64 0, !13, i64 24, !13, i64 48}
!19 = !{!"double", !7, i64 0}
!20 = !{!"_ZTSN3uno11EvaluationsE", !19, i64 0, !14, i64 8, !21, i64 32, !26, i64 88}
!21 = !{!"_ZTSN3uno12SparseVectorIdEE", !22, i64 0, !14, 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", !6, i64 0, !6, i64 8, !6, 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", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"bool", !7, i64 0}
!32 = !{!"_ZTSN3uno13DualResidualsE", !19, i64 0, !19, i64 8, !19, i64 16, !19, i64 24, !33, i64 32}
!33 = !{!"_ZTSN3uno18LagrangianGradientIdEE", !13, i64 0, !13, i64 24}
!34 = !{!"_ZTSN3uno16ProgressMeasuresE", !19, i64 0, !35, i64 8, !19, i64 40}
!35 = !{!"_ZTSSt8functionIFddEE", !36, i64 0, !6, i64 24}
!36 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!37 = !{!"_ZTSN3uno13IterateStatusE", !7, i64 0}
!38 = !{!12, !10, i64 8}
!39 = !{!12, !19, i64 184}
!40 = !{!12, !31, i64 304}
!41 = !{!12, !31, i64 305}
!42 = !{!12, !31, i64 306}
!43 = !{!12, !31, i64 307}
!44 = !{!19, !19, i64 0}
!45 = !{!12, !19, i64 312}
!46 = !{!34, !19, i64 0}
!47 = !{!34, !19, i64 40}
!48 = !{!12, !37, i64 528}


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

@_ZN3uno3INFIdEE = external dso_local local_unnamed_addr constant double, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3uno7IterateC2Emm(ptr noundef nonnull align 8 dereferenceable(532) %0, i64 noundef %1, i64 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  store i64 %1, ptr %0, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %2, ptr %4, align 8, !tbaa !36
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZN3uno6VectorIdEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %1)
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  invoke void @_ZN3uno11MultipliersC1Emm(ptr noundef nonnull align 8 dereferenceable(72) %6, i64 noundef %1, i64 noundef %2)
          to label %7 unwind label %24

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 112
  invoke void @_ZN3uno11MultipliersC1Emm(ptr noundef nonnull align 8 dereferenceable(72) %8, i64 noundef %1, i64 noundef %2)
          to label %9 unwind label %26

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 184
  store double 1.000000e+00, ptr %10, align 8, !tbaa !37
  %11 = getelementptr inbounds i8, ptr %0, i64 192
  invoke void @_ZN3uno11EvaluationsC2Emm(ptr noundef nonnull align 8 dereferenceable(112) %11, i64 noundef %1, i64 noundef %2)
          to label %12 unwind label %28

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 304
  %14 = getelementptr inbounds i8, ptr %0, i64 312
  store i32 0, ptr %13, align 8
  %15 = load double, ptr @_ZN3uno3INFIdEE, align 8, !tbaa !38
  store double %15, ptr %14, align 8, !tbaa !39
  %16 = getelementptr inbounds i8, ptr %0, i64 320
  invoke void @_ZN3uno13DualResidualsC2Em(ptr noundef nonnull align 8 dereferenceable(80) %16, i64 noundef %1)
          to label %17 unwind label %30

17:                                               ; preds = %12
  %18 = getelementptr inbounds i8, ptr %0, i64 400
  invoke void @_ZN3uno13DualResidualsC2Em(ptr noundef nonnull align 8 dereferenceable(80) %18, i64 noundef %1)
          to label %19 unwind label %32

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %0, i64 480
  store double %15, ptr %20, align 8, !tbaa !40
  %21 = getelementptr inbounds i8, ptr %0, i64 488
  tail call void @_ZNSt8functionIFddEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #4
  %22 = getelementptr inbounds i8, ptr %0, i64 520
  store double %15, ptr %22, align 8, !tbaa !41
  %23 = getelementptr inbounds i8, ptr %0, i64 528
  store i32 0, ptr %23, align 8, !tbaa !42
  ret void

24:                                               ; preds = %3
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %37

26:                                               ; preds = %7
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %36

28:                                               ; preds = %9
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %35

30:                                               ; preds = %12
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %34

32:                                               ; preds = %17
  %33 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3uno13DualResidualsD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %16) #4
  br label %34

34:                                               ; preds = %32, %30
  %.pn = phi { ptr, i32 } [ %33, %32 ], [ %31, %30 ]
  tail call void @_ZN3uno11EvaluationsD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %11) #4
  br label %35

35:                                               ; preds = %34, %28
  %.pn.pn = phi { ptr, i32 } [ %.pn, %34 ], [ %29, %28 ]
  tail call void @_ZN3uno11MultipliersD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %8) #4
  br label %36

36:                                               ; preds = %35, %26
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %35 ], [ %27, %26 ]
  tail call void @_ZN3uno11MultipliersD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %6) #4
  br label %37

37:                                               ; preds = %36, %24
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %36 ], [ %25, %24 ]
  tail call void @_ZN3uno6VectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3uno6VectorIdEC2Em(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #0 align 2

declare void @_ZN3uno11MultipliersC1Emm(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef, i64 noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3uno11EvaluationsC2Emm(ptr noundef nonnull align 8 dereferenceable(112), i64 noundef, i64 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3uno13DualResidualsC2Em(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) unnamed_addr #0 align 2

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

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

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass