; 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.64 = external hidden unnamed_addr constant [22 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.870 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.936 = external hidden unnamed_addr constant [68 x i8], align 1
@__const.test_glm_rotate2d_to.v1 = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_rotate2d_to.v2 = external hidden unnamed_addr constant [3 x float], align 4

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_rotate2d_to() #5 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [3 x [3 x float]], align 16
  %3 = alloca [3 x [3 x float]], align 16
  %4 = alloca [3 x float], align 4
  %5 = alloca [3 x float], align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 36, ptr %2) #6
  call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 36, i1 false)
  %7 = getelementptr inbounds [3 x [3 x float]], ptr %2, i32 0, i32 0
  %8 = getelementptr inbounds [3 x float], ptr %7, i32 0, i32 0
  store float 1.000000e+00, ptr %8, align 16
  %9 = getelementptr inbounds [3 x [3 x float]], ptr %2, i32 0, i32 1
  %10 = getelementptr inbounds [3 x float], ptr %9, i32 0, i32 1
  store float 1.000000e+00, ptr %10, align 4
  %11 = getelementptr inbounds [3 x [3 x float]], ptr %2, i32 0, i32 2
  %12 = getelementptr inbounds [3 x float], ptr %11, i32 0, i32 2
  store float 1.000000e+00, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 36, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 @__const.test_glm_rotate2d_to.v1, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 @__const.test_glm_rotate2d_to.v2, i64 12, i1 false)
  %13 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  %14 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  call void @glm_rotate2d_to(ptr noundef %13, float noundef 0x3FF921FB60000000, ptr noundef %14)
  %15 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  %16 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %17 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  call void @glm_mat3_mulv(ptr noundef %15, ptr noundef %16, ptr noundef %17)
  br label %18

18:                                               ; preds = %0
  %19 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %20 = load float, ptr %19, align 4, !tbaa !5
  %21 = call zeroext i1 @test_eq(float noundef %20, float noundef -1.000000e+00)
  br i1 %21, label %27, label %22

22:                                               ; preds = %18
  %23 = load ptr, ptr @stderr, align 8, !tbaa !9
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 287, ptr noundef @.str.64) #6
  %25 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %25, align 8, !tbaa !11
  %26 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %26, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %142

27:                                               ; preds = %18
  br label %28

28:                                               ; preds = %27
  br label %29

29:                                               ; preds = %28
  br label %30

30:                                               ; preds = %29
  %31 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 1
  %32 = load float, ptr %31, align 4, !tbaa !5
  %33 = call zeroext i1 @test_eq(float noundef %32, float noundef 0.000000e+00)
  br i1 %33, label %39, label %34

34:                                               ; preds = %30
  %35 = load ptr, ptr @stderr, align 8, !tbaa !9
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 288, ptr noundef @.str.28) #6
  %37 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %37, align 8, !tbaa !11
  %38 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %38, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %142

39:                                               ; preds = %30
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  %43 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 2
  %44 = load float, ptr %43, align 4, !tbaa !5
  %45 = call zeroext i1 @test_eq(float noundef %44, float noundef 1.000000e+00)
  br i1 %45, label %51, label %46

46:                                               ; preds = %42
  %47 = load ptr, ptr @stderr, align 8, !tbaa !9
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 289, ptr noundef @.str.870) #6
  %49 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %49, align 8, !tbaa !11
  %50 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %50, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %142

51:                                               ; preds = %42
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  %54 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %55 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  call void @glm_vec3_copy(ptr noundef %54, ptr noundef %55)
  %56 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  %57 = getelementptr inbounds [3 x [3 x float]], ptr %3, i64 0, i64 0
  call void @glm_rotate2d_to(ptr noundef %56, float noundef 0x3FF921FB60000000, ptr noundef %57)
  %58 = getelementptr inbounds [3 x [3 x float]], ptr %3, i64 0, i64 0
  %59 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %60 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  call void @glm_mat3_mulv(ptr noundef %58, ptr noundef %59, ptr noundef %60)
  br label %61

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

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

70:                                               ; preds = %61
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  br label %73

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

77:                                               ; preds = %73
  %78 = load ptr, ptr @stderr, align 8, !tbaa !9
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 297, ptr noundef @.str.65) #6
  %80 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %80, align 8, !tbaa !11
  %81 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %81, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %142

82:                                               ; preds = %73
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  %86 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 2
  %87 = load float, ptr %86, align 4, !tbaa !5
  %88 = call zeroext i1 @test_eq(float noundef %87, float noundef 1.000000e+00)
  br i1 %88, label %94, label %89

89:                                               ; preds = %85
  %90 = load ptr, ptr @stderr, align 8, !tbaa !9
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 298, ptr noundef @.str.870) #6
  %92 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %92, align 8, !tbaa !11
  %93 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %93, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %142

94:                                               ; preds = %85
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  %97 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %98 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  call void @glm_vec3_copy(ptr noundef %97, ptr noundef %98)
  %99 = getelementptr inbounds [3 x [3 x float]], ptr %3, i64 0, i64 0
  %100 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  call void @glm_rotate2d_to(ptr noundef %99, float noundef 0x3FF921FB60000000, ptr noundef %100)
  %101 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  %102 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %103 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  call void @glm_mat3_mulv(ptr noundef %101, ptr noundef %102, ptr noundef %103)
  br label %104

104:                                              ; preds = %96
  %105 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %106 = load float, ptr %105, align 4, !tbaa !5
  %107 = call zeroext i1 @test_eq(float noundef %106, float noundef 1.000000e+00)
  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.936, i32 noundef 305, ptr noundef @.str.66) #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 %6, align 4
  br label %142

113:                                              ; preds = %104
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115
  %117 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 1
  %118 = load float, ptr %117, align 4, !tbaa !5
  %119 = call zeroext i1 @test_eq(float noundef %118, float noundef 0.000000e+00)
  br i1 %119, label %125, label %120

120:                                              ; preds = %116
  %121 = load ptr, ptr @stderr, align 8, !tbaa !9
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 306, ptr noundef @.str.28) #6
  %123 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %123, align 8, !tbaa !11
  %124 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %124, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %142

125:                                              ; preds = %116
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  br label %128

128:                                              ; preds = %127
  %129 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 2
  %130 = load float, ptr %129, align 4, !tbaa !5
  %131 = call zeroext i1 @test_eq(float noundef %130, float noundef 1.000000e+00)
  br i1 %131, label %137, label %132

132:                                              ; preds = %128
  %133 = load ptr, ptr @stderr, align 8, !tbaa !9
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 307, ptr noundef @.str.870) #6
  %135 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %135, align 8, !tbaa !11
  %136 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %136, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %142

137:                                              ; preds = %128
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  %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 1, ptr %141, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %142

142:                                              ; preds = %139, %132, %120, %108, %89, %77, %65, %46, %34, %22
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %2) #6
  %143 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %143
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_rotate2d_to(ptr noundef, float 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.64 = external hidden unnamed_addr constant [22 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.870 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.936 = external hidden unnamed_addr constant [68 x i8], align 1
@__const.test_glm_rotate2d_to.v1 = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_rotate2d_to.v2 = external hidden unnamed_addr constant [3 x float], align 4

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_rotate2d_to() local_unnamed_addr #5 {
  %1 = alloca [3 x [3 x float]], align 16
  %2 = alloca [3 x [3 x float]], align 16
  %3 = alloca [3 x float], align 4
  %4 = alloca [3 x float], align 4
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %1) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) %1, i8 0, i64 32, i1 false)
  store float 1.000000e+00, ptr %1, align 16
  %5 = getelementptr inbounds i8, ptr %1, i64 16
  store float 1.000000e+00, ptr %5, align 16
  %6 = getelementptr inbounds i8, ptr %1, i64 32
  store float 1.000000e+00, ptr %6, align 16
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_rotate2d_to.v1, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_rotate2d_to.v2, i64 12, i1 false)
  call void @glm_rotate2d_to(ptr noundef nonnull %1, float noundef 0x3FF921FB60000000, ptr noundef nonnull %1)
  call void @glm_mat3_mulv(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %3)
  %7 = load float, ptr %3, align 4, !tbaa !5
  %8 = call zeroext i1 @test_eq(float noundef %7, float noundef -1.000000e+00)
  br i1 %8, label %12, label %9

9:                                                ; preds = %0
  %10 = load ptr, ptr @stderr, align 8, !tbaa !9
  %11 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str, ptr noundef nonnull @.str.936, i32 noundef 287, ptr noundef nonnull @.str.64) #7
  br label %62

12:                                               ; preds = %0
  %13 = getelementptr inbounds i8, ptr %3, i64 4
  %14 = load float, ptr %13, align 4, !tbaa !5
  %15 = call zeroext i1 @test_eq(float noundef %14, float noundef 0.000000e+00)
  br i1 %15, label %19, label %16

16:                                               ; preds = %12
  %17 = load ptr, ptr @stderr, align 8, !tbaa !9
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str, ptr noundef nonnull @.str.936, i32 noundef 288, ptr noundef nonnull @.str.28) #7
  br label %62

19:                                               ; preds = %12
  %20 = getelementptr inbounds i8, ptr %3, i64 8
  %21 = load float, ptr %20, align 4, !tbaa !5
  %22 = call zeroext i1 @test_eq(float noundef %21, float noundef 1.000000e+00)
  br i1 %22, label %26, label %23

23:                                               ; preds = %19
  %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.936, i32 noundef 289, ptr noundef nonnull @.str.870) #7
  br label %62

26:                                               ; preds = %19
  call void @glm_vec3_copy(ptr noundef nonnull %4, ptr noundef nonnull %3)
  call void @glm_rotate2d_to(ptr noundef nonnull %1, float noundef 0x3FF921FB60000000, ptr noundef nonnull %2)
  call void @glm_mat3_mulv(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %3)
  %27 = load float, ptr %3, align 4, !tbaa !5
  %28 = call zeroext i1 @test_eq(float noundef %27, float noundef 0.000000e+00)
  br i1 %28, label %32, label %29

29:                                               ; preds = %26
  %30 = load ptr, ptr @stderr, align 8, !tbaa !9
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str, ptr noundef nonnull @.str.936, i32 noundef 296, ptr noundef nonnull @.str.27) #7
  br label %62

32:                                               ; preds = %26
  %33 = load float, ptr %13, align 4, !tbaa !5
  %34 = call zeroext i1 @test_eq(float noundef %33, float noundef -1.000000e+00)
  br i1 %34, label %38, label %35

35:                                               ; preds = %32
  %36 = load ptr, ptr @stderr, align 8, !tbaa !9
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str, ptr noundef nonnull @.str.936, i32 noundef 297, ptr noundef nonnull @.str.65) #7
  br label %62

38:                                               ; preds = %32
  %39 = load float, ptr %20, align 4, !tbaa !5
  %40 = call zeroext i1 @test_eq(float noundef %39, float noundef 1.000000e+00)
  br i1 %40, label %44, label %41

41:                                               ; preds = %38
  %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.936, i32 noundef 298, ptr noundef nonnull @.str.870) #7
  br label %62

44:                                               ; preds = %38
  call void @glm_vec3_copy(ptr noundef nonnull %4, ptr noundef nonnull %3)
  call void @glm_rotate2d_to(ptr noundef nonnull %2, float noundef 0x3FF921FB60000000, ptr noundef nonnull %1)
  call void @glm_mat3_mulv(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %3)
  %45 = load float, ptr %3, align 4, !tbaa !5
  %46 = call zeroext i1 @test_eq(float noundef %45, float noundef 1.000000e+00)
  br i1 %46, label %50, label %47

47:                                               ; preds = %44
  %48 = load ptr, ptr @stderr, align 8, !tbaa !9
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str, ptr noundef nonnull @.str.936, i32 noundef 305, ptr noundef nonnull @.str.66) #7
  br label %62

50:                                               ; preds = %44
  %51 = load float, ptr %13, align 4, !tbaa !5
  %52 = call zeroext i1 @test_eq(float noundef %51, float noundef 0.000000e+00)
  br i1 %52, label %56, label %53

53:                                               ; preds = %50
  %54 = load ptr, ptr @stderr, align 8, !tbaa !9
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str, ptr noundef nonnull @.str.936, i32 noundef 306, ptr noundef nonnull @.str.28) #7
  br label %62

56:                                               ; preds = %50
  %57 = load float, ptr %20, align 4, !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 = %56
  %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.936, i32 noundef 307, ptr noundef nonnull @.str.870) #7
  br label %62

62:                                               ; preds = %56, %59, %53, %47, %41, %35, %29, %23, %16, %9
  %.sroa.11.0 = phi i32 [ 0, %59 ], [ 0, %53 ], [ 0, %47 ], [ 0, %41 ], [ 0, %35 ], [ 0, %29 ], [ 0, %23 ], [ 0, %16 ], [ 0, %9 ], [ 1, %56 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 36, 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_rotate2d_to(ptr noundef, float 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: DSEPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass