; LLVM IR from recp/cglm :: test/src (tests)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.test_status_t = type { ptr, i32 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [94 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@__const.test_glm_plane_normalize.p1 = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_plane_normalize.p2 = external hidden unnamed_addr constant [4 x float], align 16
@.str.881 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.882 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.883 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.884 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.885 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.886 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.887 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.888 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.889 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.890 = external hidden unnamed_addr constant [39 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.fmuladd.f32(float, float, float) #4

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

declare { ptr, i32 } @test_assert_vec4_eq(ptr noundef, ptr noundef) #5

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_plane_normalize() #7 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x float], align 16
  %3 = alloca [4 x float], align 16
  %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 [4 x float], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_glm_plane_normalize.p1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.test_glm_plane_normalize.p2, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store float 1.000000e+00, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %10 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  call void @glm_plane_normalize(ptr noundef %10)
  %11 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %12 = load float, ptr %11, align 16, !tbaa !5
  %13 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %14 = load float, ptr %13, align 16, !tbaa !5
  %15 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  %16 = load float, ptr %15, align 4, !tbaa !5
  %17 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  %18 = load float, ptr %17, align 4, !tbaa !5
  %19 = fmul float %16, %18
  %20 = call float @llvm.fmuladd.f32(float %12, float %14, float %19)
  %21 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %22 = load float, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %24 = load float, ptr %23, align 8, !tbaa !5
  %25 = call float @llvm.fmuladd.f32(float %22, float %24, float %20)
  %26 = call float @sqrtf(float noundef %25) #8
  store float %26, ptr %5, align 4, !tbaa !5
  %27 = load float, ptr %5, align 4, !tbaa !5
  %28 = fcmp oeq float %27, 0.000000e+00
  br i1 %28, label %29, label %80

29:                                               ; preds = %0
  br label %30

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

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

39:                                               ; preds = %30
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  br label %42

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

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

51:                                               ; preds = %42
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  br label %54

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

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

63:                                               ; preds = %54
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65
  %67 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %68 = load float, ptr %67, align 4, !tbaa !5
  %69 = call zeroext i1 @test_eq(float noundef %68, float noundef 0.000000e+00)
  br i1 %69, label %75, label %70

70:                                               ; preds = %66
  %71 = load ptr, ptr @stderr, align 8, !tbaa !9
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str, ptr noundef @.str.881, i32 noundef 22, ptr noundef @.str.885) #8
  %73 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %73, align 8, !tbaa !11
  %74 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %74, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %179

75:                                               ; preds = %66
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76
  %78 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %78, align 8, !tbaa !11
  %79 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %79, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %179

80:                                               ; preds = %0
  %81 = load float, ptr %4, align 4, !tbaa !5
  %82 = load float, ptr %5, align 4, !tbaa !5
  %83 = fdiv float %81, %82
  store float %83, ptr %5, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %80
  %85 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %86 = load float, ptr %85, align 16, !tbaa !5
  %87 = load float, ptr %5, align 4, !tbaa !5
  %88 = fmul float %86, %87
  %89 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %90 = load float, ptr %89, align 16, !tbaa !5
  %91 = call zeroext i1 @test_eq(float noundef %88, float noundef %90)
  br i1 %91, label %97, label %92

92:                                               ; preds = %84
  %93 = load ptr, ptr @stderr, align 8, !tbaa !9
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str, ptr noundef @.str.881, i32 noundef 29, ptr noundef @.str.886) #8
  %95 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %95, align 8, !tbaa !11
  %96 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %96, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %179

97:                                               ; preds = %84
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  %101 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  %102 = load float, ptr %101, align 4, !tbaa !5
  %103 = load float, ptr %5, align 4, !tbaa !5
  %104 = fmul float %102, %103
  %105 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 1
  %106 = load float, ptr %105, align 4, !tbaa !5
  %107 = call zeroext i1 @test_eq(float noundef %104, float noundef %106)
  br i1 %107, label %113, label %108

108:                                              ; preds = %100
  %109 = load ptr, ptr @stderr, align 8, !tbaa !9
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str, ptr noundef @.str.881, i32 noundef 30, ptr noundef @.str.887) #8
  %111 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %111, align 8, !tbaa !11
  %112 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %112, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %179

113:                                              ; preds = %100
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115
  %117 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %118 = load float, ptr %117, align 8, !tbaa !5
  %119 = load float, ptr %5, align 4, !tbaa !5
  %120 = fmul float %118, %119
  %121 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 2
  %122 = load float, ptr %121, align 8, !tbaa !5
  %123 = call zeroext i1 @test_eq(float noundef %120, float noundef %122)
  br i1 %123, label %129, label %124

124:                                              ; preds = %116
  %125 = load ptr, ptr @stderr, align 8, !tbaa !9
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef @.str, ptr noundef @.str.881, i32 noundef 31, ptr noundef @.str.888) #8
  %127 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %127, align 8, !tbaa !11
  %128 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %128, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %179

129:                                              ; preds = %116
  br label %130

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  %133 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %134 = load float, ptr %133, align 4, !tbaa !5
  %135 = load float, ptr %5, align 4, !tbaa !5
  %136 = fmul float %134, %135
  %137 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 3
  %138 = load float, ptr %137, align 4, !tbaa !5
  %139 = call zeroext i1 @test_eq(float noundef %136, float noundef %138)
  br i1 %139, label %145, label %140

140:                                              ; preds = %132
  %141 = load ptr, ptr @stderr, align 8, !tbaa !9
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef @.str, ptr noundef @.str.881, i32 noundef 32, ptr noundef @.str.889) #8
  %143 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %143, align 8, !tbaa !11
  %144 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %144, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %179

145:                                              ; preds = %132
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  %148 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  call void @glm_vec4_zero(ptr noundef %148)
  %149 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  call void @glm_plane_normalize(ptr noundef %149)
  br label %150

150:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %151 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  store float 0.000000e+00, ptr %9, align 4, !tbaa !5
  %152 = getelementptr inbounds float, ptr %9, i64 1
  store float 0.000000e+00, ptr %152, align 4, !tbaa !5
  %153 = getelementptr inbounds float, ptr %9, i64 2
  store float 0.000000e+00, ptr %153, align 4, !tbaa !5
  %154 = getelementptr inbounds float, ptr %9, i64 3
  store float 0.000000e+00, ptr %154, align 4, !tbaa !5
  %155 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  %156 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef %151, ptr noundef %155)
  %157 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %158 = extractvalue { ptr, i32 } %156, 0
  store ptr %158, ptr %157, align 8
  %159 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %160 = extractvalue { ptr, i32 } %156, 1
  store i32 %160, ptr %159, 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) #8
  %161 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 1
  %162 = load i32, ptr %161, align 8, !tbaa !14
  %163 = icmp ne i32 %162, 1
  br i1 %163, label %164, label %171

164:                                              ; preds = %150
  %165 = load ptr, ptr @stderr, align 8, !tbaa !9
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %165, ptr noundef @.str.13, ptr noundef @.str.881, i32 noundef 36, ptr noundef @.str.890) #8
  %167 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %168 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 0
  %169 = load ptr, ptr %168, align 8, !tbaa !11
  store ptr %169, ptr %167, align 8, !tbaa !11
  %170 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %170, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %172

171:                                              ; preds = %150
  store i32 0, ptr %6, align 4
  br label %172

172:                                              ; preds = %171, %164
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  %173 = load i32, ptr %6, align 4
  switch i32 %173, label %179 [
    i32 0, label %174
  ]

174:                                              ; preds = %172
  br label %175

175:                                              ; preds = %174
  br label %176

176:                                              ; preds = %175
  %177 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %177, align 8, !tbaa !11
  %178 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %178, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %179

179:                                              ; preds = %176, %172, %140, %124, %108, %92, %77, %70, %58, %46, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #8
  %180 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %180
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_plane_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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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 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 #8 = { nounwind }

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [94 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@__const.test_glm_plane_normalize.p1 = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_plane_normalize.p2 = external hidden unnamed_addr constant [4 x float], align 16
@.str.881 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.882 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.883 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.884 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.885 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.886 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.887 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.888 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.889 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.890 = external hidden unnamed_addr constant [39 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.fmuladd.f32(float, float, float) #4

declare { ptr, i32 } @test_assert_vec4_eq(ptr noundef, ptr noundef) local_unnamed_addr #5

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_plane_normalize() local_unnamed_addr #7 {
  %1 = alloca [4 x float], align 16
  %2 = alloca [4 x float], align 16
  %3 = alloca [4 x float], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %1, ptr noundef nonnull align 16 dereferenceable(16) @__const.test_glm_plane_normalize.p1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %2, ptr noundef nonnull align 16 dereferenceable(16) @__const.test_glm_plane_normalize.p2, i64 16, i1 false)
  call void @glm_plane_normalize(ptr noundef nonnull %2)
  %4 = load float, ptr %1, align 16, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 4
  %6 = load float, ptr %5, align 4, !tbaa !5
  %7 = fmul float %6, %6
  %8 = call float @llvm.fmuladd.f32(float %4, float %4, float %7)
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load float, ptr %9, align 8, !tbaa !5
  %11 = call float @llvm.fmuladd.f32(float %10, float %10, float %8)
  %sqrt = call float @llvm.sqrt.f32(float %11)
  %12 = fcmp oeq float %sqrt, 0.000000e+00
  br i1 %12, label %13, label %35

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

15:                                               ; preds = %13
  %16 = load ptr, ptr @stderr, align 8, !tbaa !9
  %17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.881, i32 noundef 19, ptr noundef nonnull @.str.882) #11
  br label %77

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

20:                                               ; preds = %18
  %21 = load ptr, ptr @stderr, align 8, !tbaa !9
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str, ptr noundef nonnull @.str.881, i32 noundef 20, ptr noundef nonnull @.str.883) #11
  br label %77

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

25:                                               ; preds = %23
  %26 = load ptr, ptr @stderr, align 8, !tbaa !9
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str, ptr noundef nonnull @.str.881, i32 noundef 21, ptr noundef nonnull @.str.884) #11
  br label %77

28:                                               ; preds = %23
  %29 = getelementptr inbounds i8, ptr %1, i64 12
  %30 = load float, ptr %29, align 4, !tbaa !5
  %31 = call zeroext i1 @test_eq(float noundef %30, float noundef 0.000000e+00)
  br i1 %31, label %77, label %32

32:                                               ; preds = %28
  %33 = load ptr, ptr @stderr, align 8, !tbaa !9
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str, ptr noundef nonnull @.str.881, i32 noundef 22, ptr noundef nonnull @.str.885) #11
  br label %77

35:                                               ; preds = %0
  %36 = fdiv float 1.000000e+00, %sqrt
  %37 = fmul float %36, %4
  %38 = load float, ptr %2, align 16, !tbaa !5
  %39 = call zeroext i1 @test_eq(float noundef %37, float noundef %38)
  br i1 %39, label %43, label %40

40:                                               ; preds = %35
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str, ptr noundef nonnull @.str.881, i32 noundef 29, ptr noundef nonnull @.str.886) #11
  br label %77

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

48:                                               ; preds = %43
  %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.881, i32 noundef 30, ptr noundef nonnull @.str.887) #11
  br label %77

51:                                               ; preds = %43
  %52 = fmul float %36, %10
  %53 = getelementptr inbounds i8, ptr %2, i64 8
  %54 = load float, ptr %53, align 8, !tbaa !5
  %55 = call zeroext i1 @test_eq(float noundef %52, float noundef %54)
  br i1 %55, label %59, label %56

56:                                               ; preds = %51
  %57 = load ptr, ptr @stderr, align 8, !tbaa !9
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str, ptr noundef nonnull @.str.881, i32 noundef 31, ptr noundef nonnull @.str.888) #11
  br label %77

59:                                               ; preds = %51
  %60 = getelementptr inbounds i8, ptr %1, i64 12
  %61 = load float, ptr %60, align 4, !tbaa !5
  %62 = fmul float %36, %61
  %63 = getelementptr inbounds i8, ptr %2, i64 12
  %64 = load float, ptr %63, align 4, !tbaa !5
  %65 = call zeroext i1 @test_eq(float noundef %62, float noundef %64)
  br i1 %65, label %69, label %66

66:                                               ; preds = %59
  %67 = load ptr, ptr @stderr, align 8, !tbaa !9
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str, ptr noundef nonnull @.str.881, i32 noundef 32, ptr noundef nonnull @.str.889) #11
  br label %77

69:                                               ; preds = %59
  call void @glm_vec4_zero(ptr noundef nonnull %1)
  call void @glm_plane_normalize(ptr noundef nonnull %1)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  %70 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef nonnull %1, ptr noundef nonnull %3) #10
  %71 = extractvalue { ptr, i32 } %70, 1
  %.not = icmp eq i32 %71, 1
  br i1 %.not, label %76, label %72

72:                                               ; preds = %69
  %73 = extractvalue { ptr, i32 } %70, 0
  %74 = load ptr, ptr @stderr, align 8, !tbaa !9
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.881, i32 noundef 36, ptr noundef nonnull @.str.890) #11
  br label %76

76:                                               ; preds = %69, %72
  %spec.select = phi ptr [ null, %69 ], [ %73, %72 ]
  %spec.select11 = zext i1 %.not to i32
  br label %77

77:                                               ; preds = %76, %28, %66, %56, %48, %40, %32, %25, %20, %15
  %.sroa.09.1 = phi ptr [ null, %32 ], [ null, %25 ], [ null, %20 ], [ null, %15 ], [ null, %66 ], [ null, %56 ], [ null, %48 ], [ null, %40 ], [ null, %28 ], [ %spec.select, %76 ]
  %.sroa.12.1 = phi i32 [ 0, %32 ], [ 0, %25 ], [ 0, %20 ], [ 0, %15 ], [ 0, %66 ], [ 0, %56 ], [ 0, %48 ], [ 0, %40 ], [ 1, %28 ], [ %spec.select11, %76 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #10
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.09.1, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.12.1, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #9

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

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

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


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass