; 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.657 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.671 = external hidden unnamed_addr constant [64 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_mat3_eq(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_mat3_mul() #6 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [3 x [3 x float]], align 16
  %3 = alloca [3 x [3 x float]], align 16
  %4 = alloca [3 x [3 x float]], align 16
  %5 = alloca [3 x [3 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 36, ptr %2) #8
  call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 36, i1 false)
  %14 = getelementptr inbounds [3 x [3 x float]], ptr %2, i32 0, i32 0
  %15 = getelementptr inbounds [3 x float], ptr %14, i32 0, i32 0
  store float 1.000000e+00, ptr %15, align 16
  %16 = getelementptr inbounds [3 x [3 x float]], ptr %2, i32 0, i32 1
  %17 = getelementptr inbounds [3 x float], ptr %16, i32 0, i32 1
  store float 1.000000e+00, ptr %17, align 4
  %18 = getelementptr inbounds [3 x [3 x float]], ptr %2, i32 0, i32 2
  %19 = getelementptr inbounds [3 x float], ptr %18, i32 0, i32 2
  store float 1.000000e+00, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 36, ptr %3) #8
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 36, i1 false)
  %20 = getelementptr inbounds [3 x [3 x float]], ptr %3, i32 0, i32 0
  %21 = getelementptr inbounds [3 x float], ptr %20, i32 0, i32 0
  store float 1.000000e+00, ptr %21, align 16
  %22 = getelementptr inbounds [3 x [3 x float]], ptr %3, i32 0, i32 1
  %23 = getelementptr inbounds [3 x float], ptr %22, i32 0, i32 1
  store float 1.000000e+00, ptr %23, align 4
  %24 = getelementptr inbounds [3 x [3 x float]], ptr %3, i32 0, i32 2
  %25 = getelementptr inbounds [3 x float], ptr %24, i32 0, i32 2
  store float 1.000000e+00, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 36, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr %5) #8
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 36, 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
  %26 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  call void @test_rand_mat3(ptr noundef %26)
  %27 = getelementptr inbounds [3 x [3 x float]], ptr %3, i64 0, i64 0
  call void @test_rand_mat3(ptr noundef %27)
  %28 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  %29 = getelementptr inbounds [3 x [3 x float]], ptr %3, i64 0, i64 0
  %30 = getelementptr inbounds [3 x [3 x float]], ptr %4, i64 0, i64 0
  call void @glm_mat3_mul(ptr noundef %28, ptr noundef %29, ptr noundef %30)
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %73, %0
  %32 = load i32, ptr %6, align 4, !tbaa !5
  %33 = icmp slt i32 %32, 3
  br i1 %33, label %34, label %76

34:                                               ; preds = %31
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %69, %34
  %36 = load i32, ptr %7, align 4, !tbaa !5
  %37 = icmp slt i32 %36, 3
  br i1 %37, label %38, label %72

38:                                               ; preds = %35
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %65, %38
  %40 = load i32, ptr %8, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 3
  br i1 %41, label %42, label %68

42:                                               ; preds = %39
  %43 = load i32, ptr %8, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 %44
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [3 x float], ptr %45, i64 0, i64 %47
  %49 = load float, ptr %48, align 4, !tbaa !9
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [3 x [3 x float]], ptr %3, i64 0, i64 %51
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [3 x float], ptr %52, i64 0, i64 %54
  %56 = load float, ptr %55, align 4, !tbaa !9
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [3 x [3 x float]], ptr %5, i64 0, i64 %58
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [3 x float], ptr %59, i64 0, i64 %61
  %63 = load float, ptr %62, align 4, !tbaa !9
  %64 = call float @llvm.fmuladd.f32(float %49, float %56, float %63)
  store float %64, ptr %62, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %42
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %8, align 4, !tbaa !5
  br label %39, !llvm.loop !11

68:                                               ; preds = %39
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %7, align 4, !tbaa !5
  br label %35, !llvm.loop !13

72:                                               ; preds = %35
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %6, align 4, !tbaa !5
  br label %31, !llvm.loop !14

76:                                               ; preds = %31
  br label %77

77:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %78 = getelementptr inbounds [3 x [3 x float]], ptr %4, i64 0, i64 0
  %79 = getelementptr inbounds [3 x [3 x float]], ptr %5, i64 0, i64 0
  %80 = call { ptr, i32 } @test_assert_mat3_eq(ptr noundef %78, ptr noundef %79)
  %81 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 0
  %82 = extractvalue { ptr, i32 } %80, 0
  store ptr %82, ptr %81, align 8
  %83 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 1
  %84 = extractvalue { ptr, i32 } %80, 1
  store i32 %84, ptr %83, 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
  %85 = getelementptr inbounds %struct.test_status_t, ptr %9, i32 0, i32 1
  %86 = load i32, ptr %85, align 8, !tbaa !18
  %87 = icmp ne i32 %86, 1
  br i1 %87, label %88, label %95

88:                                               ; preds = %77
  %89 = load ptr, ptr @stderr, align 8, !tbaa !16
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.13, ptr noundef @.str.671, i32 noundef 93, ptr noundef @.str.657) #8
  %91 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %92 = getelementptr inbounds %struct.test_status_t, ptr %9, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !20
  store ptr %93, ptr %91, align 8, !tbaa !20
  %94 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %94, align 8, !tbaa !18
  store i32 1, ptr %11, align 4
  br label %96

95:                                               ; preds = %77
  store i32 0, ptr %11, align 4
  br label %96

96:                                               ; preds = %95, %88
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  %97 = load i32, ptr %11, align 4
  switch i32 %97, label %130 [
    i32 0, label %98
  ]

98:                                               ; preds = %96
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  %101 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  %102 = getelementptr inbounds [3 x [3 x float]], ptr %3, i64 0, i64 0
  %103 = getelementptr inbounds [3 x [3 x float]], ptr %4, i64 0, i64 0
  call void @glm_mat3_mul(ptr noundef %101, ptr noundef %102, ptr noundef %103)
  br label %104

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %105 = getelementptr inbounds [3 x [3 x float]], ptr %4, i64 0, i64 0
  %106 = getelementptr inbounds [3 x [3 x float]], ptr %5, i64 0, i64 0
  %107 = call { ptr, i32 } @test_assert_mat3_eq(ptr noundef %105, ptr noundef %106)
  %108 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %109 = extractvalue { ptr, i32 } %107, 0
  store ptr %109, ptr %108, align 8
  %110 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %111 = extractvalue { ptr, i32 } %107, 1
  store i32 %111, ptr %110, 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
  %112 = getelementptr inbounds %struct.test_status_t, ptr %12, i32 0, i32 1
  %113 = load i32, ptr %112, align 8, !tbaa !18
  %114 = icmp ne i32 %113, 1
  br i1 %114, label %115, label %122

115:                                              ; preds = %104
  %116 = load ptr, ptr @stderr, align 8, !tbaa !16
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.13, ptr noundef @.str.671, i32 noundef 97, ptr noundef @.str.657) #8
  %118 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %119 = getelementptr inbounds %struct.test_status_t, ptr %12, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !20
  store ptr %120, ptr %118, align 8, !tbaa !20
  %121 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %121, align 8, !tbaa !18
  store i32 1, ptr %11, align 4
  br label %123

122:                                              ; preds = %104
  store i32 0, ptr %11, align 4
  br label %123

123:                                              ; preds = %122, %115
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  %124 = load i32, ptr %11, align 4
  switch i32 %124, label %130 [
    i32 0, label %125
  ]

125:                                              ; preds = %123
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  %128 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %128, align 8, !tbaa !20
  %129 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %129, align 8, !tbaa !18
  store i32 1, ptr %11, align 4
  br label %130

130:                                              ; preds = %127, %123, %96
  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 36, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %2) #8
  %131 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %131
}

declare void @test_rand_mat3(ptr noundef) #5

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_mat3_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.657 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.671 = external hidden unnamed_addr constant [64 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) 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

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

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

declare { ptr, i32 } @test_assert_mat3_eq(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_mat3_mul() local_unnamed_addr #5 {
.preheader30:
  %0 = alloca [3 x [3 x float]], align 16
  %1 = alloca [3 x [3 x float]], align 16
  %2 = alloca [3 x [3 x float]], align 16
  %3 = alloca [3 x [3 x float]], align 16
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %0) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) %0, i8 0, i64 32, i1 false)
  store float 1.000000e+00, ptr %0, align 16
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  store float 1.000000e+00, ptr %4, align 16
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  store float 1.000000e+00, ptr %5, align 16
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %1) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) %1, i8 0, i64 32, i1 false)
  store float 1.000000e+00, ptr %1, align 16
  %6 = getelementptr inbounds i8, ptr %1, i64 16
  store float 1.000000e+00, ptr %6, align 16
  %7 = getelementptr inbounds i8, ptr %1, i64 32
  store float 1.000000e+00, ptr %7, align 16
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %3) #8
  call void @test_rand_mat3(ptr noundef nonnull %0) #8
  call void @test_rand_mat3(ptr noundef nonnull %1) #8
  call void @glm_mat3_mul(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %8 = load float, ptr %0, align 16, !tbaa !5
  %9 = load <4 x float>, ptr %1, align 16
  %10 = getelementptr inbounds i8, ptr %0, i64 12
  %11 = load float, ptr %10, align 4, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %1, i64 4
  %13 = load <4 x float>, ptr %12, align 4
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = load float, ptr %14, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %1, i64 8
  %17 = load <4 x float>, ptr %16, align 8
  %18 = getelementptr inbounds i8, ptr %0, i64 4
  %19 = getelementptr inbounds i8, ptr %0, i64 28
  %20 = load <2 x float>, ptr %18, align 4, !tbaa !5
  %21 = load <2 x float>, ptr %4, align 16, !tbaa !5
  %22 = load <2 x float>, ptr %19, align 4, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %1, i64 12
  %24 = load float, ptr %23, align 4, !tbaa !5
  %25 = load float, ptr %6, align 16, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %1, i64 20
  %27 = load float, ptr %26, align 4, !tbaa !5
  %28 = insertelement <4 x float> poison, float %8, i64 0
  %29 = shufflevector <2 x float> %20, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 1, i32 poison>
  %30 = shufflevector <4 x float> %28, <4 x float> %29, <4 x i32> <i32 0, i32 4, i32 5, i32 poison>
  %31 = shufflevector <4 x float> %30, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 0>
  %32 = insertelement <4 x float> %9, float %24, i64 1
  %33 = shufflevector <4 x float> %32, <4 x float> poison, <4 x i32> <i32 0, i32 0, i32 0, i32 1>
  %34 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %31, <4 x float> %33, <4 x float> zeroinitializer)
  %35 = insertelement <4 x float> poison, float %11, i64 0
  %36 = shufflevector <2 x float> %21, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 1, i32 poison>
  %37 = shufflevector <4 x float> %35, <4 x float> %36, <4 x i32> <i32 0, i32 4, i32 5, i32 poison>
  %38 = shufflevector <4 x float> %37, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 0>
  %39 = insertelement <4 x float> %13, float %25, i64 1
  %40 = shufflevector <4 x float> %39, <4 x float> poison, <4 x i32> <i32 0, i32 0, i32 0, i32 1>
  %41 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %38, <4 x float> %40, <4 x float> %34)
  %42 = insertelement <4 x float> poison, float %15, i64 0
  %43 = shufflevector <2 x float> %22, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 1, i32 poison>
  %44 = shufflevector <4 x float> %42, <4 x float> %43, <4 x i32> <i32 0, i32 4, i32 5, i32 poison>
  %45 = shufflevector <4 x float> %44, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 0>
  %46 = insertelement <4 x float> %17, float %27, i64 1
  %47 = shufflevector <4 x float> %46, <4 x float> poison, <4 x i32> <i32 0, i32 0, i32 0, i32 1>
  %48 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %45, <4 x float> %47, <4 x float> %41)
  store <4 x float> %48, ptr %3, align 16, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %3, i64 16
  %50 = getelementptr inbounds i8, ptr %1, i64 24
  %51 = load float, ptr %50, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %1, i64 28
  %53 = load float, ptr %52, align 4, !tbaa !5
  %54 = load float, ptr %7, align 16, !tbaa !5
  %55 = insertelement <4 x float> %29, float %8, i64 1
  %56 = shufflevector <4 x float> %55, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 0>
  %57 = insertelement <4 x float> poison, float %24, i64 0
  %58 = insertelement <4 x float> %57, float %51, i64 1
  %59 = shufflevector <4 x float> %58, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %60 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %56, <4 x float> %59, <4 x float> zeroinitializer)
  %61 = insertelement <4 x float> %36, float %11, i64 1
  %62 = shufflevector <4 x float> %61, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 0>
  %63 = insertelement <4 x float> poison, float %25, i64 0
  %64 = insertelement <4 x float> %63, float %53, i64 1
  %65 = shufflevector <4 x float> %64, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %66 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %62, <4 x float> %65, <4 x float> %60)
  %67 = insertelement <4 x float> %43, float %15, i64 1
  %68 = shufflevector <4 x float> %67, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 0>
  %69 = insertelement <4 x float> poison, float %27, i64 0
  %70 = insertelement <4 x float> %69, float %54, i64 1
  %71 = shufflevector <4 x float> %70, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %72 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %68, <4 x float> %71, <4 x float> %66)
  %73 = shufflevector <4 x float> %72, <4 x float> poison, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x float> %73, ptr %49, align 16, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %3, i64 32
  %75 = extractelement <2 x float> %20, i64 1
  %76 = call float @llvm.fmuladd.f32(float %75, float %51, float 0.000000e+00)
  %77 = extractelement <2 x float> %21, i64 1
  %78 = call float @llvm.fmuladd.f32(float %77, float %53, float %76)
  %79 = extractelement <2 x float> %22, i64 1
  %80 = call float @llvm.fmuladd.f32(float %79, float %54, float %78)
  store float %80, ptr %74, align 16, !tbaa !5
  %81 = call { ptr, i32 } @test_assert_mat3_eq(ptr noundef nonnull %2, ptr noundef nonnull %3) #8
  %82 = extractvalue { ptr, i32 } %81, 1
  %.not = icmp eq i32 %82, 1
  br i1 %.not, label %.critedge, label %83

83:                                               ; preds = %.preheader30
  %84 = extractvalue { ptr, i32 } %81, 0
  %85 = load ptr, ptr @stderr, align 8, !tbaa !9
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.671, i32 noundef 93, ptr noundef nonnull @.str.657) #9
  br label %94

.critedge:                                        ; preds = %.preheader30
  call void @glm_mat3_mul(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %87 = call { ptr, i32 } @test_assert_mat3_eq(ptr noundef nonnull %2, ptr noundef nonnull %3) #8
  %88 = extractvalue { ptr, i32 } %87, 1
  %.not28 = icmp eq i32 %88, 1
  br i1 %.not28, label %93, label %89

89:                                               ; preds = %.critedge
  %90 = extractvalue { ptr, i32 } %87, 0
  %91 = load ptr, ptr @stderr, align 8, !tbaa !9
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.671, i32 noundef 97, ptr noundef nonnull @.str.657) #9
  br label %93

93:                                               ; preds = %.critedge, %89
  %spec.select = phi ptr [ %90, %89 ], [ null, %.critedge ]
  %spec.select29 = zext i1 %.not28 to i32
  br label %94

94:                                               ; preds = %93, %83
  %.sroa.023.2 = phi ptr [ %84, %83 ], [ %spec.select, %93 ]
  %.sroa.424.2 = phi i32 [ 0, %83 ], [ %spec.select29, %93 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %1) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %0) #8
  %.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_mat3(ptr noundef) local_unnamed_addr #4

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "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 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 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { 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,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass