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

; 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::ForrestTomlin" = type { %"class.ipx::LuUpdate.base", ptr, i32, %"class.std::unique_ptr", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.ipx::SparseMatrix", %"class.ipx::SparseMatrix", %"class.ipx::SparseMatrix", %"class.std::vector", i32, i8, i8, double, double, %"class.std::valarray" }
%"class.ipx::LuUpdate.base" = type <{ ptr, i32 }>
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.ipx::SparseMatrix" = type { i32, %"class.std::vector", %"class.std::vector", %"class.std::vector.5", %"class.std::vector", %"class.std::vector.5" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [30 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx13ForrestTomlin13SolvePermutedERSt8valarrayIdEc = external hidden unnamed_addr constant [55 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [36 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 uwtable
define dso_local void @_ZN3ipx13ForrestTomlin13SolvePermutedERSt8valarrayIdEc(ptr noundef nonnull align 8 dereferenceable(608) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i8 %2, ptr %6, align 1, !tbaa !9
  %12 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %13 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 12
  %14 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %15 = trunc i64 %14 to i32
  store i32 %15, ptr %7, align 4, !tbaa !10
  %16 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 10
  %17 = call noundef i32 @_ZNK3ipx12SparseMatrix4colsEv(ptr noundef nonnull align 8 dereferenceable(128) %16)
  %18 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 2
  %19 = load i32, ptr %18, align 8, !tbaa !12
  %20 = load i32, ptr %7, align 4, !tbaa !10
  %21 = add nsw i32 %19, %20
  %22 = icmp eq i32 %17, %21
  br i1 %22, label %23, label %24

23:                                               ; preds = %3
  br label %26

24:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.17, i32 noundef 252, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx13ForrestTomlin13SolvePermutedERSt8valarrayIdEc) #8
  unreachable

25:                                               ; No predecessors!
  br label %26

26:                                               ; preds = %25, %23
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call noundef i64 @_ZNKSt8valarrayIdE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
  %29 = trunc i64 %28 to i32
  %30 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 2
  %31 = load i32, ptr %30, align 8, !tbaa !12
  %32 = load i32, ptr %7, align 4, !tbaa !10
  %33 = add nsw i32 %31, %32
  %34 = icmp sge i32 %29, %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %26
  br label %38

36:                                               ; preds = %26
  call void @__assert_fail(ptr noundef @.str.23, ptr noundef @.str.17, i32 noundef 255, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx13ForrestTomlin13SolvePermutedERSt8valarrayIdEc) #8
  unreachable

37:                                               ; No predecessors!
  br label %38

38:                                               ; preds = %37, %35
  %39 = load i8, ptr %6, align 1, !tbaa !9
  %40 = sext i8 %39 to i32
  %41 = icmp eq i32 %40, 116
  br i1 %41, label %46, label %42

42:                                               ; preds = %38
  %43 = load i8, ptr %6, align 1, !tbaa !9
  %44 = sext i8 %43 to i32
  %45 = icmp eq i32 %44, 84
  br i1 %45, label %46, label %133

46:                                               ; preds = %42, %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !10
  br label %47

47:                                               ; preds = %77, %46
  %48 = load i32, ptr %8, align 4, !tbaa !10
  %49 = load i32, ptr %7, align 4, !tbaa !10
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %80

52:                                               ; preds = %47
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 12
  %55 = load i32, ptr %8, align 4, !tbaa !10
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %56) #7
  %58 = load i32, ptr %57, align 4, !tbaa !10
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %53, i64 noundef %59) #7
  %61 = load double, ptr %60, align 8, !tbaa !34
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 2
  %64 = load i32, ptr %63, align 8, !tbaa !12
  %65 = load i32, ptr %8, align 4, !tbaa !10
  %66 = add nsw i32 %64, %65
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %62, i64 noundef %67) #7
  store double %61, ptr %68, align 8, !tbaa !34
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 12
  %71 = load i32, ptr %8, align 4, !tbaa !10
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %72) #7
  %74 = load i32, ptr %73, align 4, !tbaa !10
  %75 = sext i32 %74 to i64
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %69, i64 noundef %75) #7
  store double 0.000000e+00, ptr %76, align 8, !tbaa !34
  br label %77

77:                                               ; preds = %52
  %78 = load i32, ptr %8, align 4, !tbaa !10
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %8, align 4, !tbaa !10
  br label %47, !llvm.loop !35

80:                                               ; preds = %51
  %81 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 10
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = call noundef i32 @_ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci(ptr noundef nonnull align 8 dereferenceable(128) %81, ptr noundef nonnull align 8 dereferenceable(16) %82, i8 noundef signext 116, ptr noundef @.str.12, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %84 = load i32, ptr %7, align 4, !tbaa !10
  %85 = sub nsw i32 %84, 1
  store i32 %85, ptr %9, align 4, !tbaa !10
  br label %86

86:                                               ; preds = %126, %80
  %87 = load i32, ptr %9, align 4, !tbaa !10
  %88 = icmp sge i32 %87, 0
  br i1 %88, label %90, label %89

89:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %129

90:                                               ; preds = %86
  %91 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 11
  %92 = load i32, ptr %9, align 4, !tbaa !10
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 2
  %95 = load i32, ptr %94, align 8, !tbaa !12
  %96 = load i32, ptr %9, align 4, !tbaa !10
  %97 = add nsw i32 %95, %96
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %93, i64 noundef %98) #7
  %100 = load double, ptr %99, align 8, !tbaa !34
  %101 = fneg double %100
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3ipx13ScatterColumnERKNS_12SparseMatrixEidRSt8valarrayIdE(ptr noundef nonnull align 8 dereferenceable(128) %91, i32 noundef %92, double noundef %101, ptr noundef nonnull align 8 dereferenceable(16) %102)
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 2
  %105 = load i32, ptr %104, align 8, !tbaa !12
  %106 = load i32, ptr %9, align 4, !tbaa !10
  %107 = add nsw i32 %105, %106
  %108 = sext i32 %107 to i64
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %103, i64 noundef %108) #7
  %110 = load double, ptr %109, align 8, !tbaa !34
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 12
  %113 = load i32, ptr %9, align 4, !tbaa !10
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %114) #7
  %116 = load i32, ptr %115, align 4, !tbaa !10
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %111, i64 noundef %117) #7
  store double %110, ptr %118, align 8, !tbaa !34
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 2
  %121 = load i32, ptr %120, align 8, !tbaa !12
  %122 = load i32, ptr %9, align 4, !tbaa !10
  %123 = add nsw i32 %121, %122
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %119, i64 noundef %124) #7
  store double 0.000000e+00, ptr %125, align 8, !tbaa !34
  br label %126

126:                                              ; preds = %90
  %127 = load i32, ptr %9, align 4, !tbaa !10
  %128 = add nsw i32 %127, -1
  store i32 %128, ptr %9, align 4, !tbaa !10
  br label %86, !llvm.loop !37

129:                                              ; preds = %89
  %130 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 9
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = call noundef i32 @_ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci(ptr noundef nonnull align 8 dereferenceable(128) %130, ptr noundef nonnull align 8 dereferenceable(16) %131, i8 noundef signext 116, ptr noundef @.str.11, i32 noundef 1)
  br label %213

133:                                              ; preds = %42
  %134 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 9
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = call noundef i32 @_ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci(ptr noundef nonnull align 8 dereferenceable(128) %134, ptr noundef nonnull align 8 dereferenceable(16) %135, i8 noundef signext 110, ptr noundef @.str.11, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !10
  br label %137

137:                                              ; preds = %172, %133
  %138 = load i32, ptr %10, align 4, !tbaa !10
  %139 = load i32, ptr %7, align 4, !tbaa !10
  %140 = icmp slt i32 %138, %139
  br i1 %140, label %142, label %141

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

142:                                              ; preds = %137
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 12
  %145 = load i32, ptr %10, align 4, !tbaa !10
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %146) #7
  %148 = load i32, ptr %147, align 4, !tbaa !10
  %149 = sext i32 %148 to i64
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %143, i64 noundef %149) #7
  %151 = load double, ptr %150, align 8, !tbaa !34
  %152 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 11
  %153 = load i32, ptr %10, align 4, !tbaa !10
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = call noundef double @_ZN3ipx9DotColumnERKNS_12SparseMatrixEiRKSt8valarrayIdE(ptr noundef nonnull align 8 dereferenceable(128) %152, i32 noundef %153, ptr noundef nonnull align 8 dereferenceable(16) %154)
  %156 = fsub double %151, %155
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 2
  %159 = load i32, ptr %158, align 8, !tbaa !12
  %160 = load i32, ptr %10, align 4, !tbaa !10
  %161 = add nsw i32 %159, %160
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %157, i64 noundef %162) #7
  store double %156, ptr %163, align 8, !tbaa !34
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 12
  %166 = load i32, ptr %10, align 4, !tbaa !10
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %167) #7
  %169 = load i32, ptr %168, align 4, !tbaa !10
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %164, i64 noundef %170) #7
  store double 0.000000e+00, ptr %171, align 8, !tbaa !34
  br label %172

172:                                              ; preds = %142
  %173 = load i32, ptr %10, align 4, !tbaa !10
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %10, align 4, !tbaa !10
  br label %137, !llvm.loop !38

175:                                              ; preds = %141
  %176 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 10
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = call noundef i32 @_ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci(ptr noundef nonnull align 8 dereferenceable(128) %176, ptr noundef nonnull align 8 dereferenceable(16) %177, i8 noundef signext 110, ptr noundef @.str.12, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %179 = load i32, ptr %7, align 4, !tbaa !10
  %180 = sub nsw i32 %179, 1
  store i32 %180, ptr %11, align 4, !tbaa !10
  br label %181

181:                                              ; preds = %209, %175
  %182 = load i32, ptr %11, align 4, !tbaa !10
  %183 = icmp sge i32 %182, 0
  br i1 %183, label %185, label %184

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

185:                                              ; preds = %181
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 2
  %188 = load i32, ptr %187, align 8, !tbaa !12
  %189 = load i32, ptr %11, align 4, !tbaa !10
  %190 = add nsw i32 %188, %189
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %186, i64 noundef %191) #7
  %193 = load double, ptr %192, align 8, !tbaa !34
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 12
  %196 = load i32, ptr %11, align 4, !tbaa !10
  %197 = sext i32 %196 to i64
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %195, i64 noundef %197) #7
  %199 = load i32, ptr %198, align 4, !tbaa !10
  %200 = sext i32 %199 to i64
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %194, i64 noundef %200) #7
  store double %193, ptr %201, align 8, !tbaa !34
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = getelementptr inbounds %"class.ipx::ForrestTomlin", ptr %12, i32 0, i32 2
  %204 = load i32, ptr %203, align 8, !tbaa !12
  %205 = load i32, ptr %11, align 4, !tbaa !10
  %206 = add nsw i32 %204, %205
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %202, i64 noundef %207) #7
  store double 0.000000e+00, ptr %208, align 8, !tbaa !34
  br label %209

209:                                              ; preds = %185
  %210 = load i32, ptr %11, align 4, !tbaa !10
  %211 = add nsw i32 %210, -1
  store i32 %211, ptr %11, align 4, !tbaa !10
  br label %181, !llvm.loop !39

212:                                              ; preds = %184
  br label %213

213:                                              ; preds = %212, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  ret void
}

declare noundef i32 @_ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext, ptr noundef, i32 noundef) #2

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

; 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) #3 align 2

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 24}
!13 = !{!"_ZTSN3ipx13ForrestTomlinE", !14, i64 0, !6, i64 16, !11, i64 24, !15, i64 32, !21, i64 40, !21, i64 64, !21, i64 88, !21, i64 112, !21, i64 136, !25, i64 160, !25, i64 288, !25, i64 416, !21, i64 544, !11, i64 568, !30, i64 572, !30, i64 573, !31, i64 576, !31, i64 584, !32, i64 592}
!14 = !{!"_ZTSN3ipx8LuUpdateE", !11, i64 8}
!15 = !{!"_ZTSSt10unique_ptrIN3ipx15LuFactorizationESt14default_deleteIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_dataIN3ipx15LuFactorizationESt14default_deleteIS1_ELb1ELb1EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_implIN3ipx15LuFactorizationESt14default_deleteIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt5tupleIJPN3ipx15LuFactorizationESt14default_deleteIS1_EEE", !19, i64 0}
!19 = !{!"_ZTSSt11_Tuple_implILm0EJPN3ipx15LuFactorizationESt14default_deleteIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt10_Head_baseILm0EPN3ipx15LuFactorizationELb0EE", !6, i64 0}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSN3ipx12SparseMatrixE", !11, i64 0, !21, i64 8, !21, i64 32, !26, i64 56, !21, i64 80, !26, i64 104}
!26 = !{!"_ZTSSt6vectorIdSaIdEE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"double", !7, i64 0}
!32 = !{!"_ZTSSt8valarrayIdE", !33, i64 0, !6, i64 8}
!33 = !{!"long", !7, i64 0}
!34 = !{!31, !31, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = distinct !{!38, !36}
!39 = distinct !{!39, !36}


; 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.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [30 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx13ForrestTomlin13SolvePermutedERSt8valarrayIdEc = external hidden unnamed_addr constant [55 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3ipx13ForrestTomlin13SolvePermutedERSt8valarrayIdEc(ptr noundef nonnull align 8 dereferenceable(608) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext %2) local_unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 544
  %5 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %6 = trunc i64 %5 to i32
  %7 = getelementptr inbounds i8, ptr %0, i64 288
  %8 = tail call noundef i32 @_ZNK3ipx12SparseMatrix4colsEv(ptr noundef nonnull align 8 dereferenceable(128) %7)
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = add nsw i32 %10, %6
  %12 = icmp eq i32 %8, %11
  br i1 %12, label %14, label %13

13:                                               ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.17, i32 noundef 252, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx13ForrestTomlin13SolvePermutedERSt8valarrayIdEc) #7
  unreachable

14:                                               ; preds = %3
  %15 = tail call noundef i64 @_ZNKSt8valarrayIdE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %16 = trunc i64 %15 to i32
  %17 = load i32, ptr %9, align 8, !tbaa !5
  %18 = add nsw i32 %17, %6
  %.not = icmp sgt i32 %18, %16
  br i1 %.not, label %19, label %20

19:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.17, i32 noundef 255, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx13ForrestTomlin13SolvePermutedERSt8valarrayIdEc) #7
  unreachable

20:                                               ; preds = %14
  %21 = and i8 %2, -33
  %or.cond = icmp eq i8 %21, 84
  br i1 %or.cond, label %.preheader, label %65

.preheader:                                       ; preds = %20
  %22 = icmp sgt i32 %6, 0
  br i1 %22, label %.lr.ph62.preheader, label %._crit_edge63.thread

._crit_edge63.thread:                             ; preds = %.preheader
  %23 = tail call noundef i32 @_ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci(ptr noundef nonnull align 8 dereferenceable(128) %7, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 116, ptr noundef nonnull @.str.12, i32 noundef 0)
  br label %._crit_edge67

.lr.ph62.preheader:                               ; preds = %.preheader
  %wide.trip.count75 = and i64 %5, 2147483647
  br label %.lr.ph62

._crit_edge63:                                    ; preds = %.lr.ph62
  %24 = tail call noundef i32 @_ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci(ptr noundef nonnull align 8 dereferenceable(128) %7, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 116, ptr noundef nonnull @.str.12, i32 noundef 0)
  br i1 %22, label %.lr.ph66, label %._crit_edge67

.lr.ph66:                                         ; preds = %._crit_edge63
  %25 = getelementptr inbounds i8, ptr %0, i64 416
  %26 = and i64 %5, 2147483647
  br label %43

.lr.ph62:                                         ; preds = %.lr.ph62.preheader, %.lr.ph62
  %indvars.iv72 = phi i64 [ 0, %.lr.ph62.preheader ], [ %indvars.iv.next73, %.lr.ph62 ]
  %27 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv72) #6
  %28 = load i32, ptr %27, align 4, !tbaa !31
  %29 = sext i32 %28 to i64
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %29) #6
  %31 = load double, ptr %30, align 8, !tbaa !32
  %32 = load i32, ptr %9, align 8, !tbaa !5
  %33 = trunc nuw nsw i64 %indvars.iv72 to i32
  %34 = add nsw i32 %32, %33
  %35 = sext i32 %34 to i64
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %35) #6
  store double %31, ptr %36, align 8, !tbaa !32
  %37 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv72) #6
  %38 = load i32, ptr %37, align 4, !tbaa !31
  %39 = sext i32 %38 to i64
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %39) #6
  store double 0.000000e+00, ptr %40, align 8, !tbaa !32
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %exitcond76.not = icmp eq i64 %indvars.iv.next73, %wide.trip.count75
  br i1 %exitcond76.not, label %._crit_edge63, label %.lr.ph62, !llvm.loop !33

._crit_edge67:                                    ; preds = %43, %._crit_edge63.thread, %._crit_edge63
  %41 = getelementptr inbounds i8, ptr %0, i64 160
  %42 = tail call noundef i32 @_ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci(ptr noundef nonnull align 8 dereferenceable(128) %41, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 116, ptr noundef nonnull @.str.11, i32 noundef 1)
  br label %.loopexit

43:                                               ; preds = %.lr.ph66, %43
  %indvars.iv77 = phi i64 [ %26, %.lr.ph66 ], [ %indvars.iv.next78, %43 ]
  %indvars.iv.next78 = add nsw i64 %indvars.iv77, -1
  %44 = load i32, ptr %9, align 8, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = add nsw i64 %indvars.iv.next78, %45
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %46) #6
  %48 = load double, ptr %47, align 8, !tbaa !32
  %49 = fneg double %48
  %50 = trunc nuw nsw i64 %indvars.iv.next78 to i32
  tail call void @_ZN3ipx13ScatterColumnERKNS_12SparseMatrixEidRSt8valarrayIdE(ptr noundef nonnull align 8 dereferenceable(128) %25, i32 noundef %50, double noundef %49, ptr noundef nonnull align 8 dereferenceable(16) %1)
  %51 = load i32, ptr %9, align 8, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = add nsw i64 %indvars.iv.next78, %52
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %53) #6
  %55 = load double, ptr %54, align 8, !tbaa !32
  %56 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.next78) #6
  %57 = load i32, ptr %56, align 4, !tbaa !31
  %58 = sext i32 %57 to i64
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %58) #6
  store double %55, ptr %59, align 8, !tbaa !32
  %60 = load i32, ptr %9, align 8, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = add nsw i64 %indvars.iv.next78, %61
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %62) #6
  store double 0.000000e+00, ptr %63, align 8, !tbaa !32
  %64 = icmp ugt i64 %indvars.iv77, 1
  br i1 %64, label %43, label %._crit_edge67, !llvm.loop !35

65:                                               ; preds = %20
  %66 = getelementptr inbounds i8, ptr %0, i64 160
  %67 = tail call noundef i32 @_ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci(ptr noundef nonnull align 8 dereferenceable(128) %66, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 110, ptr noundef nonnull @.str.11, i32 noundef 1)
  %68 = icmp sgt i32 %6, 0
  br i1 %68, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %65
  %69 = tail call noundef i32 @_ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci(ptr noundef nonnull align 8 dereferenceable(128) %7, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 110, ptr noundef nonnull @.str.12, i32 noundef 0)
  br label %.loopexit

.lr.ph:                                           ; preds = %65
  %70 = getelementptr inbounds i8, ptr %0, i64 416
  %wide.trip.count = and i64 %5, 2147483647
  br label %73

._crit_edge:                                      ; preds = %73
  %71 = tail call noundef i32 @_ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci(ptr noundef nonnull align 8 dereferenceable(128) %7, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext 110, ptr noundef nonnull @.str.12, i32 noundef 0)
  br i1 %68, label %.lr.ph60.preheader, label %.loopexit

.lr.ph60.preheader:                               ; preds = %._crit_edge
  %72 = and i64 %5, 2147483647
  br label %.lr.ph60

73:                                               ; preds = %.lr.ph, %73
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %73 ]
  %74 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #6
  %75 = load i32, ptr %74, align 4, !tbaa !31
  %76 = sext i32 %75 to i64
  %77 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %76) #6
  %78 = load double, ptr %77, align 8, !tbaa !32
  %79 = trunc nuw nsw i64 %indvars.iv to i32
  %80 = tail call noundef double @_ZN3ipx9DotColumnERKNS_12SparseMatrixEiRKSt8valarrayIdE(ptr noundef nonnull align 8 dereferenceable(128) %70, i32 noundef %79, ptr noundef nonnull align 8 dereferenceable(16) %1)
  %81 = fsub double %78, %80
  %82 = load i32, ptr %9, align 8, !tbaa !5
  %83 = add nsw i32 %82, %79
  %84 = sext i32 %83 to i64
  %85 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %84) #6
  store double %81, ptr %85, align 8, !tbaa !32
  %86 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #6
  %87 = load i32, ptr %86, align 4, !tbaa !31
  %88 = sext i32 %87 to i64
  %89 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %88) #6
  store double 0.000000e+00, ptr %89, align 8, !tbaa !32
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %73, !llvm.loop !36

.lr.ph60:                                         ; preds = %.lr.ph60.preheader, %.lr.ph60
  %indvars.iv69 = phi i64 [ %72, %.lr.ph60.preheader ], [ %indvars.iv.next70, %.lr.ph60 ]
  %indvars.iv.next70 = add nsw i64 %indvars.iv69, -1
  %90 = load i32, ptr %9, align 8, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = add nsw i64 %indvars.iv.next70, %91
  %93 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %92) #6
  %94 = load double, ptr %93, align 8, !tbaa !32
  %95 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.next70) #6
  %96 = load i32, ptr %95, align 4, !tbaa !31
  %97 = sext i32 %96 to i64
  %98 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %97) #6
  store double %94, ptr %98, align 8, !tbaa !32
  %99 = load i32, ptr %9, align 8, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = add nsw i64 %indvars.iv.next70, %100
  %102 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %101) #6
  store double 0.000000e+00, ptr %102, align 8, !tbaa !32
  %103 = icmp ugt i64 %indvars.iv69, 1
  br i1 %103, label %.lr.ph60, label %.loopexit, !llvm.loop !37

.loopexit:                                        ; preds = %.lr.ph60, %._crit_edge.thread, %._crit_edge, %._crit_edge67
  ret void
}

declare noundef i32 @_ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext, ptr noundef, i32 noundef) local_unnamed_addr #1

; 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: 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 #3 align 2

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ipx13ScatterColumnERKNS_12SparseMatrixEidRSt8valarrayIdE(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

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

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

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

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

attributes #0 = { 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 #1 = { "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 = { 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 = { 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 #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, !8, i64 24}
!6 = !{!"_ZTSN3ipx13ForrestTomlinE", !7, i64 0, !11, i64 16, !8, i64 24, !12, i64 32, !18, i64 40, !18, i64 64, !18, i64 88, !18, i64 112, !18, i64 136, !22, i64 160, !22, i64 288, !22, i64 416, !18, i64 544, !8, i64 568, !27, i64 572, !27, i64 573, !28, i64 576, !28, i64 584, !29, i64 592}
!7 = !{!"_ZTSN3ipx8LuUpdateE", !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTSSt10unique_ptrIN3ipx15LuFactorizationESt14default_deleteIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt15__uniq_ptr_dataIN3ipx15LuFactorizationESt14default_deleteIS1_ELb1ELb1EE", !14, i64 0}
!14 = !{!"_ZTSSt15__uniq_ptr_implIN3ipx15LuFactorizationESt14default_deleteIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt5tupleIJPN3ipx15LuFactorizationESt14default_deleteIS1_EEE", !16, i64 0}
!16 = !{!"_ZTSSt11_Tuple_implILm0EJPN3ipx15LuFactorizationESt14default_deleteIS1_EEE", !17, i64 0}
!17 = !{!"_ZTSSt10_Head_baseILm0EPN3ipx15LuFactorizationELb0EE", !11, i64 0}
!18 = !{!"_ZTSSt6vectorIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!22 = !{!"_ZTSN3ipx12SparseMatrixE", !8, i64 0, !18, i64 8, !18, i64 32, !23, i64 56, !18, i64 80, !23, i64 104}
!23 = !{!"_ZTSSt6vectorIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!27 = !{!"bool", !9, i64 0}
!28 = !{!"double", !9, i64 0}
!29 = !{!"_ZTSSt8valarrayIdE", !30, i64 0, !11, i64 8}
!30 = !{!"long", !9, i64 0}
!31 = !{!8, !8, i64 0}
!32 = !{!28, !28, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}
!36 = distinct !{!36, !34}
!37 = distinct !{!37, !34}


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