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

; 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::l1RelaxedProblem" = type { %"class.uno::OptimizationProblem", i64, double, double, double, ptr, %"class.uno::Concatenation", %"class.uno::Concatenation" }
%"class.uno::OptimizationProblem" = type { ptr, ptr, i64, i64 }
%"class.uno::Concatenation" = type { %"class.uno::Collection", ptr, %"class.uno::Range" }
%"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 } }
%"class.uno::Model" = type { ptr, %"class.std::__cxx11::basic_string", i64, i64, double }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

declare i32 @__gxx_personality_v0(...)

; 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_14RangeDirectionE0EEC2Emm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef) unnamed_addr #1 align 2

; 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 @_ZNK3uno16l1RelaxedProblem27evaluate_objective_gradientERNS_7IterateERNS_12SparseVectorIdEE(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(532) %1, ptr noundef nonnull align 8 dereferenceable(56) %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.uno::Range", align 8
  %9 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.uno::Range", align 8
  %16 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %17 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %18 = alloca i64, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8
  %24 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %23, i32 0, i32 2
  %25 = load double, ptr %24, align 8, !tbaa !9
  %26 = fcmp une double %25, 0.000000e+00
  br i1 %26, label %27, label %39

27:                                               ; preds = %3
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %"class.uno::OptimizationProblem", ptr %23, i32 0, i32 1
  %30 = load ptr, ptr %29, align 8, !tbaa !17
  call void @_ZN3uno7Iterate27evaluate_objective_gradientERKNS_5ModelE(ptr noundef nonnull align 8 dereferenceable(532) %28, ptr noundef nonnull align 8 dereferenceable(64) %30)
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.uno::Iterate", ptr %31, i32 0, i32 6
  %33 = getelementptr inbounds %"struct.uno::Evaluations", ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3uno12SparseVectorIdEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %34, ptr noundef nonnull align 8 dereferenceable(56) %33)
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %23, i32 0, i32 2
  %38 = load double, ptr %37, align 8, !tbaa !9
  call void @_ZN3uno5scaleIdEEvRNS_12SparseVectorIT_EES2_(ptr noundef nonnull align 8 dereferenceable(56) %36, double noundef %38)
  br label %41

39:                                               ; preds = %3
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3uno12SparseVectorIdE5clearEv(ptr noundef nonnull align 8 dereferenceable(56) %40)
  br label %41

41:                                               ; preds = %39, %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  %42 = getelementptr inbounds %"class.uno::OptimizationProblem", ptr %23, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !17
  %44 = getelementptr inbounds %"class.uno::Model", ptr %43, i32 0, i32 2
  %45 = load i64, ptr %44, align 8, !tbaa !18
  %46 = getelementptr inbounds %"class.uno::OptimizationProblem", ptr %23, i32 0, i32 2
  %47 = load i64, ptr %46, align 8, !tbaa !22
  call void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Emm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %45, i64 noundef %47)
  store ptr %8, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %50 unwind label %66

50:                                               ; preds = %41
  %51 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %52 = extractvalue { ptr, i64 } %49, 0
  store ptr %52, ptr %51, align 8
  %53 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %54 = extractvalue { ptr, i64 } %49, 1
  store i64 %54, ptr %53, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %55)
          to label %57 unwind label %70

57:                                               ; preds = %50
  %58 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %59 = extractvalue { ptr, i64 } %56, 0
  store ptr %59, ptr %58, align 8
  %60 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %61 = extractvalue { ptr, i64 } %56, 1
  store i64 %61, ptr %60, align 8
  br label %62

62:                                               ; preds = %84, %57
  %63 = invoke noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %64 unwind label %70

64:                                               ; preds = %62
  br i1 %63, label %74, label %65

65:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %91

66:                                               ; preds = %41
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %10, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %11, align 4
  br label %90

70:                                               ; preds = %82, %62, %50
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %10, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %11, align 4
  br label %89

74:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %75 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %76 unwind label %85

76:                                               ; preds = %74
  store i64 %75, ptr %13, align 8, !tbaa !23
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load i64, ptr %13, align 8, !tbaa !23
  %79 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %23, i32 0, i32 3
  %80 = load double, ptr %79, align 8, !tbaa !24
  invoke void @_ZN3uno12SparseVectorIdE6insertEmd(ptr noundef nonnull align 8 dereferenceable(56) %77, i64 noundef %78, double noundef %80)
          to label %81 unwind label %85

81:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %82

82:                                               ; preds = %81
  %83 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %84 unwind label %70

84:                                               ; preds = %82
  br label %62

85:                                               ; preds = %76, %74
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %10, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %89

89:                                               ; preds = %85, %70
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %90

90:                                               ; preds = %89, %66
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %188

91:                                               ; preds = %65
  %92 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %23, i32 0, i32 5
  %93 = load ptr, ptr %92, align 8, !tbaa !25
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %187

95:                                               ; preds = %91
  %96 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %23, i32 0, i32 4
  %97 = load double, ptr %96, align 8, !tbaa !26
  %98 = fcmp une double %97, 0.000000e+00
  br i1 %98, label %99, label %187

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %100 = getelementptr inbounds %"class.uno::OptimizationProblem", ptr %23, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !17
  %102 = getelementptr inbounds %"class.uno::Model", ptr %101, i32 0, i32 2
  %103 = load i64, ptr %102, align 8, !tbaa !18
  call void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %103)
  store ptr %15, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %104)
          to label %106 unwind label %122

106:                                              ; preds = %99
  %107 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %108 = extractvalue { ptr, i64 } %105, 0
  store ptr %108, ptr %107, align 8
  %109 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %110 = extractvalue { ptr, i64 } %105, 1
  store i64 %110, ptr %109, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %111)
          to label %113 unwind label %126

113:                                              ; preds = %106
  %114 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %115 = extractvalue { ptr, i64 } %112, 0
  store ptr %115, ptr %114, align 8
  %116 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %117 = extractvalue { ptr, i64 } %112, 1
  store i64 %117, ptr %116, align 8
  br label %118

118:                                              ; preds = %169, %113
  %119 = invoke noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %120 unwind label %126

120:                                              ; preds = %118
  br i1 %119, label %130, label %121

121:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %186

122:                                              ; preds = %99
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %10, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %11, align 4
  br label %185

126:                                              ; preds = %167, %118, %106
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %10, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %11, align 4
  br label %184

130:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %131 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %132 unwind label %170

132:                                              ; preds = %130
  store i64 %131, ptr %18, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store double 1.000000e+00, ptr %20, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %133 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %23, i32 0, i32 5
  %134 = load ptr, ptr %133, align 8, !tbaa !25
  %135 = load i64, ptr %18, align 8, !tbaa !23
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !27
  %138 = invoke noundef double @_ZSt3absd(double noundef %137)
          to label %139 unwind label %174

139:                                              ; preds = %132
  %140 = fdiv double 1.000000e+00, %138
  store double %140, ptr %21, align 8, !tbaa !27
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %142 unwind label %174

142:                                              ; preds = %139
  %143 = load double, ptr %141, align 8, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  store double %143, ptr %19, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %144 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %23, i32 0, i32 4
  %145 = load double, ptr %144, align 8, !tbaa !26
  %146 = load double, ptr %19, align 8, !tbaa !27
  %147 = fmul double %145, %146
  %148 = load double, ptr %19, align 8, !tbaa !27
  %149 = fmul double %147, %148
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %"class.uno::Iterate", ptr %150, i32 0, i32 2
  %152 = load i64, ptr %18, align 8, !tbaa !23
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %152)
          to label %154 unwind label %178

154:                                              ; preds = %142
  %155 = load double, ptr %153, align 8, !tbaa !27
  %156 = getelementptr inbounds %"class.uno::l1RelaxedProblem", ptr %23, i32 0, i32 5
  %157 = load ptr, ptr %156, align 8, !tbaa !25
  %158 = load i64, ptr %18, align 8, !tbaa !23
  %159 = getelementptr inbounds double, ptr %157, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !27
  %161 = fsub double %155, %160
  %162 = fmul double %149, %161
  store double %162, ptr %22, align 8, !tbaa !27
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = load i64, ptr %18, align 8, !tbaa !23
  %165 = load double, ptr %22, align 8, !tbaa !27
  invoke void @_ZN3uno12SparseVectorIdE6insertEmd(ptr noundef nonnull align 8 dereferenceable(56) %163, i64 noundef %164, double noundef %165)
          to label %166 unwind label %178

166:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %167

167:                                              ; preds = %166
  %168 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %169 unwind label %126

169:                                              ; preds = %167
  br label %118

170:                                              ; preds = %130
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %10, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %11, align 4
  br label %183

174:                                              ; preds = %139, %132
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %10, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %182

178:                                              ; preds = %154, %142
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %10, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %182

182:                                              ; preds = %178, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %183

183:                                              ; preds = %182, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %184

184:                                              ; preds = %183, %126
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  br label %185

185:                                              ; preds = %184, %122
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %188

186:                                              ; preds = %121
  br label %187

187:                                              ; preds = %186, %95, %91
  ret void

188:                                              ; preds = %185, %90
  %189 = load ptr, ptr %10, align 8
  %190 = load i32, ptr %11, align 4
  %191 = insertvalue { ptr, i32 } poison, ptr %189, 0
  %192 = insertvalue { ptr, i32 } %191, i32 %190, 1
  resume { ptr, i32 } %192
}

declare void @_ZN3uno7Iterate27evaluate_objective_gradientERKNS_5ModelE(ptr noundef nonnull align 8 dereferenceable(532), ptr noundef nonnull align 8 dereferenceable(64)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN3uno12SparseVectorIdEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

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

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

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

; 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)) #4

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

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

; 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: 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 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 = { "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 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !13, i64 40}
!10 = !{!"_ZTSN3uno16l1RelaxedProblemE", !11, i64 0, !12, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !6, i64 64, !14, i64 72, !14, i64 112}
!11 = !{!"_ZTSN3uno19OptimizationProblemE", !6, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"long", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTSN3uno13ConcatenationIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEEE", !15, i64 0, !6, i64 8, !16, i64 16}
!15 = !{!"_ZTSN3uno10CollectionImEE"}
!16 = !{!"_ZTSN3uno5RangeILNS_14RangeDirectionE0EEE", !15, i64 0, !12, i64 8, !12, i64 16}
!17 = !{!11, !6, i64 8}
!18 = !{!19, !12, i64 40}
!19 = !{!"_ZTSN3uno5ModelE", !20, i64 8, !12, i64 40, !12, i64 48, !13, i64 56}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !12, i64 8, !7, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!22 = !{!11, !12, i64 16}
!23 = !{!12, !12, i64 0}
!24 = !{!10, !13, i64 48}
!25 = !{!10, !6, i64 64}
!26 = !{!10, !13, i64 56}
!27 = !{!13, !13, i64 0}


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

declare i32 @__gxx_personality_v0(...)

; 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_14RangeDirectionE0EEC2Emm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef) unnamed_addr #1 align 2

; 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 @_ZNK3uno16l1RelaxedProblem27evaluate_objective_gradientERNS_7IterateERNS_12SparseVectorIdEE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(532) %1, ptr noundef nonnull align 8 dereferenceable(56) %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.uno::Range", align 8
  %5 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %6 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %7 = alloca %"class.uno::Range", align 8
  %8 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %9 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = load double, ptr %12, align 8, !tbaa !5
  %14 = fcmp une double %13, 0.000000e+00
  br i1 %14, label %15, label %21

15:                                               ; preds = %3
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !16
  tail call void @_ZN3uno7Iterate27evaluate_objective_gradientERKNS_5ModelE(ptr noundef nonnull align 8 dereferenceable(532) %1, ptr noundef nonnull align 8 dereferenceable(64) %17)
  %18 = getelementptr inbounds i8, ptr %1, i64 224
  %19 = tail call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3uno12SparseVectorIdEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 8 dereferenceable(56) %18)
  %20 = load double, ptr %12, align 8, !tbaa !5
  tail call void @_ZN3uno5scaleIdEEvRNS_12SparseVectorIT_EES2_(ptr noundef nonnull align 8 dereferenceable(56) %2, double noundef %20)
  br label %22

21:                                               ; preds = %3
  tail call void @_ZN3uno12SparseVectorIdE5clearEv(ptr noundef nonnull align 8 dereferenceable(56) %2)
  br label %22

22:                                               ; preds = %21, %15
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !16
  %25 = getelementptr inbounds i8, ptr %24, i64 40
  %26 = load i64, ptr %25, align 8, !tbaa !17
  %27 = getelementptr inbounds i8, ptr %0, i64 16
  %28 = load i64, ptr %27, align 8, !tbaa !21
  call void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Emm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %26, i64 noundef %28)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %29 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %30 unwind label %45

30:                                               ; preds = %22
  %31 = extractvalue { ptr, i64 } %29, 0
  store ptr %31, ptr %5, align 8
  %32 = getelementptr inbounds i8, ptr %5, i64 8
  %33 = extractvalue { ptr, i64 } %29, 1
  store i64 %33, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %34 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %35 unwind label %.loopexit.split-lp37

35:                                               ; preds = %30
  %36 = extractvalue { ptr, i64 } %34, 0
  store ptr %36, ptr %6, align 8
  %37 = getelementptr inbounds i8, ptr %6, i64 8
  %38 = extractvalue { ptr, i64 } %34, 1
  store i64 %38, ptr %37, align 8
  %39 = getelementptr inbounds i8, ptr %0, i64 48
  br label %40

40:                                               ; preds = %51, %35
  %41 = call noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  br i1 %41, label %47, label %42

42:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  %43 = getelementptr inbounds i8, ptr %0, i64 64
  %44 = load ptr, ptr %43, align 8, !tbaa !22
  %.not = icmp eq ptr %44, null
  br i1 %.not, label %109, label %57

45:                                               ; preds = %22
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %56

.loopexit36:                                      ; preds = %51
  %lpad.loopexit38 = landingpad { ptr, i32 }
          cleanup
  br label %55

.loopexit.split-lp37:                             ; preds = %30
  %lpad.loopexit.split-lp39 = landingpad { ptr, i32 }
          cleanup
  br label %55

47:                                               ; preds = %40
  %48 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %49 unwind label %53

49:                                               ; preds = %47
  %50 = load double, ptr %39, align 8, !tbaa !23
  invoke void @_ZN3uno12SparseVectorIdE6insertEmd(ptr noundef nonnull align 8 dereferenceable(56) %2, i64 noundef %48, double noundef %50)
          to label %51 unwind label %53

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %40 unwind label %.loopexit36

53:                                               ; preds = %49, %47
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %55

55:                                               ; preds = %.loopexit36, %.loopexit.split-lp37, %53
  %.pn32 = phi { ptr, i32 } [ %54, %53 ], [ %lpad.loopexit38, %.loopexit36 ], [ %lpad.loopexit.split-lp39, %.loopexit.split-lp37 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %56

56:                                               ; preds = %55, %45
  %.pn32.pn = phi { ptr, i32 } [ %.pn32, %55 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %110

57:                                               ; preds = %42
  %58 = getelementptr inbounds i8, ptr %0, i64 56
  %59 = load double, ptr %58, align 8, !tbaa !24
  %60 = fcmp une double %59, 0.000000e+00
  br i1 %60, label %61, label %109

61:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %62 = load ptr, ptr %23, align 8, !tbaa !16
  %63 = getelementptr inbounds i8, ptr %62, i64 40
  %64 = load i64, ptr %63, align 8, !tbaa !17
  call void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %64)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %65 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %66 unwind label %79

66:                                               ; preds = %61
  %67 = extractvalue { ptr, i64 } %65, 0
  store ptr %67, ptr %8, align 8
  %68 = getelementptr inbounds i8, ptr %8, i64 8
  %69 = extractvalue { ptr, i64 } %65, 1
  store i64 %69, ptr %68, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %70 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %71 unwind label %.loopexit.split-lp

71:                                               ; preds = %66
  %72 = extractvalue { ptr, i64 } %70, 0
  store ptr %72, ptr %9, align 8
  %73 = getelementptr inbounds i8, ptr %9, i64 8
  %74 = extractvalue { ptr, i64 } %70, 1
  store i64 %74, ptr %73, align 8
  %75 = getelementptr inbounds i8, ptr %1, i64 16
  br label %76

76:                                               ; preds = %101, %71
  %77 = call noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
  br i1 %77, label %81, label %78

78:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %109

79:                                               ; preds = %61
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %108

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

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

81:                                               ; preds = %76
  %82 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %83 unwind label %103

83:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  store double 1.000000e+00, ptr %10, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %84 = load ptr, ptr %43, align 8, !tbaa !22
  %85 = getelementptr inbounds double, ptr %84, i64 %82
  %86 = load double, ptr %85, align 8, !tbaa !25
  %87 = call noundef double @_ZSt3absd(double noundef %86)
  %88 = fdiv double 1.000000e+00, %87
  store double %88, ptr %11, align 8, !tbaa !25
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %90 = load double, ptr %89, align 8, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %91 = load double, ptr %58, align 8, !tbaa !24
  %92 = fmul double %90, %91
  %93 = fmul double %90, %92
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %82)
  %95 = load double, ptr %94, align 8, !tbaa !25
  %96 = load ptr, ptr %43, align 8, !tbaa !22
  %97 = getelementptr inbounds double, ptr %96, i64 %82
  %98 = load double, ptr %97, align 8, !tbaa !25
  %99 = fsub double %95, %98
  %100 = fmul double %93, %99
  invoke void @_ZN3uno12SparseVectorIdE6insertEmd(ptr noundef nonnull align 8 dereferenceable(56) %2, i64 noundef %82, double noundef %100)
          to label %101 unwind label %105

101:                                              ; preds = %83
  %102 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %76 unwind label %.loopexit

103:                                              ; preds = %81
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %107

105:                                              ; preds = %83
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %107

107:                                              ; preds = %.loopexit, %.loopexit.split-lp, %103, %105
  %.pn29 = phi { ptr, i32 } [ %106, %105 ], [ %104, %103 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %108

108:                                              ; preds = %107, %79
  %.pn29.pn = phi { ptr, i32 } [ %.pn29, %107 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %110

109:                                              ; preds = %78, %57, %42
  ret void

110:                                              ; preds = %108, %56
  %.pn32.pn.pn = phi { ptr, i32 } [ %.pn32.pn, %56 ], [ %.pn29.pn, %108 ]
  resume { ptr, i32 } %.pn32.pn.pn
}

declare void @_ZN3uno7Iterate27evaluate_objective_gradientERKNS_5ModelE(ptr noundef nonnull align 8 dereferenceable(532), ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN3uno12SparseVectorIdEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3uno12SparseVectorIdE5clearEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 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

; 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 #4

; 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: mustprogress uwtable
declare dso_local void @_ZN3uno12SparseVectorIdE6insertEmd(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, double noundef) local_unnamed_addr #2 align 2

; 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: 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 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 = { "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 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !12, i64 40}
!6 = !{!"_ZTSN3uno16l1RelaxedProblemE", !7, i64 0, !11, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !8, i64 64, !13, i64 72, !13, i64 112}
!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 = !{!"_ZTSN3uno13ConcatenationIRKNS_10CollectionImEENS_5RangeILNS_14RangeDirectionE0EEEEE", !14, i64 0, !8, i64 8, !15, i64 16}
!14 = !{!"_ZTSN3uno10CollectionImEE"}
!15 = !{!"_ZTSN3uno5RangeILNS_14RangeDirectionE0EEE", !14, i64 0, !11, i64 8, !11, i64 16}
!16 = !{!7, !8, i64 8}
!17 = !{!18, !11, i64 40}
!18 = !{!"_ZTSN3uno5ModelE", !19, i64 8, !11, i64 40, !11, i64 48, !12, i64 56}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !11, i64 8, !9, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !8, i64 0}
!21 = !{!7, !11, i64 16}
!22 = !{!6, !8, i64 64}
!23 = !{!6, !12, i64 48}
!24 = !{!6, !12, i64 56}
!25 = !{!12, !12, i64 0}


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