; 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.v1 = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_rotate2d.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() #5 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [3 x [3 x float]], align 16
  %3 = alloca [3 x float], align 4
  %4 = alloca [3 x float], align 4
  %5 = 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)
  %6 = getelementptr inbounds [3 x [3 x float]], ptr %2, i32 0, i32 0
  %7 = getelementptr inbounds [3 x float], ptr %6, i32 0, i32 0
  store float 1.000000e+00, ptr %7, align 16
  %8 = getelementptr inbounds [3 x [3 x float]], ptr %2, i32 0, i32 1
  %9 = getelementptr inbounds [3 x float], ptr %8, i32 0, i32 1
  store float 1.000000e+00, ptr %9, align 4
  %10 = getelementptr inbounds [3 x [3 x float]], ptr %2, i32 0, i32 2
  %11 = getelementptr inbounds [3 x float], ptr %10, i32 0, i32 2
  store float 1.000000e+00, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.test_glm_rotate2d.v1, i64 12, i1 false)
  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.v2, i64 12, i1 false)
  %12 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  call void @glm_rotate2d(ptr noundef %12, float noundef 0x3FF921FB60000000)
  %13 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  %14 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %15 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  call void @glm_mat3_mulv(ptr noundef %13, ptr noundef %14, ptr noundef %15)
  br label %16

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

20:                                               ; preds = %16
  %21 = load ptr, ptr @stderr, align 8, !tbaa !9
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 255, ptr noundef @.str.64) #6
  %23 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %23, align 8, !tbaa !11
  %24 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %24, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %138

25:                                               ; preds = %16
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26
  br label %28

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

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

37:                                               ; preds = %28
  br label %38

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38
  br label %40

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

44:                                               ; preds = %40
  %45 = load ptr, ptr @stderr, align 8, !tbaa !9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 257, ptr noundef @.str.870) #6
  %47 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %47, align 8, !tbaa !11
  %48 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %48, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %138

49:                                               ; preds = %40
  br label %50

50:                                               ; preds = %49
  br label %51

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

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

62:                                               ; preds = %58
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 264, ptr noundef @.str.27) #6
  %65 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %65, align 8, !tbaa !11
  %66 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %66, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %138

67:                                               ; preds = %58
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  br label %70

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

74:                                               ; preds = %70
  %75 = load ptr, ptr @stderr, align 8, !tbaa !9
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 265, ptr noundef @.str.65) #6
  %77 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %77, align 8, !tbaa !11
  %78 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %78, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %138

79:                                               ; preds = %70
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  br label %82

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

86:                                               ; preds = %82
  %87 = load ptr, ptr @stderr, align 8, !tbaa !9
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 266, ptr noundef @.str.870) #6
  %89 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %89, align 8, !tbaa !11
  %90 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %90, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %138

91:                                               ; preds = %82
  br label %92

92:                                               ; preds = %91
  br label %93

93:                                               ; preds = %92
  %94 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %95 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  call void @glm_vec3_copy(ptr noundef %94, ptr noundef %95)
  %96 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  call void @glm_rotate2d(ptr noundef %96, float noundef 0x3FF921FB60000000)
  %97 = getelementptr inbounds [3 x [3 x float]], ptr %2, i64 0, i64 0
  %98 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %99 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  call void @glm_mat3_mulv(ptr noundef %97, ptr noundef %98, ptr noundef %99)
  br label %100

100:                                              ; preds = %93
  %101 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %102 = load float, ptr %101, align 4, !tbaa !5
  %103 = call zeroext i1 @test_eq(float noundef %102, float noundef 1.000000e+00)
  br i1 %103, label %109, label %104

104:                                              ; preds = %100
  %105 = load ptr, ptr @stderr, align 8, !tbaa !9
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 273, ptr noundef @.str.66) #6
  %107 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %107, align 8, !tbaa !11
  %108 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %108, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %138

109:                                              ; preds = %100
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  %113 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 1
  %114 = load float, ptr %113, align 4, !tbaa !5
  %115 = call zeroext i1 @test_eq(float noundef %114, float noundef 0.000000e+00)
  br i1 %115, label %121, label %116

116:                                              ; preds = %112
  %117 = load ptr, ptr @stderr, align 8, !tbaa !9
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 274, ptr noundef @.str.28) #6
  %119 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %119, align 8, !tbaa !11
  %120 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %120, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %138

121:                                              ; preds = %112
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  %125 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 2
  %126 = load float, ptr %125, align 4, !tbaa !5
  %127 = call zeroext i1 @test_eq(float noundef %126, float noundef 1.000000e+00)
  br i1 %127, label %133, label %128

128:                                              ; preds = %124
  %129 = load ptr, ptr @stderr, align 8, !tbaa !9
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef @.str, ptr noundef @.str.936, i32 noundef 275, ptr noundef @.str.870) #6
  %131 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %131, align 8, !tbaa !11
  %132 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %132, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %138

133:                                              ; preds = %124
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  %136 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %136, align 8, !tbaa !11
  %137 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %137, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %138

138:                                              ; preds = %135, %128, %116, %104, %86, %74, %62, %44, %32, %20
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %2) #6
  %139 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %139
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_rotate2d(ptr noundef, float 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.v1 = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_rotate2d.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() local_unnamed_addr #5 {
  %1 = alloca [3 x [3 x float]], align 16
  %2 = alloca [3 x float], align 4
  %3 = 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
  %4 = getelementptr inbounds i8, ptr %1, i64 16
  store float 1.000000e+00, ptr %4, align 16
  %5 = getelementptr inbounds i8, ptr %1, i64 32
  store float 1.000000e+00, ptr %5, align 16
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_rotate2d.v1, i64 12, i1 false)
  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.v2, i64 12, i1 false)
  call void @glm_rotate2d(ptr noundef nonnull %1, float noundef 0x3FF921FB60000000)
  call void @glm_mat3_mulv(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %6 = load float, ptr %2, align 4, !tbaa !5
  %7 = call zeroext i1 @test_eq(float noundef %6, float noundef -1.000000e+00)
  br i1 %7, label %11, label %8

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

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

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

18:                                               ; preds = %11
  %19 = getelementptr inbounds i8, ptr %2, i64 8
  %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 %25, 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 nonnull @.str, ptr noundef nonnull @.str.936, i32 noundef 257, ptr noundef nonnull @.str.870) #7
  br label %61

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

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

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

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

37:                                               ; preds = %31
  %38 = load float, ptr %19, align 4, !tbaa !5
  %39 = call zeroext i1 @test_eq(float noundef %38, float noundef 1.000000e+00)
  br i1 %39, label %43, label %40

40:                                               ; preds = %37
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str, ptr noundef nonnull @.str.936, i32 noundef 266, ptr noundef nonnull @.str.870) #7
  br label %61

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

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

49:                                               ; preds = %43
  %50 = load float, ptr %12, align 4, !tbaa !5
  %51 = call zeroext i1 @test_eq(float noundef %50, float noundef 0.000000e+00)
  br i1 %51, label %55, label %52

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

55:                                               ; preds = %49
  %56 = load float, ptr %19, align 4, !tbaa !5
  %57 = call zeroext i1 @test_eq(float noundef %56, float noundef 1.000000e+00)
  br i1 %57, label %61, label %58

58:                                               ; preds = %55
  %59 = load ptr, ptr @stderr, align 8, !tbaa !9
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str, ptr noundef nonnull @.str.936, i32 noundef 275, ptr noundef nonnull @.str.870) #7
  br label %61

61:                                               ; preds = %55, %58, %52, %46, %40, %34, %28, %22, %15, %8
  %.sroa.11.0 = phi i32 [ 0, %58 ], [ 0, %52 ], [ 0, %46 ], [ 0, %40 ], [ 0, %34 ], [ 0, %28 ], [ 0, %22 ], [ 0, %15 ], [ 0, %8 ], [ 1, %55 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 12, 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(ptr noundef, float 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