; 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.119 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_vec3_reflect.I1 = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_vec3_reflect.N1 = external hidden unnamed_addr constant [3 x float], align 4
@.str.292 = external hidden unnamed_addr constant [105 x i8], align 1
@__const.test_glm_vec3_reflect.I2 = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_vec3_reflect.N2 = external hidden unnamed_addr constant [3 x float], align 4
@.str.293 = external hidden unnamed_addr constant [91 x i8], align 1
@__const.test_glm_vec3_reflect.N3 = external hidden unnamed_addr constant [3 x float], align 4
@.str.294 = external hidden unnamed_addr constant [110 x i8], align 1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_vec3_reflect() #4 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [3 x float], align 4
  %3 = alloca [3 x float], align 4
  %4 = alloca [3 x float], align 4
  %5 = alloca i32, align 4
  %6 = alloca [3 x float], align 4
  %7 = alloca [3 x float], align 4
  %8 = alloca [3 x float], align 4
  %9 = alloca [3 x float], align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.test_glm_vec3_reflect.I1, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 @__const.test_glm_vec3_reflect.N1, i64 12, i1 false)
  %10 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %11 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %12 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  call void @glm_vec3_reflect(ptr noundef %10, ptr noundef %11, ptr noundef %12)
  br label %13

13:                                               ; preds = %0
  %14 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %15 = load float, ptr %14, align 4, !tbaa !5
  %16 = fsub float %15, 1.000000e+00
  %17 = call float @llvm.fabs.f32(float %16)
  %18 = fcmp olt float %17, 0x3EE4F8B580000000
  br i1 %18, label %19, label %31

19:                                               ; preds = %13
  %20 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 1
  %21 = load float, ptr %20, align 4, !tbaa !5
  %22 = fsub float %21, 1.000000e+00
  %23 = call float @llvm.fabs.f32(float %22)
  %24 = fcmp olt float %23, 0x3EE4F8B580000000
  br i1 %24, label %25, label %31

25:                                               ; preds = %19
  %26 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 2
  %27 = load float, ptr %26, align 4, !tbaa !5
  %28 = fsub float %27, 0.000000e+00
  %29 = call float @llvm.fabs.f32(float %28)
  %30 = fcmp olt float %29, 0x3EE4F8B580000000
  br i1 %30, label %36, label %31

31:                                               ; preds = %25, %19, %13
  %32 = load ptr, ptr @stderr, align 8, !tbaa !9
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 1964, ptr noundef @.str.292) #6
  %34 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %34, align 8, !tbaa !11
  %35 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %35, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %109

36:                                               ; preds = %25
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const.test_glm_vec3_reflect.I2, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 @__const.test_glm_vec3_reflect.N2, i64 12, i1 false)
  %39 = getelementptr inbounds [3 x float], ptr %6, i64 0, i64 0
  %40 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 0
  %41 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  call void @glm_vec3_reflect(ptr noundef %39, ptr noundef %40, ptr noundef %41)
  br label %42

42:                                               ; preds = %38
  %43 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %44 = load float, ptr %43, align 4, !tbaa !5
  %45 = fadd float %44, 1.000000e+00
  %46 = call float @llvm.fabs.f32(float %45)
  %47 = fcmp olt float %46, 0x3EE4F8B580000000
  br i1 %47, label %48, label %58

48:                                               ; preds = %42
  %49 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 1
  %50 = load float, ptr %49, align 4, !tbaa !5
  %51 = call float @llvm.fabs.f32(float %50)
  %52 = fcmp olt float %51, 0x3EE4F8B580000000
  br i1 %52, label %53, label %58

53:                                               ; preds = %48
  %54 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 2
  %55 = load float, ptr %54, align 4, !tbaa !5
  %56 = call float @llvm.fabs.f32(float %55)
  %57 = fcmp olt float %56, 0x3EE4F8B580000000
  br i1 %57, label %63, label %58

58:                                               ; preds = %53, %48, %42
  %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 1972, ptr noundef @.str.293) #6
  %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 %5, align 4
  br label %108

63:                                               ; preds = %53
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #6
  %66 = call float @sqrtf(float noundef 2.000000e+00) #6
  %67 = fdiv float %66, 2.000000e+00
  store float %67, ptr %8, align 4, !tbaa !5
  %68 = getelementptr inbounds float, ptr %8, i64 1
  %69 = call float @sqrtf(float noundef 2.000000e+00) #6
  %70 = fneg float %69
  %71 = fdiv float %70, 2.000000e+00
  store float %71, ptr %68, align 4, !tbaa !5
  %72 = getelementptr inbounds float, ptr %8, i64 2
  store float 0.000000e+00, ptr %72, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 @__const.test_glm_vec3_reflect.N3, i64 12, i1 false)
  %73 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  %74 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  %75 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  call void @glm_vec3_reflect(ptr noundef %73, ptr noundef %74, ptr noundef %75)
  br label %76

76:                                               ; preds = %65
  %77 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %78 = load float, ptr %77, align 4, !tbaa !5
  %79 = call float @sqrtf(float noundef 2.000000e+00) #6
  %80 = fdiv float %79, 2.000000e+00
  %81 = fsub float %78, %80
  %82 = call float @llvm.fabs.f32(float %81)
  %83 = fcmp olt float %82, 0x3EE4F8B580000000
  br i1 %83, label %84, label %97

84:                                               ; preds = %76
  %85 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 1
  %86 = load float, ptr %85, align 4, !tbaa !5
  %87 = call float @sqrtf(float noundef 2.000000e+00) #6
  %88 = fdiv float %87, 2.000000e+00
  %89 = fsub float %86, %88
  %90 = call float @llvm.fabs.f32(float %89)
  %91 = fcmp olt float %90, 0x3EE4F8B580000000
  br i1 %91, label %92, label %97

92:                                               ; preds = %84
  %93 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 2
  %94 = load float, ptr %93, align 4, !tbaa !5
  %95 = call float @llvm.fabs.f32(float %94)
  %96 = fcmp olt float %95, 0x3EE4F8B580000000
  br i1 %96, label %102, label %97

97:                                               ; preds = %92, %84, %76
  %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 1980, ptr noundef @.str.294) #6
  %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 %5, align 4
  br label %107

102:                                              ; preds = %92
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  %105 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %105, align 8, !tbaa !11
  %106 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %106, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %107

107:                                              ; preds = %104, %97
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #6
  br label %108

108:                                              ; preds = %107, %58
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #6
  br label %109

109:                                              ; preds = %108, %31
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #6
  %110 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %110
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { 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}


; 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.119 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_vec3_reflect.I1 = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_vec3_reflect.N1 = external hidden unnamed_addr constant [3 x float], align 4
@.str.292 = external hidden unnamed_addr constant [105 x i8], align 1
@__const.test_glm_vec3_reflect.I2 = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_vec3_reflect.N2 = external hidden unnamed_addr constant [3 x float], align 4
@.str.293 = external hidden unnamed_addr constant [91 x i8], align 1
@__const.test_glm_vec3_reflect.N3 = external hidden unnamed_addr constant [3 x float], align 4
@.str.294 = external hidden unnamed_addr constant [110 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: 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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_vec3_reflect() local_unnamed_addr #4 {
  %1 = alloca [3 x float], align 4
  %2 = alloca [3 x float], align 4
  %3 = alloca [3 x float], align 4
  %4 = alloca [3 x float], align 4
  %5 = alloca [3 x float], align 4
  %6 = alloca [3 x float], align 8
  %7 = alloca [3 x float], align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #6
  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_vec3_reflect.I1, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_vec3_reflect.N1, i64 12, i1 false)
  call void @glm_vec3_reflect(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %1)
  %8 = load float, ptr %1, align 4, !tbaa !5
  %9 = fadd float %8, -1.000000e+00
  %10 = call float @llvm.fabs.f32(float %9)
  %11 = fcmp olt float %10, 0x3EE4F8B580000000
  br i1 %11, label %12, label %23

12:                                               ; preds = %0
  %13 = getelementptr inbounds i8, ptr %1, i64 4
  %14 = load float, ptr %13, align 4, !tbaa !5
  %15 = fadd float %14, -1.000000e+00
  %16 = call float @llvm.fabs.f32(float %15)
  %17 = fcmp olt float %16, 0x3EE4F8B580000000
  br i1 %17, label %18, label %23

18:                                               ; preds = %12
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load float, ptr %19, align 4, !tbaa !5
  %21 = call float @llvm.fabs.f32(float %20)
  %22 = fcmp olt float %21, 0x3EE4F8B580000000
  br i1 %22, label %26, label %23

23:                                               ; preds = %18, %12, %0
  %24 = load ptr, ptr @stderr, align 8, !tbaa !9
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 1964, ptr noundef nonnull @.str.292) #7
  br label %62

26:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_vec3_reflect.I2, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_vec3_reflect.N2, i64 12, i1 false)
  call void @glm_vec3_reflect(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %1)
  %27 = load float, ptr %1, align 4, !tbaa !5
  %28 = fadd float %27, 1.000000e+00
  %29 = call float @llvm.fabs.f32(float %28)
  %30 = fcmp olt float %29, 0x3EE4F8B580000000
  br i1 %30, label %31, label %39

31:                                               ; preds = %26
  %32 = load float, ptr %13, align 4, !tbaa !5
  %33 = call float @llvm.fabs.f32(float %32)
  %34 = fcmp olt float %33, 0x3EE4F8B580000000
  br i1 %34, label %35, label %39

35:                                               ; preds = %31
  %36 = load float, ptr %19, align 4, !tbaa !5
  %37 = call float @llvm.fabs.f32(float %36)
  %38 = fcmp olt float %37, 0x3EE4F8B580000000
  br i1 %38, label %42, label %39

39:                                               ; preds = %35, %31, %26
  %40 = load ptr, ptr @stderr, align 8, !tbaa !9
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 1972, ptr noundef nonnull @.str.293) #7
  br label %61

42:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  store <2 x float> <float 0x3FE6A09E60000000, float 0xBFE6A09E60000000>, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %6, i64 8
  store float 0.000000e+00, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_vec3_reflect.N3, i64 12, i1 false)
  call void @glm_vec3_reflect(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %1)
  %44 = load float, ptr %1, align 4, !tbaa !5
  %45 = fadd float %44, 0xBFE6A09E60000000
  %46 = call float @llvm.fabs.f32(float %45)
  %47 = fcmp olt float %46, 0x3EE4F8B580000000
  br i1 %47, label %48, label %57

48:                                               ; preds = %42
  %49 = load float, ptr %13, align 4, !tbaa !5
  %50 = fadd float %49, 0xBFE6A09E60000000
  %51 = call float @llvm.fabs.f32(float %50)
  %52 = fcmp olt float %51, 0x3EE4F8B580000000
  br i1 %52, label %53, label %57

53:                                               ; preds = %48
  %54 = load float, ptr %19, align 4, !tbaa !5
  %55 = call float @llvm.fabs.f32(float %54)
  %56 = fcmp olt float %55, 0x3EE4F8B580000000
  br i1 %56, label %60, label %57

57:                                               ; preds = %53, %48, %42
  %58 = load ptr, ptr @stderr, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 1980, ptr noundef nonnull @.str.294) #7
  br label %60

60:                                               ; preds = %53, %57
  %.sroa.5.0 = phi i32 [ 0, %57 ], [ 1, %53 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  br label %61

61:                                               ; preds = %60, %39
  %.sroa.5.1 = phi i32 [ %.sroa.5.0, %60 ], [ 0, %39 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  br label %62

62:                                               ; preds = %61, %23
  %.sroa.5.2 = phi i32 [ %.sroa.5.1, %61 ], [ 0, %23 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #6
  %.fca.1.insert = insertvalue { ptr, i32 } { ptr null, i32 poison }, i32 %.sroa.5.2, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { 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: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass