; 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_project.viewport = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_project.pos = external hidden unnamed_addr constant [3 x float], align 4
@.str.878 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.879 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.880 = external hidden unnamed_addr constant [32 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: 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.fabs.f32(float) #4

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_project() #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_project.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_project.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 92, 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 %144

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 93, 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 %144

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 94, 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 %144

88:                                               ; preds = %74
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  %91 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
  call void @glm_mat4_identity(ptr noundef %91)
  %92 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 0
  %93 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
  %94 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  %95 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  call void @glm_project(ptr noundef %92, ptr noundef %93, ptr noundef %94, ptr noundef %95)
  %96 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  %97 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
  %98 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  %99 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  call void @glm_unproject(ptr noundef %96, ptr noundef %97, ptr noundef %98, ptr noundef %99)
  br label %100

100:                                              ; preds = %90
  %101 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 0
  %102 = load float, ptr %101, align 4, !tbaa !5
  %103 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  %104 = load float, ptr %103, align 4, !tbaa !5
  %105 = call zeroext i1 @test_eq(float noundef %102, float noundef %104)
  br i1 %105, label %111, label %106

106:                                              ; preds = %100
  %107 = load ptr, ptr @stderr, align 8, !tbaa !9
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str, ptr noundef @.str.874, i32 noundef 107, ptr noundef @.str.878) #6
  %109 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %109, align 8, !tbaa !11
  %110 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %110, align 8, !tbaa !14
  store i32 1, ptr %14, align 4
  br label %144

111:                                              ; preds = %100
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  br label %114

114:                                              ; preds = %113
  %115 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 1
  %116 = load float, ptr %115, align 4, !tbaa !5
  %117 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 1
  %118 = load float, ptr %117, align 4, !tbaa !5
  %119 = call zeroext i1 @test_eq(float noundef %116, float noundef %118)
  br i1 %119, label %125, label %120

120:                                              ; preds = %114
  %121 = load ptr, ptr @stderr, align 8, !tbaa !9
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str, ptr noundef @.str.874, i32 noundef 108, ptr noundef @.str.879) #6
  %123 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %123, align 8, !tbaa !11
  %124 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %124, align 8, !tbaa !14
  store i32 1, ptr %14, align 4
  br label %144

125:                                              ; preds = %114
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  br label %128

128:                                              ; preds = %127
  %129 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 2
  %130 = load float, ptr %129, align 4, !tbaa !5
  %131 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 2
  %132 = load float, ptr %131, align 4, !tbaa !5
  %133 = call zeroext i1 @test_eq(float noundef %130, float noundef %132)
  br i1 %133, label %139, label %134

134:                                              ; preds = %128
  %135 = load ptr, ptr @stderr, align 8, !tbaa !9
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str, ptr noundef @.str.874, i32 noundef 109, ptr noundef @.str.880) #6
  %137 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %137, align 8, !tbaa !11
  %138 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %138, align 8, !tbaa !14
  store i32 1, ptr %14, align 4
  br label %144

139:                                              ; preds = %128
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140
  %142 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %142, align 8, !tbaa !11
  %143 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %143, align 8, !tbaa !14
  store i32 1, ptr %14, align 4
  br label %144

144:                                              ; preds = %141, %134, %120, %106, %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
  %145 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %145
}

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 = { 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_project.viewport = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_project.pos = external hidden unnamed_addr constant [3 x float], align 4
@.str.878 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.879 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.880 = external hidden unnamed_addr constant [32 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: 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.fabs.f32(float) #4

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_project() 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_project.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_project.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 92, ptr noundef nonnull @.str.875) #7
  br label %72

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 93, ptr noundef nonnull @.str.876) #7
  br label %72

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 94, ptr noundef nonnull @.str.877) #7
  br label %72

51:                                               ; preds = %39
  call void @glm_mat4_identity(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)
  %52 = load float, ptr %6, align 4, !tbaa !5
  %53 = load float, ptr %8, align 4, !tbaa !5
  %54 = call zeroext i1 @test_eq(float noundef %52, float noundef %53)
  br i1 %54, label %58, label %55

55:                                               ; preds = %51
  %56 = load ptr, ptr @stderr, align 8, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str, ptr noundef nonnull @.str.874, i32 noundef 107, ptr noundef nonnull @.str.878) #7
  br label %72

58:                                               ; preds = %51
  %59 = load float, ptr %28, align 4, !tbaa !5
  %60 = load float, ptr %30, align 4, !tbaa !5
  %61 = call zeroext i1 @test_eq(float noundef %59, float noundef %60)
  br i1 %61, label %65, label %62

62:                                               ; preds = %58
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str, ptr noundef nonnull @.str.874, i32 noundef 108, ptr noundef nonnull @.str.879) #7
  br label %72

65:                                               ; preds = %58
  %66 = load float, ptr %40, align 4, !tbaa !5
  %67 = load float, ptr %42, align 4, !tbaa !5
  %68 = call zeroext i1 @test_eq(float noundef %66, float noundef %67)
  br i1 %68, label %72, label %69

69:                                               ; preds = %65
  %70 = load ptr, ptr @stderr, align 8, !tbaa !9
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str, ptr noundef nonnull @.str.874, i32 noundef 109, ptr noundef nonnull @.str.880) #7
  br label %72

72:                                               ; preds = %65, %69, %62, %55, %48, %36, %24
  %.sroa.8.0 = phi i32 [ 0, %69 ], [ 0, %62 ], [ 0, %55 ], [ 0, %48 ], [ 0, %36 ], [ 0, %24 ], [ 1, %65 ]
  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.8.0, 1
  ret { ptr, i32 } %.fca.1.insert
}

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