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

; 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::KKTSolverDiag" = type <{ %"class.ipx::KKTSolver", ptr, ptr, %"class.ipx::NormalMatrix", %"class.ipx::DiagonalPrecond", %"class.std::valarray", %"class.std::valarray", i8, [3 x i8], i32, i32, [4 x i8] }>
%"class.ipx::KKTSolver" = type { ptr }
%"class.ipx::NormalMatrix" = type { %"class.ipx::LinearOperator", ptr, ptr, i8, %"class.std::valarray", double }
%"class.ipx::LinearOperator" = type { ptr }
%"class.ipx::DiagonalPrecond" = type { %"class.ipx::LinearOperator", ptr, i8, %"class.std::valarray", double }
%"class.std::valarray" = type { i64, ptr }
%struct.ipx_info = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, double, double, double, double }

@.str.11 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE = external hidden unnamed_addr constant [63 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(172) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %21 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 2
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %22)
  store i32 %23, ptr %7, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %24 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %25)
  store i32 %26, ptr %8, align 4, !tbaa !20
  %27 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 10
  store i32 0, ptr %27, align 8, !tbaa !21
  %28 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 7
  store i8 0, ptr %28, align 8, !tbaa !22
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %164

31:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx7Iterate2xlEv(ptr noundef nonnull align 8 dereferenceable(296) %32)
  store ptr %33, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx7Iterate2xuEv(ptr noundef nonnull align 8 dereferenceable(296) %34)
  store ptr %35, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx7Iterate2zlEv(ptr noundef nonnull align 8 dereferenceable(296) %36)
  store ptr %37, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx7Iterate2zuEv(ptr noundef nonnull align 8 dereferenceable(296) %38)
  store ptr %39, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = call noundef double @_ZNK3ipx7Iterate2muEv(ptr noundef nonnull align 8 dereferenceable(296) %40)
  store double %41, ptr %13, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !20
  br label %42

42:                                               ; preds = %114, %31
  %43 = load i32, ptr %14, align 4, !tbaa !20
  %44 = load i32, ptr %8, align 4, !tbaa !20
  %45 = load i32, ptr %7, align 4, !tbaa !20
  %46 = add nsw i32 %44, %45
  %47 = icmp slt i32 %43, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %117

49:                                               ; preds = %42
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = load i32, ptr %14, align 4, !tbaa !20
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %50, i64 noundef %52) #8
  %54 = load double, ptr %53, align 8, !tbaa !23
  %55 = fcmp ogt double %54, 0.000000e+00
  br i1 %55, label %56, label %57

56:                                               ; preds = %49
  br label %59

57:                                               ; preds = %49
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.12, i32 noundef 36, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE) #9
  unreachable

58:                                               ; No predecessors!
  br label %59

59:                                               ; preds = %58, %56
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = load i32, ptr %14, align 4, !tbaa !20
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %60, i64 noundef %62) #8
  %64 = load double, ptr %63, align 8, !tbaa !23
  %65 = fcmp ogt double %64, 0.000000e+00
  br i1 %65, label %66, label %67

66:                                               ; preds = %59
  br label %69

67:                                               ; preds = %59
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.12, i32 noundef 37, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE) #9
  unreachable

68:                                               ; No predecessors!
  br label %69

69:                                               ; preds = %68, %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = load i32, ptr %14, align 4, !tbaa !20
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %70, i64 noundef %72) #8
  %74 = load double, ptr %73, align 8, !tbaa !23
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = load i32, ptr %14, align 4, !tbaa !20
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %75, i64 noundef %77) #8
  %79 = load double, ptr %78, align 8, !tbaa !23
  %80 = fdiv double %74, %79
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = load i32, ptr %14, align 4, !tbaa !20
  %83 = sext i32 %82 to i64
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %81, i64 noundef %83) #8
  %85 = load double, ptr %84, align 8, !tbaa !23
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = load i32, ptr %14, align 4, !tbaa !20
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %86, i64 noundef %88) #8
  %90 = load double, ptr %89, align 8, !tbaa !23
  %91 = fdiv double %85, %90
  %92 = fadd double %80, %91
  store double %92, ptr %15, align 8, !tbaa !23
  %93 = load double, ptr %15, align 8, !tbaa !23
  %94 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %93)
  br i1 %94, label %95, label %96

95:                                               ; preds = %69
  br label %98

96:                                               ; preds = %69
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.12, i32 noundef 39, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE) #9
  unreachable

97:                                               ; No predecessors!
  br label %98

98:                                               ; preds = %97, %95
  %99 = load double, ptr %15, align 8, !tbaa !23
  %100 = fcmp une double %99, 0.000000e+00
  br i1 %100, label %101, label %107

101:                                              ; preds = %98
  %102 = load double, ptr %15, align 8, !tbaa !23
  %103 = load double, ptr %13, align 8, !tbaa !23
  %104 = fcmp olt double %102, %103
  br i1 %104, label %105, label %107

105:                                              ; preds = %101
  %106 = load double, ptr %15, align 8, !tbaa !23
  store double %106, ptr %13, align 8, !tbaa !23
  br label %107

107:                                              ; preds = %105, %101, %98
  %108 = load double, ptr %15, align 8, !tbaa !23
  %109 = fdiv double 1.000000e+00, %108
  %110 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 5
  %111 = load i32, ptr %14, align 4, !tbaa !20
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %110, i64 noundef %112) #8
  store double %109, ptr %113, align 8, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %114

114:                                              ; preds = %107
  %115 = load i32, ptr %14, align 4, !tbaa !20
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %14, align 4, !tbaa !20
  br label %42, !llvm.loop !24

117:                                              ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !20
  br label %118

118:                                              ; preds = %160, %117
  %119 = load i32, ptr %16, align 4, !tbaa !20
  %120 = load i32, ptr %8, align 4, !tbaa !20
  %121 = load i32, ptr %7, align 4, !tbaa !20
  %122 = add nsw i32 %120, %121
  %123 = icmp slt i32 %119, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %163

125:                                              ; preds = %118
  %126 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 5
  %127 = load i32, ptr %16, align 4, !tbaa !20
  %128 = sext i32 %127 to i64
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %126, i64 noundef %128) #8
  %130 = load double, ptr %129, align 8, !tbaa !23
  %131 = call noundef zeroext i1 @_ZSt5isinfd(double noundef %130)
  br i1 %131, label %132, label %139

132:                                              ; preds = %125
  %133 = load double, ptr %13, align 8, !tbaa !23
  %134 = fdiv double 1.000000e+00, %133
  %135 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 5
  %136 = load i32, ptr %16, align 4, !tbaa !20
  %137 = sext i32 %136 to i64
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %135, i64 noundef %137) #8
  store double %134, ptr %138, align 8, !tbaa !23
  br label %139

139:                                              ; preds = %132, %125
  %140 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 5
  %141 = load i32, ptr %16, align 4, !tbaa !20
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %140, i64 noundef %142) #8
  %144 = load double, ptr %143, align 8, !tbaa !23
  %145 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %144)
  br i1 %145, label %146, label %147

146:                                              ; preds = %139
  br label %149

147:                                              ; preds = %139
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.12, i32 noundef 47, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE) #9
  unreachable

148:                                              ; No predecessors!
  br label %149

149:                                              ; preds = %148, %146
  %150 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 5
  %151 = load i32, ptr %16, align 4, !tbaa !20
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %150, i64 noundef %152) #8
  %154 = load double, ptr %153, align 8, !tbaa !23
  %155 = fcmp ogt double %154, 0.000000e+00
  br i1 %155, label %156, label %157

156:                                              ; preds = %149
  br label %159

157:                                              ; preds = %149
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.12, i32 noundef 48, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE) #9
  unreachable

158:                                              ; No predecessors!
  br label %159

159:                                              ; preds = %158, %156
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %16, align 4, !tbaa !20
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %16, align 4, !tbaa !20
  br label %118, !llvm.loop !26

163:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %167

164:                                              ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store double 1.000000e+00, ptr %17, align 8, !tbaa !23
  %165 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 5
  %166 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSERKd(ptr noundef nonnull align 8 dereferenceable(16) %165, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %167

167:                                              ; preds = %164, %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !20
  br label %168

168:                                              ; preds = %187, %167
  %169 = load i32, ptr %18, align 4, !tbaa !20
  %170 = load i32, ptr %7, align 4, !tbaa !20
  %171 = icmp slt i32 %169, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %190

173:                                              ; preds = %168
  %174 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 5
  %175 = load i32, ptr %8, align 4, !tbaa !20
  %176 = load i32, ptr %18, align 4, !tbaa !20
  %177 = add nsw i32 %175, %176
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %174, i64 noundef %178) #8
  %180 = load double, ptr %179, align 8, !tbaa !23
  %181 = call double @sqrt(double noundef %180) #8
  %182 = fdiv double 1.000000e+00, %181
  %183 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 6
  %184 = load i32, ptr %18, align 4, !tbaa !20
  %185 = sext i32 %184 to i64
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %183, i64 noundef %185) #8
  store double %182, ptr %186, align 8, !tbaa !23
  br label %187

187:                                              ; preds = %173
  %188 = load i32, ptr %18, align 4, !tbaa !20
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %18, align 4, !tbaa !20
  br label %168, !llvm.loop !27

190:                                              ; preds = %172
  %191 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 3
  %192 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 5
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %192, i64 noundef 0) #8
  call void @_ZN3ipx12NormalMatrix7PrepareEPKd(ptr noundef nonnull align 8 dereferenceable(56) %191, ptr noundef %193)
  %194 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 4
  %195 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 5
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %195, i64 noundef 0) #8
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3ipx15DiagonalPrecond9FactorizeEPKdPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(48) %194, ptr noundef %196, ptr noundef %197)
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.ipx_info, ptr %198, i32 0, i32 3
  %200 = load i32, ptr %199, align 4, !tbaa !28
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %203

202:                                              ; preds = %190
  store i32 1, ptr %19, align 4
  br label %205

203:                                              ; preds = %190
  %204 = getelementptr inbounds %"class.ipx::KKTSolverDiag", ptr %20, i32 0, i32 7
  store i8 1, ptr %204, align 8, !tbaa !22
  store i32 0, ptr %19, align 4
  br label %205

205:                                              ; preds = %203, %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  %206 = load i32, ptr %19, align 4
  switch i32 %206, label %208 [
    i32 0, label %207
    i32 1, label %207
  ]

207:                                              ; preds = %205, %205
  ret void

208:                                              ; preds = %205
  unreachable
}

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

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

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

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

declare noundef double @_ZNK3ipx7Iterate2muEv(ptr noundef nonnull align 8 dereferenceable(296)) #3

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

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

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

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

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #7

declare void @_ZN3ipx12NormalMatrix7PrepareEPKd(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) #3

declare void @_ZN3ipx15DiagonalPrecond9FactorizeEPKdPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTSN3ipx13KKTSolverDiagE", !11, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !18, i64 80, !15, i64 128, !15, i64 144, !14, i64 160, !19, i64 164, !19, i64 168}
!11 = !{!"_ZTSN3ipx9KKTSolverE"}
!12 = !{!"_ZTSN3ipx12NormalMatrixE", !13, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !15, i64 32, !17, i64 48}
!13 = !{!"_ZTSN3ipx14LinearOperatorE"}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSSt8valarrayIdE", !16, i64 0, !6, i64 8}
!16 = !{!"long", !7, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!"_ZTSN3ipx15DiagonalPrecondE", !13, i64 0, !6, i64 8, !14, i64 16, !15, i64 24, !17, i64 40}
!19 = !{!"int", !7, i64 0}
!20 = !{!19, !19, i64 0}
!21 = !{!10, !19, i64 168}
!22 = !{!10, !14, i64 160}
!23 = !{!17, !17, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}
!28 = !{!29, !19, i64 12}
!29 = !{!"_ZTS8ipx_info", !19, i64 0, !19, i64 4, !19, i64 8, !19, i64 12, !19, i64 16, !19, i64 20, !19, i64 24, !19, i64 28, !19, i64 32, !19, i64 36, !19, i64 40, !19, i64 44, !19, i64 48, !19, i64 52, !19, i64 56, !19, i64 60, !19, i64 64, !19, i64 68, !19, i64 72, !19, i64 76, !17, i64 80, !17, i64 88, !17, i64 96, !17, i64 104, !17, i64 112, !17, i64 120, !17, i64 128, !17, i64 136, !17, i64 144, !17, i64 152, !17, i64 160, !17, i64 168, !17, i64 176, !17, i64 184, !19, i64 192, !19, i64 196, !19, i64 200, !19, i64 204, !19, i64 208, !19, i64 212, !19, i64 216, !17, i64 224, !17, i64 232, !17, i64 240, !17, i64 248, !17, i64 256, !17, i64 264, !17, i64 272, !17, i64 280, !17, i64 288, !17, i64 296, !17, i64 304, !17, i64 312, !17, i64 320, !17, i64 328, !17, i64 336, !17, i64 344, !17, i64 352, !17, i64 360, !17, i64 368, !17, i64 376, !17, i64 384, !17, i64 392, !17, i64 400, !17, i64 408, !19, i64 416, !19, i64 420, !19, i64 424, !19, i64 428, !17, i64 432, !17, i64 440, !17, i64 448, !17, i64 456}


; 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 [12 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE = external hidden unnamed_addr constant [63 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(172) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #2 align 2 {
  %4 = alloca double, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = tail call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %6)
  %8 = load ptr, ptr %5, align 8, !tbaa !5
  %9 = tail call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %8)
  %10 = getelementptr inbounds i8, ptr %0, i64 168
  store i32 0, ptr %10, align 8, !tbaa !19
  %11 = getelementptr inbounds i8, ptr %0, i64 160
  store i8 0, ptr %11, align 8, !tbaa !20
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %73, label %12

12:                                               ; preds = %3
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx7Iterate2xlEv(ptr noundef nonnull align 8 dereferenceable(296) %1)
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx7Iterate2xuEv(ptr noundef nonnull align 8 dereferenceable(296) %1)
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx7Iterate2zlEv(ptr noundef nonnull align 8 dereferenceable(296) %1)
  %16 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx7Iterate2zuEv(ptr noundef nonnull align 8 dereferenceable(296) %1)
  %17 = tail call noundef double @_ZNK3ipx7Iterate2muEv(ptr noundef nonnull align 8 dereferenceable(296) %1)
  %18 = add nsw i32 %9, %7
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %12
  %20 = getelementptr inbounds i8, ptr %0, i64 128
  %wide.trip.count = zext nneg i32 %18 to i64
  br label %23

.preheader:                                       ; preds = %51
  br i1 %19, label %.lr.ph63, label %.loopexit

.lr.ph63:                                         ; preds = %.preheader
  %21 = getelementptr inbounds i8, ptr %0, i64 128
  %22 = fdiv double 1.000000e+00, %.1
  %wide.trip.count70 = zext nneg i32 %18 to i64
  br label %57

23:                                               ; preds = %.lr.ph, %51
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %51 ]
  %.04760 = phi double [ %17, %.lr.ph ], [ %.1, %51 ]
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv) #8
  %25 = load double, ptr %24, align 8, !tbaa !21
  %26 = fcmp ogt double %25, 0.000000e+00
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  tail call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.12, i32 noundef 36, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE) #9
  unreachable

28:                                               ; preds = %23
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %indvars.iv) #8
  %30 = load double, ptr %29, align 8, !tbaa !21
  %31 = fcmp ogt double %30, 0.000000e+00
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.12, i32 noundef 37, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE) #9
  unreachable

33:                                               ; preds = %28
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %15, i64 noundef %indvars.iv) #8
  %35 = load double, ptr %34, align 8, !tbaa !21
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %indvars.iv) #8
  %37 = load double, ptr %36, align 8, !tbaa !21
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef %indvars.iv) #8
  %39 = load double, ptr %38, align 8, !tbaa !21
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %indvars.iv) #8
  %41 = load double, ptr %40, align 8, !tbaa !21
  %42 = insertelement <2 x double> poison, double %35, i64 0
  %43 = insertelement <2 x double> %42, double %39, i64 1
  %44 = insertelement <2 x double> poison, double %37, i64 0
  %45 = insertelement <2 x double> %44, double %41, i64 1
  %46 = fdiv <2 x double> %43, %45
  %shift = shufflevector <2 x double> %46, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %47 = fadd <2 x double> %46, %shift
  %48 = extractelement <2 x double> %47, i64 0
  %49 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %48)
  br i1 %49, label %51, label %50

50:                                               ; preds = %33
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.12, i32 noundef 39, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE) #9
  unreachable

51:                                               ; preds = %33
  %52 = fcmp une double %48, 0.000000e+00
  %53 = fcmp olt double %48, %.04760
  %or.cond = select i1 %52, i1 %53, i1 false
  %.1 = select i1 %or.cond, double %48, double %.04760
  %54 = fdiv double 1.000000e+00, %48
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %20, i64 noundef %indvars.iv) #8
  store double %54, ptr %55, align 8, !tbaa !21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %23, !llvm.loop !22

56:                                               ; preds = %68
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %exitcond71.not = icmp eq i64 %indvars.iv.next68, %wide.trip.count70
  br i1 %exitcond71.not, label %.loopexit, label %57, !llvm.loop !24

57:                                               ; preds = %.lr.ph63, %56
  %indvars.iv67 = phi i64 [ 0, %.lr.ph63 ], [ %indvars.iv.next68, %56 ]
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef %indvars.iv67) #8
  %59 = load double, ptr %58, align 8, !tbaa !21
  %60 = tail call noundef zeroext i1 @_ZSt5isinfd(double noundef %59)
  br i1 %60, label %61, label %63

61:                                               ; preds = %57
  %62 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef %indvars.iv67) #8
  store double %22, ptr %62, align 8, !tbaa !21
  br label %63

63:                                               ; preds = %61, %57
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef %indvars.iv67) #8
  %65 = load double, ptr %64, align 8, !tbaa !21
  %66 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %65)
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  tail call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.12, i32 noundef 47, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE) #9
  unreachable

68:                                               ; preds = %63
  %69 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef %indvars.iv67) #8
  %70 = load double, ptr %69, align 8, !tbaa !21
  %71 = fcmp ogt double %70, 0.000000e+00
  br i1 %71, label %56, label %72

72:                                               ; preds = %68
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.12, i32 noundef 48, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx13KKTSolverDiag10_FactorizeEPNS_7IterateEPNS_4InfoE) #9
  unreachable

73:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store double 1.000000e+00, ptr %4, align 8, !tbaa !21
  %74 = getelementptr inbounds i8, ptr %0, i64 128
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSERKd(ptr noundef nonnull align 8 dereferenceable(16) %74, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %.loopexit

.loopexit:                                        ; preds = %56, %12, %.preheader, %73
  %76 = icmp sgt i32 %7, 0
  br i1 %76, label %.lr.ph65, label %._crit_edge

.lr.ph65:                                         ; preds = %.loopexit
  %77 = getelementptr inbounds i8, ptr %0, i64 128
  %78 = getelementptr inbounds i8, ptr %0, i64 144
  %79 = sext i32 %9 to i64
  %wide.trip.count75 = zext nneg i32 %7 to i64
  br label %87

._crit_edge:                                      ; preds = %87, %.loopexit
  %80 = getelementptr inbounds i8, ptr %0, i64 24
  %81 = getelementptr inbounds i8, ptr %0, i64 128
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %81, i64 noundef 0) #8
  call void @_ZN3ipx12NormalMatrix7PrepareEPKd(ptr noundef nonnull align 8 dereferenceable(56) %80, ptr noundef nonnull %82)
  %83 = getelementptr inbounds i8, ptr %0, i64 80
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %81, i64 noundef 0) #8
  call void @_ZN3ipx15DiagonalPrecond9FactorizeEPKdPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(48) %83, ptr noundef nonnull %84, ptr noundef %2)
  %85 = getelementptr inbounds i8, ptr %2, i64 12
  %86 = load i32, ptr %85, align 4, !tbaa !25
  %.not52 = icmp eq i32 %86, 0
  br i1 %.not52, label %94, label %95

87:                                               ; preds = %.lr.ph65, %87
  %indvars.iv72 = phi i64 [ 0, %.lr.ph65 ], [ %indvars.iv.next73, %87 ]
  %88 = add nsw i64 %indvars.iv72, %79
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %77, i64 noundef %88) #8
  %90 = load double, ptr %89, align 8, !tbaa !21
  %91 = call double @sqrt(double noundef %90) #8
  %92 = fdiv double 1.000000e+00, %91
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %78, i64 noundef %indvars.iv72) #8
  store double %92, ptr %93, align 8, !tbaa !21
  %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_edge, label %87, !llvm.loop !27

94:                                               ; preds = %._crit_edge
  store i8 1, ptr %11, align 8, !tbaa !20
  br label %95

95:                                               ; preds = %._crit_edge, %94
  ret void
}

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

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

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

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

declare noundef double @_ZNK3ipx7Iterate2muEv(ptr noundef nonnull align 8 dereferenceable(296)) local_unnamed_addr #3

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

; 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 zeroext i1 @_ZSt8isfinited(double noundef) local_unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSERKd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #7

declare void @_ZN3ipx12NormalMatrix7PrepareEPKd(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) local_unnamed_addr #3

declare void @_ZN3ipx15DiagonalPrecond9FactorizeEPKdPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 = { 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 #7 = { mustprogress nofree nounwind willreturn memory(write) "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 #8 = { nounwind }
attributes #9 = { 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 16}
!6 = !{!"_ZTSN3ipx13KKTSolverDiagE", !7, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !17, i64 80, !14, i64 128, !14, i64 144, !13, i64 160, !18, i64 164, !18, i64 168}
!7 = !{!"_ZTSN3ipx9KKTSolverE"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN3ipx12NormalMatrixE", !12, i64 0, !8, i64 8, !8, i64 16, !13, i64 24, !14, i64 32, !16, i64 48}
!12 = !{!"_ZTSN3ipx14LinearOperatorE"}
!13 = !{!"bool", !9, i64 0}
!14 = !{!"_ZTSSt8valarrayIdE", !15, i64 0, !8, i64 8}
!15 = !{!"long", !9, i64 0}
!16 = !{!"double", !9, i64 0}
!17 = !{!"_ZTSN3ipx15DiagonalPrecondE", !12, i64 0, !8, i64 8, !13, i64 16, !14, i64 24, !16, i64 40}
!18 = !{!"int", !9, i64 0}
!19 = !{!6, !18, i64 168}
!20 = !{!6, !13, i64 160}
!21 = !{!16, !16, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!26, !18, i64 12}
!26 = !{!"_ZTS8ipx_info", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12, !18, i64 16, !18, i64 20, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !18, i64 40, !18, i64 44, !18, i64 48, !18, i64 52, !18, i64 56, !18, i64 60, !18, i64 64, !18, i64 68, !18, i64 72, !18, i64 76, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !18, i64 192, !18, i64 196, !18, i64 200, !18, i64 204, !18, i64 208, !18, i64 212, !18, i64 216, !16, i64 224, !16, i64 232, !16, i64 240, !16, i64 248, !16, i64 256, !16, i64 264, !16, i64 272, !16, i64 280, !16, i64 288, !16, i64 296, !16, i64 304, !16, i64 312, !16, i64 320, !16, i64 328, !16, i64 336, !16, i64 344, !16, i64 352, !16, i64 360, !16, i64 368, !16, i64 376, !16, i64 384, !16, i64 392, !16, i64 400, !16, i64 408, !18, i64 416, !18, i64 420, !18, i64 424, !18, i64 428, !16, i64 432, !16, i64 440, !16, i64 448, !16, i64 456}
!27 = distinct !{!27, !23}


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