; LLVM IR from cvanaret/Uno :: uno/ingredients/inequality_handling_methods/interior_point_methods/PrimalDualInte_039f062f (de3260a7)

; 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::Multipliers" = type { %"class.uno::Vector", %"class.uno::Vector", %"class.uno::Vector" }
%"class.uno::Vector" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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: 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 @_ZNK3uno30PrimalDualInteriorPointProblem27evaluate_lagrangian_hessianERNS_10StatisticsERNS_12HessianModelERKNS_6VectorIdEERKNS_11MultipliersERNS_15SymmetricMatrixImdEE(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 1 %1, ptr noundef nonnull align 1 %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(72) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.uno::Range", align 8
  %15 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.uno::Collection<unsigned long>::iterator", align 8
  %19 = alloca i64, align 8
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %25 = load ptr, ptr %7, align 8
  %26 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %25, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = load ptr, ptr %27, align 8, !tbaa !14
  %34 = getelementptr inbounds ptr, ptr %33, i64 6
  %35 = load ptr, ptr %34, align 8
  call void %35(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 1 %28, ptr noundef nonnull align 1 %29, ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(72) %31, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.uno::OptimizationProblem", ptr %25, i32 0, i32 2
  %38 = load i64, ptr %37, align 8, !tbaa !16
  call void @_ZN3uno15SymmetricMatrixImdE13set_dimensionEm(ptr noundef nonnull align 8 dereferenceable(8) %36, i64 noundef %38)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #4
  %39 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %25, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds %"class.uno::OptimizationProblem", ptr %40, i32 0, i32 2
  %42 = load i64, ptr %41, align 8, !tbaa !16
  call void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %42)
  store ptr %14, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %45 unwind label %61

45:                                               ; preds = %6
  %46 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %47 = extractvalue { ptr, i64 } %44, 0
  store ptr %47, ptr %46, align 8
  %48 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %49 = extractvalue { ptr, i64 } %44, 1
  store i64 %49, ptr %48, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %50)
          to label %52 unwind label %65

52:                                               ; preds = %45
  %53 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %54 = extractvalue { ptr, i64 } %51, 0
  store ptr %54, ptr %53, align 8
  %55 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %56 = extractvalue { ptr, i64 } %51, 1
  store i64 %56, ptr %55, align 8
  br label %57

57:                                               ; preds = %189, %52
  %58 = invoke noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %59 unwind label %65

59:                                               ; preds = %57
  br i1 %58, label %69, label %60

60:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %195

61:                                               ; preds = %6
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %16, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %17, align 4
  br label %194

65:                                               ; preds = %187, %57, %45
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %16, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %17, align 4
  br label %193

69:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %70 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %71 unwind label %127

71:                                               ; preds = %69
  store i64 %70, ptr %19, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #4
  %72 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %25, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !9
  %74 = load i64, ptr %19, align 8, !tbaa !17
  %75 = load ptr, ptr %73, align 8, !tbaa !14
  %76 = getelementptr inbounds ptr, ptr %75, i64 8
  %77 = load ptr, ptr %76, align 8
  %78 = invoke noundef double %77(ptr noundef nonnull align 8 dereferenceable(32) %73, i64 noundef %74)
          to label %79 unwind label %131

79:                                               ; preds = %71
  %80 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %78)
          to label %81 unwind label %131

81:                                               ; preds = %79
  %82 = zext i1 %80 to i8
  store i8 %82, ptr %20, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #4
  %83 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %25, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = load i64, ptr %19, align 8, !tbaa !17
  %86 = load ptr, ptr %84, align 8, !tbaa !14
  %87 = getelementptr inbounds ptr, ptr %86, i64 9
  %88 = load ptr, ptr %87, align 8
  %89 = invoke noundef double %88(ptr noundef nonnull align 8 dereferenceable(32) %84, i64 noundef %85)
          to label %90 unwind label %135

90:                                               ; preds = %81
  %91 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %89)
          to label %92 unwind label %135

92:                                               ; preds = %90
  %93 = zext i1 %91 to i8
  store i8 %93, ptr %21, align 1, !tbaa !18
  %94 = load i8, ptr %20, align 1, !tbaa !18, !range !20, !noundef !21
  %95 = trunc i8 %94 to i1
  br i1 %95, label %99, label %96

96:                                               ; preds = %92
  %97 = load i8, ptr %21, align 1, !tbaa !18, !range !20, !noundef !21
  %98 = trunc i8 %97 to i1
  br i1 %98, label %99, label %186

99:                                               ; preds = %96, %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store double 0.000000e+00, ptr %22, align 8, !tbaa !22
  %100 = load i8, ptr %20, align 1, !tbaa !18, !range !20, !noundef !21
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %143

102:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = load i64, ptr %19, align 8, !tbaa !17
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %104)
          to label %106 unwind label %139

106:                                              ; preds = %102
  %107 = load double, ptr %105, align 8, !tbaa !22
  %108 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %25, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !9
  %110 = load i64, ptr %19, align 8, !tbaa !17
  %111 = load ptr, ptr %109, align 8, !tbaa !14
  %112 = getelementptr inbounds ptr, ptr %111, i64 8
  %113 = load ptr, ptr %112, align 8
  %114 = invoke noundef double %113(ptr noundef nonnull align 8 dereferenceable(32) %109, i64 noundef %110)
          to label %115 unwind label %139

115:                                              ; preds = %106
  %116 = fsub double %107, %114
  store double %116, ptr %23, align 8, !tbaa !22
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.uno::Multipliers", ptr %117, i32 0, i32 0
  %119 = load i64, ptr %19, align 8, !tbaa !17
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %119)
          to label %121 unwind label %139

121:                                              ; preds = %115
  %122 = load double, ptr %120, align 8, !tbaa !22
  %123 = load double, ptr %23, align 8, !tbaa !22
  %124 = fdiv double %122, %123
  %125 = load double, ptr %22, align 8, !tbaa !22
  %126 = fadd double %125, %124
  store double %126, ptr %22, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %143

127:                                              ; preds = %69
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %16, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %17, align 4
  br label %192

131:                                              ; preds = %79, %71
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %16, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %17, align 4
  br label %191

135:                                              ; preds = %90, %81
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %16, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %17, align 4
  br label %190

139:                                              ; preds = %115, %106, %102
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %16, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %185

143:                                              ; preds = %121, %99
  %144 = load i8, ptr %21, align 1, !tbaa !18, !range !20, !noundef !21
  %145 = trunc i8 %144 to i1
  br i1 %145, label %146, label %175

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = load i64, ptr %19, align 8, !tbaa !17
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %148)
          to label %150 unwind label %171

150:                                              ; preds = %146
  %151 = load double, ptr %149, align 8, !tbaa !22
  %152 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %25, i32 0, i32 1
  %153 = load ptr, ptr %152, align 8, !tbaa !9
  %154 = load i64, ptr %19, align 8, !tbaa !17
  %155 = load ptr, ptr %153, align 8, !tbaa !14
  %156 = getelementptr inbounds ptr, ptr %155, i64 9
  %157 = load ptr, ptr %156, align 8
  %158 = invoke noundef double %157(ptr noundef nonnull align 8 dereferenceable(32) %153, i64 noundef %154)
          to label %159 unwind label %171

159:                                              ; preds = %150
  %160 = fsub double %151, %158
  store double %160, ptr %24, align 8, !tbaa !22
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = getelementptr inbounds %"class.uno::Multipliers", ptr %161, i32 0, i32 1
  %163 = load i64, ptr %19, align 8, !tbaa !17
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef %163)
          to label %165 unwind label %171

165:                                              ; preds = %159
  %166 = load double, ptr %164, align 8, !tbaa !22
  %167 = load double, ptr %24, align 8, !tbaa !22
  %168 = fdiv double %166, %167
  %169 = load double, ptr %22, align 8, !tbaa !22
  %170 = fadd double %169, %168
  store double %170, ptr %22, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br label %175

171:                                              ; preds = %159, %150, %146
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %16, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br label %185

175:                                              ; preds = %165, %143
  %176 = load ptr, ptr %12, align 8, !tbaa !5
  %177 = load double, ptr %22, align 8, !tbaa !22
  %178 = load i64, ptr %19, align 8, !tbaa !17
  %179 = load i64, ptr %19, align 8, !tbaa !17
  invoke void @_ZN3uno15SymmetricMatrixImdE6insertEdmm(ptr noundef nonnull align 8 dereferenceable(8) %176, double noundef %177, i64 noundef %178, i64 noundef %179)
          to label %180 unwind label %181

180:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %186

181:                                              ; preds = %175
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %16, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %17, align 4
  br label %185

185:                                              ; preds = %181, %171, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %190

186:                                              ; preds = %180, %96
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %187

187:                                              ; preds = %186
  %188 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %189 unwind label %65

189:                                              ; preds = %187
  br label %57

190:                                              ; preds = %185, %135
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  br label %191

191:                                              ; preds = %190, %131
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  br label %192

192:                                              ; preds = %191, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %193

193:                                              ; preds = %192, %65
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  br label %194

194:                                              ; preds = %193, %61
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %196

195:                                              ; preds = %60
  ret void

196:                                              ; preds = %194
  %197 = load ptr, ptr %16, align 8
  %198 = load i32, ptr %17, align 4
  %199 = insertvalue { ptr, i32 } poison, ptr %197, 0
  %200 = insertvalue { ptr, i32 } %199, i32 %198, 1
  resume { ptr, i32 } %200
}

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

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

; 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 = { 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 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!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 }

; 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 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 @_ZNK3uno30PrimalDualInteriorPointProblem27evaluate_lagrangian_hessianERNS_10StatisticsERNS_12HessianModelERKNS_6VectorIdEERKNS_11MultipliersERNS_15SymmetricMatrixImdEE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(56) %0, ptr noundef nonnull align 1 %1, ptr noundef nonnull align 1 %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(72) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %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 = getelementptr inbounds i8, ptr %0, i64 32
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = load ptr, ptr %11, align 8, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %12, i64 48
  %14 = load ptr, ptr %13, align 8
  tail call void %14(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 1 %1, ptr noundef nonnull align 1 %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(72) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = load i64, ptr %15, align 8, !tbaa !15
  tail call void @_ZN3uno15SymmetricMatrixImdE13set_dimensionEm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %16)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  %17 = load ptr, ptr %10, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %19 = load i64, ptr %18, align 8, !tbaa !15
  call void @_ZN3uno5RangeILNS_14RangeDirectionE0EEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %19)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  %20 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %21 unwind label %34

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

26:                                               ; preds = %21
  %27 = extractvalue { ptr, i64 } %25, 0
  store ptr %27, ptr %9, align 8
  %28 = getelementptr inbounds i8, ptr %9, i64 8
  %29 = extractvalue { ptr, i64 } %25, 1
  store i64 %29, ptr %28, align 8
  %30 = getelementptr inbounds i8, ptr %4, i64 24
  br label %31

31:                                               ; preds = %98, %26
  %32 = call noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
  br i1 %32, label %36, label %33

33:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  ret void

34:                                               ; preds = %6
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %101

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

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

36:                                               ; preds = %31
  %37 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %38 unwind label %70

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

44:                                               ; preds = %38
  %45 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %43)
          to label %46 unwind label %72

46:                                               ; preds = %44
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = getelementptr inbounds i8, ptr %48, i64 72
  %50 = load ptr, ptr %49, align 8
  %51 = invoke noundef double %50(ptr noundef nonnull align 8 dereferenceable(32) %47, i64 noundef %37)
          to label %52 unwind label %74

52:                                               ; preds = %46
  %53 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %51)
          to label %54 unwind label %74

54:                                               ; preds = %52
  %brmerge = or i1 %45, %53
  br i1 %brmerge, label %55, label %98

55:                                               ; preds = %54
  br i1 %45, label %56, label %78

56:                                               ; preds = %55
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %37)
  %58 = load double, ptr %57, align 8, !tbaa !16
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = getelementptr inbounds i8, ptr %60, i64 64
  %62 = load ptr, ptr %61, align 8
  %63 = invoke noundef double %62(ptr noundef nonnull align 8 dereferenceable(32) %59, i64 noundef %37)
          to label %64 unwind label %76

64:                                               ; preds = %56
  %65 = fsub double %58, %63
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %37)
  %67 = load double, ptr %66, align 8, !tbaa !16
  %68 = fdiv double %67, %65
  %69 = fadd double %68, 0.000000e+00
  br label %78

70:                                               ; preds = %36
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %100

72:                                               ; preds = %44, %38
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %100

74:                                               ; preds = %52, %46
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %100

76:                                               ; preds = %56
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %100

78:                                               ; preds = %64, %55
  %.040 = phi double [ %69, %64 ], [ 0.000000e+00, %55 ]
  br i1 %53, label %79, label %95

79:                                               ; preds = %78
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %37)
  %81 = load double, ptr %80, align 8, !tbaa !16
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = load ptr, ptr %82, align 8, !tbaa !13
  %84 = getelementptr inbounds i8, ptr %83, i64 72
  %85 = load ptr, ptr %84, align 8
  %86 = invoke noundef double %85(ptr noundef nonnull align 8 dereferenceable(32) %82, i64 noundef %37)
          to label %87 unwind label %93

87:                                               ; preds = %79
  %88 = fsub double %81, %86
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %37)
  %90 = load double, ptr %89, align 8, !tbaa !16
  %91 = fdiv double %90, %88
  %92 = fadd double %.040, %91
  br label %95

93:                                               ; preds = %79
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %100

95:                                               ; preds = %87, %78
  %.141 = phi double [ %92, %87 ], [ %.040, %78 ]
  invoke void @_ZN3uno15SymmetricMatrixImdE6insertEdmm(ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef %.141, i64 noundef %37, i64 noundef %37)
          to label %98 unwind label %96

96:                                               ; preds = %95
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %100

98:                                               ; preds = %95, %54
  %99 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %31 unwind label %.loopexit

100:                                              ; preds = %.loopexit, %.loopexit.split-lp, %70, %74, %96, %93, %76, %72
  %.pn46 = phi { ptr, i32 } [ %71, %70 ], [ %73, %72 ], [ %75, %74 ], [ %97, %96 ], [ %94, %93 ], [ %77, %76 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  br label %101

101:                                              ; preds = %100, %34
  %.pn46.pn = phi { ptr, i32 } [ %.pn46, %100 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  resume { ptr, i32 } %.pn46.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3uno15SymmetricMatrixImdE6insertEdmm(ptr noundef nonnull align 8 dereferenceable(8), double noundef, i64 noundef, i64 noundef) 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 #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 = { 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 = !{!12, !12, i64 0}


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