; 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.149 = 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.v1 = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_normalize.v2 = 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(ptr noundef) #2

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

29:                                               ; preds = %0
  br label %30

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

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

39:                                               ; preds = %30
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  br label %42

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

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

51:                                               ; preds = %42
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  br label %54

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

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

63:                                               ; preds = %54
  br label %64

64:                                               ; preds = %63
  br label %65

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

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

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

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

85:                                               ; preds = %72
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  br label %88

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

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

101:                                              ; preds = %88
  br label %102

102:                                              ; preds = %101
  br label %103

103:                                              ; preds = %102
  br label %104

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

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

117:                                              ; preds = %104
  br label %118

118:                                              ; preds = %117
  br label %119

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

122:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  %123 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  store float 0.000000e+00, ptr %9, align 4, !tbaa !5
  %124 = getelementptr inbounds float, ptr %9, i64 1
  store float 0.000000e+00, ptr %124, align 4, !tbaa !5
  %125 = getelementptr inbounds float, ptr %9, i64 2
  store float 0.000000e+00, ptr %125, align 4, !tbaa !5
  %126 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  %127 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef %123, ptr noundef %126)
  %128 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %129 = extractvalue { ptr, i32 } %127, 0
  store ptr %129, ptr %128, align 8
  %130 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %131 = extractvalue { ptr, i32 } %127, 1
  store i32 %131, ptr %130, 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
  %132 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 1
  %133 = load i32, ptr %132, align 8, !tbaa !14
  %134 = icmp ne i32 %133, 1
  br i1 %134, label %135, label %142

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

142:                                              ; preds = %122
  store i32 0, ptr %6, align 4
  br label %143

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

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145
  br label %147

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

150:                                              ; preds = %147, %143, %112, %96, %80, %65, %58, %46, %34
  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
  %151 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %151
}

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.149 = 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.v1 = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_normalize.v2 = 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(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_normalize() 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.v1, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_normalize.v2, i64 12, i1 false)
  call void @glm_vec3_normalize(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 %28

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 768, ptr noundef nonnull @.str.27) #9
  br label %61

18:                                               ; preds = %13
  %19 = call zeroext i1 @test_eq(float noundef %6, float noundef 0.000000e+00)
  br i1 %19, label %23, label %20

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

23:                                               ; preds = %18
  %24 = call zeroext i1 @test_eq(float noundef %10, float noundef 0.000000e+00)
  br i1 %24, label %61, label %25

25:                                               ; preds = %23
  %26 = load ptr, ptr @stderr, align 8, !tbaa !9
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 770, ptr noundef nonnull @.str.154) #9
  br label %61

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

33:                                               ; preds = %28
  %34 = load ptr, ptr @stderr, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 777, ptr noundef nonnull @.str.29) #9
  br label %61

36:                                               ; preds = %28
  %37 = fmul float %29, %6
  %38 = getelementptr inbounds i8, ptr %2, i64 4
  %39 = load float, ptr %38, align 4, !tbaa !5
  %40 = call zeroext i1 @test_eq(float noundef %37, float noundef %39)
  br i1 %40, label %44, label %41

41:                                               ; preds = %36
  %42 = load ptr, ptr @stderr, align 8, !tbaa !9
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 778, ptr noundef nonnull @.str.30) #9
  br label %61

44:                                               ; preds = %36
  %45 = fmul float %29, %10
  %46 = getelementptr inbounds i8, ptr %2, i64 8
  %47 = load float, ptr %46, align 4, !tbaa !5
  %48 = call zeroext i1 @test_eq(float noundef %45, float noundef %47)
  br i1 %48, label %52, label %49

49:                                               ; preds = %44
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 779, ptr noundef nonnull @.str.155) #9
  br label %61

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

56:                                               ; preds = %52
  %57 = extractvalue { ptr, i32 } %54, 0
  %58 = load ptr, ptr @stderr, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.119, i32 noundef 783, ptr noundef nonnull @.str.149) #9
  br label %60

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

61:                                               ; preds = %60, %23, %49, %41, %33, %25, %20, %15
  %.sroa.08.1 = phi ptr [ null, %25 ], [ null, %20 ], [ null, %15 ], [ null, %49 ], [ null, %41 ], [ null, %33 ], [ null, %23 ], [ %spec.select, %60 ]
  %.sroa.10.1 = phi i32 [ 0, %25 ], [ 0, %20 ], [ 0, %15 ], [ 0, %49 ], [ 0, %41 ], [ 0, %33 ], [ 1, %23 ], [ %spec.select10, %60 ]
  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