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

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

35:                                               ; preds = %77, %0
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = icmp slt i32 %36, 4
  br i1 %37, label %38, label %80

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

39:                                               ; preds = %73, %38
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 4
  br i1 %41, label %42, label %76

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

43:                                               ; preds = %69, %42
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = icmp slt i32 %44, 4
  br i1 %45, label %46, label %72

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

69:                                               ; preds = %46
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %8, align 4, !tbaa !5
  br label %43, !llvm.loop !11

72:                                               ; preds = %43
  br label %73

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

76:                                               ; preds = %39
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %6, align 4, !tbaa !5
  br label %35, !llvm.loop !14

80:                                               ; preds = %35
  br label %81

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

92:                                               ; preds = %81
  %93 = load ptr, ptr @stderr, align 8, !tbaa !16
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.13, ptr noundef @.str.727, i32 noundef 150, ptr noundef @.str.669) #8
  %95 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %96 = getelementptr inbounds %struct.test_status_t, ptr %9, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !20
  store ptr %97, ptr %95, align 8, !tbaa !20
  %98 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %98, align 8, !tbaa !18
  store i32 1, ptr %11, align 4
  br label %100

99:                                               ; preds = %81
  store i32 0, ptr %11, align 4
  br label %100

100:                                              ; preds = %99, %92
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  %101 = load i32, ptr %11, align 4
  switch i32 %101, label %134 [
    i32 0, label %102
  ]

102:                                              ; preds = %100
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  %105 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %106 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  %107 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  call void @glm_mat4_mul(ptr noundef %105, ptr noundef %106, ptr noundef %107)
  br label %108

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

119:                                              ; preds = %108
  %120 = load ptr, ptr @stderr, align 8, !tbaa !16
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str.13, ptr noundef @.str.727, i32 noundef 154, ptr noundef @.str.669) #8
  %122 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %123 = getelementptr inbounds %struct.test_status_t, ptr %12, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !20
  store ptr %124, ptr %122, align 8, !tbaa !20
  %125 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %125, align 8, !tbaa !18
  store i32 1, ptr %11, align 4
  br label %127

126:                                              ; preds = %108
  store i32 0, ptr %11, align 4
  br label %127

127:                                              ; preds = %126, %119
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  %128 = load i32, ptr %11, align 4
  switch i32 %128, label %134 [
    i32 0, label %129
  ]

129:                                              ; preds = %127
  br label %130

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130
  %132 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %132, align 8, !tbaa !20
  %133 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %133, align 8, !tbaa !18
  store i32 1, ptr %11, align 4
  br label %134

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

declare void @test_rand_mat4(ptr noundef) #5

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_mat4_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.669 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.727 = 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

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

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

96:                                               ; preds = %.preheader30
  %97 = extractvalue { ptr, i32 } %94, 0
  %98 = load ptr, ptr @stderr, align 8, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.727, i32 noundef 150, ptr noundef nonnull @.str.669) #8
  br label %107

.critedge:                                        ; preds = %.preheader30
  call void @glm_mat4_mul(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %100 = call { ptr, i32 } @test_assert_mat4_eq(ptr noundef nonnull %2, ptr noundef nonnull %3) #7
  %101 = extractvalue { ptr, i32 } %100, 1
  %.not28 = icmp eq i32 %101, 1
  br i1 %.not28, label %106, label %102

102:                                              ; preds = %.critedge
  %103 = extractvalue { ptr, i32 } %100, 0
  %104 = load ptr, ptr @stderr, align 8, !tbaa !9
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.727, i32 noundef 154, ptr noundef nonnull @.str.669) #8
  br label %106

106:                                              ; preds = %.critedge, %102
  %spec.select = phi ptr [ %103, %102 ], [ null, %.critedge ]
  %spec.select29 = zext i1 %.not28 to i32
  br label %107

107:                                              ; preds = %106, %96
  %.sroa.023.2 = phi ptr [ %97, %96 ], [ %spec.select, %106 ]
  %.sroa.424.2 = phi i32 [ 0, %96 ], [ %spec.select29, %106 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #7
  call void @llvm.lifetime.end.p0(i64 64, 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_mat4(ptr noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_mat4_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 = { 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 = { "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,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass