; 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 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.787 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_quat_identity.a = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_quat_identity.b = external hidden unnamed_addr constant [4 x float], align 16
@.str.792 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.793 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.794 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.795 = external hidden unnamed_addr constant [54 x i8], align 1
@constinit = external hidden constant [4 x [4 x float]], align 16
@.str.796 = external hidden unnamed_addr constant [54 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: alwaysinline nounwind uwtable
declare hidden zeroext i1 @test_eq(float noundef, float noundef) #2

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

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

; Function Attrs: nounwind
declare float @cosf(float noundef) #3

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_quat_identity() #6 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x float], align 16
  %3 = alloca [4 x float], align 16
  %4 = alloca [4 x float], align 16
  %5 = alloca [4 x [4 x float]], align 16
  %6 = alloca %struct.test_status_t, align 8
  %7 = alloca %struct.test_status_t, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.test_status_t, align 8
  %10 = alloca %struct.test_status_t, align 8
  %11 = alloca %struct.test_status_t, align 8
  %12 = alloca %struct.test_status_t, align 8
  %13 = alloca %struct.test_status_t, align 8
  %14 = alloca %struct.test_status_t, align 8
  %15 = alloca [4 x [4 x float]], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_glm_quat_identity.a, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.test_glm_quat_identity.b, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #7
  %16 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  call void @glm_quat_identity(ptr noundef %16)
  br label %17

17:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  %18 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %19 = call { ptr, i32 } @test_assert_quat_eq_identity(ptr noundef %18)
  %20 = getelementptr inbounds { ptr, i32 }, ptr %7, i32 0, i32 0
  %21 = extractvalue { ptr, i32 } %19, 0
  store ptr %21, ptr %20, align 8
  %22 = getelementptr inbounds { ptr, i32 }, ptr %7, i32 0, i32 1
  %23 = extractvalue { ptr, i32 } %19, 1
  store i32 %23, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %7, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  %24 = getelementptr inbounds %struct.test_status_t, ptr %6, i32 0, i32 1
  %25 = load i32, ptr %24, align 8, !tbaa !12
  %26 = icmp ne i32 %25, 1
  br i1 %26, label %27, label %34

27:                                               ; preds = %17
  %28 = load ptr, ptr @stderr, align 8, !tbaa !6
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 45, ptr noundef @.str.792) #7
  %30 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %31 = getelementptr inbounds %struct.test_status_t, ptr %6, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  store ptr %32, ptr %30, align 8, !tbaa !14
  %33 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %33, align 8, !tbaa !12
  store i32 1, ptr %8, align 4
  br label %35

34:                                               ; preds = %17
  store i32 0, ptr %8, align 4
  br label %35

35:                                               ; preds = %34, %27
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #7
  %36 = load i32, ptr %8, align 4
  switch i32 %36, label %130 [
    i32 0, label %37
  ]

37:                                               ; preds = %35
  br label %38

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38
  br label %40

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  %41 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %42 = call { ptr, i32 } @test_assert_quat_eq_identity(ptr noundef %41)
  %43 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 0
  %44 = extractvalue { ptr, i32 } %42, 0
  store ptr %44, ptr %43, align 8
  %45 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 1
  %46 = extractvalue { ptr, i32 } %42, 1
  store i32 %46, ptr %45, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  %47 = getelementptr inbounds %struct.test_status_t, ptr %9, i32 0, i32 1
  %48 = load i32, ptr %47, align 8, !tbaa !12
  %49 = icmp ne i32 %48, 1
  br i1 %49, label %50, label %57

50:                                               ; preds = %40
  %51 = load ptr, ptr @stderr, align 8, !tbaa !6
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 46, ptr noundef @.str.793) #7
  %53 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %54 = getelementptr inbounds %struct.test_status_t, ptr %9, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !14
  store ptr %55, ptr %53, align 8, !tbaa !14
  %56 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %56, align 8, !tbaa !12
  store i32 1, ptr %8, align 4
  br label %58

57:                                               ; preds = %40
  store i32 0, ptr %8, align 4
  br label %58

58:                                               ; preds = %57, %50
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  %59 = load i32, ptr %8, align 4
  switch i32 %59, label %130 [
    i32 0, label %60
  ]

60:                                               ; preds = %58
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %64 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %65 = call { ptr, i32 } @test_assert_quat_eq_identity(ptr noundef %64)
  %66 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %67 = extractvalue { ptr, i32 } %65, 0
  store ptr %67, ptr %66, align 8
  %68 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %69 = extractvalue { ptr, i32 } %65, 1
  store i32 %69, ptr %68, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  %70 = getelementptr inbounds %struct.test_status_t, ptr %11, i32 0, i32 1
  %71 = load i32, ptr %70, align 8, !tbaa !12
  %72 = icmp ne i32 %71, 1
  br i1 %72, label %73, label %80

73:                                               ; preds = %63
  %74 = load ptr, ptr @stderr, align 8, !tbaa !6
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 47, ptr noundef @.str.794) #7
  %76 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %77 = getelementptr inbounds %struct.test_status_t, ptr %11, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !14
  store ptr %78, ptr %76, align 8, !tbaa !14
  %79 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %79, align 8, !tbaa !12
  store i32 1, ptr %8, align 4
  br label %81

80:                                               ; preds = %63
  store i32 0, ptr %8, align 4
  br label %81

81:                                               ; preds = %80, %73
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  %82 = load i32, ptr %8, align 4
  switch i32 %82, label %130 [
    i32 0, label %83
  ]

83:                                               ; preds = %81
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  %86 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  call void @glm_quat_identity(ptr noundef %86)
  br label %87

87:                                               ; preds = %85
  %88 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %89 = call float @glm_quat_real(ptr noundef %88)
  %90 = call float @glm_rad(float noundef 0.000000e+00)
  %91 = fmul float %90, 5.000000e-01
  %92 = call float @cosf(float noundef %91) #7
  %93 = call zeroext i1 @test_eq(float noundef %89, float noundef %92)
  br i1 %93, label %99, label %94

94:                                               ; preds = %87
  %95 = load ptr, ptr @stderr, align 8, !tbaa !6
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 50, ptr noundef @.str.795) #7
  %97 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %97, align 8, !tbaa !14
  %98 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %98, align 8, !tbaa !12
  store i32 1, ptr %8, align 4
  br label %130

99:                                               ; preds = %87
  br label %100

100:                                              ; preds = %99
  br label %101

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

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

115:                                              ; preds = %104
  %116 = load ptr, ptr @stderr, align 8, !tbaa !6
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 53, ptr noundef @.str.796) #7
  %118 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %119 = getelementptr inbounds %struct.test_status_t, ptr %13, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !14
  store ptr %120, ptr %118, align 8, !tbaa !14
  %121 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %121, align 8, !tbaa !12
  store i32 1, ptr %8, align 4
  br label %123

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

123:                                              ; preds = %122, %115
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  %124 = load i32, ptr %8, 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 !14
  %129 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %129, align 8, !tbaa !12
  store i32 1, ptr %8, align 4
  br label %130

130:                                              ; preds = %127, %123, %94, %81, %58, %35
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #7
  %131 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %131
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_quat_identity(ptr noundef) #2

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_quat_real(ptr noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_rad(float noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 = !{i64 0, i64 8, !6, i64 8, i64 4, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"test_status_t", !7, i64 0, !11, i64 8}
!14 = !{!13, !7, i64 0}
!15 = !{i64 0, i64 64, !16}
!16 = !{!8, !8, 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 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.787 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_quat_identity.a = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_quat_identity.b = external hidden unnamed_addr constant [4 x float], align 16
@.str.792 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.793 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.794 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.795 = external hidden unnamed_addr constant [54 x i8], align 1
@constinit = external hidden local_unnamed_addr constant [4 x [4 x float]], align 16
@.str.796 = external hidden unnamed_addr constant [54 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: alwaysinline nounwind uwtable
declare hidden zeroext i1 @test_eq(float noundef, float noundef) local_unnamed_addr #2

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

; 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 nofree nounwind willreturn memory(write)
declare float @cosf(float noundef) local_unnamed_addr #4

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

declare { ptr, i32 } @test_assert_mat4_eq2(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_quat_identity() local_unnamed_addr #6 {
  %1 = alloca [4 x float], align 16
  %2 = alloca [4 x float], align 16
  %3 = alloca [4 x float], align 16
  %4 = alloca [4 x [4 x float]], align 16
  %5 = alloca [4 x [4 x float]], align 16
  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_quat_identity.a, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %2, ptr noundef nonnull align 16 dereferenceable(16) @__const.test_glm_quat_identity.b, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #7
  call void @glm_quat_identity(ptr noundef nonnull %3)
  %6 = call { ptr, i32 } @test_assert_quat_eq_identity(ptr noundef nonnull %1) #7
  %7 = extractvalue { ptr, i32 } %6, 1
  %.not = icmp eq i32 %7, 1
  br i1 %.not, label %.critedge, label %8

8:                                                ; preds = %0
  %9 = extractvalue { ptr, i32 } %6, 0
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 45, ptr noundef nonnull @.str.792) #8
  br label %42

.critedge:                                        ; preds = %0
  %12 = call { ptr, i32 } @test_assert_quat_eq_identity(ptr noundef nonnull %2) #7
  %13 = extractvalue { ptr, i32 } %12, 1
  %.not28 = icmp eq i32 %13, 1
  br i1 %.not28, label %18, label %14

14:                                               ; preds = %.critedge
  %15 = extractvalue { ptr, i32 } %12, 0
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 46, ptr noundef nonnull @.str.793) #8
  br label %42

18:                                               ; preds = %.critedge
  %19 = call { ptr, i32 } @test_assert_quat_eq_identity(ptr noundef nonnull %3) #7
  %20 = extractvalue { ptr, i32 } %19, 1
  %.not29 = icmp eq i32 %20, 1
  br i1 %.not29, label %25, label %21

21:                                               ; preds = %18
  %22 = extractvalue { ptr, i32 } %19, 0
  %23 = load ptr, ptr @stderr, align 8, !tbaa !5
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 47, ptr noundef nonnull @.str.794) #8
  br label %42

25:                                               ; preds = %18
  call void @glm_quat_identity(ptr noundef nonnull %3)
  %26 = call float @glm_quat_real(ptr noundef nonnull %3)
  %27 = call float @glm_rad(float noundef 0.000000e+00)
  %28 = fmul float %27, 5.000000e-01
  %29 = call float @cosf(float noundef %28) #7
  %30 = call zeroext i1 @test_eq(float noundef %26, float noundef %29)
  br i1 %30, label %34, label %31

31:                                               ; preds = %25
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str, ptr noundef nonnull @.str.787, i32 noundef 50, ptr noundef nonnull @.str.795) #8
  br label %42

34:                                               ; preds = %25
  call void @glm_quat_mat4(ptr noundef nonnull %3, ptr noundef nonnull %4)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %5, ptr noundef nonnull align 16 dereferenceable(64) @constinit, i64 64, i1 false), !tbaa.struct !9
  %35 = call { ptr, i32 } @test_assert_mat4_eq2(ptr noundef nonnull %4, ptr noundef nonnull %5, float noundef 0x3EE2DFD6A0000000) #7
  %36 = extractvalue { ptr, i32 } %35, 1
  %.not30 = icmp eq i32 %36, 1
  br i1 %.not30, label %41, label %37

37:                                               ; preds = %34
  %38 = extractvalue { ptr, i32 } %35, 0
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 53, ptr noundef nonnull @.str.796) #8
  br label %41

41:                                               ; preds = %34, %37
  %spec.select = phi ptr [ %38, %37 ], [ null, %34 ]
  %spec.select31 = zext i1 %.not30 to i32
  br label %42

42:                                               ; preds = %21, %14, %41, %8, %31
  %.sroa.027.4 = phi ptr [ null, %31 ], [ %22, %21 ], [ %15, %14 ], [ %9, %8 ], [ %spec.select, %41 ]
  %.sroa.7.4 = phi i32 [ 0, %31 ], [ 0, %21 ], [ 0, %14 ], [ 0, %8 ], [ %spec.select31, %41 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  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
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.027.4, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.7.4, 1
  ret { ptr, i32 } %.fca.1.insert
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_quat_identity(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_quat_real(ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_rad(float noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { "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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i64 0, i64 64, !10}
!10 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,SROAPass,SimplifyCFGPass