; 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.29 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.320 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.787 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_quat_normalize_to.v1 = external hidden unnamed_addr constant [4 x float], align 16
@.str.826 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.827 = external hidden unnamed_addr constant [33 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 nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_quat_normalize_to() #7 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x float], align 16
  %3 = alloca [4 x float], align 16
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %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
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_glm_quat_normalize_to.v1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store float 1.000000e+00, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %11 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %12 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  call void @glm_quat_normalize_to(ptr noundef %11, ptr noundef %12)
  %13 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %14 = load float, ptr %13, align 16, !tbaa !5
  %15 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %16 = load float, ptr %15, align 16, !tbaa !5
  %17 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  %18 = load float, ptr %17, align 4, !tbaa !5
  %19 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  %20 = load float, ptr %19, align 4, !tbaa !5
  %21 = fmul float %18, %20
  %22 = call float @llvm.fmuladd.f32(float %14, float %16, float %21)
  %23 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %24 = load float, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %26 = load float, ptr %25, align 8, !tbaa !5
  %27 = call float @llvm.fmuladd.f32(float %24, float %26, float %22)
  %28 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %31 = load float, ptr %30, align 4, !tbaa !5
  %32 = call float @llvm.fmuladd.f32(float %29, float %31, float %27)
  %33 = call float @sqrtf(float noundef %32) #8
  store float %33, ptr %5, align 4, !tbaa !5
  %34 = load float, ptr %5, align 4, !tbaa !5
  %35 = fcmp ole float %34, 0.000000e+00
  br i1 %35, label %36, label %62

36:                                               ; preds = %0
  br label %37

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

47:                                               ; preds = %37
  %48 = load ptr, ptr @stderr, align 8, !tbaa !10
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 228, ptr noundef @.str.826) #8
  %50 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %51 = getelementptr inbounds %struct.test_status_t, ptr %6, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  store ptr %52, ptr %50, align 8, !tbaa !16
  %53 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %53, align 8, !tbaa !14
  store i32 1, ptr %8, align 4
  br label %55

54:                                               ; preds = %37
  store i32 0, ptr %8, align 4
  br label %55

55:                                               ; preds = %54, %47
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #8
  %56 = load i32, ptr %8, align 4
  switch i32 %56, label %158 [
    i32 0, label %57
  ]

57:                                               ; preds = %55
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  %60 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %60, align 8, !tbaa !16
  %61 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %61, align 8, !tbaa !14
  store i32 1, ptr %8, align 4
  br label %158

62:                                               ; preds = %0
  %63 = load float, ptr %4, align 4, !tbaa !5
  %64 = load float, ptr %5, align 4, !tbaa !5
  %65 = fdiv float %63, %64
  store float %65, ptr %5, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %62
  %67 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %68 = load float, ptr %67, align 16, !tbaa !5
  %69 = load float, ptr %5, align 4, !tbaa !5
  %70 = fmul float %68, %69
  %71 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %72 = load float, ptr %71, align 16, !tbaa !5
  %73 = call zeroext i1 @test_eq(float noundef %70, float noundef %72)
  br i1 %73, label %79, label %74

74:                                               ; preds = %66
  %75 = load ptr, ptr @stderr, align 8, !tbaa !10
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 235, ptr noundef @.str.29) #8
  %77 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %77, align 8, !tbaa !16
  %78 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %78, align 8, !tbaa !14
  store i32 1, ptr %8, align 4
  br label %158

79:                                               ; preds = %66
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  %83 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  %84 = load float, ptr %83, align 4, !tbaa !5
  %85 = load float, ptr %5, align 4, !tbaa !5
  %86 = fmul float %84, %85
  %87 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 1
  %88 = load float, ptr %87, align 4, !tbaa !5
  %89 = call zeroext i1 @test_eq(float noundef %86, float noundef %88)
  br i1 %89, label %95, label %90

90:                                               ; preds = %82
  %91 = load ptr, ptr @stderr, align 8, !tbaa !10
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 236, ptr noundef @.str.30) #8
  %93 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %93, align 8, !tbaa !16
  %94 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %94, align 8, !tbaa !14
  store i32 1, ptr %8, align 4
  br label %158

95:                                               ; preds = %82
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97
  %99 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %100 = load float, ptr %99, align 8, !tbaa !5
  %101 = load float, ptr %5, align 4, !tbaa !5
  %102 = fmul float %100, %101
  %103 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 2
  %104 = load float, ptr %103, align 8, !tbaa !5
  %105 = call zeroext i1 @test_eq(float noundef %102, float noundef %104)
  br i1 %105, label %111, label %106

106:                                              ; preds = %98
  %107 = load ptr, ptr @stderr, align 8, !tbaa !10
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 237, ptr noundef @.str.155) #8
  %109 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %109, align 8, !tbaa !16
  %110 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %110, align 8, !tbaa !14
  store i32 1, ptr %8, align 4
  br label %158

111:                                              ; preds = %98
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  br label %114

114:                                              ; preds = %113
  %115 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %116 = load float, ptr %115, align 4, !tbaa !5
  %117 = load float, ptr %5, align 4, !tbaa !5
  %118 = fmul float %116, %117
  %119 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 3
  %120 = load float, ptr %119, align 4, !tbaa !5
  %121 = call zeroext i1 @test_eq(float noundef %118, float noundef %120)
  br i1 %121, label %127, label %122

122:                                              ; preds = %114
  %123 = load ptr, ptr @stderr, align 8, !tbaa !10
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 238, ptr noundef @.str.320) #8
  %125 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %125, align 8, !tbaa !16
  %126 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %126, align 8, !tbaa !14
  store i32 1, ptr %8, align 4
  br label %158

127:                                              ; preds = %114
  br label %128

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %128
  %130 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  call void @glm_vec4_zero(ptr noundef %130)
  %131 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %132 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  call void @glm_quat_normalize_to(ptr noundef %131, ptr noundef %132)
  br label %133

133:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %134 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %135 = call { ptr, i32 } @test_assert_quat_eq_identity(ptr noundef %134)
  %136 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 0
  %137 = extractvalue { ptr, i32 } %135, 0
  store ptr %137, ptr %136, align 8
  %138 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 1
  %139 = extractvalue { ptr, i32 } %135, 1
  store i32 %139, ptr %138, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  %140 = getelementptr inbounds %struct.test_status_t, ptr %9, i32 0, i32 1
  %141 = load i32, ptr %140, align 8, !tbaa !14
  %142 = icmp ne i32 %141, 1
  br i1 %142, label %143, label %150

143:                                              ; preds = %133
  %144 = load ptr, ptr @stderr, align 8, !tbaa !10
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 242, ptr noundef @.str.827) #8
  %146 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %147 = getelementptr inbounds %struct.test_status_t, ptr %9, i32 0, i32 0
  %148 = load ptr, ptr %147, align 8, !tbaa !16
  store ptr %148, ptr %146, align 8, !tbaa !16
  %149 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %149, align 8, !tbaa !14
  store i32 1, ptr %8, align 4
  br label %151

150:                                              ; preds = %133
  store i32 0, ptr %8, align 4
  br label %151

151:                                              ; preds = %150, %143
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  %152 = load i32, ptr %8, align 4
  switch i32 %152, label %158 [
    i32 0, label %153
  ]

153:                                              ; preds = %151
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154
  %156 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %156, align 8, !tbaa !16
  %157 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %157, align 8, !tbaa !14
  store i32 1, ptr %8, align 4
  br label %158

158:                                              ; preds = %155, %151, %122, %106, %90, %74, %59, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #8
  %159 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %159
}

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

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 nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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 = { "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 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i64 0, i64 8, !10, i64 8, i64 4, !12}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"test_status_t", !11, i64 0, !13, i64 8}
!16 = !{!15, !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.29 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.320 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.787 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_quat_normalize_to.v1 = external hidden unnamed_addr constant [4 x float], align 16
@.str.826 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.827 = external hidden unnamed_addr constant [33 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_quat_normalize_to() local_unnamed_addr #7 {
  %1 = alloca [4 x float], align 16
  %2 = alloca [4 x float], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #9
  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_normalize_to.v1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #9
  call void @glm_quat_normalize_to(ptr noundef nonnull %1, ptr noundef nonnull %2)
  %3 = load float, ptr %1, align 16, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %1, i64 4
  %5 = load float, ptr %4, align 4, !tbaa !5
  %6 = fmul float %5, %5
  %7 = call float @llvm.fmuladd.f32(float %3, float %3, float %6)
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = load float, ptr %8, align 8, !tbaa !5
  %10 = call float @llvm.fmuladd.f32(float %9, float %9, float %7)
  %11 = getelementptr inbounds i8, ptr %1, i64 12
  %12 = load float, ptr %11, align 4, !tbaa !5
  %13 = call float @llvm.fmuladd.f32(float %12, float %12, float %10)
  %sqrt = call float @llvm.sqrt.f32(float %13)
  %14 = fcmp ugt float %sqrt, 0.000000e+00
  br i1 %14, label %22, label %15

15:                                               ; preds = %0
  %16 = call { ptr, i32 } @test_assert_quat_eq_identity(ptr noundef nonnull %1) #9
  %17 = extractvalue { ptr, i32 } %16, 1
  %.not19 = icmp eq i32 %17, 1
  br i1 %.not19, label %64, label %18

18:                                               ; preds = %15
  %19 = extractvalue { ptr, i32 } %16, 0
  %20 = load ptr, ptr @stderr, align 8, !tbaa !9
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 228, ptr noundef nonnull @.str.826) #10
  br label %64

22:                                               ; preds = %0
  %23 = fdiv float 1.000000e+00, %sqrt
  %24 = fmul float %23, %3
  %25 = load float, ptr %2, align 16, !tbaa !5
  %26 = call zeroext i1 @test_eq(float noundef %24, float noundef %25)
  br i1 %26, label %30, label %27

27:                                               ; preds = %22
  %28 = load ptr, ptr @stderr, align 8, !tbaa !9
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str, ptr noundef nonnull @.str.787, i32 noundef 235, ptr noundef nonnull @.str.29) #10
  br label %64

30:                                               ; preds = %22
  %31 = load float, ptr %4, align 4, !tbaa !5
  %32 = fmul float %23, %31
  %33 = getelementptr inbounds i8, ptr %2, i64 4
  %34 = load float, ptr %33, align 4, !tbaa !5
  %35 = call zeroext i1 @test_eq(float noundef %32, float noundef %34)
  br i1 %35, label %39, label %36

36:                                               ; preds = %30
  %37 = load ptr, ptr @stderr, align 8, !tbaa !9
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str, ptr noundef nonnull @.str.787, i32 noundef 236, ptr noundef nonnull @.str.30) #10
  br label %64

39:                                               ; preds = %30
  %40 = load float, ptr %8, align 8, !tbaa !5
  %41 = fmul float %23, %40
  %42 = getelementptr inbounds i8, ptr %2, i64 8
  %43 = load float, ptr %42, align 8, !tbaa !5
  %44 = call zeroext i1 @test_eq(float noundef %41, float noundef %43)
  br i1 %44, label %48, label %45

45:                                               ; preds = %39
  %46 = load ptr, ptr @stderr, align 8, !tbaa !9
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str, ptr noundef nonnull @.str.787, i32 noundef 237, ptr noundef nonnull @.str.155) #10
  br label %64

48:                                               ; preds = %39
  %49 = load float, ptr %11, align 4, !tbaa !5
  %50 = fmul float %23, %49
  %51 = getelementptr inbounds i8, ptr %2, i64 12
  %52 = load float, ptr %51, align 4, !tbaa !5
  %53 = call zeroext i1 @test_eq(float noundef %50, float noundef %52)
  br i1 %53, label %57, label %54

54:                                               ; preds = %48
  %55 = load ptr, ptr @stderr, align 8, !tbaa !9
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str, ptr noundef nonnull @.str.787, i32 noundef 238, ptr noundef nonnull @.str.320) #10
  br label %64

57:                                               ; preds = %48
  call void @glm_vec4_zero(ptr noundef nonnull %1)
  call void @glm_quat_normalize_to(ptr noundef nonnull %1, ptr noundef nonnull %2)
  %58 = call { ptr, i32 } @test_assert_quat_eq_identity(ptr noundef nonnull %2) #9
  %59 = extractvalue { ptr, i32 } %58, 1
  %.not = icmp eq i32 %59, 1
  br i1 %.not, label %64, label %60

60:                                               ; preds = %57
  %61 = extractvalue { ptr, i32 } %58, 0
  %62 = load ptr, ptr @stderr, align 8, !tbaa !9
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 242, ptr noundef nonnull @.str.827) #10
  br label %64

64:                                               ; preds = %60, %57, %18, %15, %54, %45, %36, %27
  %.sroa.017.2 = phi ptr [ null, %54 ], [ null, %45 ], [ null, %36 ], [ null, %27 ], [ null, %15 ], [ %19, %18 ], [ null, %57 ], [ %61, %60 ]
  %.sroa.9.2.shrunk = phi i32 [ 0, %54 ], [ 0, %45 ], [ 0, %36 ], [ 0, %27 ], [ 1, %15 ], [ 0, %18 ], [ 1, %57 ], [ 0, %60 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #9
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.017.2, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.9.2.shrunk, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

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

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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 = { "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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { 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: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass