; LLVM IR from cvanaret/Uno :: uno/ingredients/inequality_handling_methods/interior_point_methods/PrimalDualInte_6cd720c9 (eee03562)

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

39:                                               ; preds = %5
  %40 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %41 = extractvalue { ptr, i64 } %38, 0
  store ptr %41, ptr %40, align 8
  %42 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %43 = extractvalue { ptr, i64 } %38, 1
  store i64 %43, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = invoke { ptr, i64 } @_ZNK3uno10CollectionImE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %46 unwind label %59

46:                                               ; preds = %39
  %47 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %48 = extractvalue { ptr, i64 } %45, 0
  store ptr %48, ptr %47, align 8
  %49 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %50 = extractvalue { ptr, i64 } %45, 1
  store i64 %50, ptr %49, align 8
  br label %51

51:                                               ; preds = %190, %46
  %52 = invoke noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %53 unwind label %59

53:                                               ; preds = %51
  br i1 %52, label %63, label %54

54:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %196

55:                                               ; preds = %5
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %14, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %15, align 4
  br label %195

59:                                               ; preds = %188, %51, %39
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %14, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %15, align 4
  br label %194

63:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %64 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %65 unwind label %121

65:                                               ; preds = %63
  store i64 %64, ptr %17, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  %66 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %23, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = load i64, ptr %17, align 8, !tbaa !17
  %69 = load ptr, ptr %67, align 8, !tbaa !14
  %70 = getelementptr inbounds ptr, ptr %69, i64 8
  %71 = load ptr, ptr %70, align 8
  %72 = invoke noundef double %71(ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef %68)
          to label %73 unwind label %125

73:                                               ; preds = %65
  %74 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %72)
          to label %75 unwind label %125

75:                                               ; preds = %73
  %76 = zext i1 %74 to i8
  store i8 %76, ptr %18, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  %77 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %23, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = load i64, ptr %17, align 8, !tbaa !17
  %80 = load ptr, ptr %78, align 8, !tbaa !14
  %81 = getelementptr inbounds ptr, ptr %80, i64 9
  %82 = load ptr, ptr %81, align 8
  %83 = invoke noundef double %82(ptr noundef nonnull align 8 dereferenceable(32) %78, i64 noundef %79)
          to label %84 unwind label %129

84:                                               ; preds = %75
  %85 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %83)
          to label %86 unwind label %129

86:                                               ; preds = %84
  %87 = zext i1 %85 to i8
  store i8 %87, ptr %19, align 1, !tbaa !18
  %88 = load i8, ptr %18, align 1, !tbaa !18, !range !20, !noundef !21
  %89 = trunc i8 %88 to i1
  br i1 %89, label %93, label %90

90:                                               ; preds = %86
  %91 = load i8, ptr %19, align 1, !tbaa !18, !range !20, !noundef !21
  %92 = trunc i8 %91 to i1
  br i1 %92, label %93, label %187

93:                                               ; preds = %90, %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store double 0.000000e+00, ptr %20, align 8, !tbaa !22
  %94 = load i8, ptr %18, align 1, !tbaa !18, !range !20, !noundef !21
  %95 = trunc i8 %94 to i1
  br i1 %95, label %96, label %137

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = load i64, ptr %17, align 8, !tbaa !17
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %98)
          to label %100 unwind label %133

100:                                              ; preds = %96
  %101 = load double, ptr %99, align 8, !tbaa !22
  %102 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %23, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = load i64, ptr %17, align 8, !tbaa !17
  %105 = load ptr, ptr %103, align 8, !tbaa !14
  %106 = getelementptr inbounds ptr, ptr %105, i64 8
  %107 = load ptr, ptr %106, align 8
  %108 = invoke noundef double %107(ptr noundef nonnull align 8 dereferenceable(32) %103, i64 noundef %104)
          to label %109 unwind label %133

109:                                              ; preds = %100
  %110 = fsub double %101, %108
  store double %110, ptr %21, align 8, !tbaa !22
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.uno::Multipliers", ptr %111, i32 0, i32 0
  %113 = load i64, ptr %17, align 8, !tbaa !17
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %113)
          to label %115 unwind label %133

115:                                              ; preds = %109
  %116 = load double, ptr %114, align 8, !tbaa !22
  %117 = load double, ptr %21, align 8, !tbaa !22
  %118 = fdiv double %116, %117
  %119 = load double, ptr %20, align 8, !tbaa !22
  %120 = fadd double %119, %118
  store double %120, ptr %20, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %137

121:                                              ; preds = %63
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %14, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %15, align 4
  br label %193

125:                                              ; preds = %73, %65
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %14, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %15, align 4
  br label %192

129:                                              ; preds = %84, %75
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %14, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %15, align 4
  br label %191

133:                                              ; preds = %109, %100, %96
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %14, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %186

137:                                              ; preds = %115, %93
  %138 = load i8, ptr %19, align 1, !tbaa !18, !range !20, !noundef !21
  %139 = trunc i8 %138 to i1
  br i1 %139, label %140, label %169

140:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = load i64, ptr %17, align 8, !tbaa !17
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %142)
          to label %144 unwind label %165

144:                                              ; preds = %140
  %145 = load double, ptr %143, align 8, !tbaa !22
  %146 = getelementptr inbounds %"class.uno::PrimalDualInteriorPointProblem", ptr %23, i32 0, i32 1
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = load i64, ptr %17, align 8, !tbaa !17
  %149 = load ptr, ptr %147, align 8, !tbaa !14
  %150 = getelementptr inbounds ptr, ptr %149, i64 9
  %151 = load ptr, ptr %150, align 8
  %152 = invoke noundef double %151(ptr noundef nonnull align 8 dereferenceable(32) %147, i64 noundef %148)
          to label %153 unwind label %165

153:                                              ; preds = %144
  %154 = fsub double %145, %152
  store double %154, ptr %22, align 8, !tbaa !22
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = getelementptr inbounds %"class.uno::Multipliers", ptr %155, i32 0, i32 1
  %157 = load i64, ptr %17, align 8, !tbaa !17
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %157)
          to label %159 unwind label %165

159:                                              ; preds = %153
  %160 = load double, ptr %158, align 8, !tbaa !22
  %161 = load double, ptr %22, align 8, !tbaa !22
  %162 = fdiv double %160, %161
  %163 = load double, ptr %20, align 8, !tbaa !22
  %164 = fadd double %163, %162
  store double %164, ptr %20, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %169

165:                                              ; preds = %153, %144, %140
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %14, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %186

169:                                              ; preds = %159, %137
  %170 = load double, ptr %20, align 8, !tbaa !22
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = load i64, ptr %17, align 8, !tbaa !17
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %171, i64 noundef %172)
          to label %174 unwind label %182

174:                                              ; preds = %169
  %175 = load double, ptr %173, align 8, !tbaa !22
  %176 = load ptr, ptr %10, align 8, !tbaa !5
  %177 = load i64, ptr %17, align 8, !tbaa !17
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %177)
          to label %179 unwind label %182

179:                                              ; preds = %174
  %180 = load double, ptr %178, align 8, !tbaa !22
  %181 = call double @llvm.fmuladd.f64(double %170, double %175, double %180)
  store double %181, ptr %178, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %187

182:                                              ; preds = %174, %169
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %14, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %15, align 4
  br label %186

186:                                              ; preds = %182, %165, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %191

187:                                              ; preds = %179, %90
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %188

188:                                              ; preds = %187
  %189 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %190 unwind label %59

190:                                              ; preds = %188
  br label %51

191:                                              ; preds = %186, %129
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  br label %192

192:                                              ; preds = %191, %125
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  br label %193

193:                                              ; preds = %192, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %194

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

195:                                              ; preds = %194, %55
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %197

196:                                              ; preds = %54
  ret void

197:                                              ; preds = %195
  %198 = load ptr, ptr %14, align 8
  %199 = load i32, ptr %15, align 4
  %200 = insertvalue { ptr, i32 } poison, ptr %198, 0
  %201 = insertvalue { ptr, i32 } %200, i32 %199, 1
  resume { ptr, i32 } %201
}

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

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

23:                                               ; preds = %18
  %24 = extractvalue { ptr, i64 } %22, 0
  store ptr %24, ptr %8, align 8
  %25 = getelementptr inbounds i8, ptr %8, i64 8
  %26 = extractvalue { ptr, i64 } %22, 1
  store i64 %26, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr %3, i64 24
  br label %28

28:                                               ; preds = %98, %23
  %29 = call noundef zeroext i1 @_ZN3unoneERKNS_10CollectionImE8iteratorES4_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  br i1 %29, label %33, label %30

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

31:                                               ; preds = %5
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %101

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

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

33:                                               ; preds = %28
  %34 = invoke noundef i64 @_ZNK3uno10CollectionImE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %35 unwind label %67

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

41:                                               ; preds = %35
  %42 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %40)
          to label %43 unwind label %69

43:                                               ; preds = %41
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  %46 = getelementptr inbounds i8, ptr %45, i64 72
  %47 = load ptr, ptr %46, align 8
  %48 = invoke noundef double %47(ptr noundef nonnull align 8 dereferenceable(32) %44, i64 noundef %34)
          to label %49 unwind label %71

49:                                               ; preds = %43
  %50 = invoke noundef zeroext i1 @_ZN3uno9is_finiteIdEEbT_(double noundef %48)
          to label %51 unwind label %71

51:                                               ; preds = %49
  %brmerge = or i1 %42, %50
  br i1 %brmerge, label %52, label %98

52:                                               ; preds = %51
  br i1 %42, label %53, label %75

53:                                               ; preds = %52
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %34)
  %55 = load double, ptr %54, align 8, !tbaa !16
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = load ptr, ptr %56, align 8, !tbaa !13
  %58 = getelementptr inbounds i8, ptr %57, i64 64
  %59 = load ptr, ptr %58, align 8
  %60 = invoke noundef double %59(ptr noundef nonnull align 8 dereferenceable(32) %56, i64 noundef %34)
          to label %61 unwind label %73

61:                                               ; preds = %53
  %62 = fsub double %55, %60
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %34)
  %64 = load double, ptr %63, align 8, !tbaa !16
  %65 = fdiv double %64, %62
  %66 = fadd double %65, 0.000000e+00
  br label %75

67:                                               ; preds = %33
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %100

69:                                               ; preds = %41, %35
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %100

71:                                               ; preds = %49, %43
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %100

73:                                               ; preds = %53
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %100

75:                                               ; preds = %61, %52
  %.039 = phi double [ %66, %61 ], [ 0.000000e+00, %52 ]
  br i1 %50, label %76, label %92

76:                                               ; preds = %75
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %34)
  %78 = load double, ptr %77, align 8, !tbaa !16
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  %81 = getelementptr inbounds i8, ptr %80, i64 72
  %82 = load ptr, ptr %81, align 8
  %83 = invoke noundef double %82(ptr noundef nonnull align 8 dereferenceable(32) %79, i64 noundef %34)
          to label %84 unwind label %90

84:                                               ; preds = %76
  %85 = fsub double %78, %83
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %34)
  %87 = load double, ptr %86, align 8, !tbaa !16
  %88 = fdiv double %87, %85
  %89 = fadd double %.039, %88
  br label %92

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

92:                                               ; preds = %84, %75
  %.140 = phi double [ %89, %84 ], [ %.039, %75 ]
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %34)
  %94 = load double, ptr %93, align 8, !tbaa !16
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3uno6VectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %34)
  %96 = load double, ptr %95, align 8, !tbaa !16
  %97 = call double @llvm.fmuladd.f64(double %.140, double %94, double %96)
  store double %97, ptr %95, align 8, !tbaa !16
  br label %98

98:                                               ; preds = %51, %92
  %99 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3uno10CollectionImE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %28 unwind label %.loopexit

100:                                              ; preds = %.loopexit, %.loopexit.split-lp, %67, %71, %90, %73, %69
  %.pn45 = phi { ptr, i32 } [ %68, %67 ], [ %70, %69 ], [ %72, %71 ], [ %91, %90 ], [ %74, %73 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %101

101:                                              ; preds = %100, %31
  %.pn45.pn = phi { ptr, i32 } [ %.pn45, %100 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN3uno10CollectionImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  resume { ptr, i32 } %.pn45.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 = !{!12, !12, i64 0}


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