; LLVM IR from cvanaret/Uno :: uno/ingredients/inequality_handling_methods/interior_point_methods/PrimalDualInte_aa34187f (5485249d)

; 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::Range" = type { %"class.uno::Collection", i64, i64 }
%"class.uno::Collection" = type { ptr }
%"class.uno::Collection<unsigned long>::iterator" = type { ptr, i64 }
%"class.uno::PrimalDualInteriorPointProblem" = type { %"class.uno::OptimizationProblem", ptr, double, double }
%"class.uno::OptimizationProblem" = type { ptr, ptr, i64, i64 }
%"class.uno::Iterate" = type <{ i64, i64, %"class.uno::Vector", %"class.uno::Multipliers", %"class.uno::Multipliers", double, %"struct.uno::Evaluations", i8, i8, i8, i8, [4 x i8], double, %"class.uno::DualResiduals", %"class.uno::DualResiduals", %"struct.uno::ProgressMeasures", i32, [4 x i8] }>
%"class.uno::Vector" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.uno::Multipliers" = type { %"class.uno::Vector", %"class.uno::Vector", %"class.uno::Vector" }
%"struct.uno::Evaluations" = type { double, %"class.std::vector", %"class.uno::SparseVector", %"class.uno::RectangularMatrix" }
%"class.uno::SparseVector" = type { %"class.std::vector.3", %"class.std::vector", i64 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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.8" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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 } }

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 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)) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef) #1

; 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) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3uno30PrimalDualInteriorPointProblem28evaluate_lagrangian_gradientERNS_18LagrangianGradientIdEERNS_7IterateERKNS_11MultipliersE(ptr noundef nonnull align 8 dereferenceable(56) %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 #2 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::Range", align 8
  %11 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %15 = alloca i64, align 8
  %16 = alloca double, 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
  %17 = load ptr, ptr %5, align 8
  %18 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 1
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = load ptr, ptr %19, align 8, !tbaa !14
  %24 = getelementptr inbounds ptr, ptr %23, i64 19
  %25 = load ptr, ptr %24, align 8
  call void %25(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 8 dereferenceable(532) %21, ptr noundef nonnull align 8 dereferenceable(72) %22)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  %26 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds %"class.uno::OptimizationProblem", ptr %27, i32 0, i32 2
  %29 = load i64, ptr %28, align 8, !tbaa !16
  call void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %29)
  store ptr %10, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %32 unwind label %48

32:                                               ; preds = %4
  %33 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %34 = extractvalue { ptr, i64 } %31, 0
  store ptr %34, ptr %33, align 8
  %35 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %36 = extractvalue { ptr, i64 } %31, 1
  store i64 %36, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %39 unwind label %52

39:                                               ; preds = %32
  %40 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %41 = extractvalue { ptr, i64 } %38, 0
  store ptr %41, ptr %40, align 8
  %42 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %43 = extractvalue { ptr, i64 } %38, 1
  store i64 %43, ptr %42, align 8
  br label %44

44:                                               ; preds = %180, %39
  %45 = invoke noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %46 unwind label %52

46:                                               ; preds = %44
  br i1 %45, label %56, label %47

47:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %184

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

52:                                               ; preds = %178, %44, %32
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %12, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %13, align 4
  br label %182

56:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %57 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %58 unwind label %108

58:                                               ; preds = %56
  store i64 %57, ptr %15, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store double 0.000000e+00, ptr %16, align 8, !tbaa !18
  %59 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = load i64, ptr %15, align 8, !tbaa !17
  %62 = load ptr, ptr %60, align 8, !tbaa !14
  %63 = getelementptr inbounds ptr, ptr %62, i64 8
  %64 = load ptr, ptr %63, align 8
  %65 = invoke noundef double %64(ptr noundef nonnull align 8 dereferenceable(32) %60, i64 noundef %61)
          to label %66 unwind label %112

66:                                               ; preds = %58
  %67 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %65)
          to label %68 unwind label %112

68:                                               ; preds = %66
  br i1 %67, label %69, label %117

69:                                               ; preds = %68
  %70 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 2
  %71 = load double, ptr %70, align 8, !tbaa !19
  %72 = fneg double %71
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.uno::Iterate", ptr %73, i32 0, i32 2
  %75 = load i64, ptr %15, align 8, !tbaa !17
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %75)
          to label %77 unwind label %112

77:                                               ; preds = %69
  %78 = load double, ptr %76, align 8, !tbaa !18
  %79 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = load i64, ptr %15, align 8, !tbaa !17
  %82 = load ptr, ptr %80, align 8, !tbaa !14
  %83 = getelementptr inbounds ptr, ptr %82, i64 8
  %84 = load ptr, ptr %83, align 8
  %85 = invoke noundef double %84(ptr noundef nonnull align 8 dereferenceable(32) %80, i64 noundef %81)
          to label %86 unwind label %112

86:                                               ; preds = %77
  %87 = fsub double %78, %85
  %88 = fdiv double %72, %87
  %89 = load double, ptr %16, align 8, !tbaa !18
  %90 = fadd double %89, %88
  store double %90, ptr %16, align 8, !tbaa !18
  %91 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = load i64, ptr %15, align 8, !tbaa !17
  %94 = load ptr, ptr %92, align 8, !tbaa !14
  %95 = getelementptr inbounds ptr, ptr %94, i64 9
  %96 = load ptr, ptr %95, align 8
  %97 = invoke noundef double %96(ptr noundef nonnull align 8 dereferenceable(32) %92, i64 noundef %93)
          to label %98 unwind label %112

98:                                               ; preds = %86
  %99 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %97)
          to label %100 unwind label %112

100:                                              ; preds = %98
  br i1 %99, label %116, label %101

101:                                              ; preds = %100
  %102 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 3
  %103 = load double, ptr %102, align 8, !tbaa !20
  %104 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 2
  %105 = load double, ptr %104, align 8, !tbaa !19
  %106 = load double, ptr %16, align 8, !tbaa !18
  %107 = call double @llvm.fmuladd.f64(double %103, double %105, double %106)
  store double %107, ptr %16, align 8, !tbaa !18
  br label %116

108:                                              ; preds = %56
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %12, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %13, align 4
  br label %181

112:                                              ; preds = %169, %157, %145, %136, %128, %125, %117, %98, %86, %77, %69, %66, %58
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %12, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %181

116:                                              ; preds = %101, %100
  br label %117

117:                                              ; preds = %116, %68
  %118 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 1
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = load i64, ptr %15, align 8, !tbaa !17
  %121 = load ptr, ptr %119, align 8, !tbaa !14
  %122 = getelementptr inbounds ptr, ptr %121, i64 9
  %123 = load ptr, ptr %122, align 8
  %124 = invoke noundef double %123(ptr noundef nonnull align 8 dereferenceable(32) %119, i64 noundef %120)
          to label %125 unwind label %112

125:                                              ; preds = %117
  %126 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %124)
          to label %127 unwind label %112

127:                                              ; preds = %125
  br i1 %126, label %128, label %169

128:                                              ; preds = %127
  %129 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 2
  %130 = load double, ptr %129, align 8, !tbaa !19
  %131 = fneg double %130
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = getelementptr inbounds %"class.uno::Iterate", ptr %132, i32 0, i32 2
  %134 = load i64, ptr %15, align 8, !tbaa !17
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %134)
          to label %136 unwind label %112

136:                                              ; preds = %128
  %137 = load double, ptr %135, align 8, !tbaa !18
  %138 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 1
  %139 = load ptr, ptr %138, align 8, !tbaa !9
  %140 = load i64, ptr %15, align 8, !tbaa !17
  %141 = load ptr, ptr %139, align 8, !tbaa !14
  %142 = getelementptr inbounds ptr, ptr %141, i64 9
  %143 = load ptr, ptr %142, align 8
  %144 = invoke noundef double %143(ptr noundef nonnull align 8 dereferenceable(32) %139, i64 noundef %140)
          to label %145 unwind label %112

145:                                              ; preds = %136
  %146 = fsub double %137, %144
  %147 = fdiv double %131, %146
  %148 = load double, ptr %16, align 8, !tbaa !18
  %149 = fadd double %148, %147
  store double %149, ptr %16, align 8, !tbaa !18
  %150 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !9
  %152 = load i64, ptr %15, align 8, !tbaa !17
  %153 = load ptr, ptr %151, align 8, !tbaa !14
  %154 = getelementptr inbounds ptr, ptr %153, i64 8
  %155 = load ptr, ptr %154, align 8
  %156 = invoke noundef double %155(ptr noundef nonnull align 8 dereferenceable(32) %151, i64 noundef %152)
          to label %157 unwind label %112

157:                                              ; preds = %145
  %158 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %156)
          to label %159 unwind label %112

159:                                              ; preds = %157
  br i1 %158, label %168, label %160

160:                                              ; preds = %159
  %161 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 3
  %162 = load double, ptr %161, align 8, !tbaa !20
  %163 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %17, i32 0, i32 2
  %164 = load double, ptr %163, align 8, !tbaa !19
  %165 = load double, ptr %16, align 8, !tbaa !18
  %166 = fneg double %162
  %167 = call double @llvm.fmuladd.f64(double %166, double %164, double %165)
  store double %167, ptr %16, align 8, !tbaa !18
  br label %168

168:                                              ; preds = %160, %159
  br label %169

169:                                              ; preds = %168, %127
  %170 = load double, ptr %16, align 8, !tbaa !18
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %"class.uno::LagrangianGradient", ptr %171, i32 0, i32 1
  %173 = load i64, ptr %15, align 8, !tbaa !17
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %173)
          to label %175 unwind label %112

175:                                              ; preds = %169
  %176 = load double, ptr %174, align 8, !tbaa !18
  %177 = fadd double %176, %170
  store double %177, ptr %174, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %178

178:                                              ; preds = %175
  %179 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %180 unwind label %52

180:                                              ; preds = %178
  br label %44

181:                                              ; preds = %112, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %182

182:                                              ; preds = %181, %52
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  br label %183

183:                                              ; preds = %182, %48
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %185

184:                                              ; preds = %47
  ret void

185:                                              ; preds = %183
  %186 = load ptr, ptr %12, align 8
  %187 = load i32, ptr %13, align 4
  %188 = insertvalue { ptr, i32 } poison, ptr %186, 0
  %189 = insertvalue { ptr, i32 } %188, i32 %187, 1
  resume { ptr, i32 } %189
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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, !6, i64 32}
!10 = !{!"_ZTSN3uno30PrimalDualInteriorPointProblemE", !11, i64 0, !6, i64 32, !13, i64 40, !13, i64 48}
!11 = !{!"_ZTSN3uno19OptimizationProblemE", !6, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"long", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = !{!11, !12, i64 16}
!17 = !{!12, !12, i64 0}
!18 = !{!13, !13, i64 0}
!19 = !{!10, !13, i64 40}
!20 = !{!10, !13, i64 48}


; 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::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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Em(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 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 #2 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 #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef) local_unnamed_addr #1

; 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 #3 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 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 noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3uno30PrimalDualInteriorPointProblem28evaluate_lagrangian_gradientERNS_18LagrangianGradientIdEERNS_7IterateERKNS_11MultipliersE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(56) %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 #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.uno::Range", align 8
  %6 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %7 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = load ptr, ptr %9, align 8, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %10, i64 152
  %12 = load ptr, ptr %11, align 8
  tail call void %12(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(532) %2, ptr noundef nonnull align 8 dereferenceable(72) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  %13 = load ptr, ptr %8, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  %15 = load i64, ptr %14, align 8, !tbaa !15
  call void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %15)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %16 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %17 unwind label %33

17:                                               ; preds = %4
  %18 = extractvalue { ptr, i64 } %16, 0
  store ptr %18, ptr %6, align 8
  %19 = getelementptr inbounds i8, ptr %6, i64 8
  %20 = extractvalue { ptr, i64 } %16, 1
  store i64 %20, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %21 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %22 unwind label %.loopexit.split-lp

22:                                               ; preds = %17
  %23 = extractvalue { ptr, i64 } %21, 0
  store ptr %23, ptr %7, align 8
  %24 = getelementptr inbounds i8, ptr %7, i64 8
  %25 = extractvalue { ptr, i64 } %21, 1
  store i64 %25, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  %27 = getelementptr inbounds i8, ptr %2, i64 16
  %28 = getelementptr inbounds i8, ptr %0, i64 48
  %29 = getelementptr inbounds i8, ptr %1, i64 24
  br label %30

30:                                               ; preds = %110, %22
  %31 = call noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %7)
  br i1 %31, label %35, label %32

32:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  ret void

33:                                               ; preds = %4
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %116

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

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

35:                                               ; preds = %30
  %36 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %37 unwind label %71

37:                                               ; preds = %35
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = getelementptr inbounds i8, ptr %39, i64 64
  %41 = load ptr, ptr %40, align 8
  %42 = invoke noundef double %41(ptr noundef nonnull align 8 dereferenceable(32) %38, i64 noundef %36)
          to label %43 unwind label %73

43:                                               ; preds = %37
  %44 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %42)
          to label %45 unwind label %73

45:                                               ; preds = %43
  br i1 %44, label %46, label %75

46:                                               ; preds = %45
  %47 = load double, ptr %26, align 8, !tbaa !16
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %36)
  %49 = load double, ptr %48, align 8, !tbaa !17
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  %52 = getelementptr inbounds i8, ptr %51, i64 64
  %53 = load ptr, ptr %52, align 8
  %54 = invoke noundef double %53(ptr noundef nonnull align 8 dereferenceable(32) %50, i64 noundef %36)
          to label %55 unwind label %73

55:                                               ; preds = %46
  %56 = fsub double %49, %54
  %57 = fdiv double %47, %56
  %58 = fsub double 0.000000e+00, %57
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = getelementptr inbounds i8, ptr %60, i64 72
  %62 = load ptr, ptr %61, align 8
  %63 = invoke noundef double %62(ptr noundef nonnull align 8 dereferenceable(32) %59, i64 noundef %36)
          to label %64 unwind label %73

64:                                               ; preds = %55
  %65 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %63)
          to label %66 unwind label %73

66:                                               ; preds = %64
  br i1 %65, label %75, label %67

67:                                               ; preds = %66
  %68 = load double, ptr %28, align 8, !tbaa !18
  %69 = load double, ptr %26, align 8, !tbaa !16
  %70 = call double @llvm.fmuladd.f64(double %68, double %69, double %58)
  br label %75

71:                                               ; preds = %35
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %115

73:                                               ; preds = %102, %93, %84, %81, %75, %64, %55, %46, %43, %37
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %115

75:                                               ; preds = %66, %67, %45
  %.0 = phi double [ %58, %66 ], [ %70, %67 ], [ 0.000000e+00, %45 ]
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = load ptr, ptr %76, align 8, !tbaa !13
  %78 = getelementptr inbounds i8, ptr %77, i64 72
  %79 = load ptr, ptr %78, align 8
  %80 = invoke noundef double %79(ptr noundef nonnull align 8 dereferenceable(32) %76, i64 noundef %36)
          to label %81 unwind label %73

81:                                               ; preds = %75
  %82 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %80)
          to label %83 unwind label %73

83:                                               ; preds = %81
  br i1 %82, label %84, label %110

84:                                               ; preds = %83
  %85 = load double, ptr %26, align 8, !tbaa !16
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %36)
  %87 = load double, ptr %86, align 8, !tbaa !17
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load ptr, ptr %88, align 8, !tbaa !13
  %90 = getelementptr inbounds i8, ptr %89, i64 72
  %91 = load ptr, ptr %90, align 8
  %92 = invoke noundef double %91(ptr noundef nonnull align 8 dereferenceable(32) %88, i64 noundef %36)
          to label %93 unwind label %73

93:                                               ; preds = %84
  %94 = fsub double %87, %92
  %95 = fdiv double %85, %94
  %96 = fsub double %.0, %95
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = load ptr, ptr %97, align 8, !tbaa !13
  %99 = getelementptr inbounds i8, ptr %98, i64 64
  %100 = load ptr, ptr %99, align 8
  %101 = invoke noundef double %100(ptr noundef nonnull align 8 dereferenceable(32) %97, i64 noundef %36)
          to label %102 unwind label %73

102:                                              ; preds = %93
  %103 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %101)
          to label %104 unwind label %73

104:                                              ; preds = %102
  br i1 %103, label %110, label %105

105:                                              ; preds = %104
  %106 = load double, ptr %28, align 8, !tbaa !18
  %107 = load double, ptr %26, align 8, !tbaa !16
  %108 = fneg double %106
  %109 = call double @llvm.fmuladd.f64(double %108, double %107, double %96)
  br label %110

110:                                              ; preds = %104, %105, %83
  %.1 = phi double [ %96, %104 ], [ %109, %105 ], [ %.0, %83 ]
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %36)
  %112 = load double, ptr %111, align 8, !tbaa !17
  %113 = fadd double %.1, %112
  store double %113, ptr %111, align 8, !tbaa !17
  %114 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %30 unwind label %.loopexit

115:                                              ; preds = %.loopexit, %.loopexit.split-lp, %71, %73
  %.pn30 = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %116

116:                                              ; preds = %115, %33
  %.pn30.pn = phi { ptr, i32 } [ %.pn30, %115 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn30.pn
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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, !8, i64 32}
!6 = !{!"_ZTSN3uno30PrimalDualInteriorPointProblemE", !7, i64 0, !8, i64 32, !12, i64 40, !12, i64 48}
!7 = !{!"_ZTSN3uno19OptimizationProblemE", !8, i64 8, !11, i64 16, !11, i64 24}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"double", !9, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !10, i64 0}
!15 = !{!7, !11, i64 16}
!16 = !{!6, !12, i64 40}
!17 = !{!12, !12, i64 0}
!18 = !{!6, !12, i64 48}


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