; 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.313 = 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.v1 = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_vec4_normalize.v2 = 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() #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.v1, 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_vec4_normalize.v2, 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_vec4_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 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %27 = load float, ptr %26, align 4, !tbaa !5
  %28 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = call float @llvm.fmuladd.f32(float %27, float %29, float %25)
  %31 = call float @sqrtf(float noundef %30) #8
  store float %31, ptr %5, align 4, !tbaa !5
  %32 = load float, ptr %5, align 4, !tbaa !5
  %33 = fcmp olt float %32, 0x3E80000000000000
  br i1 %33, label %34, label %85

34:                                               ; preds = %0
  br label %35

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

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

44:                                               ; preds = %35
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  br label %47

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

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

56:                                               ; preds = %47
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  br label %59

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

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

68:                                               ; preds = %59
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  br label %71

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

75:                                               ; preds = %71
  %76 = load ptr, ptr @stderr, align 8, !tbaa !9
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 708, ptr noundef @.str.319) #8
  %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 0, ptr %79, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %184

80:                                               ; preds = %71
  br label %81

81:                                               ; preds = %80
  br label %82

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

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

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

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

102:                                              ; preds = %89
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  br label %105

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

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

118:                                              ; preds = %105
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  br label %121

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

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

134:                                              ; preds = %121
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135
  br label %137

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

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

150:                                              ; preds = %137
  br label %151

151:                                              ; preds = %150
  br label %152

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

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

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

176:                                              ; preds = %155
  store i32 0, ptr %6, align 4
  br label %177

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

179:                                              ; preds = %177
  br label %180

180:                                              ; preds = %179
  br label %181

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

184:                                              ; preds = %181, %177, %145, %129, %113, %97, %82, %75, %63, %51, %39
  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
  %185 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %185
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_vec4_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
@.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.313 = 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.v1 = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_vec4_normalize.v2 = 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() 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.v1, 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_vec4_normalize.v2, i64 16, i1 false)
  call void @glm_vec4_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)
  %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 %36

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 705, ptr noundef nonnull @.str.27) #11
  br label %76

21:                                               ; preds = %16
  %22 = call zeroext i1 @test_eq(float noundef %6, float noundef 0.000000e+00)
  br i1 %22, label %26, label %23

23:                                               ; preds = %21
  %24 = load ptr, ptr @stderr, align 8, !tbaa !9
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 706, ptr noundef nonnull @.str.28) #11
  br label %76

26:                                               ; preds = %21
  %27 = call zeroext i1 @test_eq(float noundef %10, float noundef 0.000000e+00)
  br i1 %27, label %31, label %28

28:                                               ; preds = %26
  %29 = load ptr, ptr @stderr, align 8, !tbaa !9
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 707, ptr noundef nonnull @.str.154) #11
  br label %76

31:                                               ; preds = %26
  %32 = call zeroext i1 @test_eq(float noundef %13, float noundef 0.000000e+00)
  br i1 %32, label %76, label %33

33:                                               ; preds = %31
  %34 = load ptr, ptr @stderr, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 708, ptr noundef nonnull @.str.319) #11
  br label %76

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

41:                                               ; preds = %36
  %42 = load ptr, ptr @stderr, align 8, !tbaa !9
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 715, ptr noundef nonnull @.str.29) #11
  br label %76

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

49:                                               ; preds = %44
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 716, ptr noundef nonnull @.str.30) #11
  br label %76

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

57:                                               ; preds = %52
  %58 = load ptr, ptr @stderr, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 717, ptr noundef nonnull @.str.155) #11
  br label %76

60:                                               ; preds = %52
  %61 = fmul float %37, %13
  %62 = getelementptr inbounds i8, ptr %2, i64 12
  %63 = load float, ptr %62, align 4, !tbaa !5
  %64 = call zeroext i1 @test_eq(float noundef %61, float noundef %63)
  br i1 %64, label %68, label %65

65:                                               ; preds = %60
  %66 = load ptr, ptr @stderr, align 8, !tbaa !9
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 718, ptr noundef nonnull @.str.320) #11
  br label %76

68:                                               ; preds = %60
  call void @glm_vec4_zero(ptr noundef nonnull %1)
  call void @glm_vec4_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)
  %69 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef nonnull %1, ptr noundef nonnull %3) #10
  %70 = extractvalue { ptr, i32 } %69, 1
  %.not = icmp eq i32 %70, 1
  br i1 %.not, label %75, label %71

71:                                               ; preds = %68
  %72 = extractvalue { ptr, i32 } %69, 0
  %73 = load ptr, ptr @stderr, align 8, !tbaa !9
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.296, i32 noundef 722, ptr noundef nonnull @.str.313) #11
  br label %75

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

76:                                               ; preds = %75, %31, %65, %57, %49, %41, %33, %28, %23, %18
  %.sroa.09.1 = phi ptr [ null, %33 ], [ null, %28 ], [ null, %23 ], [ null, %18 ], [ null, %65 ], [ null, %57 ], [ null, %49 ], [ null, %41 ], [ null, %31 ], [ %spec.select, %75 ]
  %.sroa.12.1 = phi i32 [ 0, %33 ], [ 0, %28 ], [ 0, %23 ], [ 0, %18 ], [ 0, %65 ], [ 0, %57 ], [ 0, %49 ], [ 0, %41 ], [ 1, %31 ], [ %spec.select11, %75 ]
  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(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