; LLVM IR from InsightSoftwareConsortium/ITK :: Modules/ThirdParty/VNL/src/vxl/v3p/netlib/sparse (spAllocate)

; 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 }
%struct.AllocationRecord = type { ptr, ptr }

@spcMatrixIsNotValid = external dso_local global [37 x i8], align 16
@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 [125 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 @spDestroy(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %6 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %6, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = icmp ne ptr %7, null
  br i1 %8, label %9, label %14

9:                                                ; preds = %1
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.MatrixFrame, ptr %10, i32 0, i32 17
  %12 = load i64, ptr %11, align 8, !tbaa !9
  %13 = icmp eq i64 %12, 3735928559
  br i1 %13, label %21, label %14

14:                                               ; preds = %9, %1
  %15 = load ptr, ptr @stdout, align 8, !tbaa !5
  %16 = call i32 @fflush(ptr noundef %15)
  %17 = load ptr, ptr @stderr, align 8, !tbaa !5
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 624, ptr noundef @spcMatrixIsNotValid) #5
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = call i32 @fflush(ptr noundef %19)
  call void @abort() #6
  unreachable

21:                                               ; preds = %9
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.MatrixFrame, ptr %22, i32 0, i32 20
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %30

26:                                               ; preds = %21
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.MatrixFrame, ptr %27, i32 0, i32 20
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  call void @free(ptr noundef %29)
  br label %30

30:                                               ; preds = %26, %21
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.MatrixFrame, ptr %31, i32 0, i32 20
  store ptr null, ptr %32, align 8, !tbaa !15
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.MatrixFrame, ptr %33, i32 0, i32 21
  %35 = load ptr, ptr %34, align 8, !tbaa !16
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %41

37:                                               ; preds = %30
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.MatrixFrame, ptr %38, i32 0, i32 21
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  call void @free(ptr noundef %40)
  br label %41

41:                                               ; preds = %37, %30
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.MatrixFrame, ptr %42, i32 0, i32 21
  store ptr null, ptr %43, align 8, !tbaa !16
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.MatrixFrame, ptr %44, i32 0, i32 11
  %46 = load ptr, ptr %45, align 8, !tbaa !17
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %52

48:                                               ; preds = %41
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.MatrixFrame, ptr %49, i32 0, i32 11
  %51 = load ptr, ptr %50, align 8, !tbaa !17
  call void @free(ptr noundef %51)
  br label %52

52:                                               ; preds = %48, %41
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.MatrixFrame, ptr %53, i32 0, i32 11
  store ptr null, ptr %54, align 8, !tbaa !17
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.MatrixFrame, ptr %55, i32 0, i32 12
  %57 = load ptr, ptr %56, align 8, !tbaa !18
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %63

59:                                               ; preds = %52
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.MatrixFrame, ptr %60, i32 0, i32 12
  %62 = load ptr, ptr %61, align 8, !tbaa !18
  call void @free(ptr noundef %62)
  br label %63

63:                                               ; preds = %59, %52
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.MatrixFrame, ptr %64, i32 0, i32 12
  store ptr null, ptr %65, align 8, !tbaa !18
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.MatrixFrame, ptr %66, i32 0, i32 5
  %68 = load ptr, ptr %67, align 8, !tbaa !19
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %74

70:                                               ; preds = %63
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.MatrixFrame, ptr %71, i32 0, i32 5
  %73 = load ptr, ptr %72, align 8, !tbaa !19
  call void @free(ptr noundef %73)
  br label %74

74:                                               ; preds = %70, %63
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.MatrixFrame, ptr %75, i32 0, i32 5
  store ptr null, ptr %76, align 8, !tbaa !19
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.MatrixFrame, ptr %77, i32 0, i32 16
  %79 = load ptr, ptr %78, align 8, !tbaa !20
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %85

81:                                               ; preds = %74
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.MatrixFrame, ptr %82, i32 0, i32 16
  %84 = load ptr, ptr %83, align 8, !tbaa !20
  call void @free(ptr noundef %84)
  br label %85

85:                                               ; preds = %81, %74
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.MatrixFrame, ptr %86, i32 0, i32 16
  store ptr null, ptr %87, align 8, !tbaa !20
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.MatrixFrame, ptr %88, i32 0, i32 15
  %90 = load ptr, ptr %89, align 8, !tbaa !21
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %96

92:                                               ; preds = %85
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.MatrixFrame, ptr %93, i32 0, i32 15
  %95 = load ptr, ptr %94, align 8, !tbaa !21
  call void @free(ptr noundef %95)
  br label %96

96:                                               ; preds = %92, %85
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.MatrixFrame, ptr %97, i32 0, i32 15
  store ptr null, ptr %98, align 8, !tbaa !21
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.MatrixFrame, ptr %99, i32 0, i32 22
  %101 = load ptr, ptr %100, align 8, !tbaa !22
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %107

103:                                              ; preds = %96
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.MatrixFrame, ptr %104, i32 0, i32 22
  %106 = load ptr, ptr %105, align 8, !tbaa !22
  call void @free(ptr noundef %106)
  br label %107

107:                                              ; preds = %103, %96
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.MatrixFrame, ptr %108, i32 0, i32 22
  store ptr null, ptr %109, align 8, !tbaa !22
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.MatrixFrame, ptr %110, i32 0, i32 23
  %112 = load ptr, ptr %111, align 8, !tbaa !23
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %118

114:                                              ; preds = %107
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.MatrixFrame, ptr %115, i32 0, i32 23
  %117 = load ptr, ptr %116, align 8, !tbaa !23
  call void @free(ptr noundef %117)
  br label %118

118:                                              ; preds = %114, %107
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.MatrixFrame, ptr %119, i32 0, i32 23
  store ptr null, ptr %120, align 8, !tbaa !23
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.MatrixFrame, ptr %121, i32 0, i32 24
  %123 = load ptr, ptr %122, align 8, !tbaa !24
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %129

125:                                              ; preds = %118
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.MatrixFrame, ptr %126, i32 0, i32 24
  %128 = load ptr, ptr %127, align 8, !tbaa !24
  call void @free(ptr noundef %128)
  br label %129

129:                                              ; preds = %125, %118
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.MatrixFrame, ptr %130, i32 0, i32 24
  store ptr null, ptr %131, align 8, !tbaa !24
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.MatrixFrame, ptr %132, i32 0, i32 6
  %134 = load ptr, ptr %133, align 8, !tbaa !25
  %135 = icmp ne ptr %134, null
  br i1 %135, label %136, label %140

136:                                              ; preds = %129
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.MatrixFrame, ptr %137, i32 0, i32 6
  %139 = load ptr, ptr %138, align 8, !tbaa !25
  call void @free(ptr noundef %139)
  br label %140

140:                                              ; preds = %136, %129
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.MatrixFrame, ptr %141, i32 0, i32 6
  store ptr null, ptr %142, align 8, !tbaa !25
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.MatrixFrame, ptr %143, i32 0, i32 7
  %145 = load ptr, ptr %144, align 8, !tbaa !26
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %151

147:                                              ; preds = %140
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.MatrixFrame, ptr %148, i32 0, i32 7
  %150 = load ptr, ptr %149, align 8, !tbaa !26
  call void @free(ptr noundef %150)
  br label %151

151:                                              ; preds = %147, %140
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.MatrixFrame, ptr %152, i32 0, i32 7
  store ptr null, ptr %153, align 8, !tbaa !26
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.MatrixFrame, ptr %154, i32 0, i32 18
  %156 = load ptr, ptr %155, align 8, !tbaa !27
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %162

158:                                              ; preds = %151
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.MatrixFrame, ptr %159, i32 0, i32 18
  %161 = load ptr, ptr %160, align 8, !tbaa !27
  call void @free(ptr noundef %161)
  br label %162

162:                                              ; preds = %158, %151
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.MatrixFrame, ptr %163, i32 0, i32 18
  store ptr null, ptr %164, align 8, !tbaa !27
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.MatrixFrame, ptr %165, i32 0, i32 41
  %167 = load ptr, ptr %166, align 8, !tbaa !28
  store ptr %167, ptr %4, align 8, !tbaa !5
  br label %168

168:                                              ; preds = %171, %162
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = icmp ne ptr %169, null
  br i1 %170, label %171, label %179

171:                                              ; preds = %168
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.AllocationRecord, ptr %172, i32 0, i32 1
  %174 = load ptr, ptr %173, align 8, !tbaa !29
  store ptr %174, ptr %5, align 8, !tbaa !5
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.AllocationRecord, ptr %175, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8, !tbaa !31
  call void @free(ptr noundef %177)
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %178, ptr %4, align 8, !tbaa !5
  br label %168, !llvm.loop !32

179:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

declare void @free(ptr noundef) #1

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, !6, i64 128}
!16 = !{!10, !6, i64 136}
!17 = !{!10, !6, i64 64}
!18 = !{!10, !6, i64 72}
!19 = !{!10, !6, i64 24}
!20 = !{!10, !6, i64 96}
!21 = !{!10, !6, i64 88}
!22 = !{!10, !6, i64 144}
!23 = !{!10, !6, i64 152}
!24 = !{!10, !6, i64 160}
!25 = !{!10, !6, i64 32}
!26 = !{!10, !6, i64 40}
!27 = !{!10, !6, i64 112}
!28 = !{!10, !6, i64 272}
!29 = !{!30, !6, i64 8}
!30 = !{!"AllocationRecord", !6, i64 0, !6, i64 8}
!31 = !{!30, !6, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"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"

@spcMatrixIsNotValid = external dso_local global [37 x i8], align 16
@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 [125 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 @spDestroy(ptr noundef %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 624, ptr noundef nonnull @spcMatrixIsNotValid) #4
  %11 = load ptr, ptr @stderr, align 8, !tbaa !14
  %12 = tail call i32 @fflush(ptr noundef %11)
  tail call void @abort() #5
  unreachable

13:                                               ; preds = %2
  %14 = getelementptr inbounds i8, ptr %0, i64 128
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %.not61 = icmp eq ptr %15, null
  br i1 %.not61, label %17, label %16

16:                                               ; preds = %13
  tail call void @free(ptr noundef nonnull %15)
  br label %17

17:                                               ; preds = %16, %13
  store ptr null, ptr %14, align 8, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %0, i64 136
  %19 = load ptr, ptr %18, align 8, !tbaa !16
  %.not62 = icmp eq ptr %19, null
  br i1 %.not62, label %21, label %20

20:                                               ; preds = %17
  tail call void @free(ptr noundef nonnull %19)
  br label %21

21:                                               ; preds = %20, %17
  store ptr null, ptr %18, align 8, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %0, i64 64
  %23 = load ptr, ptr %22, align 8, !tbaa !17
  %.not63 = icmp eq ptr %23, null
  br i1 %.not63, label %25, label %24

24:                                               ; preds = %21
  tail call void @free(ptr noundef nonnull %23)
  br label %25

25:                                               ; preds = %24, %21
  store ptr null, ptr %22, align 8, !tbaa !17
  %26 = getelementptr inbounds i8, ptr %0, i64 72
  %27 = load ptr, ptr %26, align 8, !tbaa !18
  %.not64 = icmp eq ptr %27, null
  br i1 %.not64, label %29, label %28

28:                                               ; preds = %25
  tail call void @free(ptr noundef nonnull %27)
  br label %29

29:                                               ; preds = %28, %25
  store ptr null, ptr %26, align 8, !tbaa !18
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  %31 = load ptr, ptr %30, align 8, !tbaa !19
  %.not65 = icmp eq ptr %31, null
  br i1 %.not65, label %33, label %32

32:                                               ; preds = %29
  tail call void @free(ptr noundef nonnull %31)
  br label %33

33:                                               ; preds = %32, %29
  store ptr null, ptr %30, align 8, !tbaa !19
  %34 = getelementptr inbounds i8, ptr %0, i64 96
  %35 = load ptr, ptr %34, align 8, !tbaa !20
  %.not66 = icmp eq ptr %35, null
  br i1 %.not66, label %37, label %36

36:                                               ; preds = %33
  tail call void @free(ptr noundef nonnull %35)
  br label %37

37:                                               ; preds = %36, %33
  store ptr null, ptr %34, align 8, !tbaa !20
  %38 = getelementptr inbounds i8, ptr %0, i64 88
  %39 = load ptr, ptr %38, align 8, !tbaa !21
  %.not67 = icmp eq ptr %39, null
  br i1 %.not67, label %41, label %40

40:                                               ; preds = %37
  tail call void @free(ptr noundef nonnull %39)
  br label %41

41:                                               ; preds = %40, %37
  store ptr null, ptr %38, align 8, !tbaa !21
  %42 = getelementptr inbounds i8, ptr %0, i64 144
  %43 = load ptr, ptr %42, align 8, !tbaa !22
  %.not68 = icmp eq ptr %43, null
  br i1 %.not68, label %45, label %44

44:                                               ; preds = %41
  tail call void @free(ptr noundef nonnull %43)
  br label %45

45:                                               ; preds = %44, %41
  store ptr null, ptr %42, align 8, !tbaa !22
  %46 = getelementptr inbounds i8, ptr %0, i64 152
  %47 = load ptr, ptr %46, align 8, !tbaa !23
  %.not69 = icmp eq ptr %47, null
  br i1 %.not69, label %49, label %48

48:                                               ; preds = %45
  tail call void @free(ptr noundef nonnull %47)
  br label %49

49:                                               ; preds = %48, %45
  store ptr null, ptr %46, align 8, !tbaa !23
  %50 = getelementptr inbounds i8, ptr %0, i64 160
  %51 = load ptr, ptr %50, align 8, !tbaa !24
  %.not70 = icmp eq ptr %51, null
  br i1 %.not70, label %53, label %52

52:                                               ; preds = %49
  tail call void @free(ptr noundef nonnull %51)
  br label %53

53:                                               ; preds = %52, %49
  store ptr null, ptr %50, align 8, !tbaa !24
  %54 = getelementptr inbounds i8, ptr %0, i64 32
  %55 = load ptr, ptr %54, align 8, !tbaa !25
  %.not71 = icmp eq ptr %55, null
  br i1 %.not71, label %57, label %56

56:                                               ; preds = %53
  tail call void @free(ptr noundef nonnull %55)
  br label %57

57:                                               ; preds = %56, %53
  store ptr null, ptr %54, align 8, !tbaa !25
  %58 = getelementptr inbounds i8, ptr %0, i64 40
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %.not72 = icmp eq ptr %59, null
  br i1 %.not72, label %61, label %60

60:                                               ; preds = %57
  tail call void @free(ptr noundef nonnull %59)
  br label %61

61:                                               ; preds = %60, %57
  store ptr null, ptr %58, align 8, !tbaa !26
  %62 = getelementptr inbounds i8, ptr %0, i64 112
  %63 = load ptr, ptr %62, align 8, !tbaa !27
  %.not73 = icmp eq ptr %63, null
  br i1 %.not73, label %65, label %64

64:                                               ; preds = %61
  tail call void @free(ptr noundef nonnull %63)
  br label %65

65:                                               ; preds = %64, %61
  store ptr null, ptr %62, align 8, !tbaa !27
  %66 = getelementptr inbounds i8, ptr %0, i64 272
  %67 = load ptr, ptr %66, align 8, !tbaa !28
  %.not7475 = icmp eq ptr %67, null
  br i1 %.not7475, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %65, %.lr.ph
  %.076 = phi ptr [ %69, %.lr.ph ], [ %67, %65 ]
  %68 = getelementptr inbounds i8, ptr %.076, i64 8
  %69 = load ptr, ptr %68, align 8, !tbaa !29
  %70 = load ptr, ptr %.076, align 8, !tbaa !31
  tail call void @free(ptr noundef %70)
  %.not74 = icmp eq ptr %69, null
  br i1 %.not74, label %._crit_edge, label %.lr.ph, !llvm.loop !32

._crit_edge:                                      ; preds = %.lr.ph, %65
  ret void
}

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { cold nounwind }
attributes #5 = { 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, !11, i64 128}
!16 = !{!6, !11, i64 136}
!17 = !{!6, !11, i64 64}
!18 = !{!6, !11, i64 72}
!19 = !{!6, !11, i64 24}
!20 = !{!6, !11, i64 96}
!21 = !{!6, !11, i64 88}
!22 = !{!6, !11, i64 144}
!23 = !{!6, !11, i64 152}
!24 = !{!6, !11, i64 160}
!25 = !{!6, !11, i64 32}
!26 = !{!6, !11, i64 40}
!27 = !{!6, !11, i64 112}
!28 = !{!6, !11, i64 272}
!29 = !{!30, !11, i64 8}
!30 = !{!"AllocationRecord", !11, i64 0, !11, i64 8}
!31 = !{!30, !11, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass