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

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

@.str.12 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx7Iterate11PostprocessEv = external hidden unnamed_addr constant [33 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; 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: mustprogress uwtable
define dso_local void @_ZN3ipx7Iterate11PostprocessEv(ptr noundef nonnull align 8 dereferenceable(296) %0) #4 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 i32, align 4
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  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) #6
  %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) #6
  %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) #6
  %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 @_ZNK3ipx5Model1cEv(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) #6
  %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 @_ZNK3ipx5Model2lbEv(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) #6
  %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 @_ZNK3ipx5Model2ubEv(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) #6
  %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(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %30)
  store ptr %31, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !19
  br label %32

32:                                               ; preds = %134, %1
  %33 = load i32, ptr %9, align 4, !tbaa !19
  %34 = load i32, ptr %4, align 4, !tbaa !19
  %35 = load i32, ptr %3, align 4, !tbaa !19
  %36 = add nsw i32 %34, %35
  %37 = icmp slt i32 %33, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %137

39:                                               ; preds = %32
  %40 = load i32, ptr %9, align 4, !tbaa !19
  %41 = call noundef i32 @_ZNK3ipx7Iterate7StateOfEi(ptr noundef nonnull align 8 dereferenceable(296) %13, i32 noundef %40)
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %133

43:                                               ; preds = %39
  %44 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 1
  %45 = load i32, ptr %9, align 4, !tbaa !19
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %44, i64 noundef %46) #6
  %48 = load double, ptr %47, align 8, !tbaa !21
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = load i32, ptr %9, align 4, !tbaa !19
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %49, i64 noundef %51) #6
  %53 = load double, ptr %52, align 8, !tbaa !21
  %54 = fsub double %48, %53
  %55 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 2
  %56 = load i32, ptr %9, align 4, !tbaa !19
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %55, i64 noundef %57) #6
  store double %54, ptr %58, align 8, !tbaa !21
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = load i32, ptr %9, align 4, !tbaa !19
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %59, i64 noundef %61) #6
  %63 = load double, ptr %62, align 8, !tbaa !21
  %64 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 1
  %65 = load i32, ptr %9, align 4, !tbaa !19
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %64, i64 noundef %66) #6
  %68 = load double, ptr %67, align 8, !tbaa !21
  %69 = fsub double %63, %68
  %70 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 3
  %71 = load i32, ptr %9, align 4, !tbaa !19
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %70, i64 noundef %72) #6
  store double %69, ptr %73, align 8, !tbaa !21
  %74 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 5
  %75 = load i32, ptr %9, align 4, !tbaa !19
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %74, i64 noundef %76) #6
  %78 = load double, ptr %77, align 8, !tbaa !21
  %79 = fcmp oeq double %78, 0.000000e+00
  br i1 %79, label %80, label %81

80:                                               ; preds = %43
  br label %83

81:                                               ; preds = %43
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.12, i32 noundef 287, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx7Iterate11PostprocessEv) #7
  unreachable

82:                                               ; No predecessors!
  br label %83

83:                                               ; preds = %82, %80
  %84 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 6
  %85 = load i32, ptr %9, align 4, !tbaa !19
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %84, i64 noundef %86) #6
  %88 = load double, ptr %87, align 8, !tbaa !21
  %89 = fcmp oeq double %88, 0.000000e+00
  br i1 %89, label %90, label %91

90:                                               ; preds = %83
  br label %93

91:                                               ; preds = %83
  call void @__assert_fail(ptr noundef @.str.23, ptr noundef @.str.12, i32 noundef 288, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx7Iterate11PostprocessEv) #7
  unreachable

92:                                               ; No predecessors!
  br label %93

93:                                               ; preds = %92, %90
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = load i32, ptr %9, align 4, !tbaa !19
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %94, i64 noundef %96) #6
  %98 = load double, ptr %97, align 8, !tbaa !21
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = load i32, ptr %9, align 4, !tbaa !19
  %101 = sext i32 %100 to i64
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %99, i64 noundef %101) #6
  %103 = load double, ptr %102, align 8, !tbaa !21
  %104 = fcmp oeq double %98, %103
  br i1 %104, label %105, label %132

105:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = load i32, ptr %9, align 4, !tbaa !19
  %108 = sext i32 %107 to i64
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %106, i64 noundef %108) #6
  %110 = load double, ptr %109, align 8, !tbaa !21
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load i32, ptr %9, align 4, !tbaa !19
  %113 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 4
  %114 = call noundef double @_ZN3ipx9DotColumnERKNS_12SparseMatrixEiRKSt8valarrayIdE(ptr noundef nonnull align 8 dereferenceable(128) %111, i32 noundef %112, ptr noundef nonnull align 8 dereferenceable(16) %113)
  %115 = fsub double %110, %114
  store double %115, ptr %10, align 8, !tbaa !21
  %116 = load double, ptr %10, align 8, !tbaa !21
  %117 = fcmp oge double %116, 0.000000e+00
  br i1 %117, label %118, label %124

118:                                              ; preds = %105
  %119 = load double, ptr %10, align 8, !tbaa !21
  %120 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 5
  %121 = load i32, ptr %9, align 4, !tbaa !19
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %120, i64 noundef %122) #6
  store double %119, ptr %123, align 8, !tbaa !21
  br label %131

124:                                              ; preds = %105
  %125 = load double, ptr %10, align 8, !tbaa !21
  %126 = fneg double %125
  %127 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 6
  %128 = load i32, ptr %9, align 4, !tbaa !19
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %127, i64 noundef %129) #6
  store double %126, ptr %130, align 8, !tbaa !21
  br label %131

131:                                              ; preds = %124, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %132

132:                                              ; preds = %131, %93
  br label %133

133:                                              ; preds = %132, %39
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %9, align 4, !tbaa !19
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %9, align 4, !tbaa !19
  br label %32, !llvm.loop !22

137:                                              ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !19
  br label %138

138:                                              ; preds = %285, %137
  %139 = load i32, ptr %11, align 4, !tbaa !19
  %140 = load i32, ptr %4, align 4, !tbaa !19
  %141 = load i32, ptr %3, align 4, !tbaa !19
  %142 = add nsw i32 %140, %141
  %143 = icmp slt i32 %139, %142
  br i1 %143, label %145, label %144

144:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %288

145:                                              ; preds = %138
  %146 = load i32, ptr %11, align 4, !tbaa !19
  %147 = call noundef zeroext i1 @_ZNK3ipx7Iterate10is_impliedEi(ptr noundef nonnull align 8 dereferenceable(296) %13, i32 noundef %146)
  br i1 %147, label %148, label %284

148:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = load i32, ptr %11, align 4, !tbaa !19
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %149, i64 noundef %151) #6
  %153 = load double, ptr %152, align 8, !tbaa !21
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = load i32, ptr %11, align 4, !tbaa !19
  %156 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 4
  %157 = call noundef double @_ZN3ipx9DotColumnERKNS_12SparseMatrixEiRKSt8valarrayIdE(ptr noundef nonnull align 8 dereferenceable(128) %154, i32 noundef %155, ptr noundef nonnull align 8 dereferenceable(16) %156)
  %158 = fsub double %153, %157
  store double %158, ptr %12, align 8, !tbaa !21
  %159 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 7
  %160 = load i32, ptr %11, align 4, !tbaa !19
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %161) #6
  %163 = load i32, ptr %162, align 4, !tbaa !24
  switch i32 %163, label %252 [
    i32 7, label %164
    i32 5, label %213
    i32 6, label %232
  ]

164:                                              ; preds = %148
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %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) #6
  %169 = load double, ptr %168, align 8, !tbaa !21
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = load i32, ptr %11, align 4, !tbaa !19
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %170, i64 noundef %172) #6
  %174 = load double, ptr %173, align 8, !tbaa !21
  %175 = fcmp oeq double %169, %174
  br i1 %175, label %176, label %177

176:                                              ; preds = %164
  br label %179

177:                                              ; preds = %164
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.12, i32 noundef 306, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx7Iterate11PostprocessEv) #7
  unreachable

178:                                              ; No predecessors!
  br label %179

179:                                              ; preds = %178, %176
  %180 = load double, ptr %12, align 8, !tbaa !21
  %181 = fcmp oge double %180, 0.000000e+00
  br i1 %181, label %182, label %192

182:                                              ; preds = %179
  %183 = load double, ptr %12, align 8, !tbaa !21
  %184 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 5
  %185 = load i32, ptr %11, align 4, !tbaa !19
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %184, i64 noundef %186) #6
  store double %183, ptr %187, align 8, !tbaa !21
  %188 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 6
  %189 = load i32, ptr %11, align 4, !tbaa !19
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %188, i64 noundef %190) #6
  store double 0.000000e+00, ptr %191, align 8, !tbaa !21
  br label %203

192:                                              ; preds = %179
  %193 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 5
  %194 = load i32, ptr %11, align 4, !tbaa !19
  %195 = sext i32 %194 to i64
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %193, i64 noundef %195) #6
  store double 0.000000e+00, ptr %196, align 8, !tbaa !21
  %197 = load double, ptr %12, align 8, !tbaa !21
  %198 = fneg double %197
  %199 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 6
  %200 = load i32, ptr %11, align 4, !tbaa !19
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %199, i64 noundef %201) #6
  store double %198, ptr %202, align 8, !tbaa !21
  br label %203

203:                                              ; preds = %192, %182
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = load i32, ptr %11, align 4, !tbaa !19
  %206 = sext i32 %205 to i64
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %204, i64 noundef %206) #6
  %208 = load double, ptr %207, align 8, !tbaa !21
  %209 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 1
  %210 = load i32, ptr %11, align 4, !tbaa !19
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %209, i64 noundef %211) #6
  store double %208, ptr %212, align 8, !tbaa !21
  br label %253

213:                                              ; preds = %148
  %214 = load double, ptr %12, align 8, !tbaa !21
  %215 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 5
  %216 = load i32, ptr %11, align 4, !tbaa !19
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %215, i64 noundef %217) #6
  store double %214, ptr %218, align 8, !tbaa !21
  %219 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 6
  %220 = load i32, ptr %11, align 4, !tbaa !19
  %221 = sext i32 %220 to i64
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %219, i64 noundef %221) #6
  store double 0.000000e+00, ptr %222, align 8, !tbaa !21
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = load i32, ptr %11, 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) #6
  %227 = load double, ptr %226, align 8, !tbaa !21
  %228 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 1
  %229 = load i32, ptr %11, align 4, !tbaa !19
  %230 = sext i32 %229 to i64
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %228, i64 noundef %230) #6
  store double %227, ptr %231, align 8, !tbaa !21
  br label %253

232:                                              ; preds = %148
  %233 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 5
  %234 = load i32, ptr %11, align 4, !tbaa !19
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %233, i64 noundef %235) #6
  store double 0.000000e+00, ptr %236, align 8, !tbaa !21
  %237 = load double, ptr %12, align 8, !tbaa !21
  %238 = fneg double %237
  %239 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 6
  %240 = load i32, ptr %11, align 4, !tbaa !19
  %241 = sext i32 %240 to i64
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %239, i64 noundef %241) #6
  store double %238, ptr %242, align 8, !tbaa !21
  %243 = load ptr, ptr %7, align 8, !tbaa !5
  %244 = load i32, ptr %11, align 4, !tbaa !19
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %243, i64 noundef %245) #6
  %247 = load double, ptr %246, align 8, !tbaa !21
  %248 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 1
  %249 = load i32, ptr %11, align 4, !tbaa !19
  %250 = sext i32 %249 to i64
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %248, i64 noundef %250) #6
  store double %247, ptr %251, align 8, !tbaa !21
  br label %253

252:                                              ; preds = %148
  call void @__assert_fail(ptr noundef @.str.25, ptr noundef @.str.12, i32 noundef 327, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx7Iterate11PostprocessEv) #7
  unreachable

253:                                              ; preds = %232, %213, %203
  %254 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 1
  %255 = load i32, ptr %11, align 4, !tbaa !19
  %256 = sext i32 %255 to i64
  %257 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %254, i64 noundef %256) #6
  %258 = load double, ptr %257, align 8, !tbaa !21
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  %260 = load i32, ptr %11, 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) #6
  %263 = load double, ptr %262, align 8, !tbaa !21
  %264 = fsub double %258, %263
  %265 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 2
  %266 = load i32, ptr %11, align 4, !tbaa !19
  %267 = sext i32 %266 to i64
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %265, i64 noundef %267) #6
  store double %264, ptr %268, align 8, !tbaa !21
  %269 = load ptr, ptr %7, align 8, !tbaa !5
  %270 = load i32, ptr %11, align 4, !tbaa !19
  %271 = sext i32 %270 to i64
  %272 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %269, i64 noundef %271) #6
  %273 = load double, ptr %272, align 8, !tbaa !21
  %274 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 1
  %275 = load i32, ptr %11, align 4, !tbaa !19
  %276 = sext i32 %275 to i64
  %277 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %274, i64 noundef %276) #6
  %278 = load double, ptr %277, align 8, !tbaa !21
  %279 = fsub double %273, %278
  %280 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 3
  %281 = load i32, ptr %11, align 4, !tbaa !19
  %282 = sext i32 %281 to i64
  %283 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %280, i64 noundef %282) #6
  store double %279, ptr %283, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %284

284:                                              ; preds = %253, %145
  br label %285

285:                                              ; preds = %284
  %286 = load i32, ptr %11, align 4, !tbaa !19
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %11, align 4, !tbaa !19
  br label %138, !llvm.loop !26

288:                                              ; preds = %144
  %289 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 22
  store i8 1, ptr %289, align 1, !tbaa !27
  %290 = getelementptr inbounds %"class.ipx::Iterate", ptr %13, i32 0, i32 21
  store i8 0, ptr %290, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret void
}

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

; 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

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 = { noreturn nounwind "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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!17, !17, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !25, i64 0}
!25 = !{!"_ZTSN3ipx7Iterate11StateDetailE", !7, i64 0}
!26 = distinct !{!26, !23}
!27 = !{!10, !18, i64 265}
!28 = !{!10, !18, i64 264}


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

@.str.12 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx7Iterate11PostprocessEv = external hidden unnamed_addr constant [33 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1

; 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: 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #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 uwtable
define dso_local void @_ZN3ipx7Iterate11PostprocessEv(ptr noundef nonnull align 8 dereferenceable(296) %0) local_unnamed_addr #3 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 @_ZNK3ipx5Model1cEv(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 @_ZNK3ipx5Model2lbEv(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 @_ZNK3ipx5Model2ubEv(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(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %12)
  %14 = add nsw i32 %5, %3
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  %19 = getelementptr inbounds i8, ptr %0, i64 72
  %20 = getelementptr inbounds i8, ptr %0, i64 88
  %21 = getelementptr inbounds i8, ptr %0, i64 56
  %wide.trip.count = zext nneg i32 %14 to i64
  br label %29

.preheader:                                       ; preds = %68
  br i1 %15, label %.lr.ph81, label %._crit_edge

.lr.ph81:                                         ; preds = %.preheader
  %22 = getelementptr inbounds i8, ptr %0, i64 56
  %23 = getelementptr inbounds i8, ptr %0, i64 104
  %24 = getelementptr inbounds i8, ptr %0, i64 72
  %25 = getelementptr inbounds i8, ptr %0, i64 88
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = getelementptr inbounds i8, ptr %0, i64 24
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  %wide.trip.count86 = zext nneg i32 %14 to i64
  br label %71

29:                                               ; preds = %.lr.ph, %68
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %68 ]
  %30 = trunc nuw nsw i64 %indvars.iv to i32
  %31 = tail call noundef i32 @_ZNK3ipx7Iterate7StateOfEi(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %30)
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %68

33:                                               ; preds = %29
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef %indvars.iv) #5
  %35 = load double, ptr %34, align 8, !tbaa !18
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv) #5
  %37 = load double, ptr %36, align 8, !tbaa !18
  %38 = fsub double %35, %37
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv) #5
  store double %38, ptr %39, align 8, !tbaa !18
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %indvars.iv) #5
  %41 = load double, ptr %40, align 8, !tbaa !18
  %42 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef %indvars.iv) #5
  %43 = load double, ptr %42, align 8, !tbaa !18
  %44 = fsub double %41, %43
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef %indvars.iv) #5
  store double %44, ptr %45, align 8, !tbaa !18
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %indvars.iv) #5
  %47 = load double, ptr %46, align 8, !tbaa !18
  %48 = fcmp oeq double %47, 0.000000e+00
  br i1 %48, label %50, label %49

49:                                               ; preds = %33
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.12, i32 noundef 287, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx7Iterate11PostprocessEv) #6
  unreachable

50:                                               ; preds = %33
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %20, i64 noundef %indvars.iv) #5
  %52 = load double, ptr %51, align 8, !tbaa !18
  %53 = fcmp oeq double %52, 0.000000e+00
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  tail call void @__assert_fail(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.12, i32 noundef 288, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx7Iterate11PostprocessEv) #6
  unreachable

55:                                               ; preds = %50
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv) #5
  %57 = load double, ptr %56, align 8, !tbaa !18
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %indvars.iv) #5
  %59 = load double, ptr %58, align 8, !tbaa !18
  %60 = fcmp oeq double %57, %59
  br i1 %60, label %.sink.split, label %68

.sink.split:                                      ; preds = %55
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %indvars.iv) #5
  %62 = load double, ptr %61, align 8, !tbaa !18
  %63 = tail call noundef double @_ZN3ipx9DotColumnERKNS_12SparseMatrixEiRKSt8valarrayIdE(ptr noundef nonnull align 8 dereferenceable(128) %13, i32 noundef %30, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %64 = fsub double %62, %63
  %65 = fcmp ult double %64, 0.000000e+00
  %66 = fneg double %64
  %.sink89 = select i1 %65, ptr %20, ptr %19
  %.sink = select i1 %65, double %66, double %64
  %67 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %.sink89, i64 noundef %indvars.iv) #5
  store double %.sink, ptr %67, align 8, !tbaa !18
  br label %68

68:                                               ; preds = %.sink.split, %29, %55
  %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 %.preheader, label %29, !llvm.loop !19

._crit_edge:                                      ; preds = %117, %1, %.preheader
  %69 = getelementptr inbounds i8, ptr %0, i64 265
  store i8 1, ptr %69, align 1, !tbaa !21
  %70 = getelementptr inbounds i8, ptr %0, i64 264
  store i8 0, ptr %70, align 8, !tbaa !22
  ret void

71:                                               ; preds = %.lr.ph81, %117
  %indvars.iv83 = phi i64 [ 0, %.lr.ph81 ], [ %indvars.iv.next84, %117 ]
  %72 = trunc nuw nsw i64 %indvars.iv83 to i32
  %73 = tail call noundef zeroext i1 @_ZNK3ipx7Iterate10is_impliedEi(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %72)
  br i1 %73, label %74, label %117

74:                                               ; preds = %71
  %75 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %indvars.iv83) #5
  %76 = load double, ptr %75, align 8, !tbaa !18
  %77 = tail call noundef double @_ZN3ipx9DotColumnERKNS_12SparseMatrixEiRKSt8valarrayIdE(ptr noundef nonnull align 8 dereferenceable(128) %13, i32 noundef %72, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %78 = fsub double %76, %77
  %79 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %indvars.iv83) #5
  %80 = load i32, ptr %79, align 4, !tbaa !23
  switch i32 %80, label %99 [
    i32 7, label %81
    i32 5, label %94
    i32 6, label %96
  ]

81:                                               ; preds = %74
  %82 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv83) #5
  %83 = load double, ptr %82, align 8, !tbaa !18
  %84 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %indvars.iv83) #5
  %85 = load double, ptr %84, align 8, !tbaa !18
  %86 = fcmp oeq double %83, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %81
  tail call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.12, i32 noundef 306, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx7Iterate11PostprocessEv) #6
  unreachable

88:                                               ; preds = %81
  %89 = fcmp ult double %78, 0.000000e+00
  %90 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %indvars.iv83) #5
  br i1 %89, label %92, label %91

91:                                               ; preds = %88
  store double %78, ptr %90, align 8, !tbaa !18
  br label %100

92:                                               ; preds = %88
  store double 0.000000e+00, ptr %90, align 8, !tbaa !18
  %93 = fneg double %78
  br label %100

94:                                               ; preds = %74
  %95 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %indvars.iv83) #5
  store double %78, ptr %95, align 8, !tbaa !18
  br label %100

96:                                               ; preds = %74
  %97 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %indvars.iv83) #5
  store double 0.000000e+00, ptr %97, align 8, !tbaa !18
  %98 = fneg double %78
  br label %100

99:                                               ; preds = %74
  tail call void @__assert_fail(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.12, i32 noundef 327, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx7Iterate11PostprocessEv) #6
  unreachable

100:                                              ; preds = %91, %92, %96, %94
  %.sink96 = phi double [ %98, %96 ], [ 0.000000e+00, %94 ], [ %93, %92 ], [ 0.000000e+00, %91 ]
  %.sink95 = phi ptr [ %11, %96 ], [ %9, %94 ], [ %9, %92 ], [ %9, %91 ]
  %101 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %25, i64 noundef %indvars.iv83) #5
  store double %.sink96, ptr %101, align 8, !tbaa !18
  %102 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %.sink95, i64 noundef %indvars.iv83) #5
  %103 = load double, ptr %102, align 8, !tbaa !18
  %104 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %26, i64 noundef %indvars.iv83) #5
  store double %103, ptr %104, align 8, !tbaa !18
  %105 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %26, i64 noundef %indvars.iv83) #5
  %106 = load double, ptr %105, align 8, !tbaa !18
  %107 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv83) #5
  %108 = load double, ptr %107, align 8, !tbaa !18
  %109 = fsub double %106, %108
  %110 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %27, i64 noundef %indvars.iv83) #5
  store double %109, ptr %110, align 8, !tbaa !18
  %111 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %indvars.iv83) #5
  %112 = load double, ptr %111, align 8, !tbaa !18
  %113 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %26, i64 noundef %indvars.iv83) #5
  %114 = load double, ptr %113, align 8, !tbaa !18
  %115 = fsub double %112, %114
  %116 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %28, i64 noundef %indvars.iv83) #5
  store double %115, ptr %116, align 8, !tbaa !18
  br label %117

117:                                              ; preds = %71, %100
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond87.not = icmp eq i64 %indvars.iv.next84, %wide.trip.count86
  br i1 %exitcond87.not, label %._crit_edge, label %71, !llvm.loop !25
}

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

; 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

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 = { noreturn nounwind "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 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 = { 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 = { nounwind }
attributes #6 = { noreturn 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 = !{!16, !16, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !17, i64 265}
!22 = !{!6, !17, i64 264}
!23 = !{!24, !24, i64 0}
!24 = !{!"_ZTSN3ipx7Iterate11StateDetailE", !8, i64 0}
!25 = distinct !{!25, !20}


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