; LLVM IR from jgaeddert/liquid-dsp :: src/matrix/src (smatrixb)

; 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.smatrixb_s = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32 }

@.str = external hidden unnamed_addr constant [85 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @smatrixb_create(i32 noundef %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  %9 = load i32, ptr %4, align 4, !tbaa !5
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %14, label %11

11:                                               ; preds = %2
  %12 = load i32, ptr %5, align 4, !tbaa !5
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %16

14:                                               ; preds = %11, %2
  %15 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 74, ptr noundef @.str.1, ptr noundef @.str.2)
  store ptr %15, ptr %3, align 8
  br label %219

16:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %17 = call noalias ptr @malloc(i64 noundef 64) #5
  store ptr %17, ptr %6, align 8, !tbaa !9
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = load ptr, ptr %6, align 8, !tbaa !9
  %20 = getelementptr inbounds %struct.smatrixb_s, ptr %19, i32 0, i32 0
  store i32 %18, ptr %20, align 8, !tbaa !11
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = load ptr, ptr %6, align 8, !tbaa !9
  %23 = getelementptr inbounds %struct.smatrixb_s, ptr %22, i32 0, i32 1
  store i32 %21, ptr %23, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %24 = load ptr, ptr %6, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct.smatrixb_s, ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = zext i32 %26 to i64
  %28 = mul i64 %27, 4
  %29 = call noalias ptr @malloc(i64 noundef %28) #5
  %30 = load ptr, ptr %6, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.smatrixb_s, ptr %30, i32 0, i32 6
  store ptr %29, ptr %31, align 8, !tbaa !14
  %32 = load ptr, ptr %6, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.smatrixb_s, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !13
  %35 = zext i32 %34 to i64
  %36 = mul i64 %35, 4
  %37 = call noalias ptr @malloc(i64 noundef %36) #5
  %38 = load ptr, ptr %6, align 8, !tbaa !9
  %39 = getelementptr inbounds %struct.smatrixb_s, ptr %38, i32 0, i32 7
  store ptr %37, ptr %39, align 8, !tbaa !15
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %53, %16
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = load ptr, ptr %6, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.smatrixb_s, ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 8, !tbaa !11
  %45 = icmp ult i32 %41, %44
  br i1 %45, label %46, label %56

46:                                               ; preds = %40
  %47 = load ptr, ptr %6, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.smatrixb_s, ptr %47, i32 0, i32 6
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds i32, ptr %49, i64 %51
  store i32 0, ptr %52, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %46
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = add i32 %54, 1
  store i32 %55, ptr %7, align 4, !tbaa !5
  br label %40, !llvm.loop !16

56:                                               ; preds = %40
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %70, %56
  %58 = load i32, ptr %8, align 4, !tbaa !5
  %59 = load ptr, ptr %6, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.smatrixb_s, ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !13
  %62 = icmp ult i32 %58, %61
  br i1 %62, label %63, label %73

63:                                               ; preds = %57
  %64 = load ptr, ptr %6, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.smatrixb_s, ptr %64, i32 0, i32 7
  %66 = load ptr, ptr %65, align 8, !tbaa !15
  %67 = load i32, ptr %8, align 4, !tbaa !5
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds i32, ptr %66, i64 %68
  store i32 0, ptr %69, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %63
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = add i32 %71, 1
  store i32 %72, ptr %8, align 4, !tbaa !5
  br label %57, !llvm.loop !18

73:                                               ; preds = %57
  %74 = load ptr, ptr %6, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.smatrixb_s, ptr %74, i32 0, i32 0
  %76 = load i32, ptr %75, align 8, !tbaa !11
  %77 = zext i32 %76 to i64
  %78 = mul i64 %77, 8
  %79 = call noalias ptr @malloc(i64 noundef %78) #5
  %80 = load ptr, ptr %6, align 8, !tbaa !9
  %81 = getelementptr inbounds %struct.smatrixb_s, ptr %80, i32 0, i32 2
  store ptr %79, ptr %81, align 8, !tbaa !19
  %82 = load ptr, ptr %6, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.smatrixb_s, ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 4, !tbaa !13
  %85 = zext i32 %84 to i64
  %86 = mul i64 %85, 8
  %87 = call noalias ptr @malloc(i64 noundef %86) #5
  %88 = load ptr, ptr %6, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.smatrixb_s, ptr %88, i32 0, i32 3
  store ptr %87, ptr %89, align 8, !tbaa !20
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %113, %73
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = load ptr, ptr %6, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.smatrixb_s, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 8, !tbaa !11
  %95 = icmp ult i32 %91, %94
  br i1 %95, label %96, label %116

96:                                               ; preds = %90
  %97 = load ptr, ptr %6, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.smatrixb_s, ptr %97, i32 0, i32 6
  %99 = load ptr, ptr %98, align 8, !tbaa !14
  %100 = load i32, ptr %7, align 4, !tbaa !5
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds i32, ptr %99, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = zext i32 %103 to i64
  %105 = mul i64 %104, 2
  %106 = call noalias ptr @malloc(i64 noundef %105) #5
  %107 = load ptr, ptr %6, align 8, !tbaa !9
  %108 = getelementptr inbounds %struct.smatrixb_s, ptr %107, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !19
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %109, i64 %111
  store ptr %106, ptr %112, align 8, !tbaa !9
  br label %113

113:                                              ; preds = %96
  %114 = load i32, ptr %7, align 4, !tbaa !5
  %115 = add i32 %114, 1
  store i32 %115, ptr %7, align 4, !tbaa !5
  br label %90, !llvm.loop !21

116:                                              ; preds = %90
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %140, %116
  %118 = load i32, ptr %8, align 4, !tbaa !5
  %119 = load ptr, ptr %6, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.smatrixb_s, ptr %119, i32 0, i32 1
  %121 = load i32, ptr %120, align 4, !tbaa !13
  %122 = icmp ult i32 %118, %121
  br i1 %122, label %123, label %143

123:                                              ; preds = %117
  %124 = load ptr, ptr %6, align 8, !tbaa !9
  %125 = getelementptr inbounds %struct.smatrixb_s, ptr %124, i32 0, i32 7
  %126 = load ptr, ptr %125, align 8, !tbaa !15
  %127 = load i32, ptr %8, align 4, !tbaa !5
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds i32, ptr %126, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = zext i32 %130 to i64
  %132 = mul i64 %131, 2
  %133 = call noalias ptr @malloc(i64 noundef %132) #5
  %134 = load ptr, ptr %6, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.smatrixb_s, ptr %134, i32 0, i32 3
  %136 = load ptr, ptr %135, align 8, !tbaa !20
  %137 = load i32, ptr %8, align 4, !tbaa !5
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds ptr, ptr %136, i64 %138
  store ptr %133, ptr %139, align 8, !tbaa !9
  br label %140

140:                                              ; preds = %123
  %141 = load i32, ptr %8, align 4, !tbaa !5
  %142 = add i32 %141, 1
  store i32 %142, ptr %8, align 4, !tbaa !5
  br label %117, !llvm.loop !22

143:                                              ; preds = %117
  %144 = load ptr, ptr %6, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct.smatrixb_s, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 8, !tbaa !11
  %147 = zext i32 %146 to i64
  %148 = mul i64 %147, 8
  %149 = call noalias ptr @malloc(i64 noundef %148) #5
  %150 = load ptr, ptr %6, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct.smatrixb_s, ptr %150, i32 0, i32 4
  store ptr %149, ptr %151, align 8, !tbaa !23
  %152 = load ptr, ptr %6, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.smatrixb_s, ptr %152, i32 0, i32 1
  %154 = load i32, ptr %153, align 4, !tbaa !13
  %155 = zext i32 %154 to i64
  %156 = mul i64 %155, 8
  %157 = call noalias ptr @malloc(i64 noundef %156) #5
  %158 = load ptr, ptr %6, align 8, !tbaa !9
  %159 = getelementptr inbounds %struct.smatrixb_s, ptr %158, i32 0, i32 5
  store ptr %157, ptr %159, align 8, !tbaa !24
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %183, %143
  %161 = load i32, ptr %7, align 4, !tbaa !5
  %162 = load ptr, ptr %6, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.smatrixb_s, ptr %162, i32 0, i32 0
  %164 = load i32, ptr %163, align 8, !tbaa !11
  %165 = icmp ult i32 %161, %164
  br i1 %165, label %166, label %186

166:                                              ; preds = %160
  %167 = load ptr, ptr %6, align 8, !tbaa !9
  %168 = getelementptr inbounds %struct.smatrixb_s, ptr %167, i32 0, i32 6
  %169 = load ptr, ptr %168, align 8, !tbaa !14
  %170 = load i32, ptr %7, align 4, !tbaa !5
  %171 = zext i32 %170 to i64
  %172 = getelementptr inbounds i32, ptr %169, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = zext i32 %173 to i64
  %175 = mul i64 %174, 1
  %176 = call noalias ptr @malloc(i64 noundef %175) #5
  %177 = load ptr, ptr %6, align 8, !tbaa !9
  %178 = getelementptr inbounds %struct.smatrixb_s, ptr %177, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !23
  %180 = load i32, ptr %7, align 4, !tbaa !5
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds ptr, ptr %179, i64 %181
  store ptr %176, ptr %182, align 8, !tbaa !9
  br label %183

183:                                              ; preds = %166
  %184 = load i32, ptr %7, align 4, !tbaa !5
  %185 = add i32 %184, 1
  store i32 %185, ptr %7, align 4, !tbaa !5
  br label %160, !llvm.loop !25

186:                                              ; preds = %160
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %187

187:                                              ; preds = %210, %186
  %188 = load i32, ptr %8, align 4, !tbaa !5
  %189 = load ptr, ptr %6, align 8, !tbaa !9
  %190 = getelementptr inbounds %struct.smatrixb_s, ptr %189, i32 0, i32 1
  %191 = load i32, ptr %190, align 4, !tbaa !13
  %192 = icmp ult i32 %188, %191
  br i1 %192, label %193, label %213

193:                                              ; preds = %187
  %194 = load ptr, ptr %6, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.smatrixb_s, ptr %194, i32 0, i32 7
  %196 = load ptr, ptr %195, align 8, !tbaa !15
  %197 = load i32, ptr %8, align 4, !tbaa !5
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds i32, ptr %196, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = zext i32 %200 to i64
  %202 = mul i64 %201, 1
  %203 = call noalias ptr @malloc(i64 noundef %202) #5
  %204 = load ptr, ptr %6, align 8, !tbaa !9
  %205 = getelementptr inbounds %struct.smatrixb_s, ptr %204, i32 0, i32 5
  %206 = load ptr, ptr %205, align 8, !tbaa !24
  %207 = load i32, ptr %8, align 4, !tbaa !5
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds ptr, ptr %206, i64 %208
  store ptr %203, ptr %209, align 8, !tbaa !9
  br label %210

210:                                              ; preds = %193
  %211 = load i32, ptr %8, align 4, !tbaa !5
  %212 = add i32 %211, 1
  store i32 %212, ptr %8, align 4, !tbaa !5
  br label %187, !llvm.loop !26

213:                                              ; preds = %187
  %214 = load ptr, ptr %6, align 8, !tbaa !9
  %215 = getelementptr inbounds %struct.smatrixb_s, ptr %214, i32 0, i32 8
  store i32 0, ptr %215, align 8, !tbaa !27
  %216 = load ptr, ptr %6, align 8, !tbaa !9
  %217 = getelementptr inbounds %struct.smatrixb_s, ptr %216, i32 0, i32 9
  store i32 0, ptr %217, align 4, !tbaa !28
  %218 = load ptr, ptr %6, align 8, !tbaa !9
  store ptr %218, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %219

219:                                              ; preds = %213, %14
  %220 = load ptr, ptr %3, align 8
  ret ptr %220
}

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"smatrixb_s", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !6, i64 56, !6, i64 60}
!13 = !{!12, !6, i64 4}
!14 = !{!12, !10, i64 40}
!15 = !{!12, !10, i64 48}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!12, !10, i64 8}
!20 = !{!12, !10, i64 16}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = !{!12, !10, i64 24}
!24 = !{!12, !10, i64 32}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = !{!12, !6, i64 56}
!28 = !{!12, !6, i64 60}


; 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"

@.str = external hidden unnamed_addr constant [85 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @smatrixb_create(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = icmp eq i32 %0, 0
  %4 = icmp eq i32 %1, 0
  %or.cond = or i1 %3, %4
  br i1 %or.cond, label %5, label %.lr.ph72.preheader

5:                                                ; preds = %2
  %6 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 74, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #4
  br label %49

.lr.ph72.preheader:                               ; preds = %2
  %7 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #5
  store i32 %0, ptr %7, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 4
  store i32 %1, ptr %8, align 4, !tbaa !11
  %9 = zext i32 %0 to i64
  %10 = shl nuw nsw i64 %9, 2
  %calloc = tail call ptr @calloc(i64 1, i64 %10)
  %11 = getelementptr inbounds i8, ptr %7, i64 40
  store ptr %calloc, ptr %11, align 8, !tbaa !12
  %12 = zext i32 %1 to i64
  %13 = shl nuw nsw i64 %12, 2
  %calloc104 = tail call ptr @calloc(i64 1, i64 %13)
  %14 = getelementptr inbounds i8, ptr %7, i64 48
  store ptr %calloc104, ptr %14, align 8, !tbaa !13
  %15 = shl nuw nsw i64 %9, 3
  %16 = tail call noalias ptr @malloc(i64 noundef %15) #5
  %17 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %16, ptr %17, align 8, !tbaa !14
  %18 = shl nuw nsw i64 %12, 3
  %19 = tail call noalias ptr @malloc(i64 noundef %18) #5
  %20 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr %19, ptr %20, align 8, !tbaa !15
  br label %.lr.ph72

.lr.ph72:                                         ; preds = %.lr.ph72.preheader, %.lr.ph72
  %indvars.iv = phi i64 [ 0, %.lr.ph72.preheader ], [ %indvars.iv.next, %.lr.ph72 ]
  %21 = getelementptr inbounds i32, ptr %calloc, i64 %indvars.iv
  %22 = load i32, ptr %21, align 4, !tbaa !16
  %23 = zext i32 %22 to i64
  %24 = shl nuw nsw i64 %23, 1
  %25 = tail call noalias ptr @malloc(i64 noundef %24) #5
  %26 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv
  store ptr %25, ptr %26, align 8, !tbaa !17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %9
  br i1 %exitcond.not, label %.lr.ph74, label %.lr.ph72, !llvm.loop !18

.lr.ph74:                                         ; preds = %.lr.ph72, %.lr.ph74
  %indvars.iv89 = phi i64 [ %indvars.iv.next90, %.lr.ph74 ], [ 0, %.lr.ph72 ]
  %27 = getelementptr inbounds i32, ptr %calloc104, i64 %indvars.iv89
  %28 = load i32, ptr %27, align 4, !tbaa !16
  %29 = zext i32 %28 to i64
  %30 = shl nuw nsw i64 %29, 1
  %31 = tail call noalias ptr @malloc(i64 noundef %30) #5
  %32 = getelementptr inbounds ptr, ptr %19, i64 %indvars.iv89
  store ptr %31, ptr %32, align 8, !tbaa !17
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %exitcond93.not = icmp eq i64 %indvars.iv.next90, %12
  br i1 %exitcond93.not, label %.lr.ph78.preheader, label %.lr.ph74, !llvm.loop !20

.lr.ph78.preheader:                               ; preds = %.lr.ph74
  %33 = tail call noalias ptr @malloc(i64 noundef %15) #5
  %34 = getelementptr inbounds i8, ptr %7, i64 24
  store ptr %33, ptr %34, align 8, !tbaa !21
  %35 = tail call noalias ptr @malloc(i64 noundef %18) #5
  %36 = getelementptr inbounds i8, ptr %7, i64 32
  store ptr %35, ptr %36, align 8, !tbaa !22
  br label %.lr.ph78

.lr.ph78:                                         ; preds = %.lr.ph78.preheader, %.lr.ph78
  %indvars.iv94 = phi i64 [ 0, %.lr.ph78.preheader ], [ %indvars.iv.next95, %.lr.ph78 ]
  %37 = getelementptr inbounds i32, ptr %calloc, i64 %indvars.iv94
  %38 = load i32, ptr %37, align 4, !tbaa !16
  %39 = zext i32 %38 to i64
  %40 = tail call noalias ptr @malloc(i64 noundef %39) #5
  %41 = getelementptr inbounds ptr, ptr %33, i64 %indvars.iv94
  store ptr %40, ptr %41, align 8, !tbaa !17
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %exitcond98.not = icmp eq i64 %indvars.iv.next95, %9
  br i1 %exitcond98.not, label %.lr.ph80, label %.lr.ph78, !llvm.loop !23

.lr.ph80:                                         ; preds = %.lr.ph78, %.lr.ph80
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %.lr.ph80 ], [ 0, %.lr.ph78 ]
  %42 = getelementptr inbounds i32, ptr %calloc104, i64 %indvars.iv99
  %43 = load i32, ptr %42, align 4, !tbaa !16
  %44 = zext i32 %43 to i64
  %45 = tail call noalias ptr @malloc(i64 noundef %44) #5
  %46 = getelementptr inbounds ptr, ptr %35, i64 %indvars.iv99
  store ptr %45, ptr %46, align 8, !tbaa !17
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %exitcond103.not = icmp eq i64 %indvars.iv.next100, %12
  br i1 %exitcond103.not, label %._crit_edge81, label %.lr.ph80, !llvm.loop !24

._crit_edge81:                                    ; preds = %.lr.ph80
  %47 = getelementptr inbounds i8, ptr %7, i64 56
  store i32 0, ptr %47, align 8, !tbaa !25
  %48 = getelementptr inbounds i8, ptr %7, i64 60
  store i32 0, ptr %48, align 4, !tbaa !26
  br label %49

49:                                               ; preds = %._crit_edge81, %5
  %.063 = phi ptr [ %6, %5 ], [ %7, %._crit_edge81 ]
  ret ptr %.063
}

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #3

attributes #0 = { 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 #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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 #3 = { nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

!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, !7, i64 0}
!6 = !{!"smatrixb_s", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !7, i64 60}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !10, i64 40}
!13 = !{!6, !10, i64 48}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !10, i64 16}
!16 = !{!7, !7, i64 0}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!6, !10, i64 24}
!22 = !{!6, !10, i64 32}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = !{!6, !7, i64 56}
!26 = !{!6, !7, i64 60}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass