; LLVM IR from recp/cglm :: test/src (tests)

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

@stderr = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.610 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_mat2_mul.m1 = external hidden unnamed_addr constant [2 x [2 x float]], align 16
@__const.test_glm_mat2_mul.m2 = external hidden unnamed_addr constant [2 x [2 x float]], align 16
@.str.632 = external hidden unnamed_addr constant [28 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

; 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) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

declare { ptr, i32 } @test_assert_mat2_eq(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_mat2_mul() #6 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [2 x [2 x float]], align 16
  %3 = alloca [2 x [2 x float]], align 16
  %4 = alloca [2 x [2 x float]], align 16
  %5 = alloca [2 x [2 x float]], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.test_status_t, align 8
  %10 = alloca %struct.test_status_t, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.test_status_t, align 8
  %13 = alloca %struct.test_status_t, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_glm_mat2_mul.m1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.test_glm_mat2_mul.m2, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #8
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %14 = getelementptr inbounds [2 x [2 x float]], ptr %2, i64 0, i64 0
  call void @test_rand_mat2(ptr noundef %14)
  %15 = getelementptr inbounds [2 x [2 x float]], ptr %3, i64 0, i64 0
  call void @test_rand_mat2(ptr noundef %15)
  %16 = getelementptr inbounds [2 x [2 x float]], ptr %2, i64 0, i64 0
  %17 = getelementptr inbounds [2 x [2 x float]], ptr %3, i64 0, i64 0
  %18 = getelementptr inbounds [2 x [2 x float]], ptr %4, i64 0, i64 0
  call void @glm_mat2_mul(ptr noundef %16, ptr noundef %17, ptr noundef %18)
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %61, %0
  %20 = load i32, ptr %6, align 4, !tbaa !5
  %21 = icmp slt i32 %20, 2
  br i1 %21, label %22, label %64

22:                                               ; preds = %19
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %57, %22
  %24 = load i32, ptr %7, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 2
  br i1 %25, label %26, label %60

26:                                               ; preds = %23
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %53, %26
  %28 = load i32, ptr %8, align 4, !tbaa !5
  %29 = icmp slt i32 %28, 2
  br i1 %29, label %30, label %56

30:                                               ; preds = %27
  %31 = load i32, ptr %8, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [2 x [2 x float]], ptr %2, i64 0, i64 %32
  %34 = load i32, ptr %7, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [2 x float], ptr %33, i64 0, i64 %35
  %37 = load float, ptr %36, align 4, !tbaa !9
  %38 = load i32, ptr %6, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [2 x [2 x float]], ptr %3, i64 0, i64 %39
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [2 x float], ptr %40, i64 0, i64 %42
  %44 = load float, ptr %43, align 4, !tbaa !9
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [2 x [2 x float]], ptr %5, i64 0, i64 %46
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [2 x float], ptr %47, i64 0, i64 %49
  %51 = load float, ptr %50, align 4, !tbaa !9
  %52 = call float @llvm.fmuladd.f32(float %37, float %44, float %51)
  store float %52, ptr %50, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %30
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %8, align 4, !tbaa !5
  br label %27, !llvm.loop !11

56:                                               ; preds = %27
  br label %57

57:                                               ; preds = %56
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %7, align 4, !tbaa !5
  br label %23, !llvm.loop !13

60:                                               ; preds = %23
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %6, align 4, !tbaa !5
  br label %19, !llvm.loop !14

64:                                               ; preds = %19
  br label %65

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %66 = getelementptr inbounds [2 x [2 x float]], ptr %4, i64 0, i64 0
  %67 = getelementptr inbounds [2 x [2 x float]], ptr %5, i64 0, i64 0
  %68 = call { ptr, i32 } @test_assert_mat2_eq(ptr noundef %66, ptr noundef %67)
  %69 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 0
  %70 = extractvalue { ptr, i32 } %68, 0
  store ptr %70, ptr %69, align 8
  %71 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 1
  %72 = extractvalue { ptr, i32 } %68, 1
  store i32 %72, ptr %71, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  %73 = getelementptr inbounds %struct.test_status_t, ptr %9, i32 0, i32 1
  %74 = load i32, ptr %73, align 8, !tbaa !18
  %75 = icmp ne i32 %74, 1
  br i1 %75, label %76, label %83

76:                                               ; preds = %65
  %77 = load ptr, ptr @stderr, align 8, !tbaa !16
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str.13, ptr noundef @.str.610, i32 noundef 138, ptr noundef @.str.632) #8
  %79 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %80 = getelementptr inbounds %struct.test_status_t, ptr %9, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !20
  store ptr %81, ptr %79, align 8, !tbaa !20
  %82 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %82, align 8, !tbaa !18
  store i32 1, ptr %11, align 4
  br label %84

83:                                               ; preds = %65
  store i32 0, ptr %11, align 4
  br label %84

84:                                               ; preds = %83, %76
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  %85 = load i32, ptr %11, align 4
  switch i32 %85, label %118 [
    i32 0, label %86
  ]

86:                                               ; preds = %84
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  %89 = getelementptr inbounds [2 x [2 x float]], ptr %2, i64 0, i64 0
  %90 = getelementptr inbounds [2 x [2 x float]], ptr %3, i64 0, i64 0
  %91 = getelementptr inbounds [2 x [2 x float]], ptr %4, i64 0, i64 0
  call void @glm_mat2_mul(ptr noundef %89, ptr noundef %90, ptr noundef %91)
  br label %92

92:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %93 = getelementptr inbounds [2 x [2 x float]], ptr %4, i64 0, i64 0
  %94 = getelementptr inbounds [2 x [2 x float]], ptr %5, i64 0, i64 0
  %95 = call { ptr, i32 } @test_assert_mat2_eq(ptr noundef %93, ptr noundef %94)
  %96 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %97 = extractvalue { ptr, i32 } %95, 0
  store ptr %97, ptr %96, align 8
  %98 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %99 = extractvalue { ptr, i32 } %95, 1
  store i32 %99, ptr %98, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  %100 = getelementptr inbounds %struct.test_status_t, ptr %12, i32 0, i32 1
  %101 = load i32, ptr %100, align 8, !tbaa !18
  %102 = icmp ne i32 %101, 1
  br i1 %102, label %103, label %110

103:                                              ; preds = %92
  %104 = load ptr, ptr @stderr, align 8, !tbaa !16
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.13, ptr noundef @.str.610, i32 noundef 142, ptr noundef @.str.632) #8
  %106 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %107 = getelementptr inbounds %struct.test_status_t, ptr %12, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !20
  store ptr %108, ptr %106, align 8, !tbaa !20
  %109 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %109, align 8, !tbaa !18
  store i32 1, ptr %11, align 4
  br label %111

110:                                              ; preds = %92
  store i32 0, ptr %11, align 4
  br label %111

111:                                              ; preds = %110, %103
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  %112 = load i32, ptr %11, align 4
  switch i32 %112, label %118 [
    i32 0, label %113
  ]

113:                                              ; preds = %111
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  %116 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %116, align 8, !tbaa !20
  %117 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %117, align 8, !tbaa !18
  store i32 1, ptr %11, align 4
  br label %118

118:                                              ; preds = %115, %111, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #8
  %119 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %119
}

declare void @test_rand_mat2(ptr noundef) #5

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_mat2_mul(ptr noundef, ptr noundef, ptr noundef) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "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 #6 = { 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 #7 = { alwaysinline 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 #8 = { 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 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{i64 0, i64 8, !16, i64 8, i64 4, !5}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!19, !6, i64 8}
!19 = !{!"test_status_t", !17, i64 0, !6, i64 8}
!20 = !{!19, !17, i64 0}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.610 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_mat2_mul.m1 = external hidden unnamed_addr constant [2 x [2 x float]], align 16
@__const.test_glm_mat2_mul.m2 = external hidden unnamed_addr constant [2 x [2 x float]], align 16
@.str.632 = external hidden unnamed_addr constant [28 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

; 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) #1

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

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

declare { ptr, i32 } @test_assert_mat2_eq(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_mat2_mul() local_unnamed_addr #4 {
.preheader30:
  %0 = alloca [2 x [2 x float]], align 16
  %1 = alloca [2 x [2 x float]], align 16
  %2 = alloca [2 x [2 x float]], align 16
  %3 = alloca [2 x [2 x float]], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %0) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %0, ptr noundef nonnull align 16 dereferenceable(16) @__const.test_glm_mat2_mul.m1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %1, ptr noundef nonnull align 16 dereferenceable(16) @__const.test_glm_mat2_mul.m2, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void @test_rand_mat2(ptr noundef nonnull %0) #7
  call void @test_rand_mat2(ptr noundef nonnull %1) #7
  call void @glm_mat2_mul(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %4 = load <4 x float>, ptr %1, align 16
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = shufflevector <4 x float> %4, <4 x float> poison, <4 x i32> <i32 1, i32 poison, i32 poison, i32 poison>
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load float, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 12
  %10 = load float, ptr %9, align 4, !tbaa !5
  %11 = load <2 x float>, ptr %0, align 16, !tbaa !5
  %12 = shufflevector <2 x float> %11, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %13 = load <2 x float>, ptr %5, align 8, !tbaa !5
  %14 = shufflevector <2 x float> %13, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %15 = insertelement <4 x float> %4, float %8, i64 1
  %16 = shufflevector <4 x float> %15, <4 x float> poison, <4 x i32> <i32 0, i32 0, i32 1, i32 1>
  %17 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %12, <4 x float> %16, <4 x float> zeroinitializer)
  %18 = insertelement <4 x float> %6, float %10, i64 1
  %19 = shufflevector <4 x float> %18, <4 x float> poison, <4 x i32> <i32 0, i32 0, i32 1, i32 1>
  %20 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %14, <4 x float> %19, <4 x float> %17)
  store <4 x float> %20, ptr %3, align 16, !tbaa !5
  %21 = call { ptr, i32 } @test_assert_mat2_eq(ptr noundef nonnull %2, ptr noundef nonnull %3) #7
  %22 = extractvalue { ptr, i32 } %21, 1
  %.not = icmp eq i32 %22, 1
  br i1 %.not, label %.critedge, label %23

23:                                               ; preds = %.preheader30
  %24 = extractvalue { ptr, i32 } %21, 0
  %25 = load ptr, ptr @stderr, align 8, !tbaa !9
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.610, i32 noundef 138, ptr noundef nonnull @.str.632) #8
  br label %34

.critedge:                                        ; preds = %.preheader30
  call void @glm_mat2_mul(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %27 = call { ptr, i32 } @test_assert_mat2_eq(ptr noundef nonnull %2, ptr noundef nonnull %3) #7
  %28 = extractvalue { ptr, i32 } %27, 1
  %.not28 = icmp eq i32 %28, 1
  br i1 %.not28, label %33, label %29

29:                                               ; preds = %.critedge
  %30 = extractvalue { ptr, i32 } %27, 0
  %31 = load ptr, ptr @stderr, align 8, !tbaa !9
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.610, i32 noundef 142, ptr noundef nonnull @.str.632) #8
  br label %33

33:                                               ; preds = %.critedge, %29
  %spec.select = phi ptr [ %30, %29 ], [ null, %.critedge ]
  %spec.select29 = zext i1 %.not28 to i32
  br label %34

34:                                               ; preds = %33, %23
  %.sroa.023.2 = phi ptr [ %24, %23 ], [ %spec.select, %33 ]
  %.sroa.424.2 = phi i32 [ 0, %23 ], [ %spec.select29, %33 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %0) #7
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.023.2, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.424.2, 1
  ret { ptr, i32 } %.fca.1.insert
}

declare void @test_rand_mat2(ptr noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_mat2_mul(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 = { alwaysinline 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { cold 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 = !{!"float", !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}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass