; 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
@spcMatrixMustBeFactored = 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: nounwind uwtable
declare dso_local double @spLargestElement(ptr noundef) #5

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

17:                                               ; preds = %2
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.MatrixFrame, ptr %18, i32 0, i32 17
  %20 = load i64, ptr %19, align 8, !tbaa !13
  %21 = icmp eq i64 %20, 3735928559
  br i1 %21, label %29, label %22

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

29:                                               ; preds = %17
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.MatrixFrame, ptr %30, i32 0, i32 9
  %32 = load i32, ptr %31, align 4, !tbaa !17
  %33 = icmp sge i32 %32, 0
  br i1 %33, label %34, label %39

34:                                               ; preds = %29
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.MatrixFrame, ptr %35, i32 0, i32 9
  %37 = load i32, ptr %36, align 4, !tbaa !17
  %38 = icmp slt i32 %37, 2
  br i1 %38, label %46, label %39

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

46:                                               ; preds = %34
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.MatrixFrame, ptr %47, i32 0, i32 13
  %49 = load i32, ptr %48, align 8, !tbaa !18
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %56

51:                                               ; preds = %46
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.MatrixFrame, ptr %52, i32 0, i32 26
  %54 = load i32, ptr %53, align 4, !tbaa !19
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %63

56:                                               ; preds = %51, %46
  %57 = load ptr, ptr @stdout, align 8, !tbaa !5
  %58 = call i32 @fflush(ptr noundef %57)
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 2098, ptr noundef @spcMatrixMustBeFactored) #6
  %61 = load ptr, ptr @stderr, align 8, !tbaa !5
  %62 = call i32 @fflush(ptr noundef %61)
  call void @abort() #7
  unreachable

63:                                               ; preds = %51
  %64 = load double, ptr %5, align 8, !tbaa !9
  %65 = fcmp olt double %64, 0.000000e+00
  br i1 %65, label %66, label %69

66:                                               ; preds = %63
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = call double @spLargestElement(ptr noundef %67)
  store double %68, ptr %5, align 8, !tbaa !9
  br label %69

69:                                               ; preds = %66, %63
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.MatrixFrame, ptr %70, i32 0, i32 25
  %72 = load i32, ptr %71, align 8, !tbaa !20
  %73 = icmp slt i32 %72, 0
  br i1 %73, label %74, label %115

74:                                               ; preds = %69
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.MatrixFrame, ptr %75, i32 0, i32 39
  %77 = load i32, ptr %76, align 4, !tbaa !21
  store i32 %77, ptr %9, align 4, !tbaa !11
  br label %78

78:                                               ; preds = %108, %74
  %79 = load i32, ptr %9, align 4, !tbaa !11
  %80 = icmp sgt i32 %79, 0
  br i1 %80, label %81, label %111

81:                                               ; preds = %78
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.MatrixFrame, ptr %82, i32 0, i32 16
  %84 = load ptr, ptr %83, align 8, !tbaa !22
  %85 = load i32, ptr %9, align 4, !tbaa !11
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds ptr, ptr %84, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  store ptr %88, ptr %7, align 8, !tbaa !5
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %89

89:                                               ; preds = %95, %81
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.MatrixElement, ptr %90, i32 0, i32 2
  %92 = load i32, ptr %91, align 4, !tbaa !23
  %93 = load i32, ptr %9, align 4, !tbaa !11
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %95, label %101

95:                                               ; preds = %89
  %96 = load i32, ptr %8, align 4, !tbaa !11
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %8, align 4, !tbaa !11
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.MatrixElement, ptr %98, i32 0, i32 3
  %100 = load ptr, ptr %99, align 8, !tbaa !24
  store ptr %100, ptr %7, align 8, !tbaa !5
  br label %89, !llvm.loop !25

101:                                              ; preds = %89
  %102 = load i32, ptr %8, align 4, !tbaa !11
  %103 = load i32, ptr %10, align 4, !tbaa !11
  %104 = icmp sgt i32 %102, %103
  br i1 %104, label %105, label %107

105:                                              ; preds = %101
  %106 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %106, ptr %10, align 4, !tbaa !11
  br label %107

107:                                              ; preds = %105, %101
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %9, align 4, !tbaa !11
  %110 = add nsw i32 %109, -1
  store i32 %110, ptr %9, align 4, !tbaa !11
  br label %78, !llvm.loop !27

111:                                              ; preds = %78
  %112 = load i32, ptr %10, align 4, !tbaa !11
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.MatrixFrame, ptr %113, i32 0, i32 25
  store i32 %112, ptr %114, align 8, !tbaa !20
  br label %119

115:                                              ; preds = %69
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.MatrixFrame, ptr %116, i32 0, i32 25
  %118 = load i32, ptr %117, align 8, !tbaa !20
  store i32 %118, ptr %10, align 4, !tbaa !11
  br label %119

119:                                              ; preds = %115, %111
  %120 = load i32, ptr %10, align 4, !tbaa !11
  %121 = add nsw i32 %120, 1
  %122 = sitofp i32 %121 to double
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.MatrixFrame, ptr %123, i32 0, i32 33
  %125 = load double, ptr %124, align 8, !tbaa !28
  %126 = call double @llvm.fmuladd.f64(double %122, double %125, double 1.000000e+00)
  %127 = fmul double 1.010000e+00, %126
  %128 = load i32, ptr %10, align 4, !tbaa !11
  %129 = load i32, ptr %10, align 4, !tbaa !11
  %130 = mul nsw i32 %128, %129
  %131 = sitofp i32 %130 to double
  %132 = fmul double %127, %131
  store double %132, ptr %12, align 8, !tbaa !9
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.MatrixFrame, ptr %133, i32 0, i32 39
  %135 = load i32, ptr %134, align 4, !tbaa !21
  %136 = sitofp i32 %135 to double
  %137 = fmul double 3.010000e+00, %136
  store double %137, ptr %11, align 8, !tbaa !9
  %138 = load double, ptr %12, align 8, !tbaa !9
  %139 = load double, ptr %11, align 8, !tbaa !9
  %140 = fcmp olt double %138, %139
  br i1 %140, label %141, label %146

141:                                              ; preds = %119
  %142 = load double, ptr %5, align 8, !tbaa !9
  %143 = fmul double 0x3CB0000000000000, %142
  %144 = load double, ptr %12, align 8, !tbaa !9
  %145 = fmul double %143, %144
  store double %145, ptr %3, align 8
  store i32 1, ptr %13, align 4
  br label %151

146:                                              ; preds = %119
  %147 = load double, ptr %5, align 8, !tbaa !9
  %148 = fmul double 0x3CB0000000000000, %147
  %149 = load double, ptr %11, align 8, !tbaa !9
  %150 = fmul double %148, %149
  store double %150, ptr %3, align 8
  store i32 1, ptr %13, align 4
  br label %151

151:                                              ; preds = %146, %141
  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 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %152 = load double, ptr %3, align 8
  ret double %152
}

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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !15, i64 104}
!14 = !{!"MatrixFrame", !10, 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, !15, 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, !10, i64 200, !12, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !16, 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}
!15 = !{!"long", !7, i64 0}
!16 = !{!"MatrixElement", !10, i64 0, !12, i64 8, !12, i64 12, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!14, !12, i64 52}
!18 = !{!14, !12, i64 80}
!19 = !{!14, !12, i64 172}
!20 = !{!14, !12, i64 168}
!21 = !{!14, !12, i64 228}
!22 = !{!14, !6, i64 96}
!23 = !{!16, !12, i64 12}
!24 = !{!16, !6, i64 16}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!14, !10, i64 200}


; 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
@spcMatrixMustBeFactored = 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nounwind uwtable
declare dso_local double @spLargestElement(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local double @spRoundoff(ptr noundef %0, double noundef %1) local_unnamed_addr #3 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %7, label %3

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

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

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

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

24:                                               ; preds = %14
  %25 = getelementptr inbounds i8, ptr %0, i64 80
  %26 = load i32, ptr %25, align 8, !tbaa !16
  %.not47 = icmp eq i32 %26, 0
  br i1 %.not47, label %30, label %27

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %0, i64 172
  %29 = load i32, ptr %28, align 4, !tbaa !17
  %.not48 = icmp eq i32 %29, 0
  br i1 %.not48, label %37, label %30

30:                                               ; preds = %27, %24
  %31 = load ptr, ptr @stdout, align 8, !tbaa !14
  %32 = tail call i32 @fflush(ptr noundef %31)
  %33 = load ptr, ptr @stderr, align 8, !tbaa !14
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 2098, ptr noundef nonnull @spcMatrixMustBeFactored) #5
  %35 = load ptr, ptr @stderr, align 8, !tbaa !14
  %36 = tail call i32 @fflush(ptr noundef %35)
  tail call void @abort() #6
  unreachable

37:                                               ; preds = %27
  %38 = fcmp olt double %1, 0.000000e+00
  br i1 %38, label %39, label %41

39:                                               ; preds = %37
  %40 = tail call double @spLargestElement(ptr noundef nonnull %0)
  br label %41

41:                                               ; preds = %39, %37
  %.036 = phi double [ %40, %39 ], [ %1, %37 ]
  %42 = getelementptr inbounds i8, ptr %0, i64 168
  %43 = load i32, ptr %42, align 8, !tbaa !18
  %44 = icmp slt i32 %43, 0
  %45 = getelementptr inbounds i8, ptr %0, i64 228
  %46 = load i32, ptr %45, align 4, !tbaa !19
  br i1 %44, label %47, label %._crit_edge59

47:                                               ; preds = %41
  %48 = icmp sgt i32 %46, 0
  br i1 %48, label %.lr.ph55, label %._crit_edge56

.lr.ph55:                                         ; preds = %47
  %49 = getelementptr inbounds i8, ptr %0, i64 96
  %50 = load ptr, ptr %49, align 8, !tbaa !20
  %51 = zext nneg i32 %46 to i64
  br label %52

52:                                               ; preds = %.lr.ph55, %._crit_edge
  %indvars.iv = phi i64 [ %51, %.lr.ph55 ], [ %indvars.iv.next, %._crit_edge ]
  %.03753 = phi i32 [ 0, %.lr.ph55 ], [ %spec.select, %._crit_edge ]
  %53 = getelementptr inbounds ptr, ptr %50, i64 %indvars.iv
  %.04049 = load ptr, ptr %53, align 8, !tbaa !14
  %54 = getelementptr inbounds i8, ptr %.04049, i64 12
  %55 = load i32, ptr %54, align 4, !tbaa !21
  %56 = sext i32 %55 to i64
  %57 = icmp sgt i64 %indvars.iv, %56
  br i1 %57, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %52, %.lr.ph
  %.04051 = phi ptr [ %.040, %.lr.ph ], [ %.04049, %52 ]
  %.03950 = phi i32 [ %58, %.lr.ph ], [ 0, %52 ]
  %58 = add nuw nsw i32 %.03950, 1
  %59 = getelementptr inbounds i8, ptr %.04051, i64 16
  %.040 = load ptr, ptr %59, align 8, !tbaa !14
  %60 = getelementptr inbounds i8, ptr %.040, i64 12
  %61 = load i32, ptr %60, align 4, !tbaa !21
  %62 = sext i32 %61 to i64
  %63 = icmp sgt i64 %indvars.iv, %62
  br i1 %63, label %.lr.ph, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %.lr.ph, %52
  %.039.lcssa = phi i32 [ 0, %52 ], [ %58, %.lr.ph ]
  %spec.select = tail call i32 @llvm.smax.i32(i32 %.039.lcssa, i32 %.03753)
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %64 = icmp sgt i64 %indvars.iv, 1
  br i1 %64, label %52, label %._crit_edge56, !llvm.loop !24

._crit_edge56:                                    ; preds = %._crit_edge, %47
  %.037.lcssa = phi i32 [ 0, %47 ], [ %spec.select, %._crit_edge ]
  store i32 %.037.lcssa, ptr %42, align 8, !tbaa !18
  br label %._crit_edge59

._crit_edge59:                                    ; preds = %41, %._crit_edge56
  %.2 = phi i32 [ %.037.lcssa, %._crit_edge56 ], [ %43, %41 ]
  %65 = add nuw nsw i32 %.2, 1
  %66 = uitofp nneg i32 %65 to double
  %67 = getelementptr inbounds i8, ptr %0, i64 200
  %68 = load double, ptr %67, align 8, !tbaa !25
  %69 = tail call double @llvm.fmuladd.f64(double %66, double %68, double 1.000000e+00)
  %70 = fmul double %69, 1.010000e+00
  %71 = mul nsw i32 %.2, %.2
  %72 = uitofp nneg i32 %71 to double
  %73 = fmul double %70, %72
  %74 = sitofp i32 %46 to double
  %75 = fmul double %74, 3.010000e+00
  %76 = fcmp olt double %73, %75
  %77 = fmul double %.036, 0x3CB0000000000000
  %.0.v = select i1 %76, double %73, double %75
  %.0 = fmul double %77, %.0.v
  ret double %.0
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { cold 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, !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 172}
!18 = !{!6, !10, i64 168}
!19 = !{!6, !10, i64 228}
!20 = !{!6, !11, i64 96}
!21 = !{!13, !10, i64 12}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!6, !7, i64 200}


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