; 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.1 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [39 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
@__const.test_glm_vec2_normalize.v1 = external hidden unnamed_addr constant [2 x float], align 4
@__const.test_glm_vec2_normalize.v2 = external hidden unnamed_addr constant [2 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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_vec2_normalize() #6 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [2 x float], align 4
  %3 = alloca [2 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 [2 x float], align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.test_glm_vec2_normalize.v1, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.test_glm_vec2_normalize.v2, i64 8, 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 [2 x float], ptr %3, i64 0, i64 0
  call void @glm_vec2_normalize(ptr noundef %10)
  %11 = getelementptr inbounds [2 x float], ptr %2, i64 0, i64 0
  %12 = load float, ptr %11, align 4, !tbaa !5
  %13 = getelementptr inbounds [2 x float], ptr %2, i64 0, i64 0
  %14 = load float, ptr %13, align 4, !tbaa !5
  %15 = getelementptr inbounds [2 x float], ptr %2, i64 0, i64 1
  %16 = load float, ptr %15, align 4, !tbaa !5
  %17 = getelementptr inbounds [2 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 = call float @sqrtf(float noundef %20) #7
  store float %21, ptr %5, align 4, !tbaa !5
  %22 = load float, ptr %5, align 4, !tbaa !5
  %23 = fcmp olt float %22, 0x3E80000000000000
  br i1 %23, label %24, label %51

24:                                               ; preds = %0
  br label %25

25:                                               ; preds = %24
  %26 = getelementptr inbounds [2 x float], ptr %2, i64 0, i64 0
  %27 = load float, ptr %26, align 4, !tbaa !5
  %28 = call zeroext i1 @test_eq(float noundef %27, float noundef 0.000000e+00)
  br i1 %28, label %34, label %29

29:                                               ; preds = %25
  %30 = load ptr, ptr @stderr, align 8, !tbaa !9
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 496, ptr noundef @.str.27) #7
  %32 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %32, align 8, !tbaa !11
  %33 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %33, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %116

34:                                               ; preds = %25
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  br label %37

37:                                               ; preds = %36
  %38 = getelementptr inbounds [2 x float], ptr %2, i64 0, i64 1
  %39 = load float, ptr %38, align 4, !tbaa !5
  %40 = call zeroext i1 @test_eq(float noundef %39, float noundef 0.000000e+00)
  br i1 %40, label %46, label %41

41:                                               ; preds = %37
  %42 = load ptr, ptr @stderr, align 8, !tbaa !9
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 497, ptr noundef @.str.28) #7
  %44 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %44, align 8, !tbaa !11
  %45 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %45, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %116

46:                                               ; preds = %37
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  %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 1, ptr %50, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %116

51:                                               ; preds = %0
  %52 = load float, ptr %4, align 4, !tbaa !5
  %53 = load float, ptr %5, align 4, !tbaa !5
  %54 = fdiv float %52, %53
  store float %54, ptr %5, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %51
  %56 = getelementptr inbounds [2 x float], ptr %2, i64 0, i64 0
  %57 = load float, ptr %56, align 4, !tbaa !5
  %58 = load float, ptr %5, align 4, !tbaa !5
  %59 = fmul float %57, %58
  %60 = getelementptr inbounds [2 x float], ptr %3, i64 0, i64 0
  %61 = load float, ptr %60, align 4, !tbaa !5
  %62 = call zeroext i1 @test_eq(float noundef %59, float noundef %61)
  br i1 %62, label %68, label %63

63:                                               ; preds = %55
  %64 = load ptr, ptr @stderr, align 8, !tbaa !9
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 504, ptr noundef @.str.29) #7
  %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 0, ptr %67, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %116

68:                                               ; preds = %55
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  br label %71

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

79:                                               ; preds = %71
  %80 = load ptr, ptr @stderr, align 8, !tbaa !9
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 505, ptr noundef @.str.30) #7
  %82 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %82, align 8, !tbaa !11
  %83 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %83, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %116

84:                                               ; preds = %71
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  %87 = getelementptr inbounds [2 x float], ptr %2, i64 0, i64 0
  call void @glm_vec2_zero(ptr noundef %87)
  %88 = getelementptr inbounds [2 x float], ptr %2, i64 0, i64 0
  call void @glm_vec2_normalize(ptr noundef %88)
  br label %89

89:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  %90 = getelementptr inbounds [2 x float], ptr %2, i64 0, i64 0
  store float 0.000000e+00, ptr %9, align 4, !tbaa !5
  %91 = getelementptr inbounds float, ptr %9, i64 1
  store float 0.000000e+00, ptr %91, align 4, !tbaa !5
  %92 = getelementptr inbounds [2 x float], ptr %9, i64 0, i64 0
  %93 = call { ptr, i32 } @test_assert_vec2_eq(ptr noundef %90, ptr noundef %92)
  %94 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %95 = extractvalue { ptr, i32 } %93, 0
  store ptr %95, ptr %94, align 8
  %96 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %97 = extractvalue { ptr, i32 } %93, 1
  store i32 %97, ptr %96, 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
  %98 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 1
  %99 = load i32, ptr %98, align 8, !tbaa !14
  %100 = icmp ne i32 %99, 1
  br i1 %100, label %101, label %108

101:                                              ; preds = %89
  %102 = load ptr, ptr @stderr, align 8, !tbaa !9
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 509, ptr noundef @.str.15) #7
  %104 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %105 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8, !tbaa !11
  store ptr %106, ptr %104, align 8, !tbaa !11
  %107 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %107, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %109

108:                                              ; preds = %89
  store i32 0, ptr %6, align 4
  br label %109

109:                                              ; preds = %108, %101
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  %110 = load i32, ptr %6, align 4
  switch i32 %110, label %116 [
    i32 0, label %111
  ]

111:                                              ; preds = %109
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  %114 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %114, align 8, !tbaa !11
  %115 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %115, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %116

116:                                              ; preds = %113, %109, %79, %63, %48, %41, %29
  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 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %117 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %117
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_vec2_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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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.1 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [39 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
@__const.test_glm_vec2_normalize.v1 = external hidden unnamed_addr constant [2 x float], align 4
@__const.test_glm_vec2_normalize.v2 = external hidden unnamed_addr constant [2 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: alwaysinline nounwind uwtable
declare hidden zeroext i1 @test_eq(float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare { ptr, i32 } @test_assert_vec2_eq(ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_vec2_normalize() local_unnamed_addr #5 {
  %1 = alloca [2 x float], align 8
  %2 = alloca [2 x float], align 8
  %3 = alloca [2 x float], align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  %4 = load i64, ptr @__const.test_glm_vec2_normalize.v1, align 4
  store i64 %4, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %5 = load i64, ptr @__const.test_glm_vec2_normalize.v2, align 4
  store i64 %5, ptr %2, align 8
  call void @glm_vec2_normalize(ptr noundef nonnull %2)
  %6 = trunc i64 %4 to i32
  %7 = bitcast i32 %6 to float
  %8 = lshr i64 %4, 32
  %9 = trunc nuw i64 %8 to i32
  %10 = bitcast i32 %9 to float
  %11 = fmul float %10, %10
  %12 = call float @llvm.fmuladd.f32(float %7, float %7, float %11)
  %sqrt = call float @llvm.sqrt.f32(float %12)
  %13 = fcmp olt float %sqrt, 0x3E80000000000000
  br i1 %13, label %14, label %24

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

16:                                               ; preds = %14
  %17 = load ptr, ptr @stderr, align 8, !tbaa !5
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 496, ptr noundef nonnull @.str.27) #8
  br label %48

19:                                               ; preds = %14
  %20 = call zeroext i1 @test_eq(float noundef %10, float noundef 0.000000e+00)
  br i1 %20, label %48, label %21

21:                                               ; preds = %19
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 497, ptr noundef nonnull @.str.28) #8
  br label %48

24:                                               ; preds = %0
  %25 = fdiv float 1.000000e+00, %sqrt
  %26 = fmul float %25, %7
  %27 = load float, ptr %2, align 8, !tbaa !9
  %28 = call zeroext i1 @test_eq(float noundef %26, float noundef %27)
  br i1 %28, label %32, label %29

29:                                               ; preds = %24
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 504, ptr noundef nonnull @.str.29) #8
  br label %48

32:                                               ; preds = %24
  %33 = fmul float %25, %10
  %34 = getelementptr inbounds i8, ptr %2, i64 4
  %35 = load float, ptr %34, align 4, !tbaa !9
  %36 = call zeroext i1 @test_eq(float noundef %33, float noundef %35)
  br i1 %36, label %40, label %37

37:                                               ; preds = %32
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 505, ptr noundef nonnull @.str.30) #8
  br label %48

40:                                               ; preds = %32
  call void @glm_vec2_zero(ptr noundef nonnull %1)
  call void @glm_vec2_normalize(ptr noundef nonnull %1)
  store <2 x float> zeroinitializer, ptr %3, align 8, !tbaa !9
  %41 = call { ptr, i32 } @test_assert_vec2_eq(ptr noundef nonnull %1, ptr noundef nonnull %3) #7
  %42 = extractvalue { ptr, i32 } %41, 1
  %.not = icmp eq i32 %42, 1
  br i1 %.not, label %47, label %43

43:                                               ; preds = %40
  %44 = extractvalue { ptr, i32 } %41, 0
  %45 = load ptr, ptr @stderr, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 509, ptr noundef nonnull @.str.15) #8
  br label %47

47:                                               ; preds = %40, %43
  %spec.select = phi ptr [ null, %40 ], [ %44, %43 ]
  %spec.select9 = zext i1 %.not to i32
  br label %48

48:                                               ; preds = %47, %19, %37, %29, %21, %16
  %.sroa.07.1 = phi ptr [ null, %21 ], [ null, %16 ], [ null, %37 ], [ null, %29 ], [ null, %19 ], [ %spec.select, %47 ]
  %.sroa.8.1 = phi i32 [ 0, %21 ], [ 0, %16 ], [ 0, %37 ], [ 0, %29 ], [ 1, %19 ], [ %spec.select9, %47 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.07.1, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.8.1, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { cold nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}


; Effective O3 passes: AggressiveInstCombinePass,BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass