; 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
@__const.test_glm_quat_rotate_at.v1 = external hidden unnamed_addr constant [4 x float], align 16
@.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

; 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_identity(ptr noundef) #2

; 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_at() #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_at.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_at(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 1021, 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 %171

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 1022, 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 %171

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 1023, 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 %171

65:                                               ; preds = %56
  br label %66

66:                                               ; preds = %65
  br label %67

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

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

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

90:                                               ; preds = %81
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91
  br label %93

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

97:                                               ; preds = %93
  %98 = load ptr, ptr @stderr, align 8, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 1032, ptr noundef @.str.873) #6
  %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 %7, align 4
  br label %171

102:                                              ; preds = %93
  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 %4, i64 0, i64 2
  %107 = load float, ptr %106, align 8, !tbaa !5
  %108 = call zeroext i1 @test_eq(float noundef %107, float noundef -5.000000e-01)
  br i1 %108, label %114, label %109

109:                                              ; preds = %105
  %110 = load ptr, ptr @stderr, align 8, !tbaa !9
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 1033, ptr noundef @.str.872) #6
  %112 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %112, align 8, !tbaa !11
  %113 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %113, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %171

114:                                              ; preds = %105
  br label %115

115:                                              ; preds = %114
  br label %116

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

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

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

142:                                              ; preds = %133
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143
  br label %145

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

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

154:                                              ; preds = %145
  br label %155

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155
  br label %157

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

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

166:                                              ; preds = %157
  br label %167

167:                                              ; preds = %166
  br label %168

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

171:                                              ; preds = %168, %161, %149, %137, %109, %97, %85, %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
  %172 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %172
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_quat_rotate_at(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
@__const.test_glm_quat_rotate_at.v1 = external hidden unnamed_addr constant [4 x float], align 16
@.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

; 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_identity(ptr noundef) local_unnamed_addr #2

; 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_at() 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_at.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_at(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 1021, 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 1022, 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 1023, ptr noundef nonnull @.str.872) #7
  br label %74

34:                                               ; preds = %27
  call void @glm_mat4_identity(ptr noundef nonnull %1)
  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_at(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 1031, 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 1032, 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 1033, ptr noundef nonnull @.str.872) #7
  br label %74

54:                                               ; preds = %48
  call void @glm_mat4_identity(ptr noundef nonnull %1)
  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_at(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 1045, 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 1046, 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 1047, 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_at(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