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

; 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_at() #5 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x [4 x float]], align 16
  %3 = alloca [4 x float], align 16
  %4 = alloca [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_at.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_at(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 434, 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 %164

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 435, 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 %164

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 436, 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 %164

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
  call void @glm_mat4_identity(ptr noundef %65)
  %66 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 0.000000e+00, ptr %7, align 4, !tbaa !5
  %67 = getelementptr inbounds float, ptr %7, i64 1
  store float 0.000000e+00, ptr %67, align 4, !tbaa !5
  %68 = getelementptr inbounds float, ptr %7, i64 2
  store float 0.000000e+00, ptr %68, align 4, !tbaa !5
  %69 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 0
  store float 0.000000e+00, ptr %8, align 4, !tbaa !5
  %70 = getelementptr inbounds float, ptr %8, i64 1
  store float 0.000000e+00, ptr %70, align 4, !tbaa !5
  %71 = getelementptr inbounds float, ptr %8, i64 2
  store float 1.000000e+00, ptr %71, align 4, !tbaa !5
  %72 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  call void @glm_rotate_at(ptr noundef %66, ptr noundef %69, float noundef 0x3FF921FB60000000, ptr noundef %72)
  %73 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %74 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %75 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  call void @glm_mat4_mulv(ptr noundef %73, ptr noundef %74, ptr noundef %75)
  br label %76

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

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

85:                                               ; preds = %76
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  br label %88

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

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

97:                                               ; preds = %88
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  %101 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 2
  %102 = load float, ptr %101, align 8, !tbaa !5
  %103 = call zeroext i1 @test_eq(float noundef %102, float noundef -5.000000e-01)
  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.895, i32 noundef 445, ptr noundef @.str.872) #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 %6, align 4
  br label %164

109:                                              ; preds = %100
  br label %110

110:                                              ; preds = %109
  br label %111

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

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

130:                                              ; preds = %126
  %131 = load ptr, ptr @stderr, align 8, !tbaa !9
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 456, ptr noundef @.str.66) #6
  %133 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %133, align 8, !tbaa !11
  %134 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %134, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %164

135:                                              ; preds = %126
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136
  br label %138

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

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

147:                                              ; preds = %138
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  br label %150

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

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

159:                                              ; preds = %150
  br label %160

160:                                              ; preds = %159
  br label %161

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

164:                                              ; preds = %161, %154, %142, %130, %104, %92, %80, %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
  %165 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %165
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_rotate_at(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_at.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_identity(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_rotate_at() 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_at.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_at(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 434, 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 435, 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 436, ptr noundef nonnull @.str.872) #7
  br label %73

33:                                               ; preds = %26
  call void @glm_mat4_identity(ptr noundef nonnull %1)
  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_at(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 443, 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 444, 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 445, ptr noundef nonnull @.str.872) #7
  br label %73

53:                                               ; preds = %47
  call void @glm_mat4_identity(ptr noundef nonnull %1)
  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_at(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 456, 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 457, 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 458, 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_at(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