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

@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
@spcErrorsMustBeCleared = external global [0 x i8], align 1
@spcMatrixMustNotBeFactored = 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 @spScale(ptr noundef %0, ptr noundef %1, ptr noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %13, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %21

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

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

28:                                               ; preds = %16
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.MatrixFrame, ptr %29, i32 0, i32 9
  %31 = load i32, ptr %30, align 4, !tbaa !15
  %32 = icmp sge i32 %31, 0
  br i1 %32, label %33, label %38

33:                                               ; preds = %28
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.MatrixFrame, ptr %34, i32 0, i32 9
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %37 = icmp slt i32 %36, 2
  br i1 %37, label %45, label %38

38:                                               ; preds = %33, %28
  %39 = load ptr, ptr @stdout, align 8, !tbaa !5
  %40 = call i32 @fflush(ptr noundef %39)
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 397, ptr noundef @spcErrorsMustBeCleared) #5
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = call i32 @fflush(ptr noundef %43)
  call void @abort() #6
  unreachable

45:                                               ; preds = %33
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.MatrixFrame, ptr %46, i32 0, i32 13
  %48 = load i32, ptr %47, align 8, !tbaa !16
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %57

50:                                               ; preds = %45
  %51 = load ptr, ptr @stdout, align 8, !tbaa !5
  %52 = call i32 @fflush(ptr noundef %51)
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 398, ptr noundef @spcMatrixMustNotBeFactored) #5
  %55 = load ptr, ptr @stderr, align 8, !tbaa !5
  %56 = call i32 @fflush(ptr noundef %55)
  call void @abort() #6
  unreachable

57:                                               ; preds = %45
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.MatrixFrame, ptr %58, i32 0, i32 35
  %60 = load i32, ptr %59, align 4, !tbaa !17
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %64, label %62

62:                                               ; preds = %57
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  call void @spcLinkRows(ptr noundef %63)
  br label %64

64:                                               ; preds = %62, %57
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.MatrixFrame, ptr %65, i32 0, i32 39
  %67 = load i32, ptr %66, align 4, !tbaa !18
  store i32 %67, ptr %10, align 4, !tbaa !19
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.MatrixFrame, ptr %68, i32 0, i32 21
  %70 = load ptr, ptr %69, align 8, !tbaa !20
  %71 = getelementptr inbounds i32, ptr %70, i64 1
  store ptr %71, ptr %11, align 8, !tbaa !5
  store i32 1, ptr %9, align 4, !tbaa !19
  br label %72

72:                                               ; preds = %107, %64
  %73 = load i32, ptr %9, align 4, !tbaa !19
  %74 = load i32, ptr %10, align 4, !tbaa !19
  %75 = icmp sle i32 %73, %74
  br i1 %75, label %76, label %110

76:                                               ; preds = %72
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = getelementptr inbounds i32, ptr %78, i32 1
  store ptr %79, ptr %11, align 8, !tbaa !5
  %80 = load i32, ptr %78, align 4, !tbaa !19
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %77, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !21
  store double %83, ptr %12, align 8, !tbaa !21
  %84 = fcmp une double %83, 1.000000e+00
  br i1 %84, label %85, label %106

85:                                               ; preds = %76
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.MatrixFrame, ptr %86, i32 0, i32 16
  %88 = load ptr, ptr %87, align 8, !tbaa !22
  %89 = load i32, ptr %9, align 4, !tbaa !19
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds ptr, ptr %88, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  store ptr %92, ptr %8, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %96, %85
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %105

96:                                               ; preds = %93
  %97 = load double, ptr %12, align 8, !tbaa !21
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.MatrixElement, ptr %98, i32 0, i32 0
  %100 = load double, ptr %99, align 8, !tbaa !23
  %101 = fmul double %100, %97
  store double %101, ptr %99, align 8, !tbaa !23
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.MatrixElement, ptr %102, i32 0, i32 3
  %104 = load ptr, ptr %103, align 8, !tbaa !24
  store ptr %104, ptr %8, align 8, !tbaa !5
  br label %93, !llvm.loop !25

105:                                              ; preds = %93
  br label %106

106:                                              ; preds = %105, %76
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %9, align 4, !tbaa !19
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %9, align 4, !tbaa !19
  br label %72, !llvm.loop !27

110:                                              ; preds = %72
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.MatrixFrame, ptr %111, i32 0, i32 20
  %113 = load ptr, ptr %112, align 8, !tbaa !28
  %114 = getelementptr inbounds i32, ptr %113, i64 1
  store ptr %114, ptr %11, align 8, !tbaa !5
  store i32 1, ptr %9, align 4, !tbaa !19
  br label %115

115:                                              ; preds = %150, %110
  %116 = load i32, ptr %9, align 4, !tbaa !19
  %117 = load i32, ptr %10, align 4, !tbaa !19
  %118 = icmp sle i32 %116, %117
  br i1 %118, label %119, label %153

119:                                              ; preds = %115
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds i32, ptr %121, i32 1
  store ptr %122, ptr %11, align 8, !tbaa !5
  %123 = load i32, ptr %121, align 4, !tbaa !19
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds double, ptr %120, i64 %124
  %126 = load double, ptr %125, align 8, !tbaa !21
  store double %126, ptr %12, align 8, !tbaa !21
  %127 = fcmp une double %126, 1.000000e+00
  br i1 %127, label %128, label %149

128:                                              ; preds = %119
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.MatrixFrame, ptr %129, i32 0, i32 15
  %131 = load ptr, ptr %130, align 8, !tbaa !29
  %132 = load i32, ptr %9, align 4, !tbaa !19
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds ptr, ptr %131, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  store ptr %135, ptr %8, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %139, %128
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %148

139:                                              ; preds = %136
  %140 = load double, ptr %12, align 8, !tbaa !21
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.MatrixElement, ptr %141, i32 0, i32 0
  %143 = load double, ptr %142, align 8, !tbaa !23
  %144 = fmul double %143, %140
  store double %144, ptr %142, align 8, !tbaa !23
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.MatrixElement, ptr %145, i32 0, i32 4
  %147 = load ptr, ptr %146, align 8, !tbaa !30
  store ptr %147, ptr %8, align 8, !tbaa !5
  br label %136, !llvm.loop !31

148:                                              ; preds = %136
  br label %149

149:                                              ; preds = %148, %119
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %9, align 4, !tbaa !19
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %9, align 4, !tbaa !19
  br label %115, !llvm.loop !32

153:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret void
}

declare void @spcLinkRows(ptr noundef) #1

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 52}
!16 = !{!10, !12, i64 80}
!17 = !{!10, !12, i64 212}
!18 = !{!10, !12, i64 228}
!19 = !{!12, !12, i64 0}
!20 = !{!10, !6, i64 136}
!21 = !{!11, !11, i64 0}
!22 = !{!10, !6, i64 96}
!23 = !{!14, !11, i64 0}
!24 = !{!14, !6, i64 16}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!10, !6, i64 128}
!29 = !{!10, !6, i64 88}
!30 = !{!14, !6, i64 24}
!31 = distinct !{!31, !26}
!32 = distinct !{!32, !26}


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

@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
@spcErrorsMustBeCleared = external global [0 x i8], align 1
@spcMatrixMustNotBeFactored = 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 @spScale(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %8, label %4

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

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

15:                                               ; preds = %4
  %16 = getelementptr inbounds i8, ptr %0, i64 52
  %17 = load i32, ptr %16, align 4, !tbaa !15
  %or.cond = icmp ult i32 %17, 2
  br i1 %or.cond, label %25, label %18

18:                                               ; preds = %15
  %19 = load ptr, ptr @stdout, align 8, !tbaa !14
  %20 = tail call i32 @fflush(ptr noundef %19)
  %21 = load ptr, ptr @stderr, align 8, !tbaa !14
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 397, ptr noundef nonnull @spcErrorsMustBeCleared) #4
  %23 = load ptr, ptr @stderr, align 8, !tbaa !14
  %24 = tail call i32 @fflush(ptr noundef %23)
  tail call void @abort() #5
  unreachable

25:                                               ; preds = %15
  %26 = getelementptr inbounds i8, ptr %0, i64 80
  %27 = load i32, ptr %26, align 8, !tbaa !16
  %.not41 = icmp eq i32 %27, 0
  br i1 %.not41, label %35, label %28

28:                                               ; preds = %25
  %29 = load ptr, ptr @stdout, align 8, !tbaa !14
  %30 = tail call i32 @fflush(ptr noundef %29)
  %31 = load ptr, ptr @stderr, align 8, !tbaa !14
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 398, ptr noundef nonnull @spcMatrixMustNotBeFactored) #4
  %33 = load ptr, ptr @stderr, align 8, !tbaa !14
  %34 = tail call i32 @fflush(ptr noundef %33)
  tail call void @abort() #5
  unreachable

35:                                               ; preds = %25
  %36 = getelementptr inbounds i8, ptr %0, i64 212
  %37 = load i32, ptr %36, align 4, !tbaa !17
  %.not42 = icmp eq i32 %37, 0
  br i1 %.not42, label %38, label %39

38:                                               ; preds = %35
  tail call void @spcLinkRows(ptr noundef nonnull %0) #6
  br label %39

39:                                               ; preds = %38, %35
  %40 = getelementptr inbounds i8, ptr %0, i64 228
  %41 = load i32, ptr %40, align 4, !tbaa !18
  %.not4353 = icmp slt i32 %41, 1
  br i1 %.not4353, label %._crit_edge68, label %.lr.ph56

.lr.ph56:                                         ; preds = %39
  %42 = getelementptr inbounds i8, ptr %0, i64 136
  %43 = load ptr, ptr %42, align 8, !tbaa !19
  %44 = getelementptr inbounds i8, ptr %0, i64 96
  %45 = add nuw i32 %41, 1
  %wide.trip.count = zext i32 %45 to i64
  br label %46

46:                                               ; preds = %.lr.ph56, %.loopexit48
  %indvars.iv = phi i64 [ 1, %.lr.ph56 ], [ %indvars.iv.next, %.loopexit48 ]
  %.pn = phi ptr [ %43, %.lr.ph56 ], [ %.055, %.loopexit48 ]
  %.055 = getelementptr inbounds i8, ptr %.pn, i64 4
  %47 = load i32, ptr %.055, align 4, !tbaa !20
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds double, ptr %1, i64 %48
  %50 = load double, ptr %49, align 8, !tbaa !21
  %51 = fcmp une double %50, 1.000000e+00
  br i1 %51, label %52, label %.loopexit48

52:                                               ; preds = %46
  %53 = load ptr, ptr %44, align 8, !tbaa !22
  %54 = getelementptr inbounds ptr, ptr %53, i64 %indvars.iv
  %.03249 = load ptr, ptr %54, align 8, !tbaa !14
  %.not4750 = icmp eq ptr %.03249, null
  br i1 %.not4750, label %.loopexit48, label %.lr.ph

.lr.ph:                                           ; preds = %52, %.lr.ph
  %.03251 = phi ptr [ %.032, %.lr.ph ], [ %.03249, %52 ]
  %55 = load double, ptr %.03251, align 8, !tbaa !23
  %56 = fmul double %50, %55
  store double %56, ptr %.03251, align 8, !tbaa !23
  %57 = getelementptr inbounds i8, ptr %.03251, i64 16
  %.032 = load ptr, ptr %57, align 8, !tbaa !14
  %.not47 = icmp eq ptr %.032, null
  br i1 %.not47, label %.loopexit48, label %.lr.ph, !llvm.loop !24

.loopexit48:                                      ; preds = %.lr.ph, %52, %46
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %46, !llvm.loop !26

._crit_edge:                                      ; preds = %.loopexit48
  br i1 %.not4353, label %._crit_edge68, label %.lr.ph67

.lr.ph67:                                         ; preds = %._crit_edge
  %58 = getelementptr inbounds i8, ptr %0, i64 128
  %59 = load ptr, ptr %58, align 8, !tbaa !27
  %60 = getelementptr inbounds i8, ptr %0, i64 88
  %61 = add nuw i32 %41, 1
  %wide.trip.count74 = zext i32 %61 to i64
  br label %62

62:                                               ; preds = %.lr.ph67, %.loopexit
  %indvars.iv71 = phi i64 [ 1, %.lr.ph67 ], [ %indvars.iv.next72, %.loopexit ]
  %.pn69 = phi ptr [ %59, %.lr.ph67 ], [ %.165, %.loopexit ]
  %.165 = getelementptr inbounds i8, ptr %.pn69, i64 4
  %63 = load i32, ptr %.165, align 4, !tbaa !20
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds double, ptr %2, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !21
  %67 = fcmp une double %66, 1.000000e+00
  br i1 %67, label %68, label %.loopexit

68:                                               ; preds = %62
  %69 = load ptr, ptr %60, align 8, !tbaa !28
  %70 = getelementptr inbounds ptr, ptr %69, i64 %indvars.iv71
  %.13357 = load ptr, ptr %70, align 8, !tbaa !14
  %.not4558 = icmp eq ptr %.13357, null
  br i1 %.not4558, label %.loopexit, label %.lr.ph61

.lr.ph61:                                         ; preds = %68, %.lr.ph61
  %.13359 = phi ptr [ %.133, %.lr.ph61 ], [ %.13357, %68 ]
  %71 = load double, ptr %.13359, align 8, !tbaa !23
  %72 = fmul double %66, %71
  store double %72, ptr %.13359, align 8, !tbaa !23
  %73 = getelementptr inbounds i8, ptr %.13359, i64 24
  %.133 = load ptr, ptr %73, align 8, !tbaa !14
  %.not45 = icmp eq ptr %.133, null
  br i1 %.not45, label %.loopexit, label %.lr.ph61, !llvm.loop !29

.loopexit:                                        ; preds = %.lr.ph61, %68, %62
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond75.not = icmp eq i64 %indvars.iv.next72, %wide.trip.count74
  br i1 %exitcond75.not, label %._crit_edge68, label %62, !llvm.loop !30

._crit_edge68:                                    ; preds = %.loopexit, %39, %._crit_edge
  ret void
}

declare void @spcLinkRows(ptr noundef) local_unnamed_addr #3

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 = { "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 = { cold nounwind }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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 52}
!16 = !{!6, !10, i64 80}
!17 = !{!6, !10, i64 212}
!18 = !{!6, !10, i64 228}
!19 = !{!6, !11, i64 136}
!20 = !{!10, !10, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!6, !11, i64 96}
!23 = !{!13, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = !{!6, !11, i64 128}
!28 = !{!6, !11, i64 88}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !25}


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