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

declare void @spcCreateInternalVectors(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: nounwind uwtable
define dso_local void @spMultTransposed(ptr noundef %0, ptr noundef %1, ptr noundef %2) #5 {
  %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 double, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, 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) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %13, ptr %12, align 8, !tbaa !5
  %14 = load ptr, ptr %12, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %21

16:                                               ; preds = %3
  %17 = load ptr, ptr %12, 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 804, ptr noundef @spcMatrixIsNotValid) #6
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = call i32 @fflush(ptr noundef %26)
  call void @abort() #7
  unreachable

28:                                               ; preds = %16
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.MatrixFrame, ptr %29, i32 0, i32 13
  %31 = load i32, ptr %30, align 8, !tbaa !15
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %40

33:                                               ; preds = %28
  %34 = load ptr, ptr @stdout, align 8, !tbaa !5
  %35 = call i32 @fflush(ptr noundef %34)
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 805, ptr noundef @spcMatrixMustNotBeFactored) #6
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = call i32 @fflush(ptr noundef %38)
  call void @abort() #7
  unreachable

40:                                               ; preds = %28
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.MatrixFrame, ptr %41, i32 0, i32 19
  %43 = load i32, ptr %42, align 8, !tbaa !16
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %47, label %45

45:                                               ; preds = %40
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  call void @spcCreateInternalVectors(ptr noundef %46)
  br label %47

47:                                               ; preds = %45, %40
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.MatrixFrame, ptr %48, i32 0, i32 18
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  store ptr %50, ptr %8, align 8, !tbaa !5
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.MatrixFrame, ptr %51, i32 0, i32 21
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.MatrixFrame, ptr %54, i32 0, i32 39
  %56 = load i32, ptr %55, align 4, !tbaa !19
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i32, ptr %53, i64 %57
  store ptr %58, ptr %11, align 8, !tbaa !5
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.MatrixFrame, ptr %59, i32 0, i32 39
  %61 = load i32, ptr %60, align 4, !tbaa !19
  store i32 %61, ptr %10, align 4, !tbaa !20
  br label %62

62:                                               ; preds = %77, %47
  %63 = load i32, ptr %10, align 4, !tbaa !20
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %65, label %80

65:                                               ; preds = %62
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds i32, ptr %67, i32 -1
  store ptr %68, ptr %11, align 8, !tbaa !5
  %69 = load i32, ptr %67, align 4, !tbaa !20
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds double, ptr %66, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !21
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = load i32, ptr %10, align 4, !tbaa !20
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds double, ptr %73, i64 %75
  store double %72, ptr %76, align 8, !tbaa !21
  br label %77

77:                                               ; preds = %65
  %78 = load i32, ptr %10, align 4, !tbaa !20
  %79 = add nsw i32 %78, -1
  store i32 %79, ptr %10, align 4, !tbaa !20
  br label %62, !llvm.loop !22

80:                                               ; preds = %62
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.MatrixFrame, ptr %81, i32 0, i32 20
  %83 = load ptr, ptr %82, align 8, !tbaa !24
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.MatrixFrame, ptr %84, i32 0, i32 39
  %86 = load i32, ptr %85, align 4, !tbaa !19
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i32, ptr %83, i64 %87
  store ptr %88, ptr %11, align 8, !tbaa !5
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.MatrixFrame, ptr %89, i32 0, i32 39
  %91 = load i32, ptr %90, align 4, !tbaa !19
  store i32 %91, ptr %10, align 4, !tbaa !20
  br label %92

92:                                               ; preds = %130, %80
  %93 = load i32, ptr %10, align 4, !tbaa !20
  %94 = icmp sgt i32 %93, 0
  br i1 %94, label %95, label %133

95:                                               ; preds = %92
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.MatrixFrame, ptr %96, i32 0, i32 15
  %98 = load ptr, ptr %97, align 8, !tbaa !25
  %99 = load i32, ptr %10, align 4, !tbaa !20
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %98, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  store ptr %102, ptr %7, align 8, !tbaa !5
  store double 0.000000e+00, ptr %9, align 8, !tbaa !21
  br label %103

103:                                              ; preds = %106, %95
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = icmp ne ptr %104, null
  br i1 %105, label %106, label %122

106:                                              ; preds = %103
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.MatrixElement, ptr %107, i32 0, i32 0
  %109 = load double, ptr %108, align 8, !tbaa !26
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.MatrixElement, ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 8, !tbaa !27
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds double, ptr %110, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !21
  %117 = load double, ptr %9, align 8, !tbaa !21
  %118 = call double @llvm.fmuladd.f64(double %109, double %116, double %117)
  store double %118, ptr %9, align 8, !tbaa !21
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.MatrixElement, ptr %119, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !28
  store ptr %121, ptr %7, align 8, !tbaa !5
  br label %103, !llvm.loop !29

122:                                              ; preds = %103
  %123 = load double, ptr %9, align 8, !tbaa !21
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = getelementptr inbounds i32, ptr %125, i32 -1
  store ptr %126, ptr %11, align 8, !tbaa !5
  %127 = load i32, ptr %125, align 4, !tbaa !20
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %124, i64 %128
  store double %123, ptr %129, align 8, !tbaa !21
  br label %130

130:                                              ; preds = %122
  %131 = load i32, ptr %10, align 4, !tbaa !20
  %132 = add nsw i32 %131, -1
  store i32 %132, ptr %10, align 4, !tbaa !20
  br label %92, !llvm.loop !30

133:                                              ; preds = %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 80}
!16 = !{!10, !12, i64 120}
!17 = !{!10, !6, i64 112}
!18 = !{!10, !6, i64 136}
!19 = !{!10, !12, i64 228}
!20 = !{!12, !12, i64 0}
!21 = !{!11, !11, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!10, !6, i64 128}
!25 = !{!10, !6, i64 88}
!26 = !{!14, !11, i64 0}
!27 = !{!14, !12, i64 8}
!28 = !{!14, !6, i64 24}
!29 = distinct !{!29, !23}
!30 = distinct !{!30, !23}


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

declare void @spcCreateInternalVectors(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: nounwind uwtable
define dso_local void @spMultTransposed(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #4 {
  %.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 804, ptr noundef nonnull @spcMatrixIsNotValid) #5
  %13 = load ptr, ptr @stderr, align 8, !tbaa !14
  %14 = tail call i32 @fflush(ptr noundef %13)
  tail call void @abort() #6
  unreachable

15:                                               ; preds = %4
  %16 = getelementptr inbounds i8, ptr %0, i64 80
  %17 = load i32, ptr %16, align 8, !tbaa !15
  %.not36 = icmp eq i32 %17, 0
  br i1 %.not36, 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 805, ptr noundef nonnull @spcMatrixMustNotBeFactored) #5
  %23 = load ptr, ptr @stderr, align 8, !tbaa !14
  %24 = tail call i32 @fflush(ptr noundef %23)
  tail call void @abort() #6
  unreachable

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

28:                                               ; preds = %25
  tail call void @spcCreateInternalVectors(ptr noundef nonnull %0) #7
  br label %29

29:                                               ; preds = %28, %25
  %30 = getelementptr inbounds i8, ptr %0, i64 112
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  %32 = getelementptr inbounds i8, ptr %0, i64 228
  %33 = load i32, ptr %32, align 4, !tbaa !18
  %34 = sext i32 %33 to i64
  %35 = icmp sgt i32 %33, 0
  br i1 %35, label %.lr.ph.preheader, label %._crit_edge52

.lr.ph.preheader:                                 ; preds = %29
  %36 = getelementptr inbounds i8, ptr %0, i64 136
  %37 = load ptr, ptr %36, align 8, !tbaa !19
  %38 = getelementptr inbounds i32, ptr %37, i64 %34
  %39 = zext nneg i32 %33 to i64
  %xtraiter = and i64 %39, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %39, %.lr.ph.preheader ]
  %.03140.prol = phi ptr [ %40, %.lr.ph.prol ], [ %38, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %40 = getelementptr inbounds i8, ptr %.03140.prol, i64 -4
  %41 = load i32, ptr %.03140.prol, align 4, !tbaa !20
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds double, ptr %2, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !21
  %45 = getelementptr inbounds double, ptr %31, i64 %indvars.iv.prol
  store double %44, ptr %45, align 8, !tbaa !21
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.prol, -1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !22

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ %39, %.lr.ph.preheader ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %.03140.unr = phi ptr [ %38, %.lr.ph.preheader ], [ %40, %.lr.ph.prol ]
  %46 = icmp ult i32 %33, 4
  br i1 %46, label %._crit_edge, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %31, i64 -8
  %invariant.gep58 = getelementptr i8, ptr %31, i64 -16
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ %indvars.iv.unr, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %.03140 = phi ptr [ %.03140.unr, %.lr.ph.preheader.new ], [ %63, %.lr.ph ]
  %47 = getelementptr inbounds i8, ptr %.03140, i64 -4
  %48 = load i32, ptr %.03140, align 4, !tbaa !20
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds double, ptr %2, i64 %49
  %51 = load double, ptr %50, align 8, !tbaa !21
  %52 = getelementptr inbounds double, ptr %31, i64 %indvars.iv
  store double %51, ptr %52, align 8, !tbaa !21
  %53 = getelementptr inbounds i8, ptr %.03140, i64 -8
  %54 = load i32, ptr %47, align 4, !tbaa !20
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds double, ptr %2, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !21
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv
  store double %57, ptr %gep, align 8, !tbaa !21
  %58 = getelementptr inbounds i8, ptr %.03140, i64 -12
  %59 = load i32, ptr %53, align 4, !tbaa !20
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %2, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !21
  %gep59 = getelementptr double, ptr %invariant.gep58, i64 %indvars.iv
  store double %62, ptr %gep59, align 8, !tbaa !21
  %indvars.iv.next.2 = add nsw i64 %indvars.iv, -3
  %63 = getelementptr inbounds i8, ptr %.03140, i64 -16
  %64 = load i32, ptr %58, align 4, !tbaa !20
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds double, ptr %2, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !21
  %68 = getelementptr inbounds double, ptr %31, i64 %indvars.iv.next.2
  store double %67, ptr %68, align 8, !tbaa !21
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, -4
  %69 = icmp ugt i64 %indvars.iv.next.2, 1
  br i1 %69, label %.lr.ph, label %._crit_edge, !llvm.loop !24

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph.prol.loopexit
  br i1 %35, label %.lr.ph51, label %._crit_edge52

.lr.ph51:                                         ; preds = %._crit_edge
  %70 = getelementptr inbounds i8, ptr %0, i64 128
  %71 = load ptr, ptr %70, align 8, !tbaa !26
  %72 = getelementptr inbounds i32, ptr %71, i64 %34
  %73 = getelementptr inbounds i8, ptr %0, i64 88
  %74 = load ptr, ptr %73, align 8, !tbaa !27
  %75 = zext nneg i32 %33 to i64
  br label %76

76:                                               ; preds = %.lr.ph51, %._crit_edge47
  %indvars.iv54 = phi i64 [ %75, %.lr.ph51 ], [ %indvars.iv.next55, %._crit_edge47 ]
  %.149 = phi ptr [ %72, %.lr.ph51 ], [ %86, %._crit_edge47 ]
  %77 = getelementptr inbounds ptr, ptr %74, i64 %indvars.iv54
  %.041 = load ptr, ptr %77, align 8, !tbaa !14
  %.not3842 = icmp eq ptr %.041, null
  br i1 %.not3842, label %._crit_edge47, label %.lr.ph46

.lr.ph46:                                         ; preds = %76, %.lr.ph46
  %.044 = phi ptr [ %.0, %.lr.ph46 ], [ %.041, %76 ]
  %.03443 = phi double [ %84, %.lr.ph46 ], [ 0.000000e+00, %76 ]
  %78 = load double, ptr %.044, align 8, !tbaa !28
  %79 = getelementptr inbounds i8, ptr %.044, i64 8
  %80 = load i32, ptr %79, align 8, !tbaa !29
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %31, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !21
  %84 = tail call double @llvm.fmuladd.f64(double %78, double %83, double %.03443)
  %85 = getelementptr inbounds i8, ptr %.044, i64 24
  %.0 = load ptr, ptr %85, align 8, !tbaa !14
  %.not38 = icmp eq ptr %.0, null
  br i1 %.not38, label %._crit_edge47, label %.lr.ph46, !llvm.loop !30

._crit_edge47:                                    ; preds = %.lr.ph46, %76
  %.034.lcssa = phi double [ 0.000000e+00, %76 ], [ %84, %.lr.ph46 ]
  %86 = getelementptr inbounds i8, ptr %.149, i64 -4
  %87 = load i32, ptr %.149, align 4, !tbaa !20
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds double, ptr %1, i64 %88
  store double %.034.lcssa, ptr %89, align 8, !tbaa !21
  %indvars.iv.next55 = add nsw i64 %indvars.iv54, -1
  %90 = icmp sgt i64 %indvars.iv54, 1
  br i1 %90, label %76, label %._crit_edge52, !llvm.loop !31

._crit_edge52:                                    ; preds = %._crit_edge47, %29, %._crit_edge
  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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { cold nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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 80}
!16 = !{!6, !10, i64 120}
!17 = !{!6, !11, i64 112}
!18 = !{!6, !10, i64 228}
!19 = !{!6, !11, i64 136}
!20 = !{!10, !10, i64 0}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!6, !11, i64 128}
!27 = !{!6, !11, i64 88}
!28 = !{!13, !7, i64 0}
!29 = !{!13, !10, i64 8}
!30 = distinct !{!30, !25}
!31 = distinct !{!31, !25}


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