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

; 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::SparseVector<double>::iterator" = type { ptr, i64 }
%"struct.std::pair" = type { i64, double }
%"class.uno::Range" = type { %"class.uno::Collection", i64, i64 }
%"class.uno::Collection" = type { ptr }
%"class.uno::Collection<unsigned long>::iterator" = type { ptr, i64 }
%"class.uno::LagrangianGradient" = type { %"class.uno::Vector.3", %"class.uno::Vector.3" }
%"class.uno::Vector.3" = type { %"class.std::vector.4" }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = 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.3", %"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::Multipliers" = type { %"class.uno::Vector.3", %"class.uno::Vector.3", %"class.uno::Vector.3" }
%"struct.uno::Evaluations" = type { double, %"class.std::vector.4", %"class.uno::SparseVector", %"class.uno::RectangularMatrix" }
%"class.uno::SparseVector" = type { %"class.std::vector", %"class.std::vector.4", i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.9" }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = 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" }
%"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::OptimizationProblem" = type { ptr, ptr, i64, i64 }

; 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
define dso_local void @_ZNK3uno19OptimizationProblem28evaluate_lagrangian_gradientERNS_18LagrangianGradientIdEERNS_7IterateERKNS_11MultipliersE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(532) %2, ptr noundef nonnull align 8 dereferenceable(72) %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.uno::SparseVector<double>::iterator", align 8
  %11 = alloca %"class.uno::SparseVector<double>::iterator", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.uno::Range", align 8
  %17 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"class.uno::SparseVector<double>::iterator", align 8
  %25 = alloca %"class.uno::SparseVector<double>::iterator", align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.uno::Range", align 8
  %31 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %32 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %33 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %34 = load ptr, ptr %5, align 8
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.uno::LagrangianGradient", ptr %35, i32 0, i32 0
  call void @_ZN3uno6VectorIdE4fillEd(ptr noundef nonnull align 8 dereferenceable(24) %36, double noundef 0.000000e+00)
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.uno::LagrangianGradient", ptr %37, i32 0, i32 1
  call void @_ZN3uno6VectorIdE4fillEd(ptr noundef nonnull align 8 dereferenceable(24) %38, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.uno::Iterate", ptr %39, i32 0, i32 6
  %41 = getelementptr inbounds %"struct.uno::Evaluations", ptr %40, i32 0, i32 2
  store ptr %41, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = call { ptr, i64 } @_ZNK3uno12SparseVectorIdE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %42)
  %44 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 0
  %45 = extractvalue { ptr, i64 } %43, 0
  store ptr %45, ptr %44, align 8
  %46 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 1
  %47 = extractvalue { ptr, i64 } %43, 1
  store i64 %47, ptr %46, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = call { ptr, i64 } @_ZNK3uno12SparseVectorIdE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %48)
  %50 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %51 = extractvalue { ptr, i64 } %49, 0
  store ptr %51, ptr %50, align 8
  %52 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %53 = extractvalue { ptr, i64 } %49, 1
  store i64 %53, ptr %52, align 8
  br label %54

54:                                               ; preds = %74, %4
  %55 = call noundef zeroext i1 @_ZN3unoneERKNS_12SparseVectorIdE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %11)
  br i1 %55, label %57, label %56

56:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %76

57:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %58 = call { i64, double } @_ZNK3uno12SparseVectorIdE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %59 = getelementptr inbounds { i64, double }, ptr %12, i32 0, i32 0
  %60 = extractvalue { i64, double } %58, 0
  store i64 %60, ptr %59, align 8
  %61 = getelementptr inbounds { i64, double }, ptr %12, i32 0, i32 1
  %62 = extractvalue { i64, double } %58, 1
  store double %62, ptr %61, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EmdEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  store ptr %63, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EmdEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  store ptr %64, ptr %14, align 8, !tbaa !5
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = load double, ptr %65, align 8, !tbaa !9
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.uno::LagrangianGradient", ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load i64, ptr %69, align 8, !tbaa !11
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70)
  %72 = load double, ptr %71, align 8, !tbaa !9
  %73 = fadd double %72, %66
  store double %73, ptr %71, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br label %74

74:                                               ; preds = %57
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno12SparseVectorIdE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  br label %54

76:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  %77 = getelementptr inbounds %"class.uno::OptimizationProblem", ptr %34, i32 0, i32 3
  %78 = load i64, ptr %77, align 8, !tbaa !13
  call void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %78)
  store ptr %16, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %79)
          to label %81 unwind label %97

81:                                               ; preds = %76
  %82 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %83 = extractvalue { ptr, i64 } %80, 0
  store ptr %83, ptr %82, align 8
  %84 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %85 = extractvalue { ptr, i64 } %80, 1
  store i64 %85, ptr %84, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %86 = load ptr, ptr %15, align 8, !tbaa !5
  %87 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %86)
          to label %88 unwind label %101

88:                                               ; preds = %81
  %89 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %90 = extractvalue { ptr, i64 } %87, 0
  store ptr %90, ptr %89, align 8
  %91 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %92 = extractvalue { ptr, i64 } %87, 1
  store i64 %92, ptr %91, align 8
  br label %93

93:                                               ; preds = %201, %88
  %94 = invoke noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %95 unwind label %101

95:                                               ; preds = %93
  br i1 %94, label %105, label %96

96:                                               ; preds = %95
  store i32 4, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %205

97:                                               ; preds = %76
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %18, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %19, align 4
  br label %204

101:                                              ; preds = %199, %93, %81
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %18, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %19, align 4
  br label %203

105:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %106 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %107 unwind label %140

107:                                              ; preds = %105
  store i64 %106, ptr %22, align 8, !tbaa !11
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %"class.uno::Multipliers", ptr %108, i32 0, i32 2
  %110 = load i64, ptr %22, align 8, !tbaa !11
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %110)
          to label %112 unwind label %140

112:                                              ; preds = %107
  %113 = load double, ptr %111, align 8, !tbaa !9
  %114 = fcmp une double %113, 0.000000e+00
  br i1 %114, label %115, label %198

115:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = getelementptr inbounds %"class.uno::Iterate", ptr %116, i32 0, i32 6
  %118 = getelementptr inbounds %"struct.uno::Evaluations", ptr %117, i32 0, i32 3
  %119 = load i64, ptr %22, align 8, !tbaa !11
  %120 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN3uno17RectangularMatrixIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %119)
          to label %121 unwind label %144

121:                                              ; preds = %115
  store ptr %120, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %122 = load ptr, ptr %23, align 8, !tbaa !5
  %123 = invoke { ptr, i64 } @_ZNK3uno12SparseVectorIdE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %122)
          to label %124 unwind label %148

124:                                              ; preds = %121
  %125 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %126 = extractvalue { ptr, i64 } %123, 0
  store ptr %126, ptr %125, align 8
  %127 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %128 = extractvalue { ptr, i64 } %123, 1
  store i64 %128, ptr %127, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %129 = load ptr, ptr %23, align 8, !tbaa !5
  %130 = invoke { ptr, i64 } @_ZNK3uno12SparseVectorIdE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %129)
          to label %131 unwind label %152

131:                                              ; preds = %124
  %132 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %133 = extractvalue { ptr, i64 } %130, 0
  store ptr %133, ptr %132, align 8
  %134 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %135 = extractvalue { ptr, i64 } %130, 1
  store i64 %135, ptr %134, align 8
  br label %136

136:                                              ; preds = %184, %131
  %137 = invoke noundef zeroext i1 @_ZN3unoneERKNS_12SparseVectorIdE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %138 unwind label %152

138:                                              ; preds = %136
  br i1 %137, label %156, label %139

139:                                              ; preds = %138
  store i32 6, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %197

140:                                              ; preds = %107, %105
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %18, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %19, align 4
  br label %202

144:                                              ; preds = %115
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %18, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %19, align 4
  br label %196

148:                                              ; preds = %121
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %18, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %19, align 4
  br label %195

152:                                              ; preds = %182, %136, %124
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %18, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %19, align 4
  br label %194

156:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %157 = invoke { i64, double } @_ZNK3uno12SparseVectorIdE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %158 unwind label %185

158:                                              ; preds = %156
  %159 = getelementptr inbounds { i64, double }, ptr %26, i32 0, i32 0
  %160 = extractvalue { i64, double } %157, 0
  store i64 %160, ptr %159, align 8
  %161 = getelementptr inbounds { i64, double }, ptr %26, i32 0, i32 1
  %162 = extractvalue { i64, double } %157, 1
  store double %162, ptr %161, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EmdEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(16) %26) #5
  store ptr %163, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EmdEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(16) %26) #5
  store ptr %164, ptr %28, align 8, !tbaa !5
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = getelementptr inbounds %"class.uno::Multipliers", ptr %165, i32 0, i32 2
  %167 = load i64, ptr %22, align 8, !tbaa !11
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %167)
          to label %169 unwind label %189

169:                                              ; preds = %158
  %170 = load double, ptr %168, align 8, !tbaa !9
  %171 = load ptr, ptr %28, align 8, !tbaa !5
  %172 = load double, ptr %171, align 8, !tbaa !9
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = getelementptr inbounds %"class.uno::LagrangianGradient", ptr %173, i32 0, i32 1
  %175 = load ptr, ptr %27, align 8, !tbaa !5
  %176 = load i64, ptr %175, align 8, !tbaa !11
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %174, i64 noundef %176)
          to label %178 unwind label %189

178:                                              ; preds = %169
  %179 = load double, ptr %177, align 8, !tbaa !9
  %180 = fneg double %170
  %181 = call double @llvm.fmuladd.f64(double %180, double %172, double %179)
  store double %181, ptr %177, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  br label %182

182:                                              ; preds = %178
  %183 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno12SparseVectorIdE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %184 unwind label %152

184:                                              ; preds = %182
  br label %136

185:                                              ; preds = %156
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %18, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %19, align 4
  br label %193

189:                                              ; preds = %169, %158
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %18, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %193

193:                                              ; preds = %189, %185
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  br label %194

194:                                              ; preds = %193, %152
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  br label %195

195:                                              ; preds = %194, %148
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  br label %196

196:                                              ; preds = %195, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %202

197:                                              ; preds = %139
  br label %198

198:                                              ; preds = %197, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %199

199:                                              ; preds = %198
  %200 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %201 unwind label %101

201:                                              ; preds = %199
  br label %93

202:                                              ; preds = %196, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %203

203:                                              ; preds = %202, %101
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  br label %204

204:                                              ; preds = %203, %97
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %267

205:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #5
  %206 = getelementptr inbounds %"class.uno::OptimizationProblem", ptr %34, i32 0, i32 2
  %207 = load i64, ptr %206, align 8, !tbaa !15
  call void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %207)
  store ptr %30, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #5
  %208 = load ptr, ptr %29, align 8, !tbaa !5
  %209 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %208)
          to label %210 unwind label %226

210:                                              ; preds = %205
  %211 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 0
  %212 = extractvalue { ptr, i64 } %209, 0
  store ptr %212, ptr %211, align 8
  %213 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 1
  %214 = extractvalue { ptr, i64 } %209, 1
  store i64 %214, ptr %213, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #5
  %215 = load ptr, ptr %29, align 8, !tbaa !5
  %216 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %215)
          to label %217 unwind label %230

217:                                              ; preds = %210
  %218 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 0
  %219 = extractvalue { ptr, i64 } %216, 0
  store ptr %219, ptr %218, align 8
  %220 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 1
  %221 = extractvalue { ptr, i64 } %216, 1
  store i64 %221, ptr %220, align 8
  br label %222

222:                                              ; preds = %259, %217
  %223 = invoke noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %224 unwind label %230

224:                                              ; preds = %222
  br i1 %223, label %234, label %225

225:                                              ; preds = %224
  store i32 8, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %266

226:                                              ; preds = %205
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %18, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %19, align 4
  br label %265

230:                                              ; preds = %257, %222, %210
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %18, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %19, align 4
  br label %264

234:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %235 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %236 unwind label %260

236:                                              ; preds = %234
  store i64 %235, ptr %33, align 8, !tbaa !11
  %237 = load ptr, ptr %8, align 8, !tbaa !5
  %238 = getelementptr inbounds %"class.uno::Multipliers", ptr %237, i32 0, i32 0
  %239 = load i64, ptr %33, align 8, !tbaa !11
  %240 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %238, i64 noundef %239)
          to label %241 unwind label %260

241:                                              ; preds = %236
  %242 = load double, ptr %240, align 8, !tbaa !9
  %243 = load ptr, ptr %8, align 8, !tbaa !5
  %244 = getelementptr inbounds %"class.uno::Multipliers", ptr %243, i32 0, i32 1
  %245 = load i64, ptr %33, align 8, !tbaa !11
  %246 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %244, i64 noundef %245)
          to label %247 unwind label %260

247:                                              ; preds = %241
  %248 = load double, ptr %246, align 8, !tbaa !9
  %249 = fadd double %242, %248
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = getelementptr inbounds %"class.uno::LagrangianGradient", ptr %250, i32 0, i32 1
  %252 = load i64, ptr %33, align 8, !tbaa !11
  %253 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %251, i64 noundef %252)
          to label %254 unwind label %260

254:                                              ; preds = %247
  %255 = load double, ptr %253, align 8, !tbaa !9
  %256 = fsub double %255, %249
  store double %256, ptr %253, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br label %257

257:                                              ; preds = %254
  %258 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %259 unwind label %230

259:                                              ; preds = %257
  br label %222

260:                                              ; preds = %247, %241, %236, %234
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %18, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br label %264

264:                                              ; preds = %260, %230
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  br label %265

265:                                              ; preds = %264, %226
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %267

266:                                              ; preds = %225
  ret void

267:                                              ; preds = %265, %204
  %268 = load ptr, ptr %18, align 8
  %269 = load i32, ptr %19, align 4
  %270 = insertvalue { ptr, i32 } poison, ptr %268, 0
  %271 = insertvalue { ptr, i32 } %270, i32 %269, 1
  resume { ptr, i32 } %271
}

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNK3uno12SparseVectorIdE5beginEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNK3uno12SparseVectorIdE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3unoneERKNS_12SparseVectorIdE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, double } @_ZNK3uno12SparseVectorIdE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN3uno17RectangularMatrixIdEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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 = { 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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 24}
!14 = !{!"_ZTSN3uno19OptimizationProblemE", !6, i64 8, !12, i64 16, !12, i64 24}
!15 = !{!14, !12, i64 16}


; 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::SparseVector<double>::iterator" = type { ptr, i64 }
%"struct.std::pair" = type { i64, double }
%"class.uno::Range" = type { %"class.uno::Collection", i64, i64 }
%"class.uno::Collection" = type { ptr }
%"class.uno::Collection<unsigned long>::iterator" = type { ptr, i64 }

; 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
define dso_local void @_ZNK3uno19OptimizationProblem28evaluate_lagrangian_gradientERNS_18LagrangianGradientIdEERNS_7IterateERKNS_11MultipliersE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(532) %2, ptr noundef nonnull align 8 dereferenceable(72) %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.uno::SparseVector<double>::iterator", align 8
  %6 = alloca %"class.uno::SparseVector<double>::iterator", align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca %"class.uno::Range", align 8
  %9 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %10 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %11 = alloca %"class.uno::SparseVector<double>::iterator", align 8
  %12 = alloca %"class.uno::SparseVector<double>::iterator", align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"class.uno::Range", align 8
  %15 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %16 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  tail call void @_ZN3uno6VectorIdE4fillEd(ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef 0.000000e+00)
  %17 = getelementptr inbounds i8, ptr %1, i64 24
  tail call void @_ZN3uno6VectorIdE4fillEd(ptr noundef nonnull align 8 dereferenceable(24) %17, double noundef 0.000000e+00)
  %18 = getelementptr inbounds i8, ptr %2, i64 224
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %19 = tail call { ptr, i64 } @_ZNK3uno12SparseVectorIdE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %18)
  %20 = extractvalue { ptr, i64 } %19, 0
  store ptr %20, ptr %5, align 8
  %21 = getelementptr inbounds i8, ptr %5, i64 8
  %22 = extractvalue { ptr, i64 } %19, 1
  store i64 %22, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %23 = tail call { ptr, i64 } @_ZNK3uno12SparseVectorIdE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %18)
  %24 = extractvalue { ptr, i64 } %23, 0
  store ptr %24, ptr %6, align 8
  %25 = getelementptr inbounds i8, ptr %6, i64 8
  %26 = extractvalue { ptr, i64 } %23, 1
  store i64 %26, ptr %25, align 8
  %27 = call noundef zeroext i1 @_ZN3unoneERKNS_12SparseVectorIdE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  br i1 %27, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %28 = getelementptr inbounds i8, ptr %7, i64 8
  br label %32

._crit_edge:                                      ; preds = %32, %4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  %29 = getelementptr inbounds i8, ptr %0, i64 24
  %30 = load i64, ptr %29, align 8, !tbaa !5
  call void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %30)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  %31 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %45 unwind label %65

32:                                               ; preds = %.lr.ph, %32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %33 = call { i64, double } @_ZNK3uno12SparseVectorIdE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %34 = extractvalue { i64, double } %33, 0
  store i64 %34, ptr %7, align 8
  %35 = extractvalue { i64, double } %33, 1
  store double %35, ptr %28, align 8
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EmdEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EmdEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  %38 = load double, ptr %37, align 8, !tbaa !11
  %39 = load i64, ptr %36, align 8, !tbaa !13
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %39)
  %41 = load double, ptr %40, align 8, !tbaa !11
  %42 = fadd double %38, %41
  store double %42, ptr %40, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno12SparseVectorIdE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %44 = call noundef zeroext i1 @_ZN3unoneERKNS_12SparseVectorIdE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  br i1 %44, label %32, label %._crit_edge

45:                                               ; preds = %._crit_edge
  %46 = extractvalue { ptr, i64 } %31, 0
  store ptr %46, ptr %9, align 8
  %47 = getelementptr inbounds i8, ptr %9, i64 8
  %48 = extractvalue { ptr, i64 } %31, 1
  store i64 %48, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  %49 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %50 unwind label %.loopexit.split-lp49

50:                                               ; preds = %45
  %51 = extractvalue { ptr, i64 } %49, 0
  store ptr %51, ptr %10, align 8
  %52 = getelementptr inbounds i8, ptr %10, i64 8
  %53 = extractvalue { ptr, i64 } %49, 1
  store i64 %53, ptr %52, align 8
  %54 = getelementptr inbounds i8, ptr %3, i64 48
  %55 = getelementptr inbounds i8, ptr %2, i64 280
  %56 = getelementptr inbounds i8, ptr %11, i64 8
  %57 = getelementptr inbounds i8, ptr %12, i64 8
  %58 = getelementptr inbounds i8, ptr %13, i64 8
  br label %59

59:                                               ; preds = %110, %50
  %60 = call noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
  br i1 %60, label %67, label %61

61:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #5
  %62 = getelementptr inbounds i8, ptr %0, i64 16
  %63 = load i64, ptr %62, align 8, !tbaa !14
  call void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %63)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  %64 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %114 unwind label %127

65:                                               ; preds = %._crit_edge
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %113

.loopexit48:                                      ; preds = %110
  %lpad.loopexit50 = landingpad { ptr, i32 }
          cleanup
  br label %112

.loopexit.split-lp49:                             ; preds = %45
  %lpad.loopexit.split-lp51 = landingpad { ptr, i32 }
          cleanup
  br label %112

67:                                               ; preds = %59
  %68 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %69 unwind label %84

69:                                               ; preds = %67
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %68)
  %71 = load double, ptr %70, align 8, !tbaa !11
  %72 = fcmp une double %71, 0.000000e+00
  br i1 %72, label %73, label %110

73:                                               ; preds = %69
  %74 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3uno17RectangularMatrixIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %68)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  %75 = invoke { ptr, i64 } @_ZNK3uno12SparseVectorIdE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %74)
          to label %76 unwind label %86

76:                                               ; preds = %73
  %77 = extractvalue { ptr, i64 } %75, 0
  store ptr %77, ptr %11, align 8
  %78 = extractvalue { ptr, i64 } %75, 1
  store i64 %78, ptr %56, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  %79 = invoke { ptr, i64 } @_ZNK3uno12SparseVectorIdE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %74)
          to label %80 unwind label %88

80:                                               ; preds = %76
  %81 = extractvalue { ptr, i64 } %79, 0
  store ptr %81, ptr %12, align 8
  %82 = extractvalue { ptr, i64 } %79, 1
  store i64 %82, ptr %57, align 8
  %83 = call noundef zeroext i1 @_ZN3unoneERKNS_12SparseVectorIdE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
  br i1 %83, label %.lr.ph54, label %._crit_edge55

._crit_edge55:                                    ; preds = %91, %80
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  br label %110

84:                                               ; preds = %67
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %112

86:                                               ; preds = %73
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %109

88:                                               ; preds = %76
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %108

.lr.ph54:                                         ; preds = %80, %91
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  %90 = invoke { i64, double } @_ZNK3uno12SparseVectorIdE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %91 unwind label %106

91:                                               ; preds = %.lr.ph54
  %92 = extractvalue { i64, double } %90, 0
  store i64 %92, ptr %13, align 8
  %93 = extractvalue { i64, double } %90, 1
  store double %93, ptr %58, align 8
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EmdEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EmdEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %68)
  %97 = load double, ptr %96, align 8, !tbaa !11
  %98 = load double, ptr %95, align 8, !tbaa !11
  %99 = load i64, ptr %94, align 8, !tbaa !13
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %99)
  %101 = load double, ptr %100, align 8, !tbaa !11
  %102 = fneg double %97
  %103 = call double @llvm.fmuladd.f64(double %102, double %98, double %101)
  store double %103, ptr %100, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  %104 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno12SparseVectorIdE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %105 = call noundef zeroext i1 @_ZN3unoneERKNS_12SparseVectorIdE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
  br i1 %105, label %.lr.ph54, label %._crit_edge55

106:                                              ; preds = %.lr.ph54
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  br label %108

108:                                              ; preds = %106, %88
  %.pn41 = phi { ptr, i32 } [ %107, %106 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %109

109:                                              ; preds = %108, %86
  %.pn41.pn = phi { ptr, i32 } [ %.pn41, %108 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  br label %112

110:                                              ; preds = %._crit_edge55, %69
  %111 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %59 unwind label %.loopexit48

112:                                              ; preds = %.loopexit48, %.loopexit.split-lp49, %84, %109
  %.pn41.pn.pn.pn = phi { ptr, i32 } [ %.pn41.pn, %109 ], [ %85, %84 ], [ %lpad.loopexit50, %.loopexit48 ], [ %lpad.loopexit.split-lp51, %.loopexit.split-lp49 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  br label %113

113:                                              ; preds = %112, %65
  %.pn41.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn41.pn.pn.pn, %112 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %145

114:                                              ; preds = %61
  %115 = extractvalue { ptr, i64 } %64, 0
  store ptr %115, ptr %15, align 8
  %116 = getelementptr inbounds i8, ptr %15, i64 8
  %117 = extractvalue { ptr, i64 } %64, 1
  store i64 %117, ptr %116, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  %118 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %119 unwind label %.loopexit.split-lp

119:                                              ; preds = %114
  %120 = extractvalue { ptr, i64 } %118, 0
  store ptr %120, ptr %16, align 8
  %121 = getelementptr inbounds i8, ptr %16, i64 8
  %122 = extractvalue { ptr, i64 } %118, 1
  store i64 %122, ptr %121, align 8
  %123 = getelementptr inbounds i8, ptr %3, i64 24
  br label %124

124:                                              ; preds = %131, %119
  %125 = call noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
  br i1 %125, label %129, label %126

126:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #5
  ret void

127:                                              ; preds = %61
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %144

.loopexit:                                        ; preds = %131
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %143

.loopexit.split-lp:                               ; preds = %114
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %143

129:                                              ; preds = %124
  %130 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %131 unwind label %141

131:                                              ; preds = %129
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %130)
  %133 = load double, ptr %132, align 8, !tbaa !11
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %130)
  %135 = load double, ptr %134, align 8, !tbaa !11
  %136 = fadd double %133, %135
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %130)
  %138 = load double, ptr %137, align 8, !tbaa !11
  %139 = fsub double %138, %136
  store double %139, ptr %137, align 8, !tbaa !11
  %140 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %124 unwind label %.loopexit

141:                                              ; preds = %129
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %143

143:                                              ; preds = %.loopexit, %.loopexit.split-lp, %141
  %.pn = phi { ptr, i32 } [ %142, %141 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  br label %144

144:                                              ; preds = %143, %127
  %.pn.pn = phi { ptr, i32 } [ %.pn, %143 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #5
  br label %145

145:                                              ; preds = %144, %113
  %.pn41.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn41.pn.pn.pn.pn, %113 ], [ %.pn.pn, %144 ]
  resume { ptr, i32 } %.pn41.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3uno6VectorIdE4fillEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNK3uno12SparseVectorIdE5beginEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNK3uno12SparseVectorIdE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3unoneERKNS_12SparseVectorIdE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, double } @_ZNK3uno12SparseVectorIdE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN3uno17RectangularMatrixIdEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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 = { 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 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 24}
!6 = !{!"_ZTSN3uno19OptimizationProblemE", !7, i64 8, !10, i64 16, !10, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !8, i64 0}
!13 = !{!10, !10, i64 0}
!14 = !{!6, !10, i64 16}


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