; 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

; 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 @spLargestElement(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 double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %15, 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
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store double 0.000000e+00, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store double 0.000000e+00, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %23

18:                                               ; preds = %1
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.MatrixFrame, ptr %19, i32 0, i32 17
  %21 = load i64, ptr %20, align 8, !tbaa !11
  %22 = icmp eq i64 %21, 3735928559
  br i1 %22, label %30, label %23

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

30:                                               ; preds = %18
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.MatrixFrame, ptr %31, i32 0, i32 13
  %33 = load i32, ptr %32, align 8, !tbaa !16
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %160

35:                                               ; preds = %30
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.MatrixFrame, ptr %36, i32 0, i32 3
  %38 = load i32, ptr %37, align 8, !tbaa !17
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %160, label %40

40:                                               ; preds = %35
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.MatrixFrame, ptr %41, i32 0, i32 9
  %43 = load i32, ptr %42, align 4, !tbaa !18
  %44 = icmp eq i32 %43, 3
  br i1 %44, label %45, label %46

45:                                               ; preds = %40
  store double 0.000000e+00, ptr %2, align 8
  store i32 1, ptr %14, align 4
  br label %219

46:                                               ; preds = %40
  store i32 1, ptr %5, align 4, !tbaa !19
  br label %47

47:                                               ; preds = %156, %46
  %48 = load i32, ptr %5, align 4, !tbaa !19
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.MatrixFrame, ptr %49, i32 0, i32 39
  %51 = load i32, ptr %50, align 4, !tbaa !20
  %52 = icmp sle i32 %48, %51
  br i1 %52, label %53, label %159

53:                                               ; preds = %47
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.MatrixFrame, ptr %54, i32 0, i32 5
  %56 = load ptr, ptr %55, align 8, !tbaa !21
  %57 = load i32, ptr %5, align 4, !tbaa !19
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %56, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  store ptr %60, ptr %13, align 8, !tbaa !5
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.MatrixElement, ptr %61, i32 0, i32 0
  %63 = load double, ptr %62, align 8, !tbaa !22
  %64 = fdiv double 1.000000e+00, %63
  store double %64, ptr %11, align 8, !tbaa !9
  %65 = load double, ptr %11, align 8, !tbaa !9
  %66 = fcmp olt double %65, 0.000000e+00
  br i1 %66, label %67, label %70

67:                                               ; preds = %53
  %68 = load double, ptr %11, align 8, !tbaa !9
  %69 = fneg double %68
  br label %72

70:                                               ; preds = %53
  %71 = load double, ptr %11, align 8, !tbaa !9
  br label %72

72:                                               ; preds = %70, %67
  %73 = phi double [ %69, %67 ], [ %71, %70 ]
  store double %73, ptr %6, align 8, !tbaa !9
  %74 = load double, ptr %6, align 8, !tbaa !9
  %75 = load double, ptr %9, align 8, !tbaa !9
  %76 = fcmp ogt double %74, %75
  br i1 %76, label %77, label %79

77:                                               ; preds = %72
  %78 = load double, ptr %6, align 8, !tbaa !9
  store double %78, ptr %9, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %77, %72
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.MatrixFrame, ptr %80, i32 0, i32 16
  %82 = load ptr, ptr %81, align 8, !tbaa !23
  %83 = load i32, ptr %5, align 4, !tbaa !19
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds ptr, ptr %82, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  store ptr %86, ptr %12, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %112, %79
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = icmp ne ptr %88, %89
  br i1 %90, label %91, label %116

91:                                               ; preds = %87
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.MatrixElement, ptr %92, i32 0, i32 0
  %94 = load double, ptr %93, align 8, !tbaa !22
  %95 = fcmp olt double %94, 0.000000e+00
  br i1 %95, label %96, label %101

96:                                               ; preds = %91
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.MatrixElement, ptr %97, i32 0, i32 0
  %99 = load double, ptr %98, align 8, !tbaa !22
  %100 = fneg double %99
  br label %105

101:                                              ; preds = %91
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.MatrixElement, ptr %102, i32 0, i32 0
  %104 = load double, ptr %103, align 8, !tbaa !22
  br label %105

105:                                              ; preds = %101, %96
  %106 = phi double [ %100, %96 ], [ %104, %101 ]
  store double %106, ptr %6, align 8, !tbaa !9
  %107 = load double, ptr %6, align 8, !tbaa !9
  %108 = load double, ptr %9, align 8, !tbaa !9
  %109 = fcmp ogt double %107, %108
  br i1 %109, label %110, label %112

110:                                              ; preds = %105
  %111 = load double, ptr %6, align 8, !tbaa !9
  store double %111, ptr %9, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %110, %105
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.MatrixElement, ptr %113, i32 0, i32 3
  %115 = load ptr, ptr %114, align 8, !tbaa !24
  store ptr %115, ptr %12, align 8, !tbaa !5
  br label %87, !llvm.loop !25

116:                                              ; preds = %87
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.MatrixFrame, ptr %117, i32 0, i32 15
  %119 = load ptr, ptr %118, align 8, !tbaa !27
  %120 = load i32, ptr %5, align 4, !tbaa !19
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds ptr, ptr %119, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  store ptr %123, ptr %12, align 8, !tbaa !5
  store double 1.000000e+00, ptr %7, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %142, %116
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = load ptr, ptr %13, align 8, !tbaa !5
  %127 = icmp ne ptr %125, %126
  br i1 %127, label %128, label %149

128:                                              ; preds = %124
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.MatrixElement, ptr %129, i32 0, i32 0
  %131 = load double, ptr %130, align 8, !tbaa !22
  %132 = fcmp olt double %131, 0.000000e+00
  br i1 %132, label %133, label %138

133:                                              ; preds = %128
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.MatrixElement, ptr %134, i32 0, i32 0
  %136 = load double, ptr %135, align 8, !tbaa !22
  %137 = fneg double %136
  br label %142

138:                                              ; preds = %128
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.MatrixElement, ptr %139, i32 0, i32 0
  %141 = load double, ptr %140, align 8, !tbaa !22
  br label %142

142:                                              ; preds = %138, %133
  %143 = phi double [ %137, %133 ], [ %141, %138 ]
  %144 = load double, ptr %7, align 8, !tbaa !9
  %145 = fadd double %144, %143
  store double %145, ptr %7, align 8, !tbaa !9
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.MatrixElement, ptr %146, i32 0, i32 4
  %148 = load ptr, ptr %147, align 8, !tbaa !28
  store ptr %148, ptr %12, align 8, !tbaa !5
  br label %124, !llvm.loop !29

149:                                              ; preds = %124
  %150 = load double, ptr %7, align 8, !tbaa !9
  %151 = load double, ptr %10, align 8, !tbaa !9
  %152 = fcmp ogt double %150, %151
  br i1 %152, label %153, label %155

153:                                              ; preds = %149
  %154 = load double, ptr %7, align 8, !tbaa !9
  store double %154, ptr %10, align 8, !tbaa !9
  br label %155

155:                                              ; preds = %153, %149
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %5, align 4, !tbaa !19
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %5, align 4, !tbaa !19
  br label %47, !llvm.loop !30

159:                                              ; preds = %47
  br label %215

160:                                              ; preds = %35, %30
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.MatrixFrame, ptr %161, i32 0, i32 3
  %163 = load i32, ptr %162, align 8, !tbaa !17
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %214, label %165

165:                                              ; preds = %160
  store i32 1, ptr %5, align 4, !tbaa !19
  br label %166

166:                                              ; preds = %209, %165
  %167 = load i32, ptr %5, align 4, !tbaa !19
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.MatrixFrame, ptr %168, i32 0, i32 39
  %170 = load i32, ptr %169, align 4, !tbaa !20
  %171 = icmp sle i32 %167, %170
  br i1 %171, label %172, label %212

172:                                              ; preds = %166
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.MatrixFrame, ptr %173, i32 0, i32 15
  %175 = load ptr, ptr %174, align 8, !tbaa !27
  %176 = load i32, ptr %5, align 4, !tbaa !19
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds ptr, ptr %175, i64 %177
  %179 = load ptr, ptr %178, align 8, !tbaa !5
  store ptr %179, ptr %12, align 8, !tbaa !5
  br label %180

180:                                              ; preds = %204, %172
  %181 = load ptr, ptr %12, align 8, !tbaa !5
  %182 = icmp ne ptr %181, null
  br i1 %182, label %183, label %208

183:                                              ; preds = %180
  %184 = load ptr, ptr %12, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.MatrixElement, ptr %184, i32 0, i32 0
  %186 = load double, ptr %185, align 8, !tbaa !22
  %187 = fcmp olt double %186, 0.000000e+00
  br i1 %187, label %188, label %193

188:                                              ; preds = %183
  %189 = load ptr, ptr %12, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.MatrixElement, ptr %189, i32 0, i32 0
  %191 = load double, ptr %190, align 8, !tbaa !22
  %192 = fneg double %191
  br label %197

193:                                              ; preds = %183
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.MatrixElement, ptr %194, i32 0, i32 0
  %196 = load double, ptr %195, align 8, !tbaa !22
  br label %197

197:                                              ; preds = %193, %188
  %198 = phi double [ %192, %188 ], [ %196, %193 ]
  store double %198, ptr %6, align 8, !tbaa !9
  %199 = load double, ptr %6, align 8, !tbaa !9
  %200 = load double, ptr %8, align 8, !tbaa !9
  %201 = fcmp ogt double %199, %200
  br i1 %201, label %202, label %204

202:                                              ; preds = %197
  %203 = load double, ptr %6, align 8, !tbaa !9
  store double %203, ptr %8, align 8, !tbaa !9
  br label %204

204:                                              ; preds = %202, %197
  %205 = load ptr, ptr %12, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.MatrixElement, ptr %205, i32 0, i32 4
  %207 = load ptr, ptr %206, align 8, !tbaa !28
  store ptr %207, ptr %12, align 8, !tbaa !5
  br label %180, !llvm.loop !31

208:                                              ; preds = %180
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %5, align 4, !tbaa !19
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %5, align 4, !tbaa !19
  br label %166, !llvm.loop !32

212:                                              ; preds = %166
  %213 = load double, ptr %8, align 8, !tbaa !9
  store double %213, ptr %2, align 8
  store i32 1, ptr %14, align 4
  br label %219

214:                                              ; preds = %160
  br label %215

215:                                              ; preds = %214, %159
  %216 = load double, ptr %9, align 8, !tbaa !9
  %217 = load double, ptr %10, align 8, !tbaa !9
  %218 = fmul double %216, %217
  store double %218, ptr %2, align 8
  store i32 1, ptr %14, align 4
  br label %219

219:                                              ; preds = %215, %212, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  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
  %220 = load double, ptr %2, align 8
  ret double %220
}

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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !14, i64 104}
!12 = !{!"MatrixFrame", !10, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !13, i64 52, !13, i64 56, !6, i64 64, !6, i64 72, !13, i64 80, !13, i64 84, !6, i64 88, !6, i64 96, !14, i64 104, !6, i64 112, !13, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !13, i64 168, !13, i64 172, !13, i64 176, !13, i64 180, !13, i64 184, !13, i64 188, !7, i64 192, !13, i64 196, !10, i64 200, !13, i64 208, !13, i64 212, !13, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !15, i64 232, !6, i64 272, !13, i64 280, !6, i64 288, !13, i64 296, !6, i64 304, !13, i64 312, !6, i64 320, !6, i64 328}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"MatrixElement", !10, i64 0, !13, i64 8, !13, i64 12, !6, i64 16, !6, i64 24, !6, i64 32}
!16 = !{!12, !13, i64 80}
!17 = !{!12, !13, i64 16}
!18 = !{!12, !13, i64 52}
!19 = !{!13, !13, i64 0}
!20 = !{!12, !13, i64 228}
!21 = !{!12, !6, i64 24}
!22 = !{!15, !10, i64 0}
!23 = !{!12, !6, i64 96}
!24 = !{!15, !6, i64 16}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!12, !6, i64 88}
!28 = !{!15, !6, i64 24}
!29 = distinct !{!29, !26}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}
!32 = distinct !{!32, !26}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@stdout = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [66 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [122 x i8], align 1
@spcMatrixIsNotValid = external global [0 x i8], align 1

; 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 @spLargestElement(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 1976, 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 80
  %15 = load i32, ptr %14, align 8, !tbaa !15
  %.not82 = icmp eq i32 %15, 0
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 16
  %.pre = load i32, ptr %.phi.trans.insert, align 8, !tbaa !16
  %16 = icmp eq i32 %.pre, 0
  br i1 %.not82, label %55, label %17

17:                                               ; preds = %13
  br i1 %16, label %18, label %.loopexit91

18:                                               ; preds = %17
  %19 = getelementptr inbounds i8, ptr %0, i64 52
  %20 = load i32, ptr %19, align 4, !tbaa !17
  %21 = icmp eq i32 %20, 3
  br i1 %21, label %.loopexit, label %.preheader90

.preheader90:                                     ; preds = %18
  %22 = getelementptr inbounds i8, ptr %0, i64 228
  %23 = load i32, ptr %22, align 4, !tbaa !18
  %.not84104 = icmp slt i32 %23, 1
  br i1 %.not84104, label %.loopexit91, label %.lr.ph108

.lr.ph108:                                        ; preds = %.preheader90
  %24 = getelementptr inbounds i8, ptr %0, i64 24
  %25 = load ptr, ptr %24, align 8, !tbaa !19
  %26 = getelementptr inbounds i8, ptr %0, i64 96
  %27 = load ptr, ptr %26, align 8, !tbaa !20
  %28 = getelementptr inbounds i8, ptr %0, i64 88
  %29 = load ptr, ptr %28, align 8, !tbaa !21
  %30 = add nuw i32 %23, 1
  %wide.trip.count = zext i32 %30 to i64
  br label %31

31:                                               ; preds = %.lr.ph108, %._crit_edge102
  %indvars.iv = phi i64 [ 1, %.lr.ph108 ], [ %indvars.iv.next, %._crit_edge102 ]
  %.061106 = phi double [ 0.000000e+00, %.lr.ph108 ], [ %.162, %._crit_edge102 ]
  %.064105 = phi double [ 0.000000e+00, %.lr.ph108 ], [ %.266.lcssa, %._crit_edge102 ]
  %32 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv
  %33 = load ptr, ptr %32, align 8, !tbaa !14
  %34 = load double, ptr %33, align 8, !tbaa !22
  %35 = fdiv double 1.000000e+00, %34
  %36 = fcmp olt double %35, 0.000000e+00
  %37 = fneg double %35
  %38 = select i1 %36, double %37, double %35
  %39 = fcmp ogt double %38, %.064105
  %.165 = select i1 %39, double %38, double %.064105
  %40 = getelementptr inbounds ptr, ptr %27, i64 %indvars.iv
  %.05892 = load ptr, ptr %40, align 8, !tbaa !14
  %.not8593 = icmp eq ptr %.05892, %33
  br i1 %.not8593, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %31, %.lr.ph
  %.05895 = phi ptr [ %.058, %.lr.ph ], [ %.05892, %31 ]
  %.26694 = phi double [ %.3, %.lr.ph ], [ %.165, %31 ]
  %41 = load double, ptr %.05895, align 8, !tbaa !22
  %42 = fcmp olt double %41, 0.000000e+00
  %43 = fneg double %41
  %44 = select i1 %42, double %43, double %41
  %45 = fcmp ogt double %44, %.26694
  %.3 = select i1 %45, double %44, double %.26694
  %46 = getelementptr inbounds i8, ptr %.05895, i64 16
  %.058 = load ptr, ptr %46, align 8, !tbaa !14
  %.not85 = icmp eq ptr %.058, %33
  br i1 %.not85, label %._crit_edge, label %.lr.ph, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph, %31
  %.266.lcssa = phi double [ %.165, %31 ], [ %.3, %.lr.ph ]
  %47 = getelementptr inbounds ptr, ptr %29, i64 %indvars.iv
  %.196 = load ptr, ptr %47, align 8, !tbaa !14
  %.not8697 = icmp eq ptr %.196, %33
  br i1 %.not8697, label %._crit_edge102, label %.lr.ph101

.lr.ph101:                                        ; preds = %._crit_edge, %.lr.ph101
  %.199 = phi ptr [ %.1, %.lr.ph101 ], [ %.196, %._crit_edge ]
  %.07098 = phi double [ %52, %.lr.ph101 ], [ 1.000000e+00, %._crit_edge ]
  %48 = load double, ptr %.199, align 8, !tbaa !22
  %49 = fcmp olt double %48, 0.000000e+00
  %50 = fneg double %48
  %51 = select i1 %49, double %50, double %48
  %52 = fadd double %.07098, %51
  %53 = getelementptr inbounds i8, ptr %.199, i64 24
  %.1 = load ptr, ptr %53, align 8, !tbaa !14
  %.not86 = icmp eq ptr %.1, %33
  br i1 %.not86, label %._crit_edge102, label %.lr.ph101, !llvm.loop !25

._crit_edge102:                                   ; preds = %.lr.ph101, %._crit_edge
  %.070.lcssa = phi double [ 1.000000e+00, %._crit_edge ], [ %52, %.lr.ph101 ]
  %54 = fcmp ogt double %.070.lcssa, %.061106
  %.162 = select i1 %54, double %.070.lcssa, double %.061106
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit91, label %31, !llvm.loop !26

55:                                               ; preds = %13
  br i1 %16, label %.preheader, label %.loopexit91

.preheader:                                       ; preds = %55
  %56 = getelementptr inbounds i8, ptr %0, i64 228
  %57 = load i32, ptr %56, align 4, !tbaa !18
  %.not88119 = icmp slt i32 %57, 1
  br i1 %.not88119, label %.loopexit, label %.lr.ph122

.lr.ph122:                                        ; preds = %.preheader
  %58 = getelementptr inbounds i8, ptr %0, i64 88
  %59 = load ptr, ptr %58, align 8, !tbaa !21
  %60 = add nuw i32 %57, 1
  %wide.trip.count128 = zext i32 %60 to i64
  br label %61

61:                                               ; preds = %.lr.ph122, %._crit_edge117
  %indvars.iv125 = phi i64 [ 1, %.lr.ph122 ], [ %indvars.iv.next126, %._crit_edge117 ]
  %.067120 = phi double [ 0.000000e+00, %.lr.ph122 ], [ %.168.lcssa, %._crit_edge117 ]
  %62 = getelementptr inbounds ptr, ptr %59, i64 %indvars.iv125
  %.2111 = load ptr, ptr %62, align 8, !tbaa !14
  %.not89112 = icmp eq ptr %.2111, null
  br i1 %.not89112, label %._crit_edge117, label %.lr.ph116

.lr.ph116:                                        ; preds = %61, %.lr.ph116
  %.2114 = phi ptr [ %.2, %.lr.ph116 ], [ %.2111, %61 ]
  %.168113 = phi double [ %.269, %.lr.ph116 ], [ %.067120, %61 ]
  %63 = load double, ptr %.2114, align 8, !tbaa !22
  %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, %.168113
  %.269 = select i1 %67, double %66, double %.168113
  %68 = getelementptr inbounds i8, ptr %.2114, i64 24
  %.2 = load ptr, ptr %68, align 8, !tbaa !14
  %.not89 = icmp eq ptr %.2, null
  br i1 %.not89, label %._crit_edge117, label %.lr.ph116, !llvm.loop !27

._crit_edge117:                                   ; preds = %.lr.ph116, %61
  %.168.lcssa = phi double [ %.067120, %61 ], [ %.269, %.lr.ph116 ]
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %exitcond129.not = icmp eq i64 %indvars.iv.next126, %wide.trip.count128
  br i1 %exitcond129.not, label %.loopexit, label %61, !llvm.loop !28

.loopexit91:                                      ; preds = %._crit_edge102, %17, %.preheader90, %55
  %.4 = phi double [ 0.000000e+00, %55 ], [ 0.000000e+00, %.preheader90 ], [ 0.000000e+00, %17 ], [ %.266.lcssa, %._crit_edge102 ]
  %.263 = phi double [ 0.000000e+00, %55 ], [ 0.000000e+00, %.preheader90 ], [ 0.000000e+00, %17 ], [ %.162, %._crit_edge102 ]
  %69 = fmul double %.4, %.263
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge117, %.preheader, %18, %.loopexit91
  %.0 = phi double [ %69, %.loopexit91 ], [ 0.000000e+00, %18 ], [ 0.000000e+00, %.preheader ], [ %.168.lcssa, %._crit_edge117 ]
  ret double %.0
}

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


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