; 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.27 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.787 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.870 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.871 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.872 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.873 = external hidden unnamed_addr constant [21 x i8], align 1
@__const.test_glm_quat_rotate_atm.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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_quat_rotate_atm() #5 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x [4 x float]], align 16
  %3 = alloca [4 x float], align 16
  %4 = alloca [4 x float], align 16
  %5 = alloca [3 x float], align 4
  %6 = alloca [3 x float], align 4
  %7 = alloca i32, align 4
  %8 = alloca [3 x float], align 4
  %9 = alloca [3 x float], align 4
  %10 = alloca [3 x float], align 4
  %11 = alloca [3 x float], align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr %2) #6
  call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 64, i1 false)
  %12 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 0
  %13 = getelementptr inbounds [4 x float], ptr %12, i32 0, i32 0
  store float 1.000000e+00, ptr %13, align 16
  %14 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 1
  %15 = getelementptr inbounds [4 x float], ptr %14, i32 0, i32 1
  store float 1.000000e+00, ptr %15, align 4
  %16 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 2
  %17 = getelementptr inbounds [4 x float], ptr %16, i32 0, i32 2
  store float 1.000000e+00, ptr %17, align 8
  %18 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 3
  %19 = getelementptr inbounds [4 x float], ptr %18, i32 0, i32 3
  store float 1.000000e+00, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.test_glm_quat_rotate_atm.v1, i64 16, i1 false)
  %20 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  store float 0.000000e+00, ptr %5, align 4, !tbaa !5
  %21 = getelementptr inbounds float, ptr %5, i64 1
  store float 1.000000e+00, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds float, ptr %5, i64 2
  store float 0.000000e+00, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  call void @glm_quatv(ptr noundef %20, float noundef 0x3FF921FB60000000, ptr noundef %23)
  %24 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %25 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  store float 5.000000e-01, ptr %6, align 4, !tbaa !5
  %26 = getelementptr inbounds float, ptr %6, i64 1
  store float 0.000000e+00, ptr %26, align 4, !tbaa !5
  %27 = getelementptr inbounds float, ptr %6, i64 2
  store float 0.000000e+00, ptr %27, align 4, !tbaa !5
  %28 = getelementptr inbounds [3 x float], ptr %6, i64 0, i64 0
  call void @glm_quat_rotate_atm(ptr noundef %24, ptr noundef %25, ptr noundef %28)
  %29 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %30 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %31 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  call void @glm_mat4_mulv(ptr noundef %29, ptr noundef %30, ptr noundef %31)
  br label %32

32:                                               ; preds = %0
  %33 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %34 = load float, ptr %33, align 16, !tbaa !5
  %35 = call zeroext i1 @test_eq(float noundef %34, float noundef 5.000000e-01)
  br i1 %35, label %41, label %36

36:                                               ; preds = %32
  %37 = load ptr, ptr @stderr, align 8, !tbaa !9
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 1061, ptr noundef @.str.871) #6
  %39 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %39, align 8, !tbaa !11
  %40 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %40, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %169

41:                                               ; preds = %32
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  br label %44

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

48:                                               ; preds = %44
  %49 = load ptr, ptr @stderr, align 8, !tbaa !9
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 1062, ptr noundef @.str.28) #6
  %51 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %51, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %52, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %169

53:                                               ; preds = %44
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  %57 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %58 = load float, ptr %57, align 8, !tbaa !5
  %59 = call zeroext i1 @test_eq(float noundef %58, float noundef -5.000000e-01)
  br i1 %59, label %65, label %60

60:                                               ; preds = %56
  %61 = load ptr, ptr @stderr, align 8, !tbaa !9
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 1063, ptr noundef @.str.872) #6
  %63 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %63, align 8, !tbaa !11
  %64 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %64, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %169

65:                                               ; preds = %56
  br label %66

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66
  %68 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  store float 0.000000e+00, ptr %8, align 4, !tbaa !5
  %69 = getelementptr inbounds float, ptr %8, i64 1
  store float 0.000000e+00, ptr %69, align 4, !tbaa !5
  %70 = getelementptr inbounds float, ptr %8, i64 2
  store float 1.000000e+00, ptr %70, align 4, !tbaa !5
  %71 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  call void @glm_quatv(ptr noundef %68, float noundef 0x3FF921FB60000000, ptr noundef %71)
  %72 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %73 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  store float 0.000000e+00, ptr %9, align 4, !tbaa !5
  %74 = getelementptr inbounds float, ptr %9, i64 1
  store float 0.000000e+00, ptr %74, align 4, !tbaa !5
  %75 = getelementptr inbounds float, ptr %9, i64 2
  store float 0.000000e+00, ptr %75, align 4, !tbaa !5
  %76 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  call void @glm_quat_rotate_atm(ptr noundef %72, ptr noundef %73, ptr noundef %76)
  %77 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %78 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %79 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  call void @glm_mat4_mulv(ptr noundef %77, ptr noundef %78, ptr noundef %79)
  br label %80

80:                                               ; preds = %67
  %81 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %82 = load float, ptr %81, align 16, !tbaa !5
  %83 = call zeroext i1 @test_eq(float noundef %82, float noundef 0.000000e+00)
  br i1 %83, label %89, label %84

84:                                               ; preds = %80
  %85 = load ptr, ptr @stderr, align 8, !tbaa !9
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 1069, ptr noundef @.str.27) #6
  %87 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %87, align 8, !tbaa !11
  %88 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %88, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %169

89:                                               ; preds = %80
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91
  %93 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %94 = load float, ptr %93, align 4, !tbaa !5
  %95 = call zeroext i1 @test_eq(float noundef %94, float noundef 5.000000e-01)
  br i1 %95, label %101, label %96

96:                                               ; preds = %92
  %97 = load ptr, ptr @stderr, align 8, !tbaa !9
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 1070, ptr noundef @.str.873) #6
  %99 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %99, align 8, !tbaa !11
  %100 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %100, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %169

101:                                              ; preds = %92
  br label %102

102:                                              ; preds = %101
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  %105 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %106 = load float, ptr %105, align 8, !tbaa !5
  %107 = call zeroext i1 @test_eq(float noundef %106, float noundef -5.000000e-01)
  br i1 %107, label %113, label %108

108:                                              ; preds = %104
  %109 = load ptr, ptr @stderr, align 8, !tbaa !9
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 1071, ptr noundef @.str.872) #6
  %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 %7, align 4
  br label %169

113:                                              ; preds = %104
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  %116 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  store float 1.000000e+00, ptr %116, align 16, !tbaa !5
  %117 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  store float 1.000000e+00, ptr %117, align 4, !tbaa !5
  %118 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  store float 1.000000e+00, ptr %118, align 8, !tbaa !5
  %119 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  store float 1.000000e+00, ptr %10, align 4, !tbaa !5
  %120 = getelementptr inbounds float, ptr %10, i64 1
  store float 0.000000e+00, ptr %120, align 4, !tbaa !5
  %121 = getelementptr inbounds float, ptr %10, i64 2
  store float 0.000000e+00, ptr %121, align 4, !tbaa !5
  %122 = getelementptr inbounds [3 x float], ptr %10, i64 0, i64 0
  call void @glm_quatv(ptr noundef %119, float noundef 0x3FF921FB60000000, ptr noundef %122)
  %123 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %124 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  store float 0.000000e+00, ptr %11, align 4, !tbaa !5
  %125 = getelementptr inbounds float, ptr %11, i64 1
  store float 0.000000e+00, ptr %125, align 4, !tbaa !5
  %126 = getelementptr inbounds float, ptr %11, i64 2
  store float 0.000000e+00, ptr %126, align 4, !tbaa !5
  %127 = getelementptr inbounds [3 x float], ptr %11, i64 0, i64 0
  call void @glm_quat_rotate_atm(ptr noundef %123, ptr noundef %124, ptr noundef %127)
  %128 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %129 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %130 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  call void @glm_mat4_mulv(ptr noundef %128, ptr noundef %129, ptr noundef %130)
  br label %131

131:                                              ; preds = %115
  %132 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %133 = load float, ptr %132, align 16, !tbaa !5
  %134 = call zeroext i1 @test_eq(float noundef %133, float noundef 1.000000e+00)
  br i1 %134, label %140, label %135

135:                                              ; preds = %131
  %136 = load ptr, ptr @stderr, align 8, !tbaa !9
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 1081, ptr noundef @.str.66) #6
  %138 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %138, align 8, !tbaa !11
  %139 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %139, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %169

140:                                              ; preds = %131
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  %144 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %145 = load float, ptr %144, align 4, !tbaa !5
  %146 = call zeroext i1 @test_eq(float noundef %145, float noundef -1.000000e+00)
  br i1 %146, label %152, label %147

147:                                              ; preds = %143
  %148 = load ptr, ptr @stderr, align 8, !tbaa !9
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 1082, ptr noundef @.str.65) #6
  %150 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %150, align 8, !tbaa !11
  %151 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %151, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %169

152:                                              ; preds = %143
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154
  %156 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %157 = load float, ptr %156, align 8, !tbaa !5
  %158 = call zeroext i1 @test_eq(float noundef %157, float noundef 1.000000e+00)
  br i1 %158, label %164, label %159

159:                                              ; preds = %155
  %160 = load ptr, ptr @stderr, align 8, !tbaa !9
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 1083, ptr noundef @.str.870) #6
  %162 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %162, align 8, !tbaa !11
  %163 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %163, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %169

164:                                              ; preds = %155
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  %167 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %167, align 8, !tbaa !11
  %168 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %168, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %169

169:                                              ; preds = %166, %159, %147, %135, %108, %96, %84, %60, %48, %36
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #6
  %170 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %170
}

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

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

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


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [94 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.787 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.870 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.871 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.872 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.873 = external hidden unnamed_addr constant [21 x i8], align 1
@__const.test_glm_quat_rotate_atm.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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_quat_rotate_atm() local_unnamed_addr #5 {
  %1 = alloca [4 x [4 x float]], align 16
  %2 = alloca [4 x float], align 16
  %3 = alloca [4 x float], align 16
  %4 = alloca [3 x float], align 8
  %5 = alloca [3 x float], align 8
  %6 = alloca [3 x float], align 8
  %7 = alloca [3 x float], align 8
  %8 = alloca [3 x float], align 8
  %9 = alloca [3 x float], align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %1, i8 0, i64 64, i1 false)
  store float 1.000000e+00, ptr %1, align 16
  %10 = getelementptr inbounds i8, ptr %1, i64 20
  store float 1.000000e+00, ptr %10, align 4
  %11 = getelementptr inbounds i8, ptr %1, i64 40
  store float 1.000000e+00, ptr %11, align 8
  %12 = getelementptr inbounds i8, ptr %1, i64 60
  store float 1.000000e+00, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) @__const.test_glm_quat_rotate_atm.v1, i64 16, i1 false)
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %4, i64 8
  store float 0.000000e+00, ptr %13, align 8, !tbaa !5
  call void @glm_quatv(ptr noundef nonnull %2, float noundef 0x3FF921FB60000000, ptr noundef nonnull %4)
  store <2 x float> <float 5.000000e-01, float 0.000000e+00>, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %5, i64 8
  store float 0.000000e+00, ptr %14, align 8, !tbaa !5
  call void @glm_quat_rotate_atm(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %5)
  call void @glm_mat4_mulv(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %3)
  %15 = load float, ptr %3, align 16, !tbaa !5
  %16 = call zeroext i1 @test_eq(float noundef %15, float noundef 5.000000e-01)
  br i1 %16, label %20, label %17

17:                                               ; preds = %0
  %18 = load ptr, ptr @stderr, align 8, !tbaa !9
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str, ptr noundef nonnull @.str.787, i32 noundef 1061, ptr noundef nonnull @.str.871) #7
  br label %74

20:                                               ; preds = %0
  %21 = getelementptr inbounds i8, ptr %3, i64 4
  %22 = load float, ptr %21, 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 = %20
  %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.787, i32 noundef 1062, ptr noundef nonnull @.str.28) #7
  br label %74

27:                                               ; preds = %20
  %28 = getelementptr inbounds i8, ptr %3, i64 8
  %29 = load float, ptr %28, align 8, !tbaa !5
  %30 = call zeroext i1 @test_eq(float noundef %29, float noundef -5.000000e-01)
  br i1 %30, label %34, label %31

31:                                               ; preds = %27
  %32 = load ptr, ptr @stderr, align 8, !tbaa !9
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str, ptr noundef nonnull @.str.787, i32 noundef 1063, ptr noundef nonnull @.str.872) #7
  br label %74

34:                                               ; preds = %27
  store <2 x float> zeroinitializer, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %6, i64 8
  store float 1.000000e+00, ptr %35, align 8, !tbaa !5
  call void @glm_quatv(ptr noundef nonnull %2, float noundef 0x3FF921FB60000000, ptr noundef nonnull %6)
  store <2 x float> zeroinitializer, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %7, i64 8
  store float 0.000000e+00, ptr %36, align 8, !tbaa !5
  call void @glm_quat_rotate_atm(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %7)
  call void @glm_mat4_mulv(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %3)
  %37 = load float, ptr %3, align 16, !tbaa !5
  %38 = call zeroext i1 @test_eq(float noundef %37, float noundef 0.000000e+00)
  br i1 %38, label %42, label %39

39:                                               ; preds = %34
  %40 = load ptr, ptr @stderr, align 8, !tbaa !9
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str, ptr noundef nonnull @.str.787, i32 noundef 1069, ptr noundef nonnull @.str.27) #7
  br label %74

42:                                               ; preds = %34
  %43 = load float, ptr %21, align 4, !tbaa !5
  %44 = call zeroext i1 @test_eq(float noundef %43, float noundef 5.000000e-01)
  br i1 %44, label %48, label %45

45:                                               ; preds = %42
  %46 = load ptr, ptr @stderr, align 8, !tbaa !9
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str, ptr noundef nonnull @.str.787, i32 noundef 1070, ptr noundef nonnull @.str.873) #7
  br label %74

48:                                               ; preds = %42
  %49 = load float, ptr %28, align 8, !tbaa !5
  %50 = call zeroext i1 @test_eq(float noundef %49, float noundef -5.000000e-01)
  br i1 %50, label %54, label %51

51:                                               ; preds = %48
  %52 = load ptr, ptr @stderr, align 8, !tbaa !9
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str, ptr noundef nonnull @.str.787, i32 noundef 1071, ptr noundef nonnull @.str.872) #7
  br label %74

54:                                               ; preds = %48
  store <2 x float> <float 1.000000e+00, float 1.000000e+00>, ptr %3, align 16, !tbaa !5
  store float 1.000000e+00, ptr %28, align 8, !tbaa !5
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %8, i64 8
  store float 0.000000e+00, ptr %55, align 8, !tbaa !5
  call void @glm_quatv(ptr noundef nonnull %2, float noundef 0x3FF921FB60000000, ptr noundef nonnull %8)
  store <2 x float> zeroinitializer, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %9, i64 8
  store float 0.000000e+00, ptr %56, align 8, !tbaa !5
  call void @glm_quat_rotate_atm(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %9)
  call void @glm_mat4_mulv(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %3)
  %57 = load float, ptr %3, align 16, !tbaa !5
  %58 = call zeroext i1 @test_eq(float noundef %57, float noundef 1.000000e+00)
  br i1 %58, label %62, label %59

59:                                               ; preds = %54
  %60 = load ptr, ptr @stderr, align 8, !tbaa !9
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str, ptr noundef nonnull @.str.787, i32 noundef 1081, ptr noundef nonnull @.str.66) #7
  br label %74

62:                                               ; preds = %54
  %63 = load float, ptr %21, align 4, !tbaa !5
  %64 = call zeroext i1 @test_eq(float noundef %63, float noundef -1.000000e+00)
  br i1 %64, label %68, label %65

65:                                               ; preds = %62
  %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.787, i32 noundef 1082, ptr noundef nonnull @.str.65) #7
  br label %74

68:                                               ; preds = %62
  %69 = load float, ptr %28, align 8, !tbaa !5
  %70 = call zeroext i1 @test_eq(float noundef %69, float noundef 1.000000e+00)
  br i1 %70, label %74, label %71

71:                                               ; preds = %68
  %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.787, i32 noundef 1083, ptr noundef nonnull @.str.870) #7
  br label %74

74:                                               ; preds = %68, %71, %65, %59, %51, %45, %39, %31, %24, %17
  %.sroa.11.0 = phi i32 [ 0, %71 ], [ 0, %65 ], [ 0, %59 ], [ 0, %51 ], [ 0, %45 ], [ 0, %39 ], [ 0, %31 ], [ 0, %24 ], [ 0, %17 ], [ 1, %68 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #6
  %.fca.1.insert = insertvalue { ptr, i32 } { ptr null, i32 poison }, i32 %.sroa.11.0, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

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 nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { cold nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass