; 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.870 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.871 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.872 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.873 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.895 = external hidden unnamed_addr constant [66 x i8], align 1
@__const.test_glm_rotate_atm.v1 = external hidden unnamed_addr constant [4 x float], align 16

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden zeroext i1 @test_eq(float noundef, float noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

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

33:                                               ; preds = %29
  %34 = load ptr, ptr @stderr, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 470, ptr noundef @.str.871) #6
  %36 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %36, align 8, !tbaa !11
  %37 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %37, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %162

38:                                               ; preds = %29
  br label %39

39:                                               ; preds = %38
  br label %40

40:                                               ; preds = %39
  br label %41

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

45:                                               ; preds = %41
  %46 = load ptr, ptr @stderr, align 8, !tbaa !9
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 471, ptr noundef @.str.28) #6
  %48 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %48, align 8, !tbaa !11
  %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 %6, align 4
  br label %162

50:                                               ; preds = %41
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  br label %53

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

57:                                               ; preds = %53
  %58 = load ptr, ptr @stderr, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 472, ptr noundef @.str.872) #6
  %60 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %60, align 8, !tbaa !11
  %61 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %61, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %162

62:                                               ; preds = %53
  br label %63

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63
  %65 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 0.000000e+00, ptr %7, align 4, !tbaa !5
  %66 = getelementptr inbounds float, ptr %7, i64 1
  store float 0.000000e+00, ptr %66, align 4, !tbaa !5
  %67 = getelementptr inbounds float, ptr %7, i64 2
  store float 0.000000e+00, ptr %67, align 4, !tbaa !5
  %68 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 0
  store float 0.000000e+00, ptr %8, align 4, !tbaa !5
  %69 = getelementptr inbounds float, ptr %8, i64 1
  store float 0.000000e+00, ptr %69, align 4, !tbaa !5
  %70 = getelementptr inbounds float, ptr %8, i64 2
  store float 1.000000e+00, ptr %70, align 4, !tbaa !5
  %71 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  call void @glm_rotate_atm(ptr noundef %65, ptr noundef %68, float noundef 0x3FF921FB60000000, ptr noundef %71)
  %72 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %73 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %74 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  call void @glm_mat4_mulv(ptr noundef %72, ptr noundef %73, ptr noundef %74)
  br label %75

75:                                               ; preds = %64
  %76 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %77 = load float, ptr %76, align 16, !tbaa !5
  %78 = call zeroext i1 @test_eq(float noundef %77, float noundef 0.000000e+00)
  br i1 %78, label %84, label %79

79:                                               ; preds = %75
  %80 = load ptr, ptr @stderr, align 8, !tbaa !9
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 477, ptr noundef @.str.27) #6
  %82 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %82, align 8, !tbaa !11
  %83 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %83, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %162

84:                                               ; preds = %75
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  %88 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 1
  %89 = load float, ptr %88, align 4, !tbaa !5
  %90 = call zeroext i1 @test_eq(float noundef %89, float noundef 5.000000e-01)
  br i1 %90, label %96, label %91

91:                                               ; preds = %87
  %92 = load ptr, ptr @stderr, align 8, !tbaa !9
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 478, ptr noundef @.str.873) #6
  %94 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %94, align 8, !tbaa !11
  %95 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %95, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %162

96:                                               ; preds = %87
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  %100 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 2
  %101 = load float, ptr %100, align 8, !tbaa !5
  %102 = call zeroext i1 @test_eq(float noundef %101, float noundef -5.000000e-01)
  br i1 %102, label %108, label %103

103:                                              ; preds = %99
  %104 = load ptr, ptr @stderr, align 8, !tbaa !9
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 479, ptr noundef @.str.872) #6
  %106 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %106, align 8, !tbaa !11
  %107 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %107, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %162

108:                                              ; preds = %99
  br label %109

109:                                              ; preds = %108
  br label %110

110:                                              ; preds = %109
  %111 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  store float 1.000000e+00, ptr %111, align 16, !tbaa !5
  %112 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 1
  store float 1.000000e+00, ptr %112, align 4, !tbaa !5
  %113 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 2
  store float 1.000000e+00, ptr %113, align 8, !tbaa !5
  %114 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 0.000000e+00, ptr %9, align 4, !tbaa !5
  %115 = getelementptr inbounds float, ptr %9, i64 1
  store float 0.000000e+00, ptr %115, align 4, !tbaa !5
  %116 = getelementptr inbounds float, ptr %9, i64 2
  store float 0.000000e+00, ptr %116, align 4, !tbaa !5
  %117 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  store float 1.000000e+00, ptr %10, align 4, !tbaa !5
  %118 = getelementptr inbounds float, ptr %10, i64 1
  store float 0.000000e+00, ptr %118, align 4, !tbaa !5
  %119 = getelementptr inbounds float, ptr %10, i64 2
  store float 0.000000e+00, ptr %119, align 4, !tbaa !5
  %120 = getelementptr inbounds [3 x float], ptr %10, i64 0, i64 0
  call void @glm_rotate_atm(ptr noundef %114, ptr noundef %117, float noundef 0x3FF921FB60000000, ptr noundef %120)
  %121 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %122 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %123 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  call void @glm_mat4_mulv(ptr noundef %121, ptr noundef %122, ptr noundef %123)
  br label %124

124:                                              ; preds = %110
  %125 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %126 = load float, ptr %125, align 16, !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.895, i32 noundef 488, ptr noundef @.str.66) #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 %6, align 4
  br label %162

133:                                              ; preds = %124
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135
  %137 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 1
  %138 = load float, ptr %137, align 4, !tbaa !5
  %139 = call zeroext i1 @test_eq(float noundef %138, float noundef -1.000000e+00)
  br i1 %139, label %145, label %140

140:                                              ; preds = %136
  %141 = load ptr, ptr @stderr, align 8, !tbaa !9
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 489, ptr noundef @.str.65) #6
  %143 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %143, align 8, !tbaa !11
  %144 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %144, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %162

145:                                              ; preds = %136
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  br label %148

148:                                              ; preds = %147
  %149 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 2
  %150 = load float, ptr %149, align 8, !tbaa !5
  %151 = call zeroext i1 @test_eq(float noundef %150, float noundef 1.000000e+00)
  br i1 %151, label %157, label %152

152:                                              ; preds = %148
  %153 = load ptr, ptr @stderr, align 8, !tbaa !9
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %153, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 490, ptr noundef @.str.870) #6
  %155 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %155, align 8, !tbaa !11
  %156 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %156, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %162

157:                                              ; preds = %148
  br label %158

158:                                              ; preds = %157
  br label %159

159:                                              ; preds = %158
  %160 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %160, align 8, !tbaa !11
  %161 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %161, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %162

162:                                              ; preds = %159, %152, %140, %128, %103, %91, %79, %57, %45, %33
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #6
  %163 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %163
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_rotate_atm(ptr noundef, 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.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.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
@.str.895 = external hidden unnamed_addr constant [66 x i8], align 1
@__const.test_glm_rotate_atm.v1 = external hidden unnamed_addr constant [4 x float], align 16

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden zeroext i1 @test_eq(float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

16:                                               ; preds = %0
  %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.895, i32 noundef 470, ptr noundef nonnull @.str.871) #7
  br label %73

19:                                               ; preds = %0
  %20 = getelementptr inbounds i8, ptr %2, i64 4
  %21 = load float, ptr %20, align 4, !tbaa !5
  %22 = call zeroext i1 @test_eq(float noundef %21, float noundef 0.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.895, i32 noundef 471, ptr noundef nonnull @.str.28) #7
  br label %73

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

30:                                               ; preds = %26
  %31 = load ptr, ptr @stderr, align 8, !tbaa !9
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 472, ptr noundef nonnull @.str.872) #7
  br label %73

33:                                               ; preds = %26
  store <2 x float> zeroinitializer, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %5, i64 8
  store float 0.000000e+00, ptr %34, align 8, !tbaa !5
  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_rotate_atm(ptr noundef nonnull %1, ptr noundef nonnull %5, float noundef 0x3FF921FB60000000, ptr noundef nonnull %6)
  call void @glm_mat4_mulv(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %36 = load float, ptr %2, align 16, !tbaa !5
  %37 = call zeroext i1 @test_eq(float noundef %36, float noundef 0.000000e+00)
  br i1 %37, label %41, label %38

38:                                               ; preds = %33
  %39 = load ptr, ptr @stderr, align 8, !tbaa !9
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 477, ptr noundef nonnull @.str.27) #7
  br label %73

41:                                               ; preds = %33
  %42 = load float, ptr %20, align 4, !tbaa !5
  %43 = call zeroext i1 @test_eq(float noundef %42, float noundef 5.000000e-01)
  br i1 %43, label %47, label %44

44:                                               ; preds = %41
  %45 = load ptr, ptr @stderr, align 8, !tbaa !9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 478, ptr noundef nonnull @.str.873) #7
  br label %73

47:                                               ; preds = %41
  %48 = load float, ptr %27, align 8, !tbaa !5
  %49 = call zeroext i1 @test_eq(float noundef %48, float noundef -5.000000e-01)
  br i1 %49, label %53, label %50

50:                                               ; preds = %47
  %51 = load ptr, ptr @stderr, align 8, !tbaa !9
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 479, ptr noundef nonnull @.str.872) #7
  br label %73

53:                                               ; preds = %47
  store <2 x float> <float 1.000000e+00, float 1.000000e+00>, ptr %2, align 16, !tbaa !5
  store float 1.000000e+00, ptr %27, align 8, !tbaa !5
  store <2 x float> zeroinitializer, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %7, i64 8
  store float 0.000000e+00, ptr %54, 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_rotate_atm(ptr noundef nonnull %1, ptr noundef nonnull %7, float noundef 0x3FF921FB60000000, ptr noundef nonnull %8)
  call void @glm_mat4_mulv(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %56 = load float, ptr %2, align 16, !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 = %53
  %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.895, i32 noundef 488, ptr noundef nonnull @.str.66) #7
  br label %73

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

64:                                               ; preds = %61
  %65 = load ptr, ptr @stderr, align 8, !tbaa !9
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 489, ptr noundef nonnull @.str.65) #7
  br label %73

67:                                               ; preds = %61
  %68 = load float, ptr %27, align 8, !tbaa !5
  %69 = call zeroext i1 @test_eq(float noundef %68, float noundef 1.000000e+00)
  br i1 %69, label %73, label %70

70:                                               ; preds = %67
  %71 = load ptr, ptr @stderr, align 8, !tbaa !9
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 490, ptr noundef nonnull @.str.870) #7
  br label %73

73:                                               ; preds = %67, %70, %64, %58, %50, %44, %38, %30, %23, %16
  %.sroa.11.0 = phi i32 [ 0, %70 ], [ 0, %64 ], [ 0, %58 ], [ 0, %50 ], [ 0, %44 ], [ 0, %38 ], [ 0, %30 ], [ 0, %23 ], [ 0, %16 ], [ 1, %67 ]
  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_rotate_atm(ptr noundef, 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: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass