; 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.671 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_mat3_quat.axis2 = external hidden unnamed_addr constant [3 x float], align 4
@.str.681 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.682 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.683 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.684 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.685 = 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: 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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_mat3_quat() #5 {
  %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 [4 x [4 x float]], align 16
  %5 = alloca [4 x float], align 16
  %6 = alloca [4 x float], align 16
  %7 = alloca [4 x float], align 16
  %8 = alloca [3 x float], align 4
  %9 = alloca [3 x float], align 4
  %10 = alloca i32, align 4
  %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 %struct.test_status_t, align 8
  %16 = alloca %struct.test_status_t, align 8
  %17 = alloca %struct.test_status_t, align 8
  %18 = alloca %struct.test_status_t, align 8
  call void @llvm.lifetime.start.p0(i64 36, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 @__const.test_glm_mat3_quat.axis2, i64 12, i1 false)
  %19 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  call void @glm_quat(ptr noundef %19, float noundef 0x3FE921FB60000000, float noundef 0x3FFE666660000000, float noundef 0x4002666660000000, float noundef 4.500000e+00)
  %20 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %21 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  call void @glm_quat_mat3(ptr noundef %20, ptr noundef %21)
  %22 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  %23 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  call void @glm_mat3_quat(ptr noundef %22, ptr noundef %23)
  %24 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  %25 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  call void @glm_rotate_make(ptr noundef %24, float noundef 0x3FE921FB60000000, ptr noundef %25)
  %26 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  %27 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
  call void @glm_mat3_quat(ptr noundef %26, ptr noundef %27)
  %28 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
  %29 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  call void @glm_quat_axis(ptr noundef %28, ptr noundef %29)
  %30 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  call void @glm_vec3_normalize(ptr noundef %30)
  %31 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  call void @glm_vec3_normalize(ptr noundef %31)
  %32 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  %33 = getelementptr inbounds [3 x [3 x float]], ptr %3, i64 0, i64 0
  call void @glm_mat4_pick3(ptr noundef %32, ptr noundef %33)
  br label %34

34:                                               ; preds = %0
  %35 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
  %36 = call float @glm_quat_angle(ptr noundef %35)
  %37 = call zeroext i1 @test_eq(float noundef %36, float noundef 0x3FE921FB60000000)
  br i1 %37, label %43, label %38

38:                                               ; preds = %34
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str, ptr noundef @.str.671, i32 noundef 152, ptr noundef @.str.681) #6
  %41 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %41, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %42, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %144

43:                                               ; preds = %34
  br label %44

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %47 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  %48 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  %49 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef %47, ptr noundef %48)
  %50 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %51 = extractvalue { ptr, i32 } %49, 0
  store ptr %51, ptr %50, align 8
  %52 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %53 = extractvalue { ptr, i32 } %49, 1
  store i32 %53, ptr %52, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  %54 = getelementptr inbounds %struct.test_status_t, ptr %11, i32 0, i32 1
  %55 = load i32, ptr %54, align 8, !tbaa !12
  %56 = icmp ne i32 %55, 1
  br i1 %56, label %57, label %64

57:                                               ; preds = %46
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.13, ptr noundef @.str.671, i32 noundef 153, ptr noundef @.str.682) #6
  %60 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %61 = getelementptr inbounds %struct.test_status_t, ptr %11, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  store ptr %62, ptr %60, align 8, !tbaa !9
  %63 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %63, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %65

64:                                               ; preds = %46
  store i32 0, ptr %10, align 4
  br label %65

65:                                               ; preds = %64, %57
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  %66 = load i32, ptr %10, align 4
  switch i32 %66, label %144 [
    i32 0, label %67
  ]

67:                                               ; preds = %65
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %71 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %72 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  %73 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef %71, ptr noundef %72)
  %74 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %75 = extractvalue { ptr, i32 } %73, 0
  store ptr %75, ptr %74, align 8
  %76 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %77 = extractvalue { ptr, i32 } %73, 1
  store i32 %77, ptr %76, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  %78 = getelementptr inbounds %struct.test_status_t, ptr %13, i32 0, i32 1
  %79 = load i32, ptr %78, align 8, !tbaa !12
  %80 = icmp ne i32 %79, 1
  br i1 %80, label %81, label %88

81:                                               ; preds = %70
  %82 = load ptr, ptr @stderr, align 8, !tbaa !5
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.13, ptr noundef @.str.671, i32 noundef 154, ptr noundef @.str.683) #6
  %84 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %85 = getelementptr inbounds %struct.test_status_t, ptr %13, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  store ptr %86, ptr %84, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %87, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %89

88:                                               ; preds = %70
  store i32 0, ptr %10, align 4
  br label %89

89:                                               ; preds = %88, %81
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  %90 = load i32, ptr %10, align 4
  switch i32 %90, label %144 [
    i32 0, label %91
  ]

91:                                               ; preds = %89
  br label %92

92:                                               ; preds = %91
  br label %93

93:                                               ; preds = %92
  br label %94

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

105:                                              ; preds = %94
  %106 = load ptr, ptr @stderr, align 8, !tbaa !5
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.13, ptr noundef @.str.671, i32 noundef 155, ptr noundef @.str.684) #6
  %108 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %109 = getelementptr inbounds %struct.test_status_t, ptr %15, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !9
  store ptr %110, ptr %108, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %111, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %113

112:                                              ; preds = %94
  store i32 0, ptr %10, align 4
  br label %113

113:                                              ; preds = %112, %105
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  %114 = load i32, ptr %10, align 4
  switch i32 %114, label %144 [
    i32 0, label %115
  ]

115:                                              ; preds = %113
  br label %116

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %119 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %120 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
  %121 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef %119, ptr noundef %120)
  %122 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %123 = extractvalue { ptr, i32 } %121, 0
  store ptr %123, ptr %122, align 8
  %124 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %125 = extractvalue { ptr, i32 } %121, 1
  store i32 %125, ptr %124, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  %126 = getelementptr inbounds %struct.test_status_t, ptr %17, i32 0, i32 1
  %127 = load i32, ptr %126, align 8, !tbaa !12
  %128 = icmp ne i32 %127, 1
  br i1 %128, label %129, label %136

129:                                              ; preds = %118
  %130 = load ptr, ptr @stderr, align 8, !tbaa !5
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.13, ptr noundef @.str.671, i32 noundef 156, ptr noundef @.str.685) #6
  %132 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %133 = getelementptr inbounds %struct.test_status_t, ptr %17, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !9
  store ptr %134, ptr %132, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %135, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %137

136:                                              ; preds = %118
  store i32 0, ptr %10, align 4
  br label %137

137:                                              ; preds = %136, %129
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  %138 = load i32, ptr %10, align 4
  switch i32 %138, label %144 [
    i32 0, label %139
  ]

139:                                              ; preds = %137
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140
  %142 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %142, align 8, !tbaa !9
  %143 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %143, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %144

144:                                              ; preds = %141, %137, %113, %89, %65, %38
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %2) #6
  %145 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %145
}

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

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

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_quat_angle(ptr 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 = { "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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"test_status_t", !6, i64 0, !11, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{i64 0, i64 8, !5, i64 8, i64 4, !14}
!14 = !{!11, !11, 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.671 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_mat3_quat.axis2 = external hidden unnamed_addr constant [3 x float], align 4
@.str.681 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.682 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.683 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.684 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.685 = 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: 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

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

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

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

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

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

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_quat() local_unnamed_addr #5 {
  %1 = alloca [3 x [3 x float]], align 16
  %2 = alloca [3 x [3 x float]], align 16
  %3 = alloca [4 x [4 x float]], align 16
  %4 = alloca [4 x float], align 16
  %5 = alloca [4 x float], align 16
  %6 = alloca [4 x float], align 16
  %7 = alloca [3 x float], align 4
  %8 = alloca [3 x float], align 4
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_mat3_quat.axis2, i64 12, i1 false)
  call void @glm_quat(ptr noundef nonnull %4, float noundef 0x3FE921FB60000000, float noundef 0x3FFE666660000000, float noundef 0x4002666660000000, float noundef 4.500000e+00)
  call void @glm_quat_mat3(ptr noundef nonnull %4, ptr noundef nonnull %1)
  call void @glm_mat3_quat(ptr noundef nonnull %1, ptr noundef nonnull %5)
  call void @glm_rotate_make(ptr noundef nonnull %3, float noundef 0x3FE921FB60000000, ptr noundef nonnull %8)
  call void @glm_mat3_quat(ptr noundef nonnull %1, ptr noundef nonnull %6)
  call void @glm_quat_axis(ptr noundef nonnull %6, ptr noundef nonnull %7)
  call void @glm_vec3_normalize(ptr noundef nonnull %7)
  call void @glm_vec3_normalize(ptr noundef nonnull %8)
  call void @glm_mat4_pick3(ptr noundef nonnull %3, ptr noundef nonnull %2)
  %9 = call float @glm_quat_angle(ptr noundef nonnull %6)
  %10 = call zeroext i1 @test_eq(float noundef %9, float noundef 0x3FE921FB60000000)
  br i1 %10, label %14, label %11

11:                                               ; preds = %0
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str, ptr noundef nonnull @.str.671, i32 noundef 152, ptr noundef nonnull @.str.681) #7
  br label %42

14:                                               ; preds = %0
  %15 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef nonnull %7, ptr noundef nonnull %8) #6
  %16 = extractvalue { ptr, i32 } %15, 1
  %.not = icmp eq i32 %16, 1
  br i1 %.not, label %.critedge, label %17

17:                                               ; preds = %14
  %18 = extractvalue { ptr, i32 } %15, 0
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.671, i32 noundef 153, ptr noundef nonnull @.str.682) #7
  br label %42

.critedge:                                        ; preds = %14
  %21 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef nonnull %4, ptr noundef nonnull %5) #6
  %22 = extractvalue { ptr, i32 } %21, 1
  %.not28 = icmp eq i32 %22, 1
  br i1 %.not28, label %27, label %23

23:                                               ; preds = %.critedge
  %24 = extractvalue { ptr, i32 } %21, 0
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.671, i32 noundef 154, ptr noundef nonnull @.str.683) #7
  br label %42

27:                                               ; preds = %.critedge
  %28 = call { ptr, i32 } @test_assert_mat3_eq(ptr noundef nonnull %1, ptr noundef nonnull %2) #6
  %29 = extractvalue { ptr, i32 } %28, 1
  %.not29 = icmp eq i32 %29, 1
  br i1 %.not29, label %34, label %30

30:                                               ; preds = %27
  %31 = extractvalue { ptr, i32 } %28, 0
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.671, i32 noundef 155, ptr noundef nonnull @.str.684) #7
  br label %42

34:                                               ; preds = %27
  %35 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef nonnull %4, ptr noundef nonnull %6) #6
  %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.671, i32 noundef 156, ptr noundef nonnull @.str.685) #7
  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 = %30, %23, %41, %17, %11
  %.sroa.027.4 = phi ptr [ %31, %30 ], [ %24, %23 ], [ %18, %17 ], [ null, %11 ], [ %spec.select, %41 ]
  %.sroa.7.4 = phi i32 [ 0, %30 ], [ 0, %23 ], [ 0, %17 ], [ 0, %11 ], [ %spec.select31, %41 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %1) #6
  %.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(ptr noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_quat_angle(ptr 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 = { "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 = { nounwind }
attributes #7 = { 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"}


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