; 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
@.str.826 = external hidden unnamed_addr constant [33 x i8], align 1
@__const.test_glm_quat_normalize.v1 = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_quat_normalize.v2 = external hidden unnamed_addr constant [4 x float], align 16

; 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() #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.v1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.test_glm_quat_normalize.v2, i64 16, i1 false)
  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 %3, i64 0, i64 0
  call void @glm_quat_normalize(ptr noundef %11)
  %12 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %13 = load float, ptr %12, align 16, !tbaa !5
  %14 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %15 = load float, ptr %14, align 16, !tbaa !5
  %16 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  %17 = load float, ptr %16, align 4, !tbaa !5
  %18 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  %19 = load float, ptr %18, align 4, !tbaa !5
  %20 = fmul float %17, %19
  %21 = call float @llvm.fmuladd.f32(float %13, float %15, float %20)
  %22 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %23 = load float, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %25 = load float, ptr %24, align 8, !tbaa !5
  %26 = call float @llvm.fmuladd.f32(float %23, float %25, float %21)
  %27 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %28 = load float, ptr %27, align 4, !tbaa !5
  %29 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %30 = load float, ptr %29, align 4, !tbaa !5
  %31 = call float @llvm.fmuladd.f32(float %28, float %30, float %26)
  %32 = call float @sqrtf(float noundef %31) #8
  store float %32, ptr %5, align 4, !tbaa !5
  %33 = load float, ptr %5, align 4, !tbaa !5
  %34 = fcmp ole float %33, 0.000000e+00
  br i1 %34, label %35, label %61

35:                                               ; preds = %0
  br label %36

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

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

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

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

56:                                               ; preds = %54
  br label %57

57:                                               ; preds = %56
  br label %58

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

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

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

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

78:                                               ; preds = %65
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  br label %81

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

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

94:                                               ; preds = %81
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  br label %97

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

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

110:                                              ; preds = %97
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  br label %113

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

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

126:                                              ; preds = %113
  br label %127

127:                                              ; preds = %126
  br label %128

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

131:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %132 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %133 = call { ptr, i32 } @test_assert_quat_eq_identity(ptr noundef %132)
  %134 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 0
  %135 = extractvalue { ptr, i32 } %133, 0
  store ptr %135, ptr %134, align 8
  %136 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 1
  %137 = extractvalue { ptr, i32 } %133, 1
  store i32 %137, ptr %136, 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
  %138 = getelementptr inbounds %struct.test_status_t, ptr %9, i32 0, i32 1
  %139 = load i32, ptr %138, align 8, !tbaa !14
  %140 = icmp ne i32 %139, 1
  br i1 %140, label %141, label %148

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

148:                                              ; preds = %131
  store i32 0, ptr %8, align 4
  br label %149

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

151:                                              ; preds = %149
  br label %152

152:                                              ; preds = %151
  br label %153

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

156:                                              ; preds = %153, %149, %121, %105, %89, %73, %58, %54
  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
  %157 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %157
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_quat_normalize(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 = { 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
@.str.826 = external hidden unnamed_addr constant [33 x i8], align 1
@__const.test_glm_quat_normalize.v1 = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_quat_normalize.v2 = external hidden unnamed_addr constant [4 x float], align 16

; 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() 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.v1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #9
  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_normalize.v2, i64 16, i1 false)
  call void @glm_quat_normalize(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 256, 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 263, 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 264, 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 265, 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 266, 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(ptr noundef nonnull %1)
  %58 = call { ptr, i32 } @test_assert_quat_eq_identity(ptr noundef nonnull %1) #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 270, ptr noundef nonnull @.str.826) #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(ptr noundef) local_unnamed_addr #2

; 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