; 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
@.str.4 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 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 double @spPseudoCondition(ptr noundef %0) #4 {
  %2 = alloca double, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %11, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %19

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

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

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

31:                                               ; preds = %26
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.MatrixFrame, ptr %32, i32 0, i32 9
  %34 = load i32, ptr %33, align 4, !tbaa !15
  %35 = icmp slt i32 %34, 2
  br i1 %35, label %43, label %36

36:                                               ; preds = %31, %26
  %37 = load ptr, ptr @stdout, align 8, !tbaa !5
  %38 = call i32 @fflush(ptr noundef %37)
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1372, ptr noundef @spcErrorsMustBeCleared) #5
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = call i32 @fflush(ptr noundef %41)
  call void @abort() #6
  unreachable

43:                                               ; preds = %31
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.MatrixFrame, ptr %44, i32 0, i32 13
  %46 = load i32, ptr %45, align 8, !tbaa !16
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %53

48:                                               ; preds = %43
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.MatrixFrame, ptr %49, i32 0, i32 26
  %51 = load i32, ptr %50, align 4, !tbaa !17
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %60

53:                                               ; preds = %48, %43
  %54 = load ptr, ptr @stdout, align 8, !tbaa !5
  %55 = call i32 @fflush(ptr noundef %54)
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1373, ptr noundef @spcMatrixMustBeFactored) #5
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = call i32 @fflush(ptr noundef %58)
  call void @abort() #6
  unreachable

60:                                               ; preds = %48
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.MatrixFrame, ptr %61, i32 0, i32 9
  %63 = load i32, ptr %62, align 4, !tbaa !15
  %64 = icmp eq i32 %63, 3
  br i1 %64, label %70, label %65

65:                                               ; preds = %60
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.MatrixFrame, ptr %66, i32 0, i32 9
  %68 = load i32, ptr %67, align 4, !tbaa !15
  %69 = icmp eq i32 %68, 2
  br i1 %69, label %70, label %71

70:                                               ; preds = %65, %60
  store double 0.000000e+00, ptr %2, align 8
  store i32 1, ptr %10, align 4
  br label %160

71:                                               ; preds = %65
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.MatrixFrame, ptr %72, i32 0, i32 5
  %74 = load ptr, ptr %73, align 8, !tbaa !18
  store ptr %74, ptr %6, align 8, !tbaa !5
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds ptr, ptr %75, i64 1
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.MatrixElement, ptr %77, i32 0, i32 0
  %79 = load double, ptr %78, align 8, !tbaa !19
  %80 = fcmp olt double %79, 0.000000e+00
  br i1 %80, label %81, label %88

81:                                               ; preds = %71
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds ptr, ptr %82, i64 1
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.MatrixElement, ptr %84, i32 0, i32 0
  %86 = load double, ptr %85, align 8, !tbaa !19
  %87 = fneg double %86
  br label %94

88:                                               ; preds = %71
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds ptr, ptr %89, i64 1
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.MatrixElement, ptr %91, i32 0, i32 0
  %93 = load double, ptr %92, align 8, !tbaa !19
  br label %94

94:                                               ; preds = %88, %81
  %95 = phi double [ %87, %81 ], [ %93, %88 ]
  store double %95, ptr %8, align 8, !tbaa !20
  store double %95, ptr %7, align 8, !tbaa !20
  store i32 2, ptr %5, align 4, !tbaa !21
  br label %96

96:                                               ; preds = %143, %94
  %97 = load i32, ptr %5, align 4, !tbaa !21
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.MatrixFrame, ptr %98, i32 0, i32 39
  %100 = load i32, ptr %99, align 4, !tbaa !22
  %101 = icmp sle i32 %97, %100
  br i1 %101, label %102, label %146

102:                                              ; preds = %96
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = load i32, ptr %5, align 4, !tbaa !21
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds ptr, ptr %103, i64 %105
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.MatrixElement, ptr %107, i32 0, i32 0
  %109 = load double, ptr %108, align 8, !tbaa !19
  %110 = fcmp olt double %109, 0.000000e+00
  br i1 %110, label %111, label %120

111:                                              ; preds = %102
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = load i32, ptr %5, align 4, !tbaa !21
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds ptr, ptr %112, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.MatrixElement, ptr %116, i32 0, i32 0
  %118 = load double, ptr %117, align 8, !tbaa !19
  %119 = fneg double %118
  br label %128

120:                                              ; preds = %102
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = load i32, ptr %5, align 4, !tbaa !21
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds ptr, ptr %121, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.MatrixElement, ptr %125, i32 0, i32 0
  %127 = load double, ptr %126, align 8, !tbaa !19
  br label %128

128:                                              ; preds = %120, %111
  %129 = phi double [ %119, %111 ], [ %127, %120 ]
  store double %129, ptr %9, align 8, !tbaa !20
  %130 = load double, ptr %9, align 8, !tbaa !20
  %131 = load double, ptr %7, align 8, !tbaa !20
  %132 = fcmp ogt double %130, %131
  br i1 %132, label %133, label %135

133:                                              ; preds = %128
  %134 = load double, ptr %9, align 8, !tbaa !20
  store double %134, ptr %7, align 8, !tbaa !20
  br label %142

135:                                              ; preds = %128
  %136 = load double, ptr %9, align 8, !tbaa !20
  %137 = load double, ptr %8, align 8, !tbaa !20
  %138 = fcmp olt double %136, %137
  br i1 %138, label %139, label %141

139:                                              ; preds = %135
  %140 = load double, ptr %9, align 8, !tbaa !20
  store double %140, ptr %8, align 8, !tbaa !20
  br label %141

141:                                              ; preds = %139, %135
  br label %142

142:                                              ; preds = %141, %133
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %5, align 4, !tbaa !21
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %5, align 4, !tbaa !21
  br label %96, !llvm.loop !23

146:                                              ; preds = %96
  %147 = load double, ptr %7, align 8, !tbaa !20
  %148 = fcmp ogt double %147, 0.000000e+00
  br i1 %148, label %156, label %149

149:                                              ; preds = %146
  %150 = load ptr, ptr @stdout, align 8, !tbaa !5
  %151 = call i32 @fflush(ptr noundef %150)
  %152 = load ptr, ptr @stderr, align 8, !tbaa !5
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1386, ptr noundef @.str.6) #5
  %154 = load ptr, ptr @stderr, align 8, !tbaa !5
  %155 = call i32 @fflush(ptr noundef %154)
  call void @abort() #6
  unreachable

156:                                              ; preds = %146
  %157 = load double, ptr %7, align 8, !tbaa !20
  %158 = load double, ptr %8, align 8, !tbaa !20
  %159 = fdiv double %157, %158
  store double %159, ptr %2, align 8
  store i32 1, ptr %10, align 4
  br label %160

160:                                              ; preds = %156, %70
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %161 = load double, ptr %2, align 8
  ret double %161
}

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 172}
!18 = !{!10, !6, i64 24}
!19 = !{!14, !11, i64 0}
!20 = !{!11, !11, i64 0}
!21 = !{!12, !12, i64 0}
!22 = !{!10, !12, i64 228}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; 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
@.str.4 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 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 double @spPseudoCondition(ptr noundef readonly %0) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %6, label %2

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

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

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

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

23:                                               ; preds = %13
  %24 = getelementptr inbounds i8, ptr %0, i64 80
  %25 = load i32, ptr %24, align 8, !tbaa !16
  %.not43 = icmp eq i32 %25, 0
  br i1 %.not43, label %29, label %26

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %0, i64 172
  %28 = load i32, ptr %27, align 4, !tbaa !17
  %.not44 = icmp eq i32 %28, 0
  br i1 %.not44, label %36, label %29

29:                                               ; preds = %26, %23
  %30 = load ptr, ptr @stdout, align 8, !tbaa !14
  %31 = tail call i32 @fflush(ptr noundef %30)
  %32 = load ptr, ptr @stderr, align 8, !tbaa !14
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1373, ptr noundef nonnull @spcMatrixMustBeFactored) #3
  %34 = load ptr, ptr @stderr, align 8, !tbaa !14
  %35 = tail call i32 @fflush(ptr noundef %34)
  tail call void @abort() #4
  unreachable

36:                                               ; preds = %26
  %37 = getelementptr inbounds i8, ptr %0, i64 24
  %38 = load ptr, ptr %37, align 8, !tbaa !18
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !14
  %41 = load double, ptr %40, align 8, !tbaa !19
  %42 = fcmp olt double %41, 0.000000e+00
  %43 = fneg double %41
  %44 = select i1 %42, double %43, double %41
  %45 = getelementptr inbounds i8, ptr %0, i64 228
  %46 = load i32, ptr %45, align 4, !tbaa !20
  %.not4546 = icmp slt i32 %46, 2
  br i1 %.not4546, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %36
  %47 = add nuw i32 %46, 1
  %wide.trip.count = zext i32 %47 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %48 = icmp eq i32 %47, 3
  br i1 %48, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %49 = and i64 %wide.trip.count, 4294967294
  %50 = add nsw i64 %49, -4
  br label %.lr.ph

.lr.ph:                                           ; preds = %71, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 2, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %71 ]
  %.03149 = phi double [ %44, %.lr.ph.preheader.new ], [ %.1.1, %71 ]
  %.03248 = phi double [ %44, %.lr.ph.preheader.new ], [ %.133.1, %71 ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %71 ]
  %51 = getelementptr inbounds ptr, ptr %38, i64 %indvars.iv
  %52 = load ptr, ptr %51, align 8, !tbaa !14
  %53 = load double, ptr %52, align 8, !tbaa !19
  %54 = fcmp olt double %53, 0.000000e+00
  %55 = fneg double %53
  %56 = select i1 %54, double %55, double %53
  %57 = fcmp ogt double %56, %.03248
  br i1 %57, label %.lr.ph.1, label %58

58:                                               ; preds = %.lr.ph
  %59 = fcmp olt double %56, %.03149
  br i1 %59, label %60, label %.lr.ph.1

60:                                               ; preds = %58
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph, %60, %58
  %.133 = phi double [ %.03248, %60 ], [ %.03248, %58 ], [ %56, %.lr.ph ]
  %.1 = phi double [ %56, %60 ], [ %.03149, %58 ], [ %.03149, %.lr.ph ]
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %61 = getelementptr inbounds ptr, ptr %38, i64 %indvars.iv.next
  %62 = load ptr, ptr %61, align 8, !tbaa !14
  %63 = load double, ptr %62, align 8, !tbaa !19
  %64 = fcmp olt double %63, 0.000000e+00
  %65 = fneg double %63
  %66 = select i1 %64, double %65, double %63
  %67 = fcmp ogt double %66, %.133
  br i1 %67, label %71, label %68

68:                                               ; preds = %.lr.ph.1
  %69 = fcmp olt double %66, %.1
  br i1 %69, label %70, label %71

70:                                               ; preds = %68
  br label %71

71:                                               ; preds = %70, %68, %.lr.ph.1
  %.133.1 = phi double [ %.133, %70 ], [ %.133, %68 ], [ %66, %.lr.ph.1 ]
  %.1.1 = phi double [ %66, %70 ], [ %.1, %68 ], [ %.1, %.lr.ph.1 ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter, %50
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !21

._crit_edge.loopexit.unr-lcssa:                   ; preds = %71, %.lr.ph.preheader
  %.133.lcssa.ph = phi double [ poison, %.lr.ph.preheader ], [ %.133.1, %71 ]
  %.1.lcssa.ph = phi double [ poison, %.lr.ph.preheader ], [ %.1.1, %71 ]
  %indvars.iv.unr = phi i64 [ 2, %.lr.ph.preheader ], [ %indvars.iv.next.1, %71 ]
  %.03149.unr = phi double [ %44, %.lr.ph.preheader ], [ %.1.1, %71 ]
  %.03248.unr = phi double [ %44, %.lr.ph.preheader ], [ %.133.1, %71 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %72 = getelementptr inbounds ptr, ptr %38, i64 %indvars.iv.unr
  %73 = load ptr, ptr %72, align 8, !tbaa !14
  %74 = load double, ptr %73, align 8, !tbaa !19
  %75 = fcmp olt double %74, 0.000000e+00
  %76 = fneg double %74
  %77 = select i1 %75, double %76, double %74
  %78 = fcmp ogt double %77, %.03248.unr
  br i1 %78, label %._crit_edge, label %79

79:                                               ; preds = %.lr.ph.epil
  %80 = fcmp olt double %77, %.03149.unr
  br i1 %80, label %81, label %._crit_edge

81:                                               ; preds = %79
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %81, %79, %.lr.ph.epil, %36
  %.032.lcssa = phi double [ %44, %36 ], [ %.133.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %.03248.unr, %81 ], [ %.03248.unr, %79 ], [ %77, %.lr.ph.epil ]
  %.031.lcssa = phi double [ %44, %36 ], [ %.1.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %77, %81 ], [ %.03149.unr, %79 ], [ %.03149.unr, %.lr.ph.epil ]
  %82 = fcmp ogt double %.032.lcssa, 0.000000e+00
  br i1 %82, label %90, label %83

83:                                               ; preds = %._crit_edge
  %84 = load ptr, ptr @stdout, align 8, !tbaa !14
  %85 = tail call i32 @fflush(ptr noundef %84)
  %86 = load ptr, ptr @stderr, align 8, !tbaa !14
  %87 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1386, ptr noundef nonnull @.str.6) #3
  %88 = load ptr, ptr @stderr, align 8, !tbaa !14
  %89 = tail call i32 @fflush(ptr noundef %88)
  tail call void @abort() #4
  unreachable

90:                                               ; preds = %._crit_edge
  %91 = fdiv double %.032.lcssa, %.031.lcssa
  ret double %91
}

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { cold nounwind }
attributes #4 = { noreturn nounwind }

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

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


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