; LLVM IR from ERGO-Code/HiGHS :: src/ipm/ipx/iterate.ll (ZNK3ipx7Iterate17ComputeObjectivesEv)

; 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.ipx::Iterate" = type { ptr, %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::vector", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", double, double, double, double, double, double, double, double, double, i8, i8, double, double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ipx::Iterate::StateDetail, std::allocator<ipx::Iterate::StateDetail>>::_Vector_impl" }
%"struct.std::_Vector_base<ipx::Iterate::StateDetail, std::allocator<ipx::Iterate::StateDetail>>::_Vector_impl" = type { %"struct.std::_Vector_base<ipx::Iterate::StateDetail, std::allocator<ipx::Iterate::StateDetail>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ipx::Iterate::StateDetail, std::allocator<ipx::Iterate::StateDetail>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::valarray" = type { i64, ptr }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704)) #1 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx7Iterate7StateOfEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3ipx7Iterate14has_barrier_lbEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3ipx7Iterate14has_barrier_ubEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN3ipx9DotColumnERKNS_12SparseMatrixEiRKSt8valarrayIdE(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef, ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3ipx7Iterate10is_impliedEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3ipx7Iterate17ComputeObjectivesEv(ptr noundef nonnull align 8 dereferenceable(296) %0) #5 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %14 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 0
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %16 = call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %15)
  store i32 %16, ptr %3, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %17 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %18)
  store i32 %19, ptr %4, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %20 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model1bEv(ptr noundef nonnull align 8 dereferenceable(704) %21)
  store ptr %22, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %23 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model1cEv(ptr noundef nonnull align 8 dereferenceable(704) %24)
  store ptr %25, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %26 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2lbEv(ptr noundef nonnull align 8 dereferenceable(704) %27)
  store ptr %28, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %29 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2ubEv(ptr noundef nonnull align 8 dereferenceable(704) %30)
  store ptr %31, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %32 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %33)
  store ptr %34, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 22
  %36 = load i8, ptr %35, align 1, !tbaa !21, !range !22, !noundef !23
  %37 = trunc i8 %36 to i1
  br i1 %37, label %38, label %111

38:                                               ; preds = %1
  %39 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 16
  store double 0.000000e+00, ptr %39, align 8, !tbaa !24
  %40 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = call noundef double @_ZNK3ipx5Model6offsetEv(ptr noundef nonnull align 8 dereferenceable(704) %41)
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 1
  %45 = call noundef double @_ZN3ipx3DotERKSt8valarrayIdES3_(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(16) %44)
  %46 = fadd double %42, %45
  %47 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 12
  store double %46, ptr %47, align 8, !tbaa !25
  %48 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = call noundef double @_ZNK3ipx5Model6offsetEv(ptr noundef nonnull align 8 dereferenceable(704) %49)
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 4
  %53 = call noundef double @_ZN3ipx3DotERKSt8valarrayIdES3_(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(16) %52)
  %54 = fadd double %50, %53
  %55 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 13
  store double %54, ptr %55, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !19
  br label %56

56:                                               ; preds = %107, %38
  %57 = load i32, ptr %10, align 4, !tbaa !19
  %58 = load i32, ptr %4, align 4, !tbaa !19
  %59 = load i32, ptr %3, align 4, !tbaa !19
  %60 = add nsw i32 %58, %59
  %61 = icmp slt i32 %57, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %110

63:                                               ; preds = %56
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load i32, ptr %10, align 4, !tbaa !19
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %64, i64 noundef %66) #7
  %68 = load double, ptr %67, align 8, !tbaa !27
  %69 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %68)
  br i1 %69, label %70, label %84

70:                                               ; preds = %63
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load i32, ptr %10, align 4, !tbaa !19
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %71, i64 noundef %73) #7
  %75 = load double, ptr %74, align 8, !tbaa !27
  %76 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 5
  %77 = load i32, ptr %10, align 4, !tbaa !19
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %76, i64 noundef %78) #7
  %80 = load double, ptr %79, align 8, !tbaa !27
  %81 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 13
  %82 = load double, ptr %81, align 8, !tbaa !26
  %83 = call double @llvm.fmuladd.f64(double %75, double %80, double %82)
  store double %83, ptr %81, align 8, !tbaa !26
  br label %84

84:                                               ; preds = %70, %63
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = load i32, ptr %10, align 4, !tbaa !19
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %85, i64 noundef %87) #7
  %89 = load double, ptr %88, align 8, !tbaa !27
  %90 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %89)
  br i1 %90, label %91, label %106

91:                                               ; preds = %84
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = load i32, ptr %10, align 4, !tbaa !19
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %92, i64 noundef %94) #7
  %96 = load double, ptr %95, align 8, !tbaa !27
  %97 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 6
  %98 = load i32, ptr %10, align 4, !tbaa !19
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %97, i64 noundef %99) #7
  %101 = load double, ptr %100, align 8, !tbaa !27
  %102 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 13
  %103 = load double, ptr %102, align 8, !tbaa !26
  %104 = fneg double %96
  %105 = call double @llvm.fmuladd.f64(double %104, double %101, double %103)
  store double %105, ptr %102, align 8, !tbaa !26
  br label %106

106:                                              ; preds = %91, %84
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %10, align 4, !tbaa !19
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %10, align 4, !tbaa !19
  br label %56, !llvm.loop !28

110:                                              ; preds = %62
  br label %277

111:                                              ; preds = %1
  %112 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 16
  store double 0.000000e+00, ptr %112, align 8, !tbaa !24
  %113 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8, !tbaa !9
  %115 = call noundef double @_ZNK3ipx5Model6offsetEv(ptr noundef nonnull align 8 dereferenceable(704) %114)
  %116 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 12
  store double %115, ptr %116, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !19
  br label %117

117:                                              ; preds = %200, %111
  %118 = load i32, ptr %11, align 4, !tbaa !19
  %119 = load i32, ptr %4, align 4, !tbaa !19
  %120 = load i32, ptr %3, align 4, !tbaa !19
  %121 = add nsw i32 %119, %120
  %122 = icmp slt i32 %118, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %203

124:                                              ; preds = %117
  %125 = load i32, ptr %11, align 4, !tbaa !19
  %126 = call noundef i32 @_ZNK3ipx7Iterate7StateOfEi(ptr noundef nonnull align 8 dereferenceable(296) %13, i32 noundef %125)
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %142

128:                                              ; preds = %124
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = load i32, ptr %11, align 4, !tbaa !19
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %129, i64 noundef %131) #7
  %133 = load double, ptr %132, align 8, !tbaa !27
  %134 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 1
  %135 = load i32, ptr %11, align 4, !tbaa !19
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %134, i64 noundef %136) #7
  %138 = load double, ptr %137, align 8, !tbaa !27
  %139 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 12
  %140 = load double, ptr %139, align 8, !tbaa !25
  %141 = call double @llvm.fmuladd.f64(double %133, double %138, double %140)
  store double %141, ptr %139, align 8, !tbaa !25
  br label %156

142:                                              ; preds = %124
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = load i32, ptr %11, align 4, !tbaa !19
  %145 = sext i32 %144 to i64
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %143, i64 noundef %145) #7
  %147 = load double, ptr %146, align 8, !tbaa !27
  %148 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 1
  %149 = load i32, ptr %11, align 4, !tbaa !19
  %150 = sext i32 %149 to i64
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %148, i64 noundef %150) #7
  %152 = load double, ptr %151, align 8, !tbaa !27
  %153 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 16
  %154 = load double, ptr %153, align 8, !tbaa !24
  %155 = call double @llvm.fmuladd.f64(double %147, double %152, double %154)
  store double %155, ptr %153, align 8, !tbaa !24
  br label %156

156:                                              ; preds = %142, %128
  %157 = load i32, ptr %11, align 4, !tbaa !19
  %158 = call noundef zeroext i1 @_ZNK3ipx7Iterate10is_impliedEi(ptr noundef nonnull align 8 dereferenceable(296) %13, i32 noundef %157)
  br i1 %158, label %159, label %199

159:                                              ; preds = %156
  %160 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 5
  %161 = load i32, ptr %11, align 4, !tbaa !19
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %160, i64 noundef %162) #7
  %164 = load double, ptr %163, align 8, !tbaa !27
  %165 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 6
  %166 = load i32, ptr %11, align 4, !tbaa !19
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %165, i64 noundef %167) #7
  %169 = load double, ptr %168, align 8, !tbaa !27
  %170 = fsub double %164, %169
  %171 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 1
  %172 = load i32, ptr %11, align 4, !tbaa !19
  %173 = sext i32 %172 to i64
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %171, i64 noundef %173) #7
  %175 = load double, ptr %174, align 8, !tbaa !27
  %176 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 12
  %177 = load double, ptr %176, align 8, !tbaa !25
  %178 = fneg double %170
  %179 = call double @llvm.fmuladd.f64(double %178, double %175, double %177)
  store double %179, ptr %176, align 8, !tbaa !25
  %180 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 5
  %181 = load i32, ptr %11, align 4, !tbaa !19
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %180, i64 noundef %182) #7
  %184 = load double, ptr %183, align 8, !tbaa !27
  %185 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 6
  %186 = load i32, ptr %11, align 4, !tbaa !19
  %187 = sext i32 %186 to i64
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %185, i64 noundef %187) #7
  %189 = load double, ptr %188, align 8, !tbaa !27
  %190 = fsub double %184, %189
  %191 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 1
  %192 = load i32, ptr %11, align 4, !tbaa !19
  %193 = sext i32 %192 to i64
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %191, i64 noundef %193) #7
  %195 = load double, ptr %194, align 8, !tbaa !27
  %196 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 16
  %197 = load double, ptr %196, align 8, !tbaa !24
  %198 = call double @llvm.fmuladd.f64(double %190, double %195, double %197)
  store double %198, ptr %196, align 8, !tbaa !24
  br label %199

199:                                              ; preds = %159, %156
  br label %200

200:                                              ; preds = %199
  %201 = load i32, ptr %11, align 4, !tbaa !19
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %11, align 4, !tbaa !19
  br label %117, !llvm.loop !30

203:                                              ; preds = %123
  %204 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !9
  %206 = call noundef double @_ZNK3ipx5Model6offsetEv(ptr noundef nonnull align 8 dereferenceable(704) %205)
  %207 = load ptr, ptr %5, align 8, !tbaa !5
  %208 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 4
  %209 = call noundef double @_ZN3ipx3DotERKSt8valarrayIdES3_(ptr noundef nonnull align 8 dereferenceable(16) %207, ptr noundef nonnull align 8 dereferenceable(16) %208)
  %210 = fadd double %206, %209
  %211 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 13
  store double %210, ptr %211, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !19
  br label %212

212:                                              ; preds = %273, %203
  %213 = load i32, ptr %12, align 4, !tbaa !19
  %214 = load i32, ptr %4, align 4, !tbaa !19
  %215 = load i32, ptr %3, align 4, !tbaa !19
  %216 = add nsw i32 %214, %215
  %217 = icmp slt i32 %213, %216
  br i1 %217, label %219, label %218

218:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %276

219:                                              ; preds = %212
  %220 = load i32, ptr %12, align 4, !tbaa !19
  %221 = call noundef zeroext i1 @_ZNK3ipx7Iterate14has_barrier_lbEi(ptr noundef nonnull align 8 dereferenceable(296) %13, i32 noundef %220)
  br i1 %221, label %222, label %236

222:                                              ; preds = %219
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  %224 = load i32, ptr %12, align 4, !tbaa !19
  %225 = sext i32 %224 to i64
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %223, i64 noundef %225) #7
  %227 = load double, ptr %226, align 8, !tbaa !27
  %228 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 5
  %229 = load i32, ptr %12, align 4, !tbaa !19
  %230 = sext i32 %229 to i64
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %228, i64 noundef %230) #7
  %232 = load double, ptr %231, align 8, !tbaa !27
  %233 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 13
  %234 = load double, ptr %233, align 8, !tbaa !26
  %235 = call double @llvm.fmuladd.f64(double %227, double %232, double %234)
  store double %235, ptr %233, align 8, !tbaa !26
  br label %236

236:                                              ; preds = %222, %219
  %237 = load i32, ptr %12, align 4, !tbaa !19
  %238 = call noundef zeroext i1 @_ZNK3ipx7Iterate14has_barrier_ubEi(ptr noundef nonnull align 8 dereferenceable(296) %13, i32 noundef %237)
  br i1 %238, label %239, label %254

239:                                              ; preds = %236
  %240 = load ptr, ptr %8, align 8, !tbaa !5
  %241 = load i32, ptr %12, align 4, !tbaa !19
  %242 = sext i32 %241 to i64
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %240, i64 noundef %242) #7
  %244 = load double, ptr %243, align 8, !tbaa !27
  %245 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 6
  %246 = load i32, ptr %12, align 4, !tbaa !19
  %247 = sext i32 %246 to i64
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %245, i64 noundef %247) #7
  %249 = load double, ptr %248, align 8, !tbaa !27
  %250 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 13
  %251 = load double, ptr %250, align 8, !tbaa !26
  %252 = fneg double %244
  %253 = call double @llvm.fmuladd.f64(double %252, double %249, double %251)
  store double %253, ptr %250, align 8, !tbaa !26
  br label %254

254:                                              ; preds = %239, %236
  %255 = load i32, ptr %12, align 4, !tbaa !19
  %256 = call noundef i32 @_ZNK3ipx7Iterate7StateOfEi(ptr noundef nonnull align 8 dereferenceable(296) %13, i32 noundef %255)
  %257 = icmp eq i32 %256, 0
  br i1 %257, label %258, label %272

258:                                              ; preds = %254
  %259 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 1
  %260 = load i32, ptr %12, align 4, !tbaa !19
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %259, i64 noundef %261) #7
  %263 = load double, ptr %262, align 8, !tbaa !27
  %264 = load ptr, ptr %9, align 8, !tbaa !5
  %265 = load i32, ptr %12, align 4, !tbaa !19
  %266 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 4
  %267 = call noundef double @_ZN3ipx9DotColumnERKNS_12SparseMatrixEiRKSt8valarrayIdE(ptr noundef nonnull align 8 dereferenceable(128) %264, i32 noundef %265, ptr noundef nonnull align 8 dereferenceable(16) %266)
  %268 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 13
  %269 = load double, ptr %268, align 8, !tbaa !26
  %270 = fneg double %263
  %271 = call double @llvm.fmuladd.f64(double %270, double %267, double %269)
  store double %271, ptr %268, align 8, !tbaa !26
  br label %272

272:                                              ; preds = %258, %254
  br label %273

273:                                              ; preds = %272
  %274 = load i32, ptr %12, align 4, !tbaa !19
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %12, align 4, !tbaa !19
  br label %212, !llvm.loop !31

276:                                              ; preds = %218
  br label %277

277:                                              ; preds = %276, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3ipx5Model6offsetEv(ptr noundef nonnull align 8 dereferenceable(704)) #1 align 2

declare noundef double @_ZN3ipx3DotERKSt8valarrayIdES3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { "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 #7 = { 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 0}
!10 = !{!"_ZTSN3ipx7IterateE", !6, i64 0, !11, i64 8, !11, i64 24, !11, i64 40, !11, i64 56, !11, i64 72, !11, i64 88, !13, i64 104, !11, i64 128, !11, i64 144, !11, i64 160, !11, i64 176, !17, i64 192, !17, i64 200, !17, i64 208, !17, i64 216, !17, i64 224, !17, i64 232, !17, i64 240, !17, i64 248, !17, i64 256, !18, i64 264, !18, i64 265, !17, i64 272, !17, i64 280, !17, i64 288}
!11 = !{!"_ZTSSt8valarrayIdE", !12, i64 0, !6, i64 8}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!10, !18, i64 265}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!10, !17, i64 224}
!25 = !{!10, !17, i64 192}
!26 = !{!10, !17, i64 200}
!27 = !{!17, !17, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}


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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt8isfinited(double noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx7Iterate7StateOfEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3ipx7Iterate14has_barrier_lbEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3ipx7Iterate14has_barrier_ubEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN3ipx9DotColumnERKNS_12SparseMatrixEiRKSt8valarrayIdE(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3ipx7Iterate10is_impliedEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3ipx7Iterate17ComputeObjectivesEv(ptr noundef nonnull align 8 dereferenceable(296) %0) local_unnamed_addr #4 align 2 {
  %2 = load ptr, ptr %0, align 8, !tbaa !5
  %3 = tail call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %2)
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = tail call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %4)
  %6 = load ptr, ptr %0, align 8, !tbaa !5
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model1bEv(ptr noundef nonnull align 8 dereferenceable(704) %6)
  %8 = load ptr, ptr %0, align 8, !tbaa !5
  %9 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model1cEv(ptr noundef nonnull align 8 dereferenceable(704) %8)
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2lbEv(ptr noundef nonnull align 8 dereferenceable(704) %10)
  %12 = load ptr, ptr %0, align 8, !tbaa !5
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2ubEv(ptr noundef nonnull align 8 dereferenceable(704) %12)
  %14 = load ptr, ptr %0, align 8, !tbaa !5
  %15 = tail call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %14)
  %16 = getelementptr inbounds i8, ptr %0, i64 265
  %17 = load i8, ptr %16, align 1, !tbaa !18, !range !19, !noundef !20
  %18 = trunc nuw i8 %17 to i1
  %19 = getelementptr inbounds i8, ptr %0, i64 224
  store double 0.000000e+00, ptr %19, align 8, !tbaa !21
  %20 = load ptr, ptr %0, align 8, !tbaa !5
  %21 = tail call noundef double @_ZNK3ipx5Model6offsetEv(ptr noundef nonnull align 8 dereferenceable(704) %20)
  br i1 %18, label %22, label %61

22:                                               ; preds = %1
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = tail call noundef double @_ZN3ipx3DotERKSt8valarrayIdES3_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %25 = fadd double %21, %24
  %26 = getelementptr inbounds i8, ptr %0, i64 192
  store double %25, ptr %26, align 8, !tbaa !22
  %27 = load ptr, ptr %0, align 8, !tbaa !5
  %28 = tail call noundef double @_ZNK3ipx5Model6offsetEv(ptr noundef nonnull align 8 dereferenceable(704) %27)
  %29 = getelementptr inbounds i8, ptr %0, i64 56
  %30 = tail call noundef double @_ZN3ipx3DotERKSt8valarrayIdES3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %29)
  %31 = fadd double %28, %30
  %32 = getelementptr inbounds i8, ptr %0, i64 200
  store double %31, ptr %32, align 8, !tbaa !23
  %33 = add nsw i32 %5, %3
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph61, label %.loopexit

.lr.ph61:                                         ; preds = %22
  %35 = getelementptr inbounds i8, ptr %0, i64 72
  %36 = getelementptr inbounds i8, ptr %0, i64 88
  %wide.trip.count72 = zext nneg i32 %33 to i64
  br label %37

37:                                               ; preds = %.lr.ph61, %60
  %indvars.iv69 = phi i64 [ 0, %.lr.ph61 ], [ %indvars.iv.next70, %60 ]
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %indvars.iv69) #6
  %39 = load double, ptr %38, align 8, !tbaa !24
  %40 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %39)
  br i1 %40, label %41, label %48

41:                                               ; preds = %37
  %42 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %indvars.iv69) #6
  %43 = load double, ptr %42, align 8, !tbaa !24
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %35, i64 noundef %indvars.iv69) #6
  %45 = load double, ptr %44, align 8, !tbaa !24
  %46 = load double, ptr %32, align 8, !tbaa !23
  %47 = tail call double @llvm.fmuladd.f64(double %43, double %45, double %46)
  store double %47, ptr %32, align 8, !tbaa !23
  br label %48

48:                                               ; preds = %41, %37
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv69) #6
  %50 = load double, ptr %49, align 8, !tbaa !24
  %51 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %50)
  br i1 %51, label %52, label %60

52:                                               ; preds = %48
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv69) #6
  %54 = load double, ptr %53, align 8, !tbaa !24
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %36, i64 noundef %indvars.iv69) #6
  %56 = load double, ptr %55, align 8, !tbaa !24
  %57 = load double, ptr %32, align 8, !tbaa !23
  %58 = fneg double %54
  %59 = tail call double @llvm.fmuladd.f64(double %58, double %56, double %57)
  store double %59, ptr %32, align 8, !tbaa !23
  br label %60

60:                                               ; preds = %48, %52
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %exitcond73.not = icmp eq i64 %indvars.iv.next70, %wide.trip.count72
  br i1 %exitcond73.not, label %.loopexit, label %37, !llvm.loop !25

61:                                               ; preds = %1
  %62 = getelementptr inbounds i8, ptr %0, i64 192
  store double %21, ptr %62, align 8, !tbaa !22
  %63 = add nsw i32 %5, %3
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %61
  %65 = getelementptr inbounds i8, ptr %0, i64 8
  %66 = getelementptr inbounds i8, ptr %0, i64 72
  %67 = getelementptr inbounds i8, ptr %0, i64 88
  %wide.trip.count = zext nneg i32 %63 to i64
  br label %77

._crit_edge:                                      ; preds = %107, %61
  %68 = load ptr, ptr %0, align 8, !tbaa !5
  %69 = tail call noundef double @_ZNK3ipx5Model6offsetEv(ptr noundef nonnull align 8 dereferenceable(704) %68)
  %70 = getelementptr inbounds i8, ptr %0, i64 56
  %71 = tail call noundef double @_ZN3ipx3DotERKSt8valarrayIdES3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %70)
  %72 = fadd double %69, %71
  %73 = getelementptr inbounds i8, ptr %0, i64 200
  store double %72, ptr %73, align 8, !tbaa !23
  br i1 %64, label %.lr.ph58, label %.loopexit

.lr.ph58:                                         ; preds = %._crit_edge
  %74 = getelementptr inbounds i8, ptr %0, i64 72
  %75 = getelementptr inbounds i8, ptr %0, i64 88
  %76 = getelementptr inbounds i8, ptr %0, i64 8
  %wide.trip.count67 = zext nneg i32 %63 to i64
  br label %108

77:                                               ; preds = %.lr.ph, %107
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %107 ]
  %78 = trunc nuw nsw i64 %indvars.iv to i32
  %79 = tail call noundef i32 @_ZNK3ipx7Iterate7StateOfEi(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %78)
  %.not = icmp eq i32 %79, 0
  %80 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv) #6
  %81 = load double, ptr %80, align 8, !tbaa !24
  %82 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %65, i64 noundef %indvars.iv) #6
  %83 = load double, ptr %82, align 8, !tbaa !24
  %. = select i1 %.not, ptr %19, ptr %62
  %84 = load double, ptr %., align 8, !tbaa !24
  %85 = tail call double @llvm.fmuladd.f64(double %81, double %83, double %84)
  store double %85, ptr %., align 8, !tbaa !24
  %86 = tail call noundef zeroext i1 @_ZNK3ipx7Iterate10is_impliedEi(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %78)
  br i1 %86, label %87, label %107

87:                                               ; preds = %77
  %88 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %66, i64 noundef %indvars.iv) #6
  %89 = load double, ptr %88, align 8, !tbaa !24
  %90 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %67, i64 noundef %indvars.iv) #6
  %91 = load double, ptr %90, align 8, !tbaa !24
  %92 = fsub double %89, %91
  %93 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %65, i64 noundef %indvars.iv) #6
  %94 = load double, ptr %93, align 8, !tbaa !24
  %95 = load double, ptr %62, align 8, !tbaa !22
  %96 = fneg double %92
  %97 = tail call double @llvm.fmuladd.f64(double %96, double %94, double %95)
  store double %97, ptr %62, align 8, !tbaa !22
  %98 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %66, i64 noundef %indvars.iv) #6
  %99 = load double, ptr %98, align 8, !tbaa !24
  %100 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %67, i64 noundef %indvars.iv) #6
  %101 = load double, ptr %100, align 8, !tbaa !24
  %102 = fsub double %99, %101
  %103 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %65, i64 noundef %indvars.iv) #6
  %104 = load double, ptr %103, align 8, !tbaa !24
  %105 = load double, ptr %19, align 8, !tbaa !21
  %106 = tail call double @llvm.fmuladd.f64(double %102, double %104, double %105)
  store double %106, ptr %19, align 8, !tbaa !21
  br label %107

107:                                              ; preds = %77, %87
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %77, !llvm.loop !27

108:                                              ; preds = %.lr.ph58, %138
  %indvars.iv64 = phi i64 [ 0, %.lr.ph58 ], [ %indvars.iv.next65, %138 ]
  %109 = trunc nuw nsw i64 %indvars.iv64 to i32
  %110 = tail call noundef zeroext i1 @_ZNK3ipx7Iterate14has_barrier_lbEi(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %109)
  br i1 %110, label %111, label %118

111:                                              ; preds = %108
  %112 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %indvars.iv64) #6
  %113 = load double, ptr %112, align 8, !tbaa !24
  %114 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %74, i64 noundef %indvars.iv64) #6
  %115 = load double, ptr %114, align 8, !tbaa !24
  %116 = load double, ptr %73, align 8, !tbaa !23
  %117 = tail call double @llvm.fmuladd.f64(double %113, double %115, double %116)
  store double %117, ptr %73, align 8, !tbaa !23
  br label %118

118:                                              ; preds = %111, %108
  %119 = tail call noundef zeroext i1 @_ZNK3ipx7Iterate14has_barrier_ubEi(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %109)
  br i1 %119, label %120, label %128

120:                                              ; preds = %118
  %121 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv64) #6
  %122 = load double, ptr %121, align 8, !tbaa !24
  %123 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %75, i64 noundef %indvars.iv64) #6
  %124 = load double, ptr %123, align 8, !tbaa !24
  %125 = load double, ptr %73, align 8, !tbaa !23
  %126 = fneg double %122
  %127 = tail call double @llvm.fmuladd.f64(double %126, double %124, double %125)
  store double %127, ptr %73, align 8, !tbaa !23
  br label %128

128:                                              ; preds = %120, %118
  %129 = tail call noundef i32 @_ZNK3ipx7Iterate7StateOfEi(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %109)
  %130 = icmp eq i32 %129, 0
  br i1 %130, label %131, label %138

131:                                              ; preds = %128
  %132 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %76, i64 noundef %indvars.iv64) #6
  %133 = load double, ptr %132, align 8, !tbaa !24
  %134 = tail call noundef double @_ZN3ipx9DotColumnERKNS_12SparseMatrixEiRKSt8valarrayIdE(ptr noundef nonnull align 8 dereferenceable(128) %15, i32 noundef %109, ptr noundef nonnull align 8 dereferenceable(16) %70)
  %135 = load double, ptr %73, align 8, !tbaa !23
  %136 = fneg double %133
  %137 = tail call double @llvm.fmuladd.f64(double %136, double %134, double %135)
  store double %137, ptr %73, align 8, !tbaa !23
  br label %138

138:                                              ; preds = %128, %131
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next65, %wide.trip.count67
  br i1 %exitcond68.not, label %.loopexit, label %108, !llvm.loop !28

.loopexit:                                        ; preds = %138, %60, %._crit_edge, %22
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3ipx5Model6offsetEv(ptr noundef nonnull align 8 dereferenceable(704)) local_unnamed_addr #0 align 2

declare noundef double @_ZN3ipx3DotERKSt8valarrayIdES3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { "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, !7, i64 0}
!6 = !{!"_ZTSN3ipx7IterateE", !7, i64 0, !10, i64 8, !10, i64 24, !10, i64 40, !10, i64 56, !10, i64 72, !10, i64 88, !12, i64 104, !10, i64 128, !10, i64 144, !10, i64 160, !10, i64 176, !16, i64 192, !16, i64 200, !16, i64 208, !16, i64 216, !16, i64 224, !16, i64 232, !16, i64 240, !16, i64 248, !16, i64 256, !17, i64 264, !17, i64 265, !16, i64 272, !16, i64 280, !16, i64 288}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt8valarrayIdE", !11, i64 0, !7, i64 8}
!11 = !{!"long", !8, i64 0}
!12 = !{!"_ZTSSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!16 = !{!"double", !8, i64 0}
!17 = !{!"bool", !8, i64 0}
!18 = !{!6, !17, i64 265}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!6, !16, i64 224}
!22 = !{!6, !16, i64 192}
!23 = !{!6, !16, i64 200}
!24 = !{!16, !16, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass