; 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: nounwind uwtable
define dso_local void @spDeterminant(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 i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  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) #5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %11, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %12 = load ptr, ptr %7, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %19

14:                                               ; preds = %3
  %15 = load ptr, ptr %7, 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, %3
  %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 1014, 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 %7, 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 %7, 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 1015, 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 %7, 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 %7, 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 1016, 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 %5, align 8, !tbaa !5
  store i32 0, ptr %61, align 4, !tbaa !18
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.MatrixFrame, ptr %62, i32 0, i32 9
  %64 = load i32, ptr %63, align 4, !tbaa !15
  %65 = icmp eq i32 %64, 3
  br i1 %65, label %66, label %68

66:                                               ; preds = %60
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  store double 0.000000e+00, ptr %67, align 8, !tbaa !19
  store i32 1, ptr %10, align 4
  br label %200

68:                                               ; preds = %60
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.MatrixFrame, ptr %69, i32 0, i32 39
  %71 = load i32, ptr %70, align 4, !tbaa !20
  store i32 %71, ptr %9, align 4, !tbaa !18
  store i32 0, ptr %8, align 4, !tbaa !18
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  store double 1.000000e+00, ptr %72, align 8, !tbaa !19
  br label %73

73:                                               ; preds = %139, %68
  %74 = load i32, ptr %8, align 4, !tbaa !18
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %8, align 4, !tbaa !18
  %76 = load i32, ptr %9, align 4, !tbaa !18
  %77 = icmp sle i32 %75, %76
  br i1 %77, label %78, label %140

78:                                               ; preds = %73
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.MatrixFrame, ptr %79, i32 0, i32 5
  %81 = load ptr, ptr %80, align 8, !tbaa !21
  %82 = load i32, ptr %8, align 4, !tbaa !18
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds ptr, ptr %81, i64 %83
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.MatrixElement, ptr %85, i32 0, i32 0
  %87 = load double, ptr %86, align 8, !tbaa !22
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = load double, ptr %88, align 8, !tbaa !19
  %90 = fdiv double %89, %87
  store double %90, ptr %88, align 8, !tbaa !19
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = load double, ptr %91, align 8, !tbaa !19
  %93 = fcmp une double %92, 0.000000e+00
  br i1 %93, label %94, label %139

94:                                               ; preds = %78
  br label %95

95:                                               ; preds = %109, %94
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = load double, ptr %96, align 8, !tbaa !19
  %98 = fcmp olt double %97, 0.000000e+00
  br i1 %98, label %99, label %103

99:                                               ; preds = %95
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = load double, ptr %100, align 8, !tbaa !19
  %102 = fneg double %101
  br label %106

103:                                              ; preds = %95
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = load double, ptr %104, align 8, !tbaa !19
  br label %106

106:                                              ; preds = %103, %99
  %107 = phi double [ %102, %99 ], [ %105, %103 ]
  %108 = fcmp oge double %107, 1.000000e+12
  br i1 %108, label %109, label %116

109:                                              ; preds = %106
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = load double, ptr %110, align 8, !tbaa !19
  %112 = fmul double %111, 0x3D719799812DEA11
  store double %112, ptr %110, align 8, !tbaa !19
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 4, !tbaa !18
  %115 = add nsw i32 %114, 12
  store i32 %115, ptr %113, align 4, !tbaa !18
  br label %95, !llvm.loop !23

116:                                              ; preds = %106
  br label %117

117:                                              ; preds = %131, %116
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = load double, ptr %118, align 8, !tbaa !19
  %120 = fcmp olt double %119, 0.000000e+00
  br i1 %120, label %121, label %125

121:                                              ; preds = %117
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = load double, ptr %122, align 8, !tbaa !19
  %124 = fneg double %123
  br label %128

125:                                              ; preds = %117
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = load double, ptr %126, align 8, !tbaa !19
  br label %128

128:                                              ; preds = %125, %121
  %129 = phi double [ %124, %121 ], [ %127, %125 ]
  %130 = fcmp olt double %129, 0x3D719799812DEA11
  br i1 %130, label %131, label %138

131:                                              ; preds = %128
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load double, ptr %132, align 8, !tbaa !19
  %134 = fmul double %133, 1.000000e+12
  store double %134, ptr %132, align 8, !tbaa !19
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = load i32, ptr %135, align 4, !tbaa !18
  %137 = sub nsw i32 %136, 12
  store i32 %137, ptr %135, align 4, !tbaa !18
  br label %117, !llvm.loop !25

138:                                              ; preds = %128
  br label %139

139:                                              ; preds = %138, %78
  br label %73, !llvm.loop !26

140:                                              ; preds = %73
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = load double, ptr %141, align 8, !tbaa !19
  %143 = fcmp une double %142, 0.000000e+00
  br i1 %143, label %144, label %189

144:                                              ; preds = %140
  br label %145

145:                                              ; preds = %159, %144
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = load double, ptr %146, align 8, !tbaa !19
  %148 = fcmp olt double %147, 0.000000e+00
  br i1 %148, label %149, label %153

149:                                              ; preds = %145
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = load double, ptr %150, align 8, !tbaa !19
  %152 = fneg double %151
  br label %156

153:                                              ; preds = %145
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = load double, ptr %154, align 8, !tbaa !19
  br label %156

156:                                              ; preds = %153, %149
  %157 = phi double [ %152, %149 ], [ %155, %153 ]
  %158 = fcmp oge double %157, 1.000000e+01
  br i1 %158, label %159, label %166

159:                                              ; preds = %156
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = load double, ptr %160, align 8, !tbaa !19
  %162 = fmul double %161, 1.000000e-01
  store double %162, ptr %160, align 8, !tbaa !19
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = load i32, ptr %163, align 4, !tbaa !18
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %163, align 4, !tbaa !18
  br label %145, !llvm.loop !27

166:                                              ; preds = %156
  br label %167

167:                                              ; preds = %181, %166
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = load double, ptr %168, align 8, !tbaa !19
  %170 = fcmp olt double %169, 0.000000e+00
  br i1 %170, label %171, label %175

171:                                              ; preds = %167
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = load double, ptr %172, align 8, !tbaa !19
  %174 = fneg double %173
  br label %178

175:                                              ; preds = %167
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = load double, ptr %176, align 8, !tbaa !19
  br label %178

178:                                              ; preds = %175, %171
  %179 = phi double [ %174, %171 ], [ %177, %175 ]
  %180 = fcmp olt double %179, 1.000000e+00
  br i1 %180, label %181, label %188

181:                                              ; preds = %178
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = load double, ptr %182, align 8, !tbaa !19
  %184 = fmul double %183, 1.000000e+01
  store double %184, ptr %182, align 8, !tbaa !19
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = load i32, ptr %185, align 4, !tbaa !18
  %187 = add nsw i32 %186, -1
  store i32 %187, ptr %185, align 4, !tbaa !18
  br label %167, !llvm.loop !28

188:                                              ; preds = %178
  br label %189

189:                                              ; preds = %188, %140
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.MatrixFrame, ptr %190, i32 0, i32 27
  %192 = load i32, ptr %191, align 8, !tbaa !29
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %199

194:                                              ; preds = %189
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = load double, ptr %195, align 8, !tbaa !19
  %197 = fneg double %196
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  store double %197, ptr %198, align 8, !tbaa !19
  br label %199

199:                                              ; preds = %194, %189
  store i32 0, ptr %10, align 4
  br label %200

200:                                              ; preds = %199, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %201 = load i32, ptr %10, align 4
  switch i32 %201, label %203 [
    i32 0, label %202
    i32 1, label %202
  ]

202:                                              ; preds = %200, %200
  ret void

203:                                              ; preds = %200
  unreachable
}

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 = !{!12, !12, i64 0}
!19 = !{!11, !11, i64 0}
!20 = !{!10, !12, i64 228}
!21 = !{!10, !6, i64 24}
!22 = !{!14, !11, 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}
!29 = !{!10, !12, i64 176}


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

15:                                               ; preds = %4
  %16 = getelementptr inbounds i8, ptr %0, i64 52
  %17 = load i32, ptr %16, align 4, !tbaa !15
  %or.cond = icmp ult i32 %17, 2
  br i1 %or.cond, 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 1015, ptr noundef nonnull @spcErrorsMustBeCleared) #3
  %23 = load ptr, ptr @stderr, align 8, !tbaa !14
  %24 = tail call i32 @fflush(ptr noundef %23)
  tail call void @abort() #4
  unreachable

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

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %0, i64 172
  %30 = load i32, ptr %29, align 4, !tbaa !17
  %.not52 = icmp eq i32 %30, 0
  br i1 %.not52, label %38, label %31

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

38:                                               ; preds = %28
  store i32 0, ptr %1, align 4, !tbaa !18
  %39 = load i32, ptr %16, align 4, !tbaa !15
  %40 = icmp eq i32 %39, 3
  br i1 %40, label %.sink.split, label %41

41:                                               ; preds = %38
  %42 = getelementptr inbounds i8, ptr %0, i64 228
  %43 = load i32, ptr %42, align 4, !tbaa !19
  store double 1.000000e+00, ptr %2, align 8, !tbaa !20
  %.not53.not66 = icmp sgt i32 %43, 0
  br i1 %.not53.not66, label %.lr.ph67, label %.preheader55

.lr.ph67:                                         ; preds = %41
  %44 = getelementptr inbounds i8, ptr %0, i64 24
  %45 = load ptr, ptr %44, align 8, !tbaa !21
  %46 = add nuw i32 %43, 1
  %wide.trip.count = zext i32 %46 to i64
  br label %47

47:                                               ; preds = %.lr.ph67, %.loopexit57
  %.promoted59 = phi i32 [ 0, %.lr.ph67 ], [ %.promoted5992, %.loopexit57 ]
  %indvars.iv = phi i64 [ 1, %.lr.ph67 ], [ %indvars.iv.next, %.loopexit57 ]
  %.lcssa6372 = phi double [ 1.000000e+00, %.lr.ph67 ], [ %.lcssa6370, %.loopexit57 ]
  %48 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  %50 = load double, ptr %49, align 8, !tbaa !22
  %51 = fdiv double %.lcssa6372, %50
  store double %51, ptr %2, align 8, !tbaa !20
  %52 = fcmp une double %51, 0.000000e+00
  br i1 %52, label %.preheader58, label %.loopexit57

.preheader58:                                     ; preds = %47
  %53 = fcmp olt double %51, 0.000000e+00
  %54 = fneg double %51
  %55 = select i1 %53, double %54, double %51
  %56 = fcmp ult double %55, 1.000000e+12
  br i1 %56, label %.preheader56, label %.lr.ph

..preheader56_crit_edge:                          ; preds = %.lr.ph
  store double %60, ptr %2, align 8, !tbaa !20
  store i32 %61, ptr %1, align 4, !tbaa !18
  br label %.preheader56

.preheader56:                                     ; preds = %..preheader56_crit_edge, %.preheader58
  %.pre-phi96 = phi double [ %64, %..preheader56_crit_edge ], [ %55, %.preheader58 ]
  %.promoted64 = phi i32 [ %61, %..preheader56_crit_edge ], [ %.promoted59, %.preheader58 ]
  %.lcssa6369 = phi double [ %60, %..preheader56_crit_edge ], [ %51, %.preheader58 ]
  %57 = fcmp olt double %.pre-phi96, 0x3D719799812DEA11
  br i1 %57, label %.lr.ph62, label %.loopexit57

.lr.ph:                                           ; preds = %.preheader58, %.lr.ph
  %58 = phi i32 [ %61, %.lr.ph ], [ %.promoted59, %.preheader58 ]
  %59 = phi double [ %60, %.lr.ph ], [ %51, %.preheader58 ]
  %60 = fmul double %59, 0x3D719799812DEA11
  %61 = add nsw i32 %58, 12
  %62 = fcmp olt double %60, 0.000000e+00
  %63 = fneg double %60
  %64 = select i1 %62, double %63, double %60
  %65 = fcmp ult double %64, 1.000000e+12
  br i1 %65, label %..preheader56_crit_edge, label %.lr.ph, !llvm.loop !23

.lr.ph62:                                         ; preds = %.preheader56, %.lr.ph62
  %66 = phi i32 [ %69, %.lr.ph62 ], [ %.promoted64, %.preheader56 ]
  %67 = phi double [ %68, %.lr.ph62 ], [ %.lcssa6369, %.preheader56 ]
  %68 = fmul double %67, 1.000000e+12
  %69 = add nsw i32 %66, -12
  %70 = fcmp olt double %68, 0.000000e+00
  %71 = fneg double %68
  %72 = select i1 %70, double %71, double %68
  %73 = fcmp olt double %72, 0x3D719799812DEA11
  br i1 %73, label %.lr.ph62, label %..loopexit57_crit_edge, !llvm.loop !25

..loopexit57_crit_edge:                           ; preds = %.lr.ph62
  store double %68, ptr %2, align 8, !tbaa !20
  store i32 %69, ptr %1, align 4, !tbaa !18
  br label %.loopexit57

.loopexit57:                                      ; preds = %.preheader56, %..loopexit57_crit_edge, %47
  %.promoted5992 = phi i32 [ %.promoted59, %47 ], [ %69, %..loopexit57_crit_edge ], [ %.promoted64, %.preheader56 ]
  %.lcssa6370 = phi double [ %51, %47 ], [ %68, %..loopexit57_crit_edge ], [ %.lcssa6369, %.preheader56 ]
  %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 %._crit_edge, label %47, !llvm.loop !26

._crit_edge:                                      ; preds = %.loopexit57
  %74 = fcmp une double %.lcssa6370, 0.000000e+00
  br i1 %74, label %.preheader55, label %.loopexit

.preheader55:                                     ; preds = %41, %._crit_edge
  %.promoted102 = phi double [ %.lcssa6370, %._crit_edge ], [ 1.000000e+00, %41 ]
  %.promoted75101 = phi i32 [ %.promoted5992, %._crit_edge ], [ 0, %41 ]
  %75 = fcmp olt double %.promoted102, 0.000000e+00
  %76 = fneg double %.promoted102
  %77 = select i1 %75, double %76, double %.promoted102
  %78 = fcmp ult double %77, 1.000000e+01
  br i1 %78, label %.preheader, label %.lr.ph73

..preheader_crit_edge:                            ; preds = %.lr.ph73
  store double %82, ptr %2, align 8, !tbaa !20
  store i32 %83, ptr %1, align 4, !tbaa !18
  br label %.preheader

.preheader:                                       ; preds = %..preheader_crit_edge, %.preheader55
  %.pre-phi98 = phi double [ %86, %..preheader_crit_edge ], [ %77, %.preheader55 ]
  %.promoted80 = phi i32 [ %83, %..preheader_crit_edge ], [ %.promoted75101, %.preheader55 ]
  %.promoted77 = phi double [ %82, %..preheader_crit_edge ], [ %.promoted102, %.preheader55 ]
  %79 = fcmp olt double %.pre-phi98, 1.000000e+00
  br i1 %79, label %.lr.ph78, label %.loopexit

.lr.ph73:                                         ; preds = %.preheader55, %.lr.ph73
  %80 = phi i32 [ %83, %.lr.ph73 ], [ %.promoted75101, %.preheader55 ]
  %81 = phi double [ %82, %.lr.ph73 ], [ %.promoted102, %.preheader55 ]
  %82 = fmul double %81, 1.000000e-01
  %83 = add nsw i32 %80, 1
  %84 = fcmp olt double %82, 0.000000e+00
  %85 = fneg double %82
  %86 = select i1 %84, double %85, double %82
  %87 = fcmp ult double %86, 1.000000e+01
  br i1 %87, label %..preheader_crit_edge, label %.lr.ph73, !llvm.loop !27

.lr.ph78:                                         ; preds = %.preheader, %.lr.ph78
  %88 = phi i32 [ %91, %.lr.ph78 ], [ %.promoted80, %.preheader ]
  %89 = phi double [ %90, %.lr.ph78 ], [ %.promoted77, %.preheader ]
  %90 = fmul double %89, 1.000000e+01
  %91 = add nsw i32 %88, -1
  %92 = fcmp olt double %90, 0.000000e+00
  %93 = fneg double %90
  %94 = select i1 %92, double %93, double %90
  %95 = fcmp olt double %94, 1.000000e+00
  br i1 %95, label %.lr.ph78, label %..loopexit_crit_edge, !llvm.loop !28

..loopexit_crit_edge:                             ; preds = %.lr.ph78
  store double %90, ptr %2, align 8, !tbaa !20
  store i32 %91, ptr %1, align 4, !tbaa !18
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader, %..loopexit_crit_edge, %._crit_edge
  %96 = phi double [ %.promoted77, %.preheader ], [ %90, %..loopexit_crit_edge ], [ %.lcssa6370, %._crit_edge ]
  %97 = getelementptr inbounds i8, ptr %0, i64 176
  %98 = load i32, ptr %97, align 8, !tbaa !29
  %.not54 = icmp eq i32 %98, 0
  br i1 %.not54, label %101, label %99

99:                                               ; preds = %.loopexit
  %100 = fneg double %96
  br label %.sink.split

.sink.split:                                      ; preds = %38, %99
  %.sink = phi double [ %100, %99 ], [ 0.000000e+00, %38 ]
  store double %.sink, ptr %2, align 8, !tbaa !20
  br label %101

101:                                              ; preds = %.sink.split, %.loopexit
  ret void
}

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = !{!10, !10, i64 0}
!19 = !{!6, !10, i64 228}
!20 = !{!7, !7, i64 0}
!21 = !{!6, !11, i64 24}
!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}
!29 = !{!6, !10, i64 176}


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