; 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.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.787 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.869 = external hidden unnamed_addr constant [28 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_rad(float noundef) #3

declare { ptr, i32 } @test_assert_quat_eq(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_quat_forp() #5 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x float], align 16
  %3 = alloca [4 x float], align 16
  %4 = alloca [3 x float], align 4
  %5 = alloca [3 x float], align 4
  %6 = alloca [3 x float], align 4
  %7 = alloca %struct.test_status_t, align 8
  %8 = alloca %struct.test_status_t, align 8
  %9 = alloca i32, align 4
  %10 = alloca [3 x float], align 4
  %11 = alloca [3 x float], align 4
  %12 = alloca [3 x float], align 4
  %13 = alloca %struct.test_status_t, align 8
  %14 = alloca %struct.test_status_t, align 8
  %15 = alloca [3 x float], align 4
  %16 = alloca [3 x float], align 4
  %17 = alloca [3 x float], align 4
  %18 = alloca %struct.test_status_t, align 8
  %19 = alloca %struct.test_status_t, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  %20 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %21 = call float @glm_rad(float noundef 9.000000e+01)
  call void @glm_quat(ptr noundef %20, float noundef %21, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  store float 2.000000e+00, ptr %4, align 4, !tbaa !5
  %22 = getelementptr inbounds float, ptr %4, i64 1
  store float 0.000000e+00, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds float, ptr %4, i64 2
  store float 0.000000e+00, ptr %23, align 4, !tbaa !5
  %24 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  store float 1.000000e+00, ptr %5, align 4, !tbaa !5
  %25 = getelementptr inbounds float, ptr %5, i64 1
  store float 0.000000e+00, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds float, ptr %5, i64 2
  store float 0.000000e+00, ptr %26, align 4, !tbaa !5
  %27 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  store float 0.000000e+00, ptr %6, align 4, !tbaa !5
  %28 = getelementptr inbounds float, ptr %6, i64 1
  store float 1.000000e+00, ptr %28, align 4, !tbaa !5
  %29 = getelementptr inbounds float, ptr %6, i64 2
  store float 0.000000e+00, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds [3 x float], ptr %6, i64 0, i64 0
  %31 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  call void @glm_quat_forp(ptr noundef %24, ptr noundef %27, ptr noundef %30, ptr noundef %31)
  br label %32

32:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %33 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %34 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %35 = call { ptr, i32 } @test_assert_quat_eq(ptr noundef %33, ptr noundef %34)
  %36 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %37 = extractvalue { ptr, i32 } %35, 0
  store ptr %37, ptr %36, align 8
  %38 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %39 = extractvalue { ptr, i32 } %35, 1
  store i32 %39, ptr %38, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  %40 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !14
  %42 = icmp ne i32 %41, 1
  br i1 %42, label %43, label %50

43:                                               ; preds = %32
  %44 = load ptr, ptr @stderr, align 8, !tbaa !10
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 875, ptr noundef @.str.869) #6
  %46 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %47 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !16
  store ptr %48, ptr %46, align 8, !tbaa !16
  %49 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %49, align 8, !tbaa !14
  store i32 1, ptr %9, align 4
  br label %51

50:                                               ; preds = %32
  store i32 0, ptr %9, align 4
  br label %51

51:                                               ; preds = %50, %43
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  %52 = load i32, ptr %9, align 4
  switch i32 %52, label %130 [
    i32 0, label %53
  ]

53:                                               ; preds = %51
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  %56 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %57 = call float @glm_rad(float noundef 9.000000e+01)
  call void @glm_quat(ptr noundef %56, float noundef %57, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  store float 0.000000e+00, ptr %10, align 4, !tbaa !5
  %58 = getelementptr inbounds float, ptr %10, i64 1
  store float 1.000000e+00, ptr %58, align 4, !tbaa !5
  %59 = getelementptr inbounds float, ptr %10, i64 2
  store float 0.000000e+00, ptr %59, align 4, !tbaa !5
  %60 = getelementptr inbounds [3 x float], ptr %10, i64 0, i64 0
  store float 0.000000e+00, ptr %11, align 4, !tbaa !5
  %61 = getelementptr inbounds float, ptr %11, i64 1
  store float 2.000000e+00, ptr %61, align 4, !tbaa !5
  %62 = getelementptr inbounds float, ptr %11, i64 2
  store float 0.000000e+00, ptr %62, align 4, !tbaa !5
  %63 = getelementptr inbounds [3 x float], ptr %11, i64 0, i64 0
  store float 0.000000e+00, ptr %12, align 4, !tbaa !5
  %64 = getelementptr inbounds float, ptr %12, i64 1
  store float 0.000000e+00, ptr %64, align 4, !tbaa !5
  %65 = getelementptr inbounds float, ptr %12, i64 2
  store float 1.000000e+00, ptr %65, align 4, !tbaa !5
  %66 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 0
  %67 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  call void @glm_quat_forp(ptr noundef %60, ptr noundef %63, ptr noundef %66, ptr noundef %67)
  br label %68

68:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %69 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %70 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %71 = call { ptr, i32 } @test_assert_quat_eq(ptr noundef %69, ptr noundef %70)
  %72 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %73 = extractvalue { ptr, i32 } %71, 0
  store ptr %73, ptr %72, align 8
  %74 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %75 = extractvalue { ptr, i32 } %71, 1
  store i32 %75, ptr %74, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  %76 = getelementptr inbounds %struct.test_status_t, ptr %13, i32 0, i32 1
  %77 = load i32, ptr %76, align 8, !tbaa !14
  %78 = icmp ne i32 %77, 1
  br i1 %78, label %79, label %86

79:                                               ; preds = %68
  %80 = load ptr, ptr @stderr, align 8, !tbaa !10
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 882, ptr noundef @.str.869) #6
  %82 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %83 = getelementptr inbounds %struct.test_status_t, ptr %13, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !16
  store ptr %84, ptr %82, align 8, !tbaa !16
  %85 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %85, align 8, !tbaa !14
  store i32 1, ptr %9, align 4
  br label %87

86:                                               ; preds = %68
  store i32 0, ptr %9, align 4
  br label %87

87:                                               ; preds = %86, %79
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  %88 = load i32, ptr %9, align 4
  switch i32 %88, label %130 [
    i32 0, label %89
  ]

89:                                               ; preds = %87
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  %92 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %93 = call float @glm_rad(float noundef 1.800000e+02)
  call void @glm_quat(ptr noundef %92, float noundef %93, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  store float 0.000000e+00, ptr %15, align 4, !tbaa !5
  %94 = getelementptr inbounds float, ptr %15, i64 1
  store float 1.000000e+00, ptr %94, align 4, !tbaa !5
  %95 = getelementptr inbounds float, ptr %15, i64 2
  store float 1.000000e+00, ptr %95, align 4, !tbaa !5
  %96 = getelementptr inbounds [3 x float], ptr %15, i64 0, i64 0
  store float 0.000000e+00, ptr %16, align 4, !tbaa !5
  %97 = getelementptr inbounds float, ptr %16, i64 1
  store float 1.000000e+00, ptr %97, align 4, !tbaa !5
  %98 = getelementptr inbounds float, ptr %16, i64 2
  store float 2.000000e+00, ptr %98, align 4, !tbaa !5
  %99 = getelementptr inbounds [3 x float], ptr %16, i64 0, i64 0
  store float 0.000000e+00, ptr %17, align 4, !tbaa !5
  %100 = getelementptr inbounds float, ptr %17, i64 1
  store float -1.000000e+00, ptr %100, align 4, !tbaa !5
  %101 = getelementptr inbounds float, ptr %17, i64 2
  store float 0.000000e+00, ptr %101, align 4, !tbaa !5
  %102 = getelementptr inbounds [3 x float], ptr %17, i64 0, i64 0
  %103 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  call void @glm_quat_forp(ptr noundef %96, ptr noundef %99, ptr noundef %102, ptr noundef %103)
  br label %104

104:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %105 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %106 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %107 = call { ptr, i32 } @test_assert_quat_eq(ptr noundef %105, ptr noundef %106)
  %108 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 0
  %109 = extractvalue { ptr, i32 } %107, 0
  store ptr %109, ptr %108, align 8
  %110 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 1
  %111 = extractvalue { ptr, i32 } %107, 1
  store i32 %111, ptr %110, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  %112 = getelementptr inbounds %struct.test_status_t, ptr %18, i32 0, i32 1
  %113 = load i32, ptr %112, align 8, !tbaa !14
  %114 = icmp ne i32 %113, 1
  br i1 %114, label %115, label %122

115:                                              ; preds = %104
  %116 = load ptr, ptr @stderr, align 8, !tbaa !10
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 889, ptr noundef @.str.869) #6
  %118 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %119 = getelementptr inbounds %struct.test_status_t, ptr %18, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !16
  store ptr %120, ptr %118, align 8, !tbaa !16
  %121 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %121, align 8, !tbaa !14
  store i32 1, ptr %9, align 4
  br label %123

122:                                              ; preds = %104
  store i32 0, ptr %9, align 4
  br label %123

123:                                              ; preds = %122, %115
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  %124 = load i32, ptr %9, align 4
  switch i32 %124, label %130 [
    i32 0, label %125
  ]

125:                                              ; preds = %123
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  %128 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %128, align 8, !tbaa !16
  %129 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %129, align 8, !tbaa !14
  store i32 1, ptr %9, align 4
  br label %130

130:                                              ; preds = %127, %123, %87, %51
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #6
  %131 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %131
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { "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 #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 = !{i64 0, i64 8, !10, i64 8, i64 4, !12}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"test_status_t", !11, i64 0, !13, i64 8}
!16 = !{!15, !11, 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.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.787 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.869 = external hidden unnamed_addr constant [28 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_rad(float noundef) local_unnamed_addr #2

declare { ptr, i32 } @test_assert_quat_eq(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_quat_forp() local_unnamed_addr #4 {
  %1 = alloca [4 x float], align 16
  %2 = alloca [4 x float], align 16
  %3 = alloca [3 x float], align 8
  %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
  %10 = alloca [3 x float], align 8
  %11 = alloca [3 x float], align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  %12 = tail call float @glm_rad(float noundef 9.000000e+01)
  call void @glm_quat(ptr noundef nonnull %1, float noundef %12, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  store <2 x float> <float 2.000000e+00, float 0.000000e+00>, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %3, i64 8
  store float 0.000000e+00, ptr %13, align 8, !tbaa !5
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %4, i64 8
  store float 0.000000e+00, ptr %14, align 8, !tbaa !5
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %5, i64 8
  store float 0.000000e+00, ptr %15, align 8, !tbaa !5
  call void @glm_quat_forp(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2)
  %16 = call { ptr, i32 } @test_assert_quat_eq(ptr noundef nonnull %1, ptr noundef nonnull %2) #5
  %17 = extractvalue { ptr, i32 } %16, 1
  %.not = icmp eq i32 %17, 1
  br i1 %.not, label %.critedge, label %18

18:                                               ; preds = %0
  %19 = extractvalue { ptr, i32 } %16, 0
  %20 = load ptr, ptr @stderr, align 8, !tbaa !9
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 875, ptr noundef nonnull @.str.869) #6
  br label %44

.critedge:                                        ; preds = %0
  %22 = call float @glm_rad(float noundef 9.000000e+01)
  call void @glm_quat(ptr noundef nonnull %2, float noundef %22, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %6, i64 8
  store float 0.000000e+00, ptr %23, align 8, !tbaa !5
  store <2 x float> <float 0.000000e+00, float 2.000000e+00>, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %7, i64 8
  store float 0.000000e+00, ptr %24, align 8, !tbaa !5
  store <2 x float> zeroinitializer, ptr %8, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %8, i64 8
  store float 1.000000e+00, ptr %25, align 8, !tbaa !5
  call void @glm_quat_forp(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %1)
  %26 = call { ptr, i32 } @test_assert_quat_eq(ptr noundef nonnull %1, ptr noundef nonnull %2) #5
  %27 = extractvalue { ptr, i32 } %26, 1
  %.not21 = icmp eq i32 %27, 1
  br i1 %.not21, label %32, label %28

28:                                               ; preds = %.critedge
  %29 = extractvalue { ptr, i32 } %26, 0
  %30 = load ptr, ptr @stderr, align 8, !tbaa !9
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 882, ptr noundef nonnull @.str.869) #6
  br label %44

32:                                               ; preds = %.critedge
  %33 = call float @glm_rad(float noundef 1.800000e+02)
  call void @glm_quat(ptr noundef nonnull %2, float noundef %33, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %9, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %9, i64 8
  store float 1.000000e+00, ptr %34, align 8, !tbaa !5
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %10, i64 8
  store float 2.000000e+00, ptr %35, align 8, !tbaa !5
  store <2 x float> <float 0.000000e+00, float -1.000000e+00>, ptr %11, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %11, i64 8
  store float 0.000000e+00, ptr %36, align 8, !tbaa !5
  call void @glm_quat_forp(ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %1)
  %37 = call { ptr, i32 } @test_assert_quat_eq(ptr noundef nonnull %1, ptr noundef nonnull %2) #5
  %38 = extractvalue { ptr, i32 } %37, 1
  %.not22 = icmp eq i32 %38, 1
  br i1 %.not22, label %43, label %39

39:                                               ; preds = %32
  %40 = extractvalue { ptr, i32 } %37, 0
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 889, ptr noundef nonnull @.str.869) #6
  br label %43

43:                                               ; preds = %32, %39
  %spec.select = phi ptr [ %40, %39 ], [ null, %32 ]
  %spec.select23 = zext i1 %.not22 to i32
  br label %44

44:                                               ; preds = %28, %43, %18
  %.sroa.019.3 = phi ptr [ %29, %28 ], [ %19, %18 ], [ %spec.select, %43 ]
  %.sroa.520.3 = phi i32 [ 0, %28 ], [ 0, %18 ], [ %spec.select23, %43 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.019.3, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.520.3, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { 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 #5 = { nounwind }
attributes #6 = { 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,JumpThreadingPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass