; 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 @spcLinkRows(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @spMultiply(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 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 613, 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 614, 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 35
  %43 = load i32, ptr %42, align 4, !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 @spcLinkRows(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 19
  %50 = load i32, ptr %49, align 8, !tbaa !17
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %54, label %52

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

54:                                               ; preds = %52, %47
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.MatrixFrame, ptr %55, i32 0, i32 18
  %57 = load ptr, ptr %56, align 8, !tbaa !18
  store ptr %57, ptr %8, align 8, !tbaa !5
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.MatrixFrame, ptr %58, i32 0, i32 20
  %60 = load ptr, ptr %59, align 8, !tbaa !19
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.MatrixFrame, ptr %61, i32 0, i32 39
  %63 = load i32, ptr %62, align 4, !tbaa !20
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds i32, ptr %60, i64 %64
  store ptr %65, ptr %11, align 8, !tbaa !5
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.MatrixFrame, ptr %66, i32 0, i32 39
  %68 = load i32, ptr %67, align 4, !tbaa !20
  store i32 %68, ptr %10, align 4, !tbaa !21
  br label %69

69:                                               ; preds = %84, %54
  %70 = load i32, ptr %10, align 4, !tbaa !21
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %72, label %87

72:                                               ; preds = %69
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = getelementptr inbounds i32, ptr %74, i32 -1
  store ptr %75, ptr %11, align 8, !tbaa !5
  %76 = load i32, ptr %74, align 4, !tbaa !21
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %73, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !22
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = load i32, ptr %10, align 4, !tbaa !21
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds double, ptr %80, i64 %82
  store double %79, ptr %83, align 8, !tbaa !22
  br label %84

84:                                               ; preds = %72
  %85 = load i32, ptr %10, align 4, !tbaa !21
  %86 = add nsw i32 %85, -1
  store i32 %86, ptr %10, align 4, !tbaa !21
  br label %69, !llvm.loop !23

87:                                               ; preds = %69
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.MatrixFrame, ptr %88, i32 0, i32 21
  %90 = load ptr, ptr %89, align 8, !tbaa !25
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.MatrixFrame, ptr %91, i32 0, i32 39
  %93 = load i32, ptr %92, align 4, !tbaa !20
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %90, i64 %94
  store ptr %95, ptr %11, align 8, !tbaa !5
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.MatrixFrame, ptr %96, i32 0, i32 39
  %98 = load i32, ptr %97, align 4, !tbaa !20
  store i32 %98, ptr %10, align 4, !tbaa !21
  br label %99

99:                                               ; preds = %137, %87
  %100 = load i32, ptr %10, align 4, !tbaa !21
  %101 = icmp sgt i32 %100, 0
  br i1 %101, label %102, label %140

102:                                              ; preds = %99
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.MatrixFrame, ptr %103, i32 0, i32 16
  %105 = load ptr, ptr %104, align 8, !tbaa !26
  %106 = load i32, ptr %10, align 4, !tbaa !21
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds ptr, ptr %105, i64 %107
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  store ptr %109, ptr %7, align 8, !tbaa !5
  store double 0.000000e+00, ptr %9, align 8, !tbaa !22
  br label %110

110:                                              ; preds = %113, %102
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = icmp ne ptr %111, null
  br i1 %112, label %113, label %129

113:                                              ; preds = %110
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.MatrixElement, ptr %114, i32 0, i32 0
  %116 = load double, ptr %115, align 8, !tbaa !27
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.MatrixElement, ptr %118, i32 0, i32 2
  %120 = load i32, ptr %119, align 4, !tbaa !28
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %117, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !22
  %124 = load double, ptr %9, align 8, !tbaa !22
  %125 = call double @llvm.fmuladd.f64(double %116, double %123, double %124)
  store double %125, ptr %9, align 8, !tbaa !22
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.MatrixElement, ptr %126, i32 0, i32 3
  %128 = load ptr, ptr %127, align 8, !tbaa !29
  store ptr %128, ptr %7, align 8, !tbaa !5
  br label %110, !llvm.loop !30

129:                                              ; preds = %110
  %130 = load double, ptr %9, align 8, !tbaa !22
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = getelementptr inbounds i32, ptr %132, i32 -1
  store ptr %133, ptr %11, align 8, !tbaa !5
  %134 = load i32, ptr %132, align 4, !tbaa !21
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %131, i64 %135
  store double %130, ptr %136, align 8, !tbaa !22
  br label %137

137:                                              ; preds = %129
  %138 = load i32, ptr %10, align 4, !tbaa !21
  %139 = add nsw i32 %138, -1
  store i32 %139, ptr %10, align 4, !tbaa !21
  br label %99, !llvm.loop !31

140:                                              ; preds = %99
  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
}

declare void @spcCreateInternalVectors(ptr noundef) #1

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 212}
!17 = !{!10, !12, i64 120}
!18 = !{!10, !6, i64 112}
!19 = !{!10, !6, i64 128}
!20 = !{!10, !12, i64 228}
!21 = !{!12, !12, i64 0}
!22 = !{!11, !11, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!10, !6, i64 136}
!26 = !{!10, !6, i64 96}
!27 = !{!14, !11, i64 0}
!28 = !{!14, !12, i64 12}
!29 = !{!14, !6, i64 16}
!30 = distinct !{!30, !24}
!31 = distinct !{!31, !24}


; 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 @spcLinkRows(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @spMultiply(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #3 {
  %.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 613, 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
  %.not38 = icmp eq i32 %17, 0
  br i1 %.not38, 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 614, 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 212
  %27 = load i32, ptr %26, align 4, !tbaa !16
  %.not39 = icmp eq i32 %27, 0
  br i1 %.not39, label %28, label %29

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

29:                                               ; preds = %28, %25
  %30 = getelementptr inbounds i8, ptr %0, i64 120
  %31 = load i32, ptr %30, align 8, !tbaa !17
  %.not40 = icmp eq i32 %31, 0
  br i1 %.not40, label %32, label %33

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

33:                                               ; preds = %32, %29
  %34 = getelementptr inbounds i8, ptr %0, i64 112
  %35 = load ptr, ptr %34, align 8, !tbaa !18
  %36 = getelementptr inbounds i8, ptr %0, i64 228
  %37 = load i32, ptr %36, align 4, !tbaa !19
  %38 = sext i32 %37 to i64
  %39 = icmp sgt i32 %37, 0
  br i1 %39, label %.lr.ph.preheader, label %._crit_edge55

.lr.ph.preheader:                                 ; preds = %33
  %40 = getelementptr inbounds i8, ptr %0, i64 128
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  %42 = getelementptr inbounds i32, ptr %41, i64 %38
  %43 = zext nneg i32 %37 to i64
  %xtraiter = and i64 %43, 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 ], [ %43, %.lr.ph.preheader ]
  %.03343.prol = phi ptr [ %44, %.lr.ph.prol ], [ %42, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %44 = getelementptr inbounds i8, ptr %.03343.prol, i64 -4
  %45 = load i32, ptr %.03343.prol, align 4, !tbaa !21
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds double, ptr %2, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !22
  %49 = getelementptr inbounds double, ptr %35, i64 %indvars.iv.prol
  store double %48, ptr %49, align 8, !tbaa !22
  %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 !23

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ %43, %.lr.ph.preheader ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %.03343.unr = phi ptr [ %42, %.lr.ph.preheader ], [ %44, %.lr.ph.prol ]
  %50 = icmp ult i32 %37, 4
  br i1 %50, label %._crit_edge, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %35, i64 -8
  %invariant.gep61 = getelementptr i8, ptr %35, 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 ]
  %.03343 = phi ptr [ %.03343.unr, %.lr.ph.preheader.new ], [ %67, %.lr.ph ]
  %51 = getelementptr inbounds i8, ptr %.03343, i64 -4
  %52 = load i32, ptr %.03343, align 4, !tbaa !21
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds double, ptr %2, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !22
  %56 = getelementptr inbounds double, ptr %35, i64 %indvars.iv
  store double %55, ptr %56, align 8, !tbaa !22
  %57 = getelementptr inbounds i8, ptr %.03343, i64 -8
  %58 = load i32, ptr %51, align 4, !tbaa !21
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds double, ptr %2, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !22
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv
  store double %61, ptr %gep, align 8, !tbaa !22
  %62 = getelementptr inbounds i8, ptr %.03343, i64 -12
  %63 = load i32, ptr %57, align 4, !tbaa !21
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds double, ptr %2, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !22
  %gep62 = getelementptr double, ptr %invariant.gep61, i64 %indvars.iv
  store double %66, ptr %gep62, align 8, !tbaa !22
  %indvars.iv.next.2 = add nsw i64 %indvars.iv, -3
  %67 = getelementptr inbounds i8, ptr %.03343, i64 -16
  %68 = load i32, ptr %62, align 4, !tbaa !21
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds double, ptr %2, i64 %69
  %71 = load double, ptr %70, align 8, !tbaa !22
  %72 = getelementptr inbounds double, ptr %35, i64 %indvars.iv.next.2
  store double %71, ptr %72, align 8, !tbaa !22
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, -4
  %73 = icmp ugt i64 %indvars.iv.next.2, 1
  br i1 %73, label %.lr.ph, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph.prol.loopexit
  br i1 %39, label %.lr.ph54, label %._crit_edge55

.lr.ph54:                                         ; preds = %._crit_edge
  %74 = getelementptr inbounds i8, ptr %0, i64 136
  %75 = load ptr, ptr %74, align 8, !tbaa !27
  %76 = getelementptr inbounds i32, ptr %75, i64 %38
  %77 = getelementptr inbounds i8, ptr %0, i64 96
  %78 = load ptr, ptr %77, align 8, !tbaa !28
  %79 = zext nneg i32 %37 to i64
  br label %80

80:                                               ; preds = %.lr.ph54, %._crit_edge50
  %indvars.iv57 = phi i64 [ %79, %.lr.ph54 ], [ %indvars.iv.next58, %._crit_edge50 ]
  %.152 = phi ptr [ %76, %.lr.ph54 ], [ %90, %._crit_edge50 ]
  %81 = getelementptr inbounds ptr, ptr %78, i64 %indvars.iv57
  %.044 = load ptr, ptr %81, align 8, !tbaa !14
  %.not4145 = icmp eq ptr %.044, null
  br i1 %.not4145, label %._crit_edge50, label %.lr.ph49

.lr.ph49:                                         ; preds = %80, %.lr.ph49
  %.047 = phi ptr [ %.0, %.lr.ph49 ], [ %.044, %80 ]
  %.03646 = phi double [ %88, %.lr.ph49 ], [ 0.000000e+00, %80 ]
  %82 = load double, ptr %.047, align 8, !tbaa !29
  %83 = getelementptr inbounds i8, ptr %.047, i64 12
  %84 = load i32, ptr %83, align 4, !tbaa !30
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds double, ptr %35, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !22
  %88 = tail call double @llvm.fmuladd.f64(double %82, double %87, double %.03646)
  %89 = getelementptr inbounds i8, ptr %.047, i64 16
  %.0 = load ptr, ptr %89, align 8, !tbaa !14
  %.not41 = icmp eq ptr %.0, null
  br i1 %.not41, label %._crit_edge50, label %.lr.ph49, !llvm.loop !31

._crit_edge50:                                    ; preds = %.lr.ph49, %80
  %.036.lcssa = phi double [ 0.000000e+00, %80 ], [ %88, %.lr.ph49 ]
  %90 = getelementptr inbounds i8, ptr %.152, i64 -4
  %91 = load i32, ptr %.152, align 4, !tbaa !21
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %1, i64 %92
  store double %.036.lcssa, ptr %93, align 8, !tbaa !22
  %indvars.iv.next58 = add nsw i64 %indvars.iv57, -1
  %94 = icmp sgt i64 %indvars.iv57, 1
  br i1 %94, label %80, label %._crit_edge55, !llvm.loop !32

._crit_edge55:                                    ; preds = %._crit_edge50, %33, %._crit_edge
  ret void
}

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) #4

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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 212}
!17 = !{!6, !10, i64 120}
!18 = !{!6, !11, i64 112}
!19 = !{!6, !10, i64 228}
!20 = !{!6, !11, i64 128}
!21 = !{!10, !10, i64 0}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!6, !11, i64 136}
!28 = !{!6, !11, i64 96}
!29 = !{!13, !7, i64 0}
!30 = !{!13, !10, i64 12}
!31 = distinct !{!31, !26}
!32 = distinct !{!32, !26}


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