; 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.27 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [21 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.119 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [29 x i8], align 1
@__const.test_glm_normalize_to.v1 = external hidden unnamed_addr constant [3 x float], align 4

; 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

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

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

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

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

30:                                               ; preds = %0
  br label %31

31:                                               ; preds = %30
  %32 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = call zeroext i1 @test_eq(float noundef %33, float noundef 0.000000e+00)
  br i1 %34, label %40, label %35

35:                                               ; preds = %31
  %36 = load ptr, ptr @stderr, align 8, !tbaa !9
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 799, ptr noundef @.str.27) #7
  %38 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %38, align 8, !tbaa !11
  %39 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %39, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %152

40:                                               ; preds = %31
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  %44 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 1
  %45 = load float, ptr %44, align 4, !tbaa !5
  %46 = call zeroext i1 @test_eq(float noundef %45, float noundef 0.000000e+00)
  br i1 %46, label %52, label %47

47:                                               ; preds = %43
  %48 = load ptr, ptr @stderr, align 8, !tbaa !9
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 800, ptr noundef @.str.28) #7
  %50 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %50, align 8, !tbaa !11
  %51 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %51, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %152

52:                                               ; preds = %43
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  %56 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 2
  %57 = load float, ptr %56, align 4, !tbaa !5
  %58 = call zeroext i1 @test_eq(float noundef %57, float noundef 0.000000e+00)
  br i1 %58, label %64, label %59

59:                                               ; preds = %55
  %60 = load ptr, ptr @stderr, align 8, !tbaa !9
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 801, ptr noundef @.str.154) #7
  %62 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %62, align 8, !tbaa !11
  %63 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %63, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %152

64:                                               ; preds = %55
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65
  %67 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %67, align 8, !tbaa !11
  %68 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %68, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %152

69:                                               ; preds = %0
  %70 = load float, ptr %4, align 4, !tbaa !5
  %71 = load float, ptr %5, align 4, !tbaa !5
  %72 = fdiv float %70, %71
  store float %72, ptr %5, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %69
  %74 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %75 = load float, ptr %74, align 4, !tbaa !5
  %76 = load float, ptr %5, align 4, !tbaa !5
  %77 = fmul float %75, %76
  %78 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %79 = load float, ptr %78, align 4, !tbaa !5
  %80 = call zeroext i1 @test_eq(float noundef %77, float noundef %79)
  br i1 %80, label %86, label %81

81:                                               ; preds = %73
  %82 = load ptr, ptr @stderr, align 8, !tbaa !9
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 808, ptr noundef @.str.29) #7
  %84 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %84, align 8, !tbaa !11
  %85 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %85, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %152

86:                                               ; preds = %73
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  %90 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 1
  %91 = load float, ptr %90, align 4, !tbaa !5
  %92 = load float, ptr %5, align 4, !tbaa !5
  %93 = fmul float %91, %92
  %94 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 1
  %95 = load float, ptr %94, align 4, !tbaa !5
  %96 = call zeroext i1 @test_eq(float noundef %93, float noundef %95)
  br i1 %96, label %102, label %97

97:                                               ; preds = %89
  %98 = load ptr, ptr @stderr, align 8, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 809, ptr noundef @.str.30) #7
  %100 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %100, align 8, !tbaa !11
  %101 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %101, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %152

102:                                              ; preds = %89
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 2
  %107 = load float, ptr %106, align 4, !tbaa !5
  %108 = load float, ptr %5, align 4, !tbaa !5
  %109 = fmul float %107, %108
  %110 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 2
  %111 = load float, ptr %110, align 4, !tbaa !5
  %112 = call zeroext i1 @test_eq(float noundef %109, float noundef %111)
  br i1 %112, label %118, label %113

113:                                              ; preds = %105
  %114 = load ptr, ptr @stderr, align 8, !tbaa !9
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 810, ptr noundef @.str.155) #7
  %116 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %116, align 8, !tbaa !11
  %117 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %117, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %152

118:                                              ; preds = %105
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  %121 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  call void @glm_vec3_zero(ptr noundef %121)
  %122 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %123 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  call void @glm_vec3_normalize_to(ptr noundef %122, ptr noundef %123)
  br label %124

124:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  %125 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  store float 0.000000e+00, ptr %9, align 4, !tbaa !5
  %126 = getelementptr inbounds float, ptr %9, i64 1
  store float 0.000000e+00, ptr %126, align 4, !tbaa !5
  %127 = getelementptr inbounds float, ptr %9, i64 2
  store float 0.000000e+00, ptr %127, align 4, !tbaa !5
  %128 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  %129 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef %125, ptr noundef %128)
  %130 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %131 = extractvalue { ptr, i32 } %129, 0
  store ptr %131, ptr %130, align 8
  %132 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %133 = extractvalue { ptr, i32 } %129, 1
  store i32 %133, ptr %132, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  %134 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 1
  %135 = load i32, ptr %134, align 8, !tbaa !14
  %136 = icmp ne i32 %135, 1
  br i1 %136, label %137, label %144

137:                                              ; preds = %124
  %138 = load ptr, ptr @stderr, align 8, !tbaa !9
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.13, ptr noundef @.str.119, i32 noundef 814, ptr noundef @.str.150) #7
  %140 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %141 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !11
  store ptr %142, ptr %140, align 8, !tbaa !11
  %143 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %143, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %145

144:                                              ; preds = %124
  store i32 0, ptr %6, align 4
  br label %145

145:                                              ; preds = %144, %137
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  %146 = load i32, ptr %6, align 4
  switch i32 %146, label %152 [
    i32 0, label %147
  ]

147:                                              ; preds = %145
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  %150 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %150, align 8, !tbaa !11
  %151 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %151, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %152

152:                                              ; preds = %149, %145, %113, %97, %81, %66, %59, %47, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #7
  %153 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %153
}

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 = { "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 = !{!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}
!11 = !{!12, !10, i64 0}
!12 = !{!"test_status_t", !10, i64 0, !13, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{i64 0, i64 8, !9, i64 8, i64 4, !16}
!16 = !{!13, !13, 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.27 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [21 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.119 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [29 x i8], align 1
@__const.test_glm_normalize_to.v1 = external hidden unnamed_addr constant [3 x float], align 4

; 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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_normalize_to() local_unnamed_addr #6 {
  %1 = alloca [3 x float], align 4
  %2 = alloca [3 x float], align 4
  %3 = alloca [3 x float], align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_normalize_to.v1, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #8
  call void @glm_vec3_normalize_to(ptr noundef nonnull %1, ptr noundef nonnull %2)
  %4 = load float, ptr %1, align 4, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 4
  %6 = load float, ptr %5, align 4, !tbaa !5
  %7 = fmul float %6, %6
  %8 = call float @llvm.fmuladd.f32(float %4, float %4, float %7)
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load float, ptr %9, align 4, !tbaa !5
  %11 = call float @llvm.fmuladd.f32(float %10, float %10, float %8)
  %sqrt = call float @llvm.sqrt.f32(float %11)
  %12 = fcmp olt float %sqrt, 0x3E80000000000000
  br i1 %12, label %13, label %30

13:                                               ; preds = %0
  %14 = call zeroext i1 @test_eq(float noundef %4, float noundef 0.000000e+00)
  br i1 %14, label %18, label %15

15:                                               ; preds = %13
  %16 = load ptr, ptr @stderr, align 8, !tbaa !9
  %17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 799, ptr noundef nonnull @.str.27) #9
  br label %65

18:                                               ; preds = %13
  %19 = load float, ptr %5, align 4, !tbaa !5
  %20 = call zeroext i1 @test_eq(float noundef %19, float noundef 0.000000e+00)
  br i1 %20, label %24, label %21

21:                                               ; preds = %18
  %22 = load ptr, ptr @stderr, align 8, !tbaa !9
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 800, ptr noundef nonnull @.str.28) #9
  br label %65

24:                                               ; preds = %18
  %25 = load float, ptr %9, align 4, !tbaa !5
  %26 = call zeroext i1 @test_eq(float noundef %25, float noundef 0.000000e+00)
  br i1 %26, label %65, label %27

27:                                               ; preds = %24
  %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.119, i32 noundef 801, ptr noundef nonnull @.str.154) #9
  br label %65

30:                                               ; preds = %0
  %31 = fdiv float 1.000000e+00, %sqrt
  %32 = fmul float %31, %4
  %33 = load float, ptr %2, align 4, !tbaa !5
  %34 = call zeroext i1 @test_eq(float noundef %32, float noundef %33)
  br i1 %34, label %38, label %35

35:                                               ; preds = %30
  %36 = load ptr, ptr @stderr, align 8, !tbaa !9
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 808, ptr noundef nonnull @.str.29) #9
  br label %65

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

44:                                               ; preds = %38
  %45 = load ptr, ptr @stderr, align 8, !tbaa !9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 809, ptr noundef nonnull @.str.30) #9
  br label %65

47:                                               ; preds = %38
  %48 = load float, ptr %9, align 4, !tbaa !5
  %49 = fmul float %31, %48
  %50 = getelementptr inbounds i8, ptr %2, i64 8
  %51 = load float, ptr %50, align 4, !tbaa !5
  %52 = call zeroext i1 @test_eq(float noundef %49, float noundef %51)
  br i1 %52, label %56, label %53

53:                                               ; preds = %47
  %54 = load ptr, ptr @stderr, align 8, !tbaa !9
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 810, ptr noundef nonnull @.str.155) #9
  br label %65

56:                                               ; preds = %47
  call void @glm_vec3_zero(ptr noundef nonnull %1)
  call void @glm_vec3_normalize_to(ptr noundef nonnull %1, ptr noundef nonnull %2)
  store <2 x float> zeroinitializer, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %3, i64 8
  store float 0.000000e+00, ptr %57, align 8, !tbaa !5
  %58 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef nonnull %2, ptr noundef nonnull %3) #8
  %59 = extractvalue { ptr, i32 } %58, 1
  %.not = icmp eq i32 %59, 1
  br i1 %.not, label %64, label %60

60:                                               ; preds = %56
  %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.119, i32 noundef 814, ptr noundef nonnull @.str.150) #9
  br label %64

64:                                               ; preds = %56, %60
  %spec.select = phi ptr [ null, %56 ], [ %61, %60 ]
  %spec.select10 = zext i1 %.not to i32
  br label %65

65:                                               ; preds = %64, %24, %53, %44, %35, %27, %21, %15
  %.sroa.08.1 = phi ptr [ null, %27 ], [ null, %21 ], [ null, %15 ], [ null, %53 ], [ null, %44 ], [ null, %35 ], [ null, %24 ], [ %spec.select, %64 ]
  %.sroa.10.1 = phi i32 [ 0, %27 ], [ 0, %21 ], [ 0, %15 ], [ 0, %53 ], [ 0, %44 ], [ 0, %35 ], [ 1, %24 ], [ %spec.select10, %64 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #8
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.08.1, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.10.1, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { 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,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass