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

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

@.str = external hidden unnamed_addr constant [91 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4
@__const.autotest_smatrixb_mul.a_test = external hidden unnamed_addr constant [96 x i8], align 16
@__const.autotest_smatrixb_mul.b_test = external hidden unnamed_addr constant [60 x i8], align 16
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [14 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 ptr @smatrixb_create(i32 noundef, i32 noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) #1

declare void @liquid_autotest_passed(...) #1

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

declare i32 @smatrixb_print_expanded(ptr noundef) #1

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

declare i32 @smatrixb_destroy(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_smatrixb_mul() #3 {
  %1 = alloca [96 x i8], align 16
  %2 = alloca [60 x i8], align 16
  %3 = alloca [40 x i8], align 16
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 96, ptr %1) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.autotest_smatrixb_mul.a_test, i64 96, i1 false)
  call void @llvm.lifetime.start.p0(i64 60, ptr %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.autotest_smatrixb_mul.b_test, i64 60, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %3) #5
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 40, i1 false)
  %9 = getelementptr inbounds [40 x i8], ptr %3, i32 0, i32 13
  store i8 1, ptr %9, align 1
  %10 = getelementptr inbounds [40 x i8], ptr %3, i32 0, i32 34
  store i8 1, ptr %10, align 2
  %11 = getelementptr inbounds [40 x i8], ptr %3, i32 0, i32 38
  store i8 1, ptr %11, align 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %12 = getelementptr inbounds [96 x i8], ptr %1, i64 0, i64 0
  %13 = call ptr @smatrixb_create_array(ptr noundef %12, i32 noundef 8, i32 noundef 12)
  store ptr %13, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %14 = getelementptr inbounds [60 x i8], ptr %2, i64 0, i64 0
  %15 = call ptr @smatrixb_create_array(ptr noundef %14, i32 noundef 12, i32 noundef 5)
  store ptr %15, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %16 = call ptr @smatrixb_create(i32 noundef 8, i32 noundef 5)
  store ptr %16, ptr %6, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call i32 @smatrixb_mul(ptr noundef %17, ptr noundef %18, ptr noundef %19)
  %21 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %23, label %33

23:                                               ; preds = %0
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = call i32 @smatrixb_print_expanded(ptr noundef %25)
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call i32 @smatrixb_print_expanded(ptr noundef %28)
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call i32 @smatrixb_print_expanded(ptr noundef %31)
  br label %33

33:                                               ; preds = %23, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %76, %33
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = icmp ult i32 %35, 8
  br i1 %36, label %37, label %79

37:                                               ; preds = %34
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %72, %37
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = icmp ult i32 %39, 5
  br i1 %40, label %41, label %75

41:                                               ; preds = %38
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = load i32, ptr %8, align 4, !tbaa !9
  %45 = call zeroext i8 @smatrixb_get(ptr noundef %42, i32 noundef %43, i32 noundef %44)
  %46 = zext i8 %45 to i32
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = mul i32 %47, 5
  %49 = load i32, ptr %8, align 4, !tbaa !9
  %50 = add i32 %48, %49
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !11
  %54 = zext i8 %53 to i32
  %55 = icmp ne i32 %46, %54
  br i1 %55, label %56, label %70

56:                                               ; preds = %41
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load i32, ptr %7, align 4, !tbaa !9
  %59 = load i32, ptr %8, align 4, !tbaa !9
  %60 = call zeroext i8 @smatrixb_get(ptr noundef %57, i32 noundef %58, i32 noundef %59)
  %61 = uitofp i8 %60 to double
  %62 = load i32, ptr %7, align 4, !tbaa !9
  %63 = mul i32 %62, 5
  %64 = load i32, ptr %8, align 4, !tbaa !9
  %65 = add i32 %63, %64
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !11
  %69 = uitofp i8 %68 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 173, ptr noundef @.str.28, double noundef %61, ptr noundef @.str.2, ptr noundef @.str.29, double noundef %69)
  br label %71

70:                                               ; preds = %41
  call void (...) @liquid_autotest_passed()
  br label %71

71:                                               ; preds = %70, %56
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %8, align 4, !tbaa !9
  %74 = add i32 %73, 1
  store i32 %74, ptr %8, align 4, !tbaa !9
  br label %38, !llvm.loop !12

75:                                               ; preds = %38
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %7, align 4, !tbaa !9
  %78 = add i32 %77, 1
  store i32 %78, ptr %7, align 4, !tbaa !9
  br label %34, !llvm.loop !14

79:                                               ; preds = %34
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = call i32 @smatrixb_destroy(ptr noundef %80)
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = call i32 @smatrixb_destroy(ptr noundef %82)
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = call i32 @smatrixb_destroy(ptr noundef %84)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  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 40, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 60, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr %1) #5
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

declare ptr @smatrixb_create_array(ptr noundef, i32 noundef, i32 noundef) #1

declare i32 @smatrixb_mul(ptr noundef, ptr noundef, ptr noundef) #1

declare zeroext i8 @smatrixb_get(ptr noundef, i32 noundef, i32 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; 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 [91 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@__const.autotest_smatrixb_mul.a_test = external hidden unnamed_addr constant [96 x i8], align 16
@__const.autotest_smatrixb_mul.b_test = external hidden unnamed_addr constant [60 x i8], align 16
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [14 x i8], align 1

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

declare ptr @smatrixb_create(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #1

declare void @liquid_autotest_passed(...) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare i32 @smatrixb_print_expanded(ptr noundef) local_unnamed_addr #1

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

declare i32 @smatrixb_destroy(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_smatrixb_mul() local_unnamed_addr #4 {
  %1 = alloca [96 x i8], align 16
  %2 = alloca [60 x i8], align 16
  %3 = alloca [40 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(96) %1, ptr noundef nonnull align 16 dereferenceable(96) @__const.autotest_smatrixb_mul.a_test, i64 96, i1 false)
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(60) %2, ptr noundef nonnull align 16 dereferenceable(60) @__const.autotest_smatrixb_mul.b_test, i64 60, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %3, i8 0, i64 40, i1 false)
  %4 = getelementptr inbounds i8, ptr %3, i64 13
  store i8 1, ptr %4, align 1
  %5 = getelementptr inbounds i8, ptr %3, i64 34
  store i8 1, ptr %5, align 2
  %6 = getelementptr inbounds i8, ptr %3, i64 38
  store i8 1, ptr %6, align 2
  %7 = call ptr @smatrixb_create_array(ptr noundef nonnull %1, i32 noundef 8, i32 noundef 12) #6
  %8 = call ptr @smatrixb_create_array(ptr noundef nonnull %2, i32 noundef 12, i32 noundef 5) #6
  %9 = call ptr @smatrixb_create(i32 noundef 8, i32 noundef 5) #6
  %10 = call i32 @smatrixb_mul(ptr noundef %7, ptr noundef %8, ptr noundef %9) #6
  %11 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %.preheader.preheader, label %12

12:                                               ; preds = %0
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  %14 = call i32 @smatrixb_print_expanded(ptr noundef %7) #6
  %15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26)
  %16 = call i32 @smatrixb_print_expanded(ptr noundef %8) #6
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27)
  %18 = call i32 @smatrixb_print_expanded(ptr noundef %9) #6
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %12, %0
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %69
  %indvars.iv = phi i64 [ %indvars.iv.next, %69 ], [ 0, %.preheader.preheader ]
  %19 = mul nuw nsw i64 %indvars.iv, 5
  %20 = trunc nuw nsw i64 %indvars.iv to i32
  %21 = call zeroext i8 @smatrixb_get(ptr noundef %9, i32 noundef %20, i32 noundef 0) #6
  %22 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 %19
  %23 = load i8, ptr %22, align 1, !tbaa !9
  %.not23 = icmp eq i8 %21, %23
  br i1 %.not23, label %28, label %24

24:                                               ; preds = %.preheader
  %25 = call zeroext i8 @smatrixb_get(ptr noundef %9, i32 noundef %20, i32 noundef 0) #6
  %26 = uitofp i8 %25 to double
  %27 = uitofp i8 %23 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 173, ptr noundef nonnull @.str.28, double noundef %26, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.29, double noundef %27) #6
  br label %29

28:                                               ; preds = %.preheader
  call void (...) @liquid_autotest_passed() #6
  br label %29

29:                                               ; preds = %24, %28
  %30 = call zeroext i8 @smatrixb_get(ptr noundef %9, i32 noundef %20, i32 noundef 1) #6
  %31 = add nuw nsw i64 %19, 1
  %32 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 %31
  %33 = load i8, ptr %32, align 1, !tbaa !9
  %.not23.1 = icmp eq i8 %30, %33
  br i1 %.not23.1, label %38, label %34

34:                                               ; preds = %29
  %35 = call zeroext i8 @smatrixb_get(ptr noundef %9, i32 noundef %20, i32 noundef 1) #6
  %36 = uitofp i8 %35 to double
  %37 = uitofp i8 %33 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 173, ptr noundef nonnull @.str.28, double noundef %36, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.29, double noundef %37) #6
  br label %39

38:                                               ; preds = %29
  call void (...) @liquid_autotest_passed() #6
  br label %39

39:                                               ; preds = %38, %34
  %40 = call zeroext i8 @smatrixb_get(ptr noundef %9, i32 noundef %20, i32 noundef 2) #6
  %41 = add nuw nsw i64 %19, 2
  %42 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 %41
  %43 = load i8, ptr %42, align 1, !tbaa !9
  %.not23.2 = icmp eq i8 %40, %43
  br i1 %.not23.2, label %48, label %44

44:                                               ; preds = %39
  %45 = call zeroext i8 @smatrixb_get(ptr noundef %9, i32 noundef %20, i32 noundef 2) #6
  %46 = uitofp i8 %45 to double
  %47 = uitofp i8 %43 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 173, ptr noundef nonnull @.str.28, double noundef %46, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.29, double noundef %47) #6
  br label %49

48:                                               ; preds = %39
  call void (...) @liquid_autotest_passed() #6
  br label %49

49:                                               ; preds = %48, %44
  %50 = call zeroext i8 @smatrixb_get(ptr noundef %9, i32 noundef %20, i32 noundef 3) #6
  %51 = add nuw nsw i64 %19, 3
  %52 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !9
  %.not23.3 = icmp eq i8 %50, %53
  br i1 %.not23.3, label %58, label %54

54:                                               ; preds = %49
  %55 = call zeroext i8 @smatrixb_get(ptr noundef %9, i32 noundef %20, i32 noundef 3) #6
  %56 = uitofp i8 %55 to double
  %57 = uitofp i8 %53 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 173, ptr noundef nonnull @.str.28, double noundef %56, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.29, double noundef %57) #6
  br label %59

58:                                               ; preds = %49
  call void (...) @liquid_autotest_passed() #6
  br label %59

59:                                               ; preds = %58, %54
  %60 = call zeroext i8 @smatrixb_get(ptr noundef %9, i32 noundef %20, i32 noundef 4) #6
  %61 = add nuw nsw i64 %19, 4
  %62 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 %61
  %63 = load i8, ptr %62, align 1, !tbaa !9
  %.not23.4 = icmp eq i8 %60, %63
  br i1 %.not23.4, label %68, label %64

64:                                               ; preds = %59
  %65 = call zeroext i8 @smatrixb_get(ptr noundef %9, i32 noundef %20, i32 noundef 4) #6
  %66 = uitofp i8 %65 to double
  %67 = uitofp i8 %63 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 173, ptr noundef nonnull @.str.28, double noundef %66, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.29, double noundef %67) #6
  br label %69

68:                                               ; preds = %59
  call void (...) @liquid_autotest_passed() #6
  br label %69

69:                                               ; preds = %68, %64
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 8
  br i1 %exitcond.not, label %70, label %.preheader, !llvm.loop !10

70:                                               ; preds = %69
  %71 = call i32 @smatrixb_destroy(ptr noundef %7) #6
  %72 = call i32 @smatrixb_destroy(ptr noundef %8) #6
  %73 = call i32 @smatrixb_destroy(ptr noundef %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %1) #6
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

declare ptr @smatrixb_create_array(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @smatrixb_mul(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare zeroext i8 @smatrixb_get(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass