; 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
@.str.27 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.296 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.314 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.319 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.320 = external hidden unnamed_addr constant [29 x i8], align 1
@__const.test_glm_vec4_normalize_to.v1 = external hidden unnamed_addr constant [4 x float], align 16

; 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_vec4_normalize_to() #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_vec4_normalize_to.v1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #8
  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 %2, i64 0, i64 0
  %11 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  call void @glm_vec4_normalize_to(ptr noundef %10, ptr noundef %11)
  %12 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %13 = load float, ptr %12, align 16, !tbaa !5
  %14 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %15 = load float, ptr %14, align 16, !tbaa !5
  %16 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  %17 = load float, ptr %16, align 4, !tbaa !5
  %18 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  %19 = load float, ptr %18, align 4, !tbaa !5
  %20 = fmul float %17, %19
  %21 = call float @llvm.fmuladd.f32(float %13, float %15, float %20)
  %22 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %23 = load float, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %25 = load float, ptr %24, align 8, !tbaa !5
  %26 = call float @llvm.fmuladd.f32(float %23, float %25, float %21)
  %27 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %28 = load float, ptr %27, align 4, !tbaa !5
  %29 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %30 = load float, ptr %29, align 4, !tbaa !5
  %31 = call float @llvm.fmuladd.f32(float %28, float %30, float %26)
  %32 = call float @sqrtf(float noundef %31) #8
  store float %32, ptr %5, align 4, !tbaa !5
  %33 = load float, ptr %5, align 4, !tbaa !5
  %34 = fcmp olt float %33, 0x3E80000000000000
  br i1 %34, label %35, label %86

35:                                               ; preds = %0
  br label %36

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

40:                                               ; preds = %36
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 736, ptr noundef @.str.27) #8
  %43 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %43, align 8, !tbaa !11
  %44 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %44, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %186

45:                                               ; preds = %36
  br label %46

46:                                               ; preds = %45
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  %49 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  %50 = load float, ptr %49, align 4, !tbaa !5
  %51 = call zeroext i1 @test_eq(float noundef %50, float noundef 0.000000e+00)
  br i1 %51, label %57, label %52

52:                                               ; preds = %48
  %53 = load ptr, ptr @stderr, align 8, !tbaa !9
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 737, ptr noundef @.str.28) #8
  %55 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %55, align 8, !tbaa !11
  %56 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %56, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %186

57:                                               ; preds = %48
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  %61 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %62 = load float, ptr %61, align 8, !tbaa !5
  %63 = call zeroext i1 @test_eq(float noundef %62, float noundef 0.000000e+00)
  br i1 %63, label %69, label %64

64:                                               ; preds = %60
  %65 = load ptr, ptr @stderr, align 8, !tbaa !9
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 738, ptr noundef @.str.154) #8
  %67 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %67, align 8, !tbaa !11
  %68 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %68, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %186

69:                                               ; preds = %60
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  %73 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %74 = load float, ptr %73, align 4, !tbaa !5
  %75 = call zeroext i1 @test_eq(float noundef %74, float noundef 0.000000e+00)
  br i1 %75, label %81, label %76

76:                                               ; preds = %72
  %77 = load ptr, ptr @stderr, align 8, !tbaa !9
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 739, ptr noundef @.str.319) #8
  %79 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %79, align 8, !tbaa !11
  %80 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %80, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %186

81:                                               ; preds = %72
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  %84 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %84, align 8, !tbaa !11
  %85 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %85, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %186

86:                                               ; preds = %0
  %87 = load float, ptr %4, align 4, !tbaa !5
  %88 = load float, ptr %5, align 4, !tbaa !5
  %89 = fdiv float %87, %88
  store float %89, ptr %5, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %86
  %91 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %92 = load float, ptr %91, align 16, !tbaa !5
  %93 = load float, ptr %5, align 4, !tbaa !5
  %94 = fmul float %92, %93
  %95 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %96 = load float, ptr %95, align 16, !tbaa !5
  %97 = call zeroext i1 @test_eq(float noundef %94, float noundef %96)
  br i1 %97, label %103, label %98

98:                                               ; preds = %90
  %99 = load ptr, ptr @stderr, align 8, !tbaa !9
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 746, ptr noundef @.str.29) #8
  %101 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %101, align 8, !tbaa !11
  %102 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %102, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %186

103:                                              ; preds = %90
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  br label %106

106:                                              ; preds = %105
  %107 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  %108 = load float, ptr %107, align 4, !tbaa !5
  %109 = load float, ptr %5, align 4, !tbaa !5
  %110 = fmul float %108, %109
  %111 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 1
  %112 = load float, ptr %111, align 4, !tbaa !5
  %113 = call zeroext i1 @test_eq(float noundef %110, float noundef %112)
  br i1 %113, label %119, label %114

114:                                              ; preds = %106
  %115 = load ptr, ptr @stderr, align 8, !tbaa !9
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 747, ptr noundef @.str.30) #8
  %117 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %117, align 8, !tbaa !11
  %118 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %118, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %186

119:                                              ; preds = %106
  br label %120

120:                                              ; preds = %119
  br label %121

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121
  %123 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %124 = load float, ptr %123, align 8, !tbaa !5
  %125 = load float, ptr %5, align 4, !tbaa !5
  %126 = fmul float %124, %125
  %127 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 2
  %128 = load float, ptr %127, align 8, !tbaa !5
  %129 = call zeroext i1 @test_eq(float noundef %126, float noundef %128)
  br i1 %129, label %135, label %130

130:                                              ; preds = %122
  %131 = load ptr, ptr @stderr, align 8, !tbaa !9
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 748, ptr noundef @.str.155) #8
  %133 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %133, align 8, !tbaa !11
  %134 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %134, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %186

135:                                              ; preds = %122
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  %139 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %140 = load float, ptr %139, align 4, !tbaa !5
  %141 = load float, ptr %5, align 4, !tbaa !5
  %142 = fmul float %140, %141
  %143 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 3
  %144 = load float, ptr %143, align 4, !tbaa !5
  %145 = call zeroext i1 @test_eq(float noundef %142, float noundef %144)
  br i1 %145, label %151, label %146

146:                                              ; preds = %138
  %147 = load ptr, ptr @stderr, align 8, !tbaa !9
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 749, ptr noundef @.str.320) #8
  %149 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %149, align 8, !tbaa !11
  %150 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %150, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %186

151:                                              ; preds = %138
  br label %152

152:                                              ; preds = %151
  br label %153

153:                                              ; preds = %152
  %154 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  call void @glm_vec4_zero(ptr noundef %154)
  %155 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %156 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  call void @glm_vec4_normalize_to(ptr noundef %155, ptr noundef %156)
  br label %157

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

171:                                              ; preds = %157
  %172 = load ptr, ptr @stderr, align 8, !tbaa !9
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str.13, ptr noundef @.str.296, i32 noundef 753, ptr noundef @.str.314) #8
  %174 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %175 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 0
  %176 = load ptr, ptr %175, align 8, !tbaa !11
  store ptr %176, ptr %174, align 8, !tbaa !11
  %177 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %177, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %179

178:                                              ; preds = %157
  store i32 0, ptr %6, align 4
  br label %179

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

181:                                              ; preds = %179
  br label %182

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182
  %184 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %184, align 8, !tbaa !11
  %185 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %185, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %186

186:                                              ; preds = %183, %179, %146, %130, %114, %98, %83, %76, %64, %52, %40
  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
  %187 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %187
}

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

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
@.str.27 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.296 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.314 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.319 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.320 = external hidden unnamed_addr constant [29 x i8], align 1
@__const.test_glm_vec4_normalize_to.v1 = external hidden unnamed_addr constant [4 x float], align 16

; 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_vec4_normalize_to() 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_vec4_normalize_to.v1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #10
  call void @glm_vec4_normalize_to(ptr noundef nonnull %1, 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)
  %12 = getelementptr inbounds i8, ptr %1, i64 12
  %13 = load float, ptr %12, align 4, !tbaa !5
  %14 = call float @llvm.fmuladd.f32(float %13, float %13, float %11)
  %sqrt = call float @llvm.sqrt.f32(float %14)
  %15 = fcmp olt float %sqrt, 0x3E80000000000000
  br i1 %15, label %16, label %39

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

18:                                               ; preds = %16
  %19 = load ptr, ptr @stderr, align 8, !tbaa !9
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 736, ptr noundef nonnull @.str.27) #11
  br label %82

21:                                               ; preds = %16
  %22 = load float, ptr %5, align 4, !tbaa !5
  %23 = call zeroext i1 @test_eq(float noundef %22, float noundef 0.000000e+00)
  br i1 %23, label %27, label %24

24:                                               ; preds = %21
  %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.296, i32 noundef 737, ptr noundef nonnull @.str.28) #11
  br label %82

27:                                               ; preds = %21
  %28 = load float, ptr %9, align 8, !tbaa !5
  %29 = call zeroext i1 @test_eq(float noundef %28, float noundef 0.000000e+00)
  br i1 %29, label %33, label %30

30:                                               ; preds = %27
  %31 = load ptr, ptr @stderr, align 8, !tbaa !9
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 738, ptr noundef nonnull @.str.154) #11
  br label %82

33:                                               ; preds = %27
  %34 = load float, ptr %12, align 4, !tbaa !5
  %35 = call zeroext i1 @test_eq(float noundef %34, float noundef 0.000000e+00)
  br i1 %35, label %82, label %36

36:                                               ; preds = %33
  %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.296, i32 noundef 739, ptr noundef nonnull @.str.319) #11
  br label %82

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

44:                                               ; preds = %39
  %45 = load ptr, ptr @stderr, align 8, !tbaa !9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 746, ptr noundef nonnull @.str.29) #11
  br label %82

47:                                               ; preds = %39
  %48 = load float, ptr %5, align 4, !tbaa !5
  %49 = fmul float %40, %48
  %50 = getelementptr inbounds i8, ptr %2, i64 4
  %51 = load float, ptr %50, align 4, !tbaa !5
  %52 = call zeroext i1 @test_eq(float noundef %49, float noundef %51)
  br i1 %52, label %56, label %53

53:                                               ; preds = %47
  %54 = load ptr, ptr @stderr, align 8, !tbaa !9
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 747, ptr noundef nonnull @.str.30) #11
  br label %82

56:                                               ; preds = %47
  %57 = load float, ptr %9, align 8, !tbaa !5
  %58 = fmul float %40, %57
  %59 = getelementptr inbounds i8, ptr %2, i64 8
  %60 = load float, ptr %59, align 8, !tbaa !5
  %61 = call zeroext i1 @test_eq(float noundef %58, float noundef %60)
  br i1 %61, label %65, label %62

62:                                               ; preds = %56
  %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.296, i32 noundef 748, ptr noundef nonnull @.str.155) #11
  br label %82

65:                                               ; preds = %56
  %66 = load float, ptr %12, align 4, !tbaa !5
  %67 = fmul float %40, %66
  %68 = getelementptr inbounds i8, ptr %2, i64 12
  %69 = load float, ptr %68, align 4, !tbaa !5
  %70 = call zeroext i1 @test_eq(float noundef %67, float noundef %69)
  br i1 %70, label %74, label %71

71:                                               ; preds = %65
  %72 = load ptr, ptr @stderr, align 8, !tbaa !9
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 749, ptr noundef nonnull @.str.320) #11
  br label %82

74:                                               ; preds = %65
  call void @glm_vec4_zero(ptr noundef nonnull %1)
  call void @glm_vec4_normalize_to(ptr noundef nonnull %1, ptr noundef nonnull %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  %75 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef nonnull %2, ptr noundef nonnull %3) #10
  %76 = extractvalue { ptr, i32 } %75, 1
  %.not = icmp eq i32 %76, 1
  br i1 %.not, label %81, label %77

77:                                               ; preds = %74
  %78 = extractvalue { ptr, i32 } %75, 0
  %79 = load ptr, ptr @stderr, align 8, !tbaa !9
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.296, i32 noundef 753, ptr noundef nonnull @.str.314) #11
  br label %81

81:                                               ; preds = %74, %77
  %spec.select = phi ptr [ null, %74 ], [ %78, %77 ]
  %spec.select11 = zext i1 %.not to i32
  br label %82

82:                                               ; preds = %81, %33, %71, %62, %53, %44, %36, %30, %24, %18
  %.sroa.09.1 = phi ptr [ null, %36 ], [ null, %30 ], [ null, %24 ], [ null, %18 ], [ null, %71 ], [ null, %62 ], [ null, %53 ], [ null, %44 ], [ null, %33 ], [ %spec.select, %81 ]
  %.sroa.12.1 = phi i32 [ 0, %36 ], [ 0, %30 ], [ 0, %24 ], [ 0, %18 ], [ 0, %71 ], [ 0, %62 ], [ 0, %53 ], [ 0, %44 ], [ 1, %33 ], [ %spec.select11, %81 ]
  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_vec4_normalize_to(ptr noundef, ptr noundef) local_unnamed_addr #6

; 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