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

; 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.__gnu_cxx::__normal_iterator.16" = type { ptr }
%"class.ipx::Model" = type { i8, i32, i32, i32, i32, %"class.ipx::SparseMatrix", %"class.ipx::SparseMatrix", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", double, double, i32, i32, i32, i32, i32, %"class.std::vector", %"class.std::vector.8", double, double, double, %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.ipx::SparseMatrix", %"class.std::vector", %"class.std::valarray", %"class.std::valarray" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.ipx::SparseMatrix" = type { i32, %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::valarray" = type { i64, ptr }

@.str.18 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [43 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_ = external hidden unnamed_addr constant [106 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [43 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704)) #2 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) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_(ptr noundef nonnull align 8 dereferenceable(704) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #4 align 2 {
  %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 i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %21 = call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %20)
  store i32 %21, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %22 = call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %20)
  store i32 %22, ptr %10, align 4, !tbaa !9
  %23 = getelementptr inbounds %"class.ipx::Model", ptr %20, i32 0, i32 0
  %24 = load i8, ptr %23, align 8, !tbaa !11, !range !30, !noundef !31
  %25 = trunc i8 %24 to i1
  br i1 %25, label %26, label %166

26:                                               ; preds = %4
  %27 = getelementptr inbounds %"class.ipx::Model", ptr %20, i32 0, i32 15
  %28 = load i32, ptr %27, align 8, !tbaa !32
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = icmp eq i32 %28, %29
  br i1 %30, label %31, label %32

31:                                               ; preds = %26
  br label %34

32:                                               ; preds = %26
  call void @__assert_fail(ptr noundef @.str.55, ptr noundef @.str.18, i32 noundef 1374, ptr noundef @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #6
  unreachable

33:                                               ; No predecessors!
  br label %34

34:                                               ; preds = %33, %31
  %35 = getelementptr inbounds %"class.ipx::Model", ptr %20, i32 0, i32 13
  %36 = load i32, ptr %35, align 8, !tbaa !33
  %37 = getelementptr inbounds %"class.ipx::Model", ptr %20, i32 0, i32 18
  %38 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  %39 = trunc i64 %38 to i32
  %40 = add nsw i32 %36, %39
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = icmp eq i32 %40, %41
  br i1 %42, label %43, label %44

43:                                               ; preds = %34
  br label %46

44:                                               ; preds = %34
  call void @__assert_fail(ptr noundef @.str.63, ptr noundef @.str.18, i32 noundef 1375, ptr noundef @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #6
  unreachable

45:                                               ; No predecessors!
  br label %46

46:                                               ; preds = %45, %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %71, %46
  %48 = load i32, ptr %11, align 4, !tbaa !9
  %49 = getelementptr inbounds %"class.ipx::Model", ptr %20, i32 0, i32 13
  %50 = load i32, ptr %49, align 8, !tbaa !33
  %51 = icmp slt i32 %48, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %74

53:                                               ; preds = %47
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %56) #5
  %58 = load i32, ptr %57, align 4, !tbaa !9
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %65

60:                                               ; preds = %53
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %63) #5
  store i32 -1, ptr %64, align 4, !tbaa !9
  br label %70

65:                                               ; preds = %53
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load i32, ptr %11, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %68) #5
  store i32 0, ptr %69, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %65, %60
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %11, align 4, !tbaa !9
  br label %47, !llvm.loop !34

74:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %121, %74
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = getelementptr inbounds %"class.ipx::Model", ptr %20, i32 0, i32 15
  %78 = load i32, ptr %77, align 8, !tbaa !32
  %79 = icmp slt i32 %76, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %124

81:                                               ; preds = %75
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load i32, ptr %10, align 4, !tbaa !9
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = add nsw i32 %83, %84
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %86) #5
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = icmp ne i32 %88, -3
  br i1 %89, label %90, label %91

90:                                               ; preds = %81
  br label %93

91:                                               ; preds = %81
  call void @__assert_fail(ptr noundef @.str.70, ptr noundef @.str.18, i32 noundef 1384, ptr noundef @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #6
  unreachable

92:                                               ; No predecessors!
  br label %93

93:                                               ; preds = %92, %90
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = load i32, ptr %12, align 4, !tbaa !9
  %97 = add nsw i32 %95, %96
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %98) #5
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %115

102:                                              ; preds = %93
  %103 = getelementptr inbounds %"class.ipx::Model", ptr %20, i32 0, i32 25
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %103, i64 noundef %105) #5
  %107 = load double, ptr %106, align 8, !tbaa !36
  %108 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %107)
  %109 = zext i1 %108 to i64
  %110 = select i1 %108, i32 -1, i32 -3
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113) #5
  store i32 %110, ptr %114, align 4, !tbaa !9
  br label %120

115:                                              ; preds = %93
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %118) #5
  store i32 0, ptr %119, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %115, %102
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %12, align 4, !tbaa !9
  br label %75, !llvm.loop !37

124:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %125 = getelementptr inbounds %"class.ipx::Model", ptr %20, i32 0, i32 13
  %126 = load i32, ptr %125, align 8, !tbaa !33
  store i32 %126, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %127 = getelementptr inbounds %"class.ipx::Model", ptr %20, i32 0, i32 18
  store ptr %127, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  %129 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %128) #5
  %130 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.16", ptr %15, i32 0, i32 0
  store ptr %129, ptr %130, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %131) #5
  %133 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.16", ptr %16, i32 0, i32 0
  store ptr %132, ptr %133, align 8
  br label %134

134:                                              ; preds = %163, %124
  %135 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br i1 %135, label %137, label %136

136:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %165

137:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  %139 = load i32, ptr %138, align 4, !tbaa !9
  store i32 %139, ptr %17, align 4, !tbaa !9
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %13, align 4, !tbaa !9
  %143 = sext i32 %141 to i64
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %143) #5
  %145 = load i32, ptr %144, align 4, !tbaa !9
  %146 = icmp eq i32 %145, 0
  br i1 %146, label %147, label %162

147:                                              ; preds = %137
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = load i32, ptr %17, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %148, i64 noundef %150) #5
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = icmp eq i32 %152, 0
  br i1 %153, label %154, label %155

154:                                              ; preds = %147
  br label %157

155:                                              ; preds = %147
  call void @__assert_fail(ptr noundef @.str.71, ptr noundef @.str.18, i32 noundef 1394, ptr noundef @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #6
  unreachable

156:                                              ; No predecessors!
  br label %157

157:                                              ; preds = %156, %154
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = load i32, ptr %17, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %158, i64 noundef %160) #5
  store i32 -2, ptr %161, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %157, %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %163

163:                                              ; preds = %162
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br label %134

165:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %245

166:                                              ; preds = %4
  %167 = getelementptr inbounds %"class.ipx::Model", ptr %20, i32 0, i32 13
  %168 = load i32, ptr %167, align 8, !tbaa !33
  %169 = load i32, ptr %9, align 4, !tbaa !9
  %170 = icmp eq i32 %168, %169
  br i1 %170, label %171, label %172

171:                                              ; preds = %166
  br label %174

172:                                              ; preds = %166
  call void @__assert_fail(ptr noundef @.str.57, ptr noundef @.str.18, i32 noundef 1399, ptr noundef @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #6
  unreachable

173:                                              ; No predecessors!
  br label %174

174:                                              ; preds = %173, %171
  %175 = getelementptr inbounds %"class.ipx::Model", ptr %20, i32 0, i32 15
  %176 = load i32, ptr %175, align 8, !tbaa !32
  %177 = load i32, ptr %10, align 4, !tbaa !9
  %178 = icmp eq i32 %176, %177
  br i1 %178, label %179, label %180

179:                                              ; preds = %174
  br label %182

180:                                              ; preds = %174
  call void @__assert_fail(ptr noundef @.str.58, ptr noundef @.str.18, i32 noundef 1400, ptr noundef @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #6
  unreachable

181:                                              ; No predecessors!
  br label %182

182:                                              ; preds = %181, %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %221, %182
  %184 = load i32, ptr %18, align 4, !tbaa !9
  %185 = getelementptr inbounds %"class.ipx::Model", ptr %20, i32 0, i32 13
  %186 = load i32, ptr %185, align 8, !tbaa !33
  %187 = icmp slt i32 %184, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %224

189:                                              ; preds = %183
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = load i32, ptr %10, align 4, !tbaa !9
  %192 = load i32, ptr %18, align 4, !tbaa !9
  %193 = add nsw i32 %191, %192
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef %194) #5
  %196 = load i32, ptr %195, align 4, !tbaa !9
  %197 = icmp ne i32 %196, -3
  br i1 %197, label %198, label %199

198:                                              ; preds = %189
  br label %201

199:                                              ; preds = %189
  call void @__assert_fail(ptr noundef @.str.72, ptr noundef @.str.18, i32 noundef 1403, ptr noundef @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #6
  unreachable

200:                                              ; No predecessors!
  br label %201

201:                                              ; preds = %200, %198
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = load i32, ptr %10, align 4, !tbaa !9
  %204 = load i32, ptr %18, align 4, !tbaa !9
  %205 = add nsw i32 %203, %204
  %206 = sext i32 %205 to i64
  %207 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef %206) #5
  %208 = load i32, ptr %207, align 4, !tbaa !9
  %209 = icmp eq i32 %208, 0
  br i1 %209, label %210, label %215

210:                                              ; preds = %201
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = load i32, ptr %18, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %211, i64 noundef %213) #5
  store i32 0, ptr %214, align 4, !tbaa !9
  br label %220

215:                                              ; preds = %201
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = load i32, ptr %18, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %216, i64 noundef %218) #5
  store i32 -1, ptr %219, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %215, %210
  br label %221

221:                                              ; preds = %220
  %222 = load i32, ptr %18, align 4, !tbaa !9
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %18, align 4, !tbaa !9
  br label %183, !llvm.loop !38

224:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %225

225:                                              ; preds = %241, %224
  %226 = load i32, ptr %19, align 4, !tbaa !9
  %227 = getelementptr inbounds %"class.ipx::Model", ptr %20, i32 0, i32 15
  %228 = load i32, ptr %227, align 8, !tbaa !32
  %229 = icmp slt i32 %226, %228
  br i1 %229, label %231, label %230

230:                                              ; preds = %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %244

231:                                              ; preds = %225
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = load i32, ptr %19, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %232, i64 noundef %234) #5
  %236 = load i32, ptr %235, align 4, !tbaa !9
  %237 = load ptr, ptr %8, align 8, !tbaa !5
  %238 = load i32, ptr %19, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %239) #5
  store i32 %236, ptr %240, align 4, !tbaa !9
  br label %241

241:                                              ; preds = %231
  %242 = load i32, ptr %19, align 4, !tbaa !9
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %19, align 4, !tbaa !9
  br label %225, !llvm.loop !39

244:                                              ; preds = %230
  br label %245

245:                                              ; preds = %244, %165
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 #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 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN3ipx5ModelE", !13, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !14, i64 24, !14, i64 152, !23, i64 280, !23, i64 296, !23, i64 312, !23, i64 328, !25, i64 344, !25, i64 352, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !15, i64 384, !26, i64 408, !25, i64 432, !25, i64 440, !25, i64 448, !23, i64 456, !23, i64 472, !23, i64 488, !23, i64 504, !14, i64 520, !15, i64 648, !23, i64 672, !23, i64 688}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN3ipx12SparseMatrixE", !10, i64 0, !15, i64 8, !15, i64 32, !19, i64 56, !15, i64 80, !19, i64 104}
!15 = !{!"_ZTSSt6vectorIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt8valarrayIdE", !24, i64 0, !6, i64 8}
!24 = !{!"long", !7, i64 0}
!25 = !{!"double", !7, i64 0}
!26 = !{!"_ZTSSt6vectorIcSaIcEE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!12, !10, i64 368}
!33 = !{!12, !10, i64 360}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!25, !25, i64 0}
!37 = distinct !{!37, !35}
!38 = distinct !{!38, !35}
!39 = distinct !{!39, !35}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.__gnu_cxx::__normal_iterator.16" = type { ptr }

@.str.18 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [43 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_ = external hidden unnamed_addr constant [106 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [43 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704)) local_unnamed_addr #2 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 #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_(ptr noundef nonnull align 8 dereferenceable(704) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #2 align 2 {
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  %7 = tail call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %0)
  %8 = tail call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %0)
  %9 = load i8, ptr %0, align 8, !tbaa !5, !range !28, !noundef !29
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %11, label %79

11:                                               ; preds = %4
  %12 = getelementptr inbounds i8, ptr %0, i64 368
  %13 = load i32, ptr %12, align 8, !tbaa !30
  %14 = icmp eq i32 %13, %7
  br i1 %14, label %16, label %15

15:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.55, ptr noundef nonnull @.str.18, i32 noundef 1374, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #4
  unreachable

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %0, i64 360
  %18 = load i32, ptr %17, align 8, !tbaa !31
  %19 = getelementptr inbounds i8, ptr %0, i64 384
  %20 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %21 = trunc i64 %20 to i32
  %22 = add nsw i32 %18, %21
  %23 = icmp eq i32 %22, %8
  br i1 %23, label %.preheader57, label %26

.preheader57:                                     ; preds = %16
  %24 = load i32, ptr %17, align 8, !tbaa !31
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph64, label %.preheader

26:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.63, ptr noundef nonnull @.str.18, i32 noundef 1375, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #4
  unreachable

.preheader:                                       ; preds = %.lr.ph64, %.preheader57
  %27 = phi i32 [ %24, %.preheader57 ], [ %36, %.lr.ph64 ]
  %28 = load i32, ptr %12, align 8, !tbaa !30
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph66, label %._crit_edge

.lr.ph66:                                         ; preds = %.preheader
  %30 = getelementptr inbounds i8, ptr %0, i64 488
  %31 = sext i32 %8 to i64
  br label %44

.lr.ph64:                                         ; preds = %.preheader57, %.lr.ph64
  %indvars.iv75 = phi i64 [ %indvars.iv.next76, %.lr.ph64 ], [ 0, %.preheader57 ]
  %32 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv75) #5
  %33 = load i32, ptr %32, align 4, !tbaa !32
  %34 = icmp eq i32 %33, 0
  %35 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv75) #5
  %. = sext i1 %34 to i32
  store i32 %., ptr %35, align 4, !tbaa !32
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %36 = load i32, ptr %17, align 8, !tbaa !31
  %37 = sext i32 %36 to i64
  %38 = icmp slt i64 %indvars.iv.next76, %37
  br i1 %38, label %.lr.ph64, label %.preheader, !llvm.loop !33

._crit_edge.loopexit:                             ; preds = %58
  %.pre84 = load i32, ptr %17, align 8, !tbaa !31
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %39 = phi i32 [ %.pre84, %._crit_edge.loopexit ], [ %27, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %40 = tail call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  store ptr %40, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %41 = tail call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  store ptr %41, ptr %6, align 8
  %42 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %42, label %.lr.ph69.preheader, label %._crit_edge70

.lr.ph69.preheader:                               ; preds = %._crit_edge
  %43 = sext i32 %39 to i64
  br label %.lr.ph69

44:                                               ; preds = %.lr.ph66, %58
  %indvars.iv78 = phi i64 [ 0, %.lr.ph66 ], [ %indvars.iv.next79, %58 ]
  %45 = add nsw i64 %indvars.iv78, %31
  %46 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %45) #5
  %47 = load i32, ptr %46, align 4, !tbaa !32
  %.not56 = icmp eq i32 %47, -3
  br i1 %.not56, label %48, label %49

48:                                               ; preds = %44
  tail call void @__assert_fail(ptr noundef nonnull @.str.70, ptr noundef nonnull @.str.18, i32 noundef 1384, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #4
  unreachable

49:                                               ; preds = %44
  %50 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %45) #5
  %51 = load i32, ptr %50, align 4, !tbaa !32
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %58

53:                                               ; preds = %49
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %30, i64 noundef %indvars.iv78) #5
  %55 = load double, ptr %54, align 8, !tbaa !35
  %56 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %55)
  %57 = select i1 %56, i32 -1, i32 -3
  br label %58

58:                                               ; preds = %49, %53
  %.sink85 = phi i32 [ %57, %53 ], [ 0, %49 ]
  %59 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv78) #5
  store i32 %.sink85, ptr %59, align 4, !tbaa !32
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %60 = load i32, ptr %12, align 8, !tbaa !30
  %61 = sext i32 %60 to i64
  %62 = icmp slt i64 %indvars.iv.next79, %61
  br i1 %62, label %44, label %._crit_edge.loopexit, !llvm.loop !36

._crit_edge70:                                    ; preds = %76, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %.loopexit

.lr.ph69:                                         ; preds = %.lr.ph69.preheader, %76
  %indvars.iv81 = phi i64 [ %43, %.lr.ph69.preheader ], [ %indvars.iv.next82, %76 ]
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %64 = load i32, ptr %63, align 4, !tbaa !32
  %indvars.iv.next82 = add nsw i64 %indvars.iv81, 1
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv81) #5
  %66 = load i32, ptr %65, align 4, !tbaa !32
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %76

68:                                               ; preds = %.lr.ph69
  %69 = sext i32 %64 to i64
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %69) #5
  %71 = load i32, ptr %70, align 4, !tbaa !32
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %74, label %73

73:                                               ; preds = %68
  call void @__assert_fail(ptr noundef nonnull @.str.71, ptr noundef nonnull @.str.18, i32 noundef 1394, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #4
  unreachable

74:                                               ; preds = %68
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %69) #5
  store i32 -2, ptr %75, align 4, !tbaa !32
  br label %76

76:                                               ; preds = %74, %.lr.ph69
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %78, label %.lr.ph69, label %._crit_edge70

79:                                               ; preds = %4
  %80 = getelementptr inbounds i8, ptr %0, i64 360
  %81 = load i32, ptr %80, align 8, !tbaa !31
  %82 = icmp eq i32 %81, %7
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  tail call void @__assert_fail(ptr noundef nonnull @.str.57, ptr noundef nonnull @.str.18, i32 noundef 1399, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #4
  unreachable

84:                                               ; preds = %79
  %85 = getelementptr inbounds i8, ptr %0, i64 368
  %86 = load i32, ptr %85, align 8, !tbaa !30
  %87 = icmp eq i32 %86, %8
  br i1 %87, label %.preheader59, label %90

.preheader59:                                     ; preds = %84
  %88 = icmp sgt i32 %7, 0
  br i1 %88, label %.lr.ph.preheader, label %.preheader58

.lr.ph.preheader:                                 ; preds = %.preheader59
  %89 = sext i32 %8 to i64
  br label %.lr.ph

90:                                               ; preds = %84
  tail call void @__assert_fail(ptr noundef nonnull @.str.58, ptr noundef nonnull @.str.18, i32 noundef 1400, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #4
  unreachable

.preheader58.loopexit:                            ; preds = %97
  %.pre = load i32, ptr %85, align 8, !tbaa !30
  br label %.preheader58

.preheader58:                                     ; preds = %.preheader58.loopexit, %.preheader59
  %91 = phi i32 [ %.pre, %.preheader58.loopexit ], [ %8, %.preheader59 ]
  %92 = icmp sgt i32 %91, 0
  br i1 %92, label %.lr.ph62, label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph.preheader, %97
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %97 ]
  %93 = add nsw i64 %indvars.iv, %89
  %94 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %93) #5
  %95 = load i32, ptr %94, align 4, !tbaa !32
  %.not = icmp eq i32 %95, -3
  br i1 %.not, label %96, label %97

96:                                               ; preds = %.lr.ph
  tail call void @__assert_fail(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.18, i32 noundef 1403, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3ipx5Model16DualizeBackBasisERKSt6vectorIiSaIiEERS3_S6_) #4
  unreachable

97:                                               ; preds = %.lr.ph
  %98 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %93) #5
  %99 = load i32, ptr %98, align 4, !tbaa !32
  %100 = icmp ne i32 %99, 0
  %101 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #5
  %.88 = sext i1 %100 to i32
  store i32 %.88, ptr %101, align 4, !tbaa !32
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %102 = load i32, ptr %80, align 8, !tbaa !31
  %103 = sext i32 %102 to i64
  %104 = icmp slt i64 %indvars.iv.next, %103
  br i1 %104, label %.lr.ph, label %.preheader58.loopexit, !llvm.loop !37

.lr.ph62:                                         ; preds = %.preheader58, %.lr.ph62
  %indvars.iv72 = phi i64 [ %indvars.iv.next73, %.lr.ph62 ], [ 0, %.preheader58 ]
  %105 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv72) #5
  %106 = load i32, ptr %105, align 4, !tbaa !32
  %107 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv72) #5
  store i32 %106, ptr %107, align 4, !tbaa !32
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %108 = load i32, ptr %85, align 8, !tbaa !30
  %109 = sext i32 %108 to i64
  %110 = icmp slt i64 %indvars.iv.next73, %109
  br i1 %110, label %.lr.ph62, label %.loopexit, !llvm.loop !38

.loopexit:                                        ; preds = %.lr.ph62, %.preheader58, %._crit_edge70
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 #4 = { noreturn nounwind }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN3ipx5ModelE", !7, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 24, !11, i64 152, !21, i64 280, !21, i64 296, !21, i64 312, !21, i64 328, !23, i64 344, !23, i64 352, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !12, i64 384, !24, i64 408, !23, i64 432, !23, i64 440, !23, i64 448, !21, i64 456, !21, i64 472, !21, i64 488, !21, i64 504, !11, i64 520, !12, i64 648, !21, i64 672, !21, i64 688}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSN3ipx12SparseMatrixE", !10, i64 0, !12, i64 8, !12, i64 32, !17, i64 56, !12, i64 80, !17, i64 104}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"_ZTSSt6vectorIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!21 = !{!"_ZTSSt8valarrayIdE", !22, i64 0, !16, i64 8}
!22 = !{!"long", !8, i64 0}
!23 = !{!"double", !8, i64 0}
!24 = !{!"_ZTSSt6vectorIcSaIcEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!6, !10, i64 368}
!31 = !{!6, !10, i64 360}
!32 = !{!10, !10, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!23, !23, i64 0}
!36 = distinct !{!36, !34}
!37 = distinct !{!37, !34}
!38 = distinct !{!38, !34}


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