; LLVM IR from ERGO-Code/HiGHS :: src/ipm/basiclu (basiclu_solve_for_update)

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

%struct.lu = type { i32, i32, i32, double, double, double, i32, i32, i32, double, double, double, 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, i32, i32, i32, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local i32 @basiclu_solve_for_update(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, i8 noundef signext %14) #0 {
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i8, align 1
  %32 = alloca %struct.lu, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  store ptr %0, ptr %17, align 8, !tbaa !5
  store ptr %1, ptr %18, align 8, !tbaa !5
  store ptr %2, ptr %19, align 8, !tbaa !5
  store ptr %3, ptr %20, align 8, !tbaa !5
  store ptr %4, ptr %21, align 8, !tbaa !5
  store ptr %5, ptr %22, align 8, !tbaa !5
  store ptr %6, ptr %23, align 8, !tbaa !5
  store ptr %7, ptr %24, align 8, !tbaa !5
  store i32 %8, ptr %25, align 4, !tbaa !9
  store ptr %9, ptr %26, align 8, !tbaa !5
  store ptr %10, ptr %27, align 8, !tbaa !5
  store ptr %11, ptr %28, align 8, !tbaa !5
  store ptr %12, ptr %29, align 8, !tbaa !5
  store ptr %13, ptr %30, align 8, !tbaa !5
  store i8 %14, ptr %31, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 696, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #3
  %37 = load ptr, ptr %17, align 8, !tbaa !5
  %38 = load ptr, ptr %18, align 8, !tbaa !5
  %39 = load ptr, ptr %19, align 8, !tbaa !5
  %40 = load ptr, ptr %20, align 8, !tbaa !5
  %41 = load ptr, ptr %21, align 8, !tbaa !5
  %42 = load ptr, ptr %22, align 8, !tbaa !5
  %43 = load ptr, ptr %23, align 8, !tbaa !5
  %44 = load ptr, ptr %24, align 8, !tbaa !5
  %45 = call i32 @lu_load(ptr noundef %32, ptr noundef %37, ptr noundef %38, ptr noundef %39, ptr noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %43, ptr noundef %44)
  store i32 %45, ptr %33, align 4, !tbaa !9
  %46 = load i32, ptr %33, align 4, !tbaa !9
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %50

48:                                               ; preds = %15
  %49 = load i32, ptr %33, align 4, !tbaa !9
  store i32 %49, ptr %16, align 4
  store i32 1, ptr %36, align 4
  br label %190

50:                                               ; preds = %15
  %51 = load ptr, ptr %19, align 8, !tbaa !5
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %71

53:                                               ; preds = %50
  %54 = load ptr, ptr %20, align 8, !tbaa !5
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %71

56:                                               ; preds = %53
  %57 = load ptr, ptr %21, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %71

59:                                               ; preds = %56
  %60 = load ptr, ptr %22, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %71

62:                                               ; preds = %59
  %63 = load ptr, ptr %23, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %71

65:                                               ; preds = %62
  %66 = load ptr, ptr %24, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %71

68:                                               ; preds = %65
  %69 = load ptr, ptr %26, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %72, label %71

71:                                               ; preds = %68, %65, %62, %59, %56, %53, %50
  store i32 -3, ptr %33, align 4, !tbaa !9
  br label %173

72:                                               ; preds = %68
  %73 = load i8, ptr %31, align 1, !tbaa !11
  %74 = sext i8 %73 to i32
  %75 = icmp ne i32 %74, 116
  br i1 %75, label %76, label %84

76:                                               ; preds = %72
  %77 = load i8, ptr %31, align 1, !tbaa !11
  %78 = sext i8 %77 to i32
  %79 = icmp ne i32 %78, 84
  br i1 %79, label %80, label %84

80:                                               ; preds = %76
  %81 = load ptr, ptr %27, align 8, !tbaa !5
  %82 = icmp ne ptr %81, null
  br i1 %82, label %84, label %83

83:                                               ; preds = %80
  store i32 -3, ptr %33, align 4, !tbaa !9
  br label %172

84:                                               ; preds = %80, %76, %72
  %85 = getelementptr inbounds %struct.lu, ptr %32, i32 0, i32 17
  %86 = load i32, ptr %85, align 4, !tbaa !12
  %87 = icmp slt i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %84
  store i32 -2, ptr %33, align 4, !tbaa !9
  br label %171

89:                                               ; preds = %84
  %90 = getelementptr inbounds %struct.lu, ptr %32, i32 0, i32 18
  %91 = load i32, ptr %90, align 8, !tbaa !15
  %92 = getelementptr inbounds %struct.lu, ptr %32, i32 0, i32 13
  %93 = load i32, ptr %92, align 4, !tbaa !16
  %94 = icmp eq i32 %91, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %89
  store i32 -5, ptr %33, align 4, !tbaa !9
  br label %170

96:                                               ; preds = %89
  %97 = load i8, ptr %31, align 1, !tbaa !11
  %98 = sext i8 %97 to i32
  %99 = icmp eq i32 %98, 116
  br i1 %99, label %104, label %100

100:                                              ; preds = %96
  %101 = load i8, ptr %31, align 1, !tbaa !11
  %102 = sext i8 %101 to i32
  %103 = icmp eq i32 %102, 84
  br i1 %103, label %104, label %119

104:                                              ; preds = %100, %96
  %105 = load ptr, ptr %26, align 8, !tbaa !5
  %106 = getelementptr inbounds i32, ptr %105, i64 0
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = icmp sge i32 %107, 0
  br i1 %108, label %109, label %116

109:                                              ; preds = %104
  %110 = load ptr, ptr %26, align 8, !tbaa !5
  %111 = getelementptr inbounds i32, ptr %110, i64 0
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %113 = getelementptr inbounds %struct.lu, ptr %32, i32 0, i32 13
  %114 = load i32, ptr %113, align 4, !tbaa !16
  %115 = icmp slt i32 %112, %114
  br label %116

116:                                              ; preds = %109, %104
  %117 = phi i1 [ false, %104 ], [ %115, %109 ]
  %118 = zext i1 %117 to i32
  store i32 %118, ptr %35, align 4, !tbaa !9
  br label %165

119:                                              ; preds = %100
  %120 = load i32, ptr %25, align 4, !tbaa !9
  %121 = icmp sge i32 %120, 0
  br i1 %121, label %122, label %127

122:                                              ; preds = %119
  %123 = load i32, ptr %25, align 4, !tbaa !9
  %124 = getelementptr inbounds %struct.lu, ptr %32, i32 0, i32 13
  %125 = load i32, ptr %124, align 4, !tbaa !16
  %126 = icmp sle i32 %123, %125
  br label %127

127:                                              ; preds = %122, %119
  %128 = phi i1 [ false, %119 ], [ %126, %122 ]
  %129 = zext i1 %128 to i32
  store i32 %129, ptr %35, align 4, !tbaa !9
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %161, %127
  %131 = load i32, ptr %34, align 4, !tbaa !9
  %132 = load i32, ptr %25, align 4, !tbaa !9
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %134, label %137

134:                                              ; preds = %130
  %135 = load i32, ptr %35, align 4, !tbaa !9
  %136 = icmp ne i32 %135, 0
  br label %137

137:                                              ; preds = %134, %130
  %138 = phi i1 [ false, %130 ], [ %136, %134 ]
  br i1 %138, label %139, label %164

139:                                              ; preds = %137
  %140 = load i32, ptr %35, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %158

142:                                              ; preds = %139
  %143 = load ptr, ptr %26, align 8, !tbaa !5
  %144 = load i32, ptr %34, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds i32, ptr %143, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = icmp sge i32 %147, 0
  br i1 %148, label %149, label %158

149:                                              ; preds = %142
  %150 = load ptr, ptr %26, align 8, !tbaa !5
  %151 = load i32, ptr %34, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds i32, ptr %150, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = getelementptr inbounds %struct.lu, ptr %32, i32 0, i32 13
  %156 = load i32, ptr %155, align 4, !tbaa !16
  %157 = icmp slt i32 %154, %156
  br label %158

158:                                              ; preds = %149, %142, %139
  %159 = phi i1 [ false, %142 ], [ false, %139 ], [ %157, %149 ]
  %160 = zext i1 %159 to i32
  store i32 %160, ptr %35, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %158
  %162 = load i32, ptr %34, align 4, !tbaa !9
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %34, align 4, !tbaa !9
  br label %130, !llvm.loop !17

164:                                              ; preds = %137
  br label %165

165:                                              ; preds = %164, %116
  %166 = load i32, ptr %35, align 4, !tbaa !9
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %169, label %168

168:                                              ; preds = %165
  store i32 -4, ptr %33, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %168, %165
  br label %170

170:                                              ; preds = %169, %95
  br label %171

171:                                              ; preds = %170, %88
  br label %172

172:                                              ; preds = %171, %83
  br label %173

173:                                              ; preds = %172, %71
  %174 = load i32, ptr %33, align 4, !tbaa !9
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %176, label %185

176:                                              ; preds = %173
  %177 = load i32, ptr %25, align 4, !tbaa !9
  %178 = load ptr, ptr %26, align 8, !tbaa !5
  %179 = load ptr, ptr %27, align 8, !tbaa !5
  %180 = load ptr, ptr %28, align 8, !tbaa !5
  %181 = load ptr, ptr %29, align 8, !tbaa !5
  %182 = load ptr, ptr %30, align 8, !tbaa !5
  %183 = load i8, ptr %31, align 1, !tbaa !11
  %184 = call i32 @lu_solve_for_update(ptr noundef %32, i32 noundef %177, ptr noundef %178, ptr noundef %179, ptr noundef %180, ptr noundef %181, ptr noundef %182, i8 noundef signext %183)
  store i32 %184, ptr %33, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %176, %173
  %186 = load ptr, ptr %17, align 8, !tbaa !5
  %187 = load ptr, ptr %18, align 8, !tbaa !5
  %188 = load i32, ptr %33, align 4, !tbaa !9
  %189 = call i32 @lu_save(ptr noundef %32, ptr noundef %186, ptr noundef %187, i32 noundef %188)
  store i32 %189, ptr %16, align 4
  store i32 1, ptr %36, align 4
  br label %190

190:                                              ; preds = %185, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 696, ptr %32) #3
  %191 = load i32, ptr %16, align 4
  ret i32 %191
}

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

declare i32 @lu_load(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @lu_solve_for_update(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef signext) #2

declare i32 @lu_save(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 100}
!13 = !{!"lu", !10, i64 0, !10, i64 4, !10, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !10, i64 224, !10, i64 228, !10, i64 232, !14, i64 240, !14, i64 248, !14, i64 256, !14, i64 264, !14, i64 272, !14, i64 280, !14, i64 288, !14, i64 296, !14, i64 304, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !14, i64 344, !14, i64 352, !14, i64 360, !14, i64 368, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !10, i64 404, !10, i64 408, !10, i64 412, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592, !6, i64 600, !6, i64 608, !6, i64 616, !6, i64 624, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688}
!14 = !{!"double", !7, i64 0}
!15 = !{!13, !10, i64 104}
!16 = !{!13, !10, i64 84}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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

%struct.lu = type { i32, i32, i32, double, double, double, i32, i32, i32, double, double, double, 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, i32, i32, i32, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local i32 @basiclu_solve_for_update(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, i8 noundef signext %14) local_unnamed_addr #0 {
  %16 = alloca %struct.lu, align 8
  call void @llvm.lifetime.start.p0(i64 696, ptr nonnull %16) #3
  %17 = call i32 @lu_load(ptr noundef nonnull %16, ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #3
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %18, label %63

18:                                               ; preds = %15
  %19 = insertelement <4 x ptr> poison, ptr %2, i64 0
  %20 = insertelement <4 x ptr> %19, ptr %3, i64 1
  %21 = insertelement <4 x ptr> %20, ptr %4, i64 2
  %22 = insertelement <4 x ptr> %21, ptr %5, i64 3
  %23 = icmp ne ptr %6, null
  %24 = icmp ne ptr %7, null
  %25 = icmp ne ptr %9, null
  %26 = icmp eq <4 x ptr> %22, zeroinitializer
  %27 = bitcast <4 x i1> %26 to i4
  %28 = icmp eq i4 %27, 0
  %op.rdx = and i1 %28, %23
  %op.rdx82 = and i1 %24, %25
  %op.rdx83 = and i1 %op.rdx, %op.rdx82
  br i1 %op.rdx83, label %29, label %.thread

29:                                               ; preds = %18
  %30 = and i8 %14, -33
  %or.cond14.not75 = icmp eq i8 %30, 84
  %31 = icmp ne ptr %10, null
  %or.cond16 = or i1 %31, %or.cond14.not75
  br i1 %or.cond16, label %32, label %.thread

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %16, i64 100
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = icmp slt i32 %34, 0
  br i1 %35, label %.thread, label %36

36:                                               ; preds = %32
  %37 = getelementptr inbounds i8, ptr %16, i64 104
  %38 = load i32, ptr %37, align 8, !tbaa !12
  %39 = getelementptr inbounds i8, ptr %16, i64 84
  %40 = load i32, ptr %39, align 4
  %41 = icmp eq i32 %38, %40
  br i1 %41, label %.thread, label %42

42:                                               ; preds = %36
  br i1 %or.cond14.not75, label %43, label %46

43:                                               ; preds = %42
  %44 = load i32, ptr %9, align 4, !tbaa !13
  %45 = icmp slt i32 %44, %40
  %.inv = icmp sgt i32 %44, -1
  %narrow = and i1 %.inv, %45
  br i1 %narrow, label %60, label %.thread

46:                                               ; preds = %42
  %47 = icmp sgt i32 %8, -1
  %48 = icmp sge i32 %40, %8
  %49 = and i1 %47, %48
  %50 = icmp sgt i32 %8, 0
  %51 = and i1 %50, %48
  br i1 %51, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %46
  %52 = zext nneg i32 %8 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %53 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv
  %54 = load i32, ptr %53, align 4, !tbaa !13
  %55 = icmp sgt i32 %54, -1
  %56 = icmp slt i32 %54, %40
  %57 = and i1 %55, %56
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %58 = icmp ult i64 %indvars.iv.next, %52
  %59 = select i1 %58, i1 %57, i1 false
  br i1 %59, label %.lr.ph, label %.loopexit, !llvm.loop !14

.loopexit:                                        ; preds = %.lr.ph, %46
  %.1.in = phi i1 [ %49, %46 ], [ %57, %.lr.ph ]
  br i1 %.1.in, label %60, label %.thread

60:                                               ; preds = %43, %.loopexit
  %61 = call i32 @lu_solve_for_update(ptr noundef nonnull %16, i32 noundef %8, ptr noundef nonnull %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, i8 noundef signext %14) #3
  br label %.thread

.thread:                                          ; preds = %43, %36, %32, %29, %18, %60, %.loopexit
  %.168 = phi i32 [ %61, %60 ], [ -4, %.loopexit ], [ -5, %36 ], [ -2, %32 ], [ -3, %29 ], [ -3, %18 ], [ -4, %43 ]
  %62 = call i32 @lu_save(ptr noundef nonnull %16, ptr noundef %0, ptr noundef %1, i32 noundef %.168) #3
  br label %63

63:                                               ; preds = %15, %.thread
  %.069 = phi i32 [ %62, %.thread ], [ %17, %15 ]
  call void @llvm.lifetime.end.p0(i64 696, ptr nonnull %16) #3
  ret i32 %.069
}

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

declare i32 @lu_load(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @lu_solve_for_update(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef signext) local_unnamed_addr #2

declare i32 @lu_save(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 100}
!6 = !{!"lu", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !7, i64 44, !7, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !7, i64 224, !7, i64 228, !7, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !7, i64 312, !7, i64 316, !7, i64 320, !7, i64 324, !7, i64 328, !7, i64 332, !7, i64 336, !7, i64 340, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368, !7, i64 376, !7, i64 380, !7, i64 384, !7, i64 388, !7, i64 392, !7, i64 396, !7, i64 400, !7, i64 404, !7, i64 408, !7, i64 412, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !11, i64 576, !11, i64 584, !11, i64 592, !11, i64 600, !11, i64 608, !11, i64 616, !11, i64 624, !11, i64 632, !11, i64 640, !11, i64 648, !11, i64 656, !11, i64 664, !11, i64 672, !11, i64 680, !11, i64 688}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 104}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass