; 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.874 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.875 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.876 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.877 = external hidden unnamed_addr constant [38 x i8], align 1
@__const.test_glm_unproject.viewport = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_unproject.pos = 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: 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_mat4_mulN(ptr noundef, i32 noundef, ptr noundef) #4

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_perspective_default(float noundef, ptr noundef) #4

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_unproject() #5 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x [4 x float]], align 16
  %3 = alloca [4 x [4 x float]], align 16
  %4 = alloca [4 x [4 x float]], align 16
  %5 = alloca [4 x [4 x float]], align 16
  %6 = alloca [4 x float], align 16
  %7 = alloca [3 x float], align 4
  %8 = alloca [3 x float], align 4
  %9 = alloca [3 x float], align 4
  %10 = alloca [3 x float], align 4
  %11 = alloca [3 x float], align 4
  %12 = alloca [3 x float], align 4
  %13 = alloca [3 x ptr], align 8
  %14 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.test_glm_unproject.viewport, i64 16, 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_unproject.pos, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  %15 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 0.000000e+00, ptr %10, align 4, !tbaa !5
  %16 = getelementptr inbounds float, ptr %10, i64 1
  store float 0.000000e+00, ptr %16, align 4, !tbaa !5
  %17 = getelementptr inbounds float, ptr %10, i64 2
  store float -1.000000e+01, ptr %17, align 4, !tbaa !5
  %18 = getelementptr inbounds [3 x float], ptr %10, i64 0, i64 0
  call void @glm_translate_make(ptr noundef %15, ptr noundef %18)
  store float 0.000000e+00, ptr %11, align 4, !tbaa !5
  %19 = getelementptr inbounds float, ptr %11, i64 1
  store float 0.000000e+00, ptr %19, align 4, !tbaa !5
  %20 = getelementptr inbounds float, ptr %11, i64 2
  store float 0.000000e+00, ptr %20, align 4, !tbaa !5
  %21 = getelementptr inbounds [3 x float], ptr %11, i64 0, i64 0
  %22 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 0
  store float 0.000000e+00, ptr %12, align 4, !tbaa !5
  %23 = getelementptr inbounds float, ptr %12, i64 1
  store float 1.000000e+00, ptr %23, align 4, !tbaa !5
  %24 = getelementptr inbounds float, ptr %12, i64 2
  store float 0.000000e+00, ptr %24, align 4, !tbaa !5
  %25 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 0
  %26 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  call void @glm_lookat(ptr noundef %21, ptr noundef %22, ptr noundef %25, ptr noundef %26)
  %27 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  call void @glm_perspective_default(float noundef 5.000000e-01, ptr noundef %27)
  store ptr %4, ptr %13, align 8, !tbaa !9
  %28 = getelementptr inbounds ptr, ptr %13, i64 1
  store ptr %3, ptr %28, align 8, !tbaa !9
  %29 = getelementptr inbounds ptr, ptr %13, i64 2
  store ptr %2, ptr %29, align 8, !tbaa !9
  %30 = getelementptr inbounds [3 x ptr], ptr %13, i64 0, i64 0
  %31 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
  call void @glm_mat4_mulN(ptr noundef %30, i32 noundef 3, ptr noundef %31)
  %32 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 0
  %33 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
  %34 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  %35 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  call void @glm_project(ptr noundef %32, ptr noundef %33, ptr noundef %34, ptr noundef %35)
  %36 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  %37 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
  %38 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  %39 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  call void @glm_unproject(ptr noundef %36, ptr noundef %37, ptr noundef %38, ptr noundef %39)
  br label %40

40:                                               ; preds = %0
  %41 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 0
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  %44 = load float, ptr %43, align 4, !tbaa !5
  %45 = fsub float %42, %44
  %46 = call float @llvm.fabs.f32(float %45)
  %47 = fpext float %46 to double
  %48 = fcmp olt double %47, 1.000000e-02
  br i1 %48, label %54, label %49

49:                                               ; preds = %40
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str, ptr noundef @.str.874, i32 noundef 61, ptr noundef @.str.875) #6
  %52 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %52, align 8, !tbaa !11
  %53 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %53, align 8, !tbaa !14
  store i32 1, ptr %14, align 4
  br label %93

54:                                               ; preds = %40
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  %58 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 1
  %59 = load float, ptr %58, align 4, !tbaa !5
  %60 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 1
  %61 = load float, ptr %60, align 4, !tbaa !5
  %62 = fsub float %59, %61
  %63 = call float @llvm.fabs.f32(float %62)
  %64 = fpext float %63 to double
  %65 = fcmp olt double %64, 1.000000e-02
  br i1 %65, label %71, label %66

66:                                               ; preds = %57
  %67 = load ptr, ptr @stderr, align 8, !tbaa !9
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str, ptr noundef @.str.874, i32 noundef 62, ptr noundef @.str.876) #6
  %69 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %69, align 8, !tbaa !11
  %70 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %70, align 8, !tbaa !14
  store i32 1, ptr %14, align 4
  br label %93

71:                                               ; preds = %57
  br label %72

72:                                               ; preds = %71
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  %75 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 2
  %76 = load float, ptr %75, align 4, !tbaa !5
  %77 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 2
  %78 = load float, ptr %77, align 4, !tbaa !5
  %79 = fsub float %76, %78
  %80 = call float @llvm.fabs.f32(float %79)
  %81 = fpext float %80 to double
  %82 = fcmp olt double %81, 1.000000e-02
  br i1 %82, label %88, label %83

83:                                               ; preds = %74
  %84 = load ptr, ptr @stderr, align 8, !tbaa !9
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str, ptr noundef @.str.874, i32 noundef 63, ptr noundef @.str.877) #6
  %86 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %86, align 8, !tbaa !11
  %87 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %87, align 8, !tbaa !14
  store i32 1, ptr %14, align 4
  br label %93

88:                                               ; preds = %74
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  %91 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %91, align 8, !tbaa !11
  %92 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %92, align 8, !tbaa !14
  store i32 1, ptr %14, align 4
  br label %93

93:                                               ; preds = %90, %83, %66, %49
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #6
  %94 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %94
}

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

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 = { 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 #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 = { 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.874 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.875 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.876 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.877 = external hidden unnamed_addr constant [38 x i8], align 1
@__const.test_glm_unproject.viewport = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_unproject.pos = 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: 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: alwaysinline nounwind uwtable
declare hidden void @glm_mat4_mulN(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_perspective_default(float noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_unproject() local_unnamed_addr #5 {
  %1 = alloca [4 x [4 x float]], align 16
  %2 = alloca [4 x [4 x float]], align 16
  %3 = alloca [4 x [4 x float]], align 16
  %4 = alloca [4 x [4 x float]], align 16
  %5 = alloca [4 x float], align 16
  %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 8
  %10 = alloca [3 x float], align 8
  %11 = alloca [3 x float], align 8
  %12 = alloca [3 x ptr], align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) @__const.test_glm_unproject.viewport, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_unproject.pos, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #6
  store <2 x float> zeroinitializer, ptr %9, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %9, i64 8
  store float -1.000000e+01, ptr %13, align 8, !tbaa !5
  call void @glm_translate_make(ptr noundef nonnull %1, ptr noundef nonnull %9)
  store <2 x float> zeroinitializer, ptr %10, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %10, i64 8
  store float 0.000000e+00, ptr %14, align 8, !tbaa !5
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %11, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %11, i64 8
  store float 0.000000e+00, ptr %15, align 8, !tbaa !5
  call void @glm_lookat(ptr noundef nonnull %10, ptr noundef nonnull %6, ptr noundef nonnull %11, ptr noundef nonnull %2)
  call void @glm_perspective_default(float noundef 5.000000e-01, ptr noundef nonnull %3)
  store ptr %3, ptr %12, align 8, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %12, i64 8
  store ptr %2, ptr %16, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %12, i64 16
  store ptr %1, ptr %17, align 8, !tbaa !9
  call void @glm_mat4_mulN(ptr noundef nonnull %12, i32 noundef 3, ptr noundef nonnull %4)
  call void @glm_project(ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %7)
  call void @glm_unproject(ptr noundef nonnull %7, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %8)
  %18 = load float, ptr %6, align 4, !tbaa !5
  %19 = load float, ptr %8, align 4, !tbaa !5
  %20 = fsub float %18, %19
  %21 = call float @llvm.fabs.f32(float %20)
  %22 = fpext float %21 to double
  %23 = fcmp olt double %22, 1.000000e-02
  br i1 %23, label %27, label %24

24:                                               ; preds = %0
  %25 = load ptr, ptr @stderr, align 8, !tbaa !9
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str, ptr noundef nonnull @.str.874, i32 noundef 61, ptr noundef nonnull @.str.875) #7
  br label %51

27:                                               ; preds = %0
  %28 = getelementptr inbounds i8, ptr %6, i64 4
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %8, i64 4
  %31 = load float, ptr %30, align 4, !tbaa !5
  %32 = fsub float %29, %31
  %33 = call float @llvm.fabs.f32(float %32)
  %34 = fpext float %33 to double
  %35 = fcmp olt double %34, 1.000000e-02
  br i1 %35, label %39, label %36

36:                                               ; preds = %27
  %37 = load ptr, ptr @stderr, align 8, !tbaa !9
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str, ptr noundef nonnull @.str.874, i32 noundef 62, ptr noundef nonnull @.str.876) #7
  br label %51

39:                                               ; preds = %27
  %40 = getelementptr inbounds i8, ptr %6, i64 8
  %41 = load float, ptr %40, align 4, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %8, i64 8
  %43 = load float, ptr %42, align 4, !tbaa !5
  %44 = fsub float %41, %43
  %45 = call float @llvm.fabs.f32(float %44)
  %46 = fpext float %45 to double
  %47 = fcmp olt double %46, 1.000000e-02
  br i1 %47, label %51, label %48

48:                                               ; preds = %39
  %49 = load ptr, ptr @stderr, align 8, !tbaa !9
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str, ptr noundef nonnull @.str.874, i32 noundef 63, ptr noundef nonnull @.str.877) #7
  br label %51

51:                                               ; preds = %39, %48, %36, %24
  %.sroa.5.0 = phi i32 [ 0, %48 ], [ 0, %36 ], [ 0, %24 ], [ 1, %39 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #6
  %.fca.1.insert = insertvalue { ptr, i32 } { ptr null, i32 poison }, i32 %.sroa.5.0, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

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 = { 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 #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 = { 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