; LLVM IR from InsightSoftwareConsortium/ITK :: Modules/ThirdParty/VNL/src/vxl/v3p/netlib/sparse (spUtils)

; 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.MatrixFrame = type { double, i32, i32, i32, i32, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i32, i32, ptr, ptr, i64, ptr, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i8, i32, double, i32, i32, i32, i32, i32, i32, %struct.MatrixElement, ptr, i32, ptr, i32, ptr, i32, ptr, ptr }
%struct.MatrixElement = type { double, i32, i32, ptr, ptr, ptr }
%struct.FillinListNodeStruct = type { ptr, i32, ptr }

@stdout = external global ptr, align 8
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [66 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [122 x i8], align 1
@spcMatrixIsNotValid = external global [0 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

declare i32 @fflush(ptr noundef) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @abort() #3

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

; Function Attrs: nounwind uwtable
define dso_local void @spStripFills(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %12, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %20

15:                                               ; preds = %1
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.MatrixFrame, ptr %16, i32 0, i32 17
  %18 = load i64, ptr %17, align 8, !tbaa !9
  %19 = icmp eq i64 %18, 3735928559
  br i1 %19, label %27, label %20

20:                                               ; preds = %15, %1
  %21 = load ptr, ptr @stdout, align 8, !tbaa !5
  %22 = call i32 @fflush(ptr noundef %21)
  %23 = load ptr, ptr @stderr, align 8, !tbaa !5
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1157, ptr noundef @spcMatrixIsNotValid) #5
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = call i32 @fflush(ptr noundef %25)
  call void @abort() #6
  unreachable

27:                                               ; preds = %15
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.MatrixFrame, ptr %28, i32 0, i32 14
  %30 = load i32, ptr %29, align 4, !tbaa !15
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %27
  store i32 1, ptr %5, align 4
  br label %179

33:                                               ; preds = %27
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.MatrixFrame, ptr %34, i32 0, i32 26
  store i32 1, ptr %35, align 4, !tbaa !16
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.MatrixFrame, ptr %36, i32 0, i32 14
  %38 = load i32, ptr %37, align 4, !tbaa !15
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.MatrixFrame, ptr %39, i32 0, i32 8
  %41 = load i32, ptr %40, align 8, !tbaa !17
  %42 = sub nsw i32 %41, %38
  store i32 %42, ptr %40, align 8, !tbaa !17
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.MatrixFrame, ptr %43, i32 0, i32 14
  store i32 0, ptr %44, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.MatrixFrame, ptr %45, i32 0, i32 47
  %47 = load ptr, ptr %46, align 8, !tbaa !18
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.MatrixFrame, ptr %48, i32 0, i32 48
  store ptr %47, ptr %49, align 8, !tbaa !19
  store ptr %47, ptr %4, align 8, !tbaa !5
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.FillinListNodeStruct, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 8, !tbaa !20
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.MatrixFrame, ptr %53, i32 0, i32 46
  store i32 %52, ptr %54, align 8, !tbaa !22
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.FillinListNodeStruct, ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !23
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.MatrixFrame, ptr %58, i32 0, i32 45
  store ptr %57, ptr %59, align 8, !tbaa !24
  br label %60

60:                                               ; preds = %82, %33
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %86

63:                                               ; preds = %60
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.FillinListNodeStruct, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !23
  store ptr %66, ptr %6, align 8, !tbaa !5
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.FillinListNodeStruct, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 8, !tbaa !20
  %71 = sub nsw i32 %70, 1
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds %struct.MatrixElement, ptr %67, i64 %72
  store ptr %73, ptr %7, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %78, %63
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = icmp ule ptr %75, %76
  br i1 %77, label %78, label %82

78:                                               ; preds = %74
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.MatrixElement, ptr %79, i32 1
  store ptr %80, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.MatrixElement, ptr %79, i32 0, i32 1
  store i32 0, ptr %81, align 8, !tbaa !25
  br label %74, !llvm.loop !26

82:                                               ; preds = %74
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.FillinListNodeStruct, ptr %83, i32 0, i32 2
  %85 = load ptr, ptr %84, align 8, !tbaa !28
  store ptr %85, ptr %4, align 8, !tbaa !5
  br label %60, !llvm.loop !29

86:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.MatrixFrame, ptr %87, i32 0, i32 39
  %89 = load i32, ptr %88, align 4, !tbaa !30
  store i32 %89, ptr %11, align 4, !tbaa !31
  store i32 1, ptr %10, align 4, !tbaa !31
  br label %90

90:                                               ; preds = %141, %86
  %91 = load i32, ptr %10, align 4, !tbaa !31
  %92 = load i32, ptr %11, align 4, !tbaa !31
  %93 = icmp sle i32 %91, %92
  br i1 %93, label %94, label %144

94:                                               ; preds = %90
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.MatrixFrame, ptr %95, i32 0, i32 15
  %97 = load ptr, ptr %96, align 8, !tbaa !32
  %98 = load i32, ptr %10, align 4, !tbaa !31
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds ptr, ptr %97, i64 %99
  store ptr %100, ptr %9, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %139, %94
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  store ptr %103, ptr %8, align 8, !tbaa !5
  %104 = icmp ne ptr %103, null
  br i1 %104, label %105, label %140

105:                                              ; preds = %101
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.MatrixElement, ptr %106, i32 0, i32 1
  %108 = load i32, ptr %107, align 8, !tbaa !25
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %136

110:                                              ; preds = %105
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.MatrixElement, ptr %111, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !33
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %113, ptr %114, align 8, !tbaa !5
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.MatrixFrame, ptr %115, i32 0, i32 5
  %117 = load ptr, ptr %116, align 8, !tbaa !34
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.MatrixElement, ptr %118, i32 0, i32 2
  %120 = load i32, ptr %119, align 4, !tbaa !35
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds ptr, ptr %117, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = icmp eq ptr %123, %124
  br i1 %125, label %126, label %135

126:                                              ; preds = %110
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.MatrixFrame, ptr %127, i32 0, i32 5
  %129 = load ptr, ptr %128, align 8, !tbaa !34
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.MatrixElement, ptr %130, i32 0, i32 2
  %132 = load i32, ptr %131, align 4, !tbaa !35
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds ptr, ptr %129, i64 %133
  store ptr null, ptr %134, align 8, !tbaa !5
  br label %135

135:                                              ; preds = %126, %110
  br label %139

136:                                              ; preds = %105
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.MatrixElement, ptr %137, i32 0, i32 4
  store ptr %138, ptr %9, align 8, !tbaa !5
  br label %139

139:                                              ; preds = %136, %135
  br label %101, !llvm.loop !36

140:                                              ; preds = %101
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %10, align 4, !tbaa !31
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %10, align 4, !tbaa !31
  br label %90, !llvm.loop !37

144:                                              ; preds = %90
  store i32 1, ptr %10, align 4, !tbaa !31
  br label %145

145:                                              ; preds = %175, %144
  %146 = load i32, ptr %10, align 4, !tbaa !31
  %147 = load i32, ptr %11, align 4, !tbaa !31
  %148 = icmp sle i32 %146, %147
  br i1 %148, label %149, label %178

149:                                              ; preds = %145
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.MatrixFrame, ptr %150, i32 0, i32 16
  %152 = load ptr, ptr %151, align 8, !tbaa !38
  %153 = load i32, ptr %10, align 4, !tbaa !31
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds ptr, ptr %152, i64 %154
  store ptr %155, ptr %9, align 8, !tbaa !5
  br label %156

156:                                              ; preds = %173, %149
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  store ptr %158, ptr %8, align 8, !tbaa !5
  %159 = icmp ne ptr %158, null
  br i1 %159, label %160, label %174

160:                                              ; preds = %156
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.MatrixElement, ptr %161, i32 0, i32 1
  %163 = load i32, ptr %162, align 8, !tbaa !25
  %164 = icmp eq i32 %163, 0
  br i1 %164, label %165, label %170

165:                                              ; preds = %160
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.MatrixElement, ptr %166, i32 0, i32 3
  %168 = load ptr, ptr %167, align 8, !tbaa !39
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %168, ptr %169, align 8, !tbaa !5
  br label %173

170:                                              ; preds = %160
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.MatrixElement, ptr %171, i32 0, i32 3
  store ptr %172, ptr %9, align 8, !tbaa !5
  br label %173

173:                                              ; preds = %170, %165
  br label %156, !llvm.loop !40

174:                                              ; preds = %156
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %10, align 4, !tbaa !31
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %10, align 4, !tbaa !31
  br label %145, !llvm.loop !41

178:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  store i32 1, ptr %5, align 4
  br label %179

179:                                              ; preds = %178, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !13, i64 104}
!10 = !{!"MatrixFrame", !11, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !12, i64 52, !12, i64 56, !6, i64 64, !6, i64 72, !12, i64 80, !12, i64 84, !6, i64 88, !6, i64 96, !13, i64 104, !6, i64 112, !12, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !12, i64 168, !12, i64 172, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !7, i64 192, !12, i64 196, !11, i64 200, !12, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !14, i64 232, !6, i64 272, !12, i64 280, !6, i64 288, !12, i64 296, !6, i64 304, !12, i64 312, !6, i64 320, !6, i64 328}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"MatrixElement", !11, i64 0, !12, i64 8, !12, i64 12, !6, i64 16, !6, i64 24, !6, i64 32}
!15 = !{!10, !12, i64 84}
!16 = !{!10, !12, i64 172}
!17 = !{!10, !12, i64 48}
!18 = !{!10, !6, i64 320}
!19 = !{!10, !6, i64 328}
!20 = !{!21, !12, i64 8}
!21 = !{!"FillinListNodeStruct", !6, i64 0, !12, i64 8, !6, i64 16}
!22 = !{!10, !12, i64 312}
!23 = !{!21, !6, i64 0}
!24 = !{!10, !6, i64 304}
!25 = !{!14, !12, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!21, !6, i64 16}
!29 = distinct !{!29, !27}
!30 = !{!10, !12, i64 228}
!31 = !{!12, !12, i64 0}
!32 = !{!10, !6, i64 88}
!33 = !{!14, !6, i64 24}
!34 = !{!10, !6, i64 24}
!35 = !{!14, !12, i64 12}
!36 = distinct !{!36, !27}
!37 = distinct !{!37, !27}
!38 = !{!10, !6, i64 96}
!39 = !{!14, !6, i64 16}
!40 = distinct !{!40, !27}
!41 = distinct !{!41, !27}


; 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.MatrixElement = type { double, i32, i32, ptr, ptr, ptr }

@stdout = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [66 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [122 x i8], align 1
@spcMatrixIsNotValid = external global [0 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @spStripFills(ptr noundef %0) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %6, label %2

2:                                                ; preds = %1
  %3 = getelementptr inbounds i8, ptr %0, i64 104
  %4 = load i64, ptr %3, align 8, !tbaa !5
  %5 = icmp eq i64 %4, 3735928559
  br i1 %5, label %13, label %6

6:                                                ; preds = %2, %1
  %7 = load ptr, ptr @stdout, align 8, !tbaa !14
  %8 = tail call i32 @fflush(ptr noundef %7)
  %9 = load ptr, ptr @stderr, align 8, !tbaa !14
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1157, ptr noundef nonnull @spcMatrixIsNotValid) #3
  %11 = load ptr, ptr @stderr, align 8, !tbaa !14
  %12 = tail call i32 @fflush(ptr noundef %11)
  tail call void @abort() #4
  unreachable

13:                                               ; preds = %2
  %14 = getelementptr inbounds i8, ptr %0, i64 84
  %15 = load i32, ptr %14, align 4, !tbaa !15
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %.loopexit, label %17

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %0, i64 172
  store i32 1, ptr %18, align 4, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %0, i64 48
  %20 = load i32, ptr %19, align 8, !tbaa !17
  %21 = sub nsw i32 %20, %15
  store i32 %21, ptr %19, align 8, !tbaa !17
  store i32 0, ptr %14, align 4, !tbaa !15
  %22 = getelementptr inbounds i8, ptr %0, i64 320
  %23 = load ptr, ptr %22, align 8, !tbaa !18
  %24 = getelementptr inbounds i8, ptr %0, i64 328
  store ptr %23, ptr %24, align 8, !tbaa !19
  %25 = getelementptr inbounds i8, ptr %23, i64 8
  %26 = load i32, ptr %25, align 8, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %0, i64 312
  store i32 %26, ptr %27, align 8, !tbaa !22
  %28 = load ptr, ptr %23, align 8, !tbaa !23
  %29 = getelementptr inbounds i8, ptr %0, i64 304
  store ptr %28, ptr %29, align 8, !tbaa !24
  br label %30

30:                                               ; preds = %17, %._crit_edge
  %.063 = phi ptr [ %23, %17 ], [ %40, %._crit_edge ]
  %31 = load ptr, ptr %.063, align 8, !tbaa !23
  %32 = getelementptr inbounds i8, ptr %.063, i64 8
  %33 = load i32, ptr %32, align 8, !tbaa !20
  %34 = sext i32 %33 to i64
  %35 = getelementptr %struct.MatrixElement, ptr %31, i64 %34
  %36 = getelementptr i8, ptr %35, i64 -40
  %.not6061 = icmp ugt ptr %31, %36
  br i1 %.not6061, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %30, %.lr.ph
  %.05062 = phi ptr [ %37, %.lr.ph ], [ %31, %30 ]
  %37 = getelementptr inbounds i8, ptr %.05062, i64 40
  %38 = getelementptr inbounds i8, ptr %.05062, i64 8
  store i32 0, ptr %38, align 8, !tbaa !25
  %.not60 = icmp ugt ptr %37, %36
  br i1 %.not60, label %._crit_edge, label %.lr.ph, !llvm.loop !26

._crit_edge:                                      ; preds = %.lr.ph, %30
  %39 = getelementptr inbounds i8, ptr %.063, i64 16
  %40 = load ptr, ptr %39, align 8, !tbaa !28
  %.not55 = icmp eq ptr %40, null
  br i1 %.not55, label %41, label %30, !llvm.loop !29

41:                                               ; preds = %._crit_edge
  %42 = getelementptr inbounds i8, ptr %0, i64 228
  %43 = load i32, ptr %42, align 4, !tbaa !30
  %.not5669 = icmp slt i32 %43, 1
  br i1 %.not5669, label %.loopexit, label %.lr.ph72

.lr.ph72:                                         ; preds = %41
  %44 = getelementptr inbounds i8, ptr %0, i64 88
  %45 = getelementptr inbounds i8, ptr %0, i64 24
  %46 = add nuw i32 %43, 1
  %wide.trip.count = zext i32 %46 to i64
  br label %49

.preheader:                                       ; preds = %._crit_edge68
  br i1 %.not5669, label %.loopexit, label %.lr.ph80

.lr.ph80:                                         ; preds = %.preheader
  %47 = getelementptr inbounds i8, ptr %0, i64 96
  %48 = add nuw i32 %43, 1
  %wide.trip.count85 = zext i32 %48 to i64
  br label %70

49:                                               ; preds = %.lr.ph72, %._crit_edge68
  %indvars.iv = phi i64 [ 1, %.lr.ph72 ], [ %indvars.iv.next, %._crit_edge68 ]
  %50 = load ptr, ptr %44, align 8, !tbaa !31
  %51 = getelementptr inbounds ptr, ptr %50, i64 %indvars.iv
  %52 = load ptr, ptr %51, align 8, !tbaa !14
  %.not5964 = icmp eq ptr %52, null
  br i1 %.not5964, label %._crit_edge68, label %.lr.ph67

.lr.ph67:                                         ; preds = %49, %68
  %53 = phi ptr [ %69, %68 ], [ %52, %49 ]
  %.04865 = phi ptr [ %.149, %68 ], [ %51, %49 ]
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  %55 = load i32, ptr %54, align 8, !tbaa !25
  %56 = icmp eq i32 %55, 0
  %57 = getelementptr inbounds i8, ptr %53, i64 24
  br i1 %56, label %58, label %68

58:                                               ; preds = %.lr.ph67
  %59 = load ptr, ptr %57, align 8, !tbaa !32
  store ptr %59, ptr %.04865, align 8, !tbaa !14
  %60 = load ptr, ptr %45, align 8, !tbaa !33
  %61 = getelementptr inbounds i8, ptr %53, i64 12
  %62 = load i32, ptr %61, align 4, !tbaa !34
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds ptr, ptr %60, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !14
  %66 = icmp eq ptr %65, %53
  br i1 %66, label %67, label %68

67:                                               ; preds = %58
  store ptr null, ptr %64, align 8, !tbaa !14
  br label %68

68:                                               ; preds = %.lr.ph67, %58, %67
  %.149 = phi ptr [ %.04865, %67 ], [ %.04865, %58 ], [ %57, %.lr.ph67 ]
  %69 = load ptr, ptr %.149, align 8, !tbaa !14
  %.not59 = icmp eq ptr %69, null
  br i1 %.not59, label %._crit_edge68, label %.lr.ph67, !llvm.loop !35

._crit_edge68:                                    ; preds = %68, %49
  %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 %49, !llvm.loop !36

70:                                               ; preds = %.lr.ph80, %._crit_edge77
  %indvars.iv82 = phi i64 [ 1, %.lr.ph80 ], [ %indvars.iv.next83, %._crit_edge77 ]
  %71 = load ptr, ptr %47, align 8, !tbaa !37
  %72 = getelementptr inbounds ptr, ptr %71, i64 %indvars.iv82
  %73 = load ptr, ptr %72, align 8, !tbaa !14
  %.not5873 = icmp eq ptr %73, null
  br i1 %.not5873, label %._crit_edge77, label %.lr.ph76

.lr.ph76:                                         ; preds = %70, %81
  %74 = phi ptr [ %79, %81 ], [ %73, %70 ]
  %.274 = phi ptr [ %.3, %81 ], [ %72, %70 ]
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  %76 = load i32, ptr %75, align 8, !tbaa !25
  %77 = icmp eq i32 %76, 0
  %78 = getelementptr inbounds i8, ptr %74, i64 16
  %79 = load ptr, ptr %78, align 8, !tbaa !14
  br i1 %77, label %80, label %81

80:                                               ; preds = %.lr.ph76
  store ptr %79, ptr %.274, align 8, !tbaa !14
  br label %81

81:                                               ; preds = %.lr.ph76, %80
  %.3 = phi ptr [ %.274, %80 ], [ %78, %.lr.ph76 ]
  %.not58 = icmp eq ptr %79, null
  br i1 %.not58, label %._crit_edge77, label %.lr.ph76, !llvm.loop !38

._crit_edge77:                                    ; preds = %81, %70
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %exitcond86.not = icmp eq i64 %indvars.iv.next83, %wide.trip.count85
  br i1 %exitcond86.not, label %.loopexit, label %70, !llvm.loop !39

.loopexit:                                        ; preds = %._crit_edge77, %41, %.preheader, %13
  ret void
}

attributes #0 = { nofree 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 #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { cold nounwind }
attributes #4 = { 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, !12, i64 104}
!6 = !{!"MatrixFrame", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !11, i64 24, !11, i64 32, !11, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !11, i64 64, !11, i64 72, !10, i64 80, !10, i64 84, !11, i64 88, !11, i64 96, !12, i64 104, !11, i64 112, !10, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !8, i64 192, !10, i64 196, !7, i64 200, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !13, i64 232, !11, i64 272, !10, i64 280, !11, i64 288, !10, i64 296, !11, i64 304, !10, i64 312, !11, i64 320, !11, i64 328}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"MatrixElement", !7, i64 0, !10, i64 8, !10, i64 12, !11, i64 16, !11, i64 24, !11, i64 32}
!14 = !{!11, !11, i64 0}
!15 = !{!6, !10, i64 84}
!16 = !{!6, !10, i64 172}
!17 = !{!6, !10, i64 48}
!18 = !{!6, !11, i64 320}
!19 = !{!6, !11, i64 328}
!20 = !{!21, !10, i64 8}
!21 = !{!"FillinListNodeStruct", !11, i64 0, !10, i64 8, !11, i64 16}
!22 = !{!6, !10, i64 312}
!23 = !{!21, !11, i64 0}
!24 = !{!6, !11, i64 304}
!25 = !{!13, !10, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!21, !11, i64 16}
!29 = distinct !{!29, !27}
!30 = !{!6, !10, i64 228}
!31 = !{!6, !11, i64 88}
!32 = !{!13, !11, i64 24}
!33 = !{!6, !11, i64 24}
!34 = !{!13, !10, i64 12}
!35 = distinct !{!35, !27}
!36 = distinct !{!36, !27}
!37 = !{!6, !11, i64 96}
!38 = distinct !{!38, !27}
!39 = distinct !{!39, !27}


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