; LLVM IR from recp/cglm :: test/src (tests)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.test_status_t = type { ptr, i32 }

@stderr = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.669 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.949 = external hidden unnamed_addr constant [70 x i8], align 1

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

declare { ptr, i32 } @test_assert_mat4_eq(ptr noundef, ptr noundef) #5

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_mul_rot() #7 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x [4 x float]], align 16
  %3 = alloca [4 x [4 x float]], align 16
  %4 = alloca [4 x [4 x float]], align 16
  %5 = alloca [4 x [4 x float]], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [3 x float], align 4
  %10 = alloca [3 x float], align 4
  %11 = alloca %struct.test_status_t, align 8
  %12 = alloca %struct.test_status_t, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.test_status_t, align 8
  %15 = alloca %struct.test_status_t, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %2) #8
  call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 64, i1 false)
  %16 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 0
  %17 = getelementptr inbounds [4 x float], ptr %16, i32 0, i32 0
  store float 1.000000e+00, ptr %17, align 16
  %18 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 1
  %19 = getelementptr inbounds [4 x float], ptr %18, i32 0, i32 1
  store float 1.000000e+00, ptr %19, align 4
  %20 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 2
  %21 = getelementptr inbounds [4 x float], ptr %20, i32 0, i32 2
  store float 1.000000e+00, ptr %21, align 8
  %22 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 3
  %23 = getelementptr inbounds [4 x float], ptr %22, i32 0, i32 3
  store float 1.000000e+00, ptr %23, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #8
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 64, i1 false)
  %24 = getelementptr inbounds [4 x [4 x float]], ptr %3, i32 0, i32 0
  %25 = getelementptr inbounds [4 x float], ptr %24, i32 0, i32 0
  store float 1.000000e+00, ptr %25, align 16
  %26 = getelementptr inbounds [4 x [4 x float]], ptr %3, i32 0, i32 1
  %27 = getelementptr inbounds [4 x float], ptr %26, i32 0, i32 1
  store float 1.000000e+00, ptr %27, align 4
  %28 = getelementptr inbounds [4 x [4 x float]], ptr %3, i32 0, i32 2
  %29 = getelementptr inbounds [4 x float], ptr %28, i32 0, i32 2
  store float 1.000000e+00, ptr %29, align 8
  %30 = getelementptr inbounds [4 x [4 x float]], ptr %3, i32 0, i32 3
  %31 = getelementptr inbounds [4 x float], ptr %30, i32 0, i32 3
  store float 1.000000e+00, ptr %31, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #8
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %32 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %33 = call float @frand48()
  %34 = call float @frand48()
  store float %34, ptr %9, align 4, !tbaa !5
  %35 = getelementptr inbounds float, ptr %9, i64 1
  %36 = call float @frand48()
  store float %36, ptr %35, align 4, !tbaa !5
  %37 = getelementptr inbounds float, ptr %9, i64 2
  %38 = call float @frand48()
  store float %38, ptr %37, align 4, !tbaa !5
  %39 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  call void @glm_rotate(ptr noundef %32, float noundef %33, ptr noundef %39)
  %40 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  %41 = call float @frand48()
  %42 = call float @frand48()
  store float %42, ptr %10, align 4, !tbaa !5
  %43 = getelementptr inbounds float, ptr %10, i64 1
  %44 = call float @frand48()
  store float %44, ptr %43, align 4, !tbaa !5
  %45 = getelementptr inbounds float, ptr %10, i64 2
  %46 = call float @frand48()
  store float %46, ptr %45, align 4, !tbaa !5
  %47 = getelementptr inbounds [3 x float], ptr %10, i64 0, i64 0
  call void @glm_rotate(ptr noundef %40, float noundef %41, ptr noundef %47)
  %48 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %49 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  %50 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  call void @glm_mul_rot(ptr noundef %48, ptr noundef %49, ptr noundef %50)
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %93, %0
  %52 = load i32, ptr %6, align 4, !tbaa !9
  %53 = icmp slt i32 %52, 4
  br i1 %53, label %54, label %96

54:                                               ; preds = %51
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %89, %54
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = icmp slt i32 %56, 4
  br i1 %57, label %58, label %92

58:                                               ; preds = %55
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %85, %58
  %60 = load i32, ptr %8, align 4, !tbaa !9
  %61 = icmp slt i32 %60, 4
  br i1 %61, label %62, label %88

62:                                               ; preds = %59
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 %64
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [4 x float], ptr %65, i64 0, i64 %67
  %69 = load float, ptr %68, align 4, !tbaa !5
  %70 = load i32, ptr %6, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 %71
  %73 = load i32, ptr %8, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [4 x float], ptr %72, i64 0, i64 %74
  %76 = load float, ptr %75, align 4, !tbaa !5
  %77 = load i32, ptr %6, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 %78
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [4 x float], ptr %79, i64 0, i64 %81
  %83 = load float, ptr %82, align 4, !tbaa !5
  %84 = call float @llvm.fmuladd.f32(float %69, float %76, float %83)
  store float %84, ptr %82, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %62
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %8, align 4, !tbaa !9
  br label %59, !llvm.loop !11

88:                                               ; preds = %59
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %7, align 4, !tbaa !9
  br label %55, !llvm.loop !13

92:                                               ; preds = %55
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %6, align 4, !tbaa !9
  br label %51, !llvm.loop !14

96:                                               ; preds = %51
  br label %97

97:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %98 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  %99 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
  %100 = call { ptr, i32 } @test_assert_mat4_eq(ptr noundef %98, ptr noundef %99)
  %101 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %102 = extractvalue { ptr, i32 } %100, 0
  store ptr %102, ptr %101, align 8
  %103 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %104 = extractvalue { ptr, i32 } %100, 1
  store i32 %104, ptr %103, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  %105 = getelementptr inbounds %struct.test_status_t, ptr %11, i32 0, i32 1
  %106 = load i32, ptr %105, align 8, !tbaa !18
  %107 = icmp ne i32 %106, 1
  br i1 %107, label %108, label %115

108:                                              ; preds = %97
  %109 = load ptr, ptr @stderr, align 8, !tbaa !16
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str.13, ptr noundef @.str.949, i32 noundef 76, ptr noundef @.str.669) #8
  %111 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %112 = getelementptr inbounds %struct.test_status_t, ptr %11, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !20
  store ptr %113, ptr %111, align 8, !tbaa !20
  %114 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %114, align 8, !tbaa !18
  store i32 1, ptr %13, align 4
  br label %116

115:                                              ; preds = %97
  store i32 0, ptr %13, align 4
  br label %116

116:                                              ; preds = %115, %108
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  %117 = load i32, ptr %13, align 4
  switch i32 %117, label %150 [
    i32 0, label %118
  ]

118:                                              ; preds = %116
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  %121 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %122 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  %123 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  call void @glm_mul_rot(ptr noundef %121, ptr noundef %122, ptr noundef %123)
  br label %124

124:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %125 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  %126 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
  %127 = call { ptr, i32 } @test_assert_mat4_eq(ptr noundef %125, ptr noundef %126)
  %128 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %129 = extractvalue { ptr, i32 } %127, 0
  store ptr %129, ptr %128, align 8
  %130 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %131 = extractvalue { ptr, i32 } %127, 1
  store i32 %131, ptr %130, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  %132 = getelementptr inbounds %struct.test_status_t, ptr %14, i32 0, i32 1
  %133 = load i32, ptr %132, align 8, !tbaa !18
  %134 = icmp ne i32 %133, 1
  br i1 %134, label %135, label %142

135:                                              ; preds = %124
  %136 = load ptr, ptr @stderr, align 8, !tbaa !16
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.13, ptr noundef @.str.949, i32 noundef 80, ptr noundef @.str.669) #8
  %138 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %139 = getelementptr inbounds %struct.test_status_t, ptr %14, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !20
  store ptr %140, ptr %138, align 8, !tbaa !20
  %141 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %141, align 8, !tbaa !18
  store i32 1, ptr %13, align 4
  br label %143

142:                                              ; preds = %124
  store i32 0, ptr %13, align 4
  br label %143

143:                                              ; preds = %142, %135
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  %144 = load i32, ptr %13, align 4
  switch i32 %144, label %150 [
    i32 0, label %145
  ]

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  %148 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %148, align 8, !tbaa !20
  %149 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %149, align 8, !tbaa !18
  store i32 1, ptr %13, align 4
  br label %150

150:                                              ; preds = %147, %143, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #8
  %151 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %151
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @frand48() #6

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "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 = { 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 #7 = { 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 #8 = { 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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{i64 0, i64 8, !16, i64 8, i64 4, !9}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!19, !10, i64 8}
!19 = !{!"test_status_t", !17, i64 0, !10, i64 8}
!20 = !{!19, !17, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.669 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.949 = external hidden unnamed_addr constant [70 x i8], align 1

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_mul_rot() local_unnamed_addr #5 {
.preheader30:
  %0 = alloca [4 x [4 x float]], align 16
  %1 = alloca [4 x [4 x float]], align 16
  %2 = alloca [4 x [4 x float]], align 16
  %3 = alloca [4 x [4 x float]], align 16
  %4 = alloca [3 x float], align 4
  %5 = alloca [3 x float], align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %0) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %0, i8 0, i64 64, i1 false)
  store float 1.000000e+00, ptr %0, align 16
  %6 = getelementptr inbounds i8, ptr %0, i64 20
  store float 1.000000e+00, ptr %6, align 4
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  store float 1.000000e+00, ptr %7, align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 60
  store float 1.000000e+00, ptr %8, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #7
  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 64, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #7
  %12 = getelementptr inbounds i8, ptr %3, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %12, i8 0, i64 48, i1 false)
  %13 = tail call float @frand48()
  %14 = tail call float @frand48()
  store float %14, ptr %4, align 4, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %4, i64 4
  %16 = tail call float @frand48()
  store float %16, ptr %15, align 4, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %4, i64 8
  %18 = tail call float @frand48()
  store float %18, ptr %17, align 4, !tbaa !5
  call void @glm_rotate(ptr noundef nonnull %0, float noundef %13, ptr noundef nonnull %4)
  %19 = call float @frand48()
  %20 = call float @frand48()
  store float %20, ptr %5, align 4, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %5, i64 4
  %22 = call float @frand48()
  store float %22, ptr %21, align 4, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %5, i64 8
  %24 = call float @frand48()
  store float %24, ptr %23, align 4, !tbaa !5
  call void @glm_rotate(ptr noundef nonnull %1, float noundef %19, ptr noundef nonnull %5)
  call void @glm_mul_rot(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %25 = load <4 x float>, ptr %1, align 16
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %27 = getelementptr inbounds i8, ptr %1, i64 4
  %28 = load <4 x float>, ptr %27, align 4
  %29 = getelementptr inbounds i8, ptr %0, i64 32
  %30 = getelementptr inbounds i8, ptr %1, i64 8
  %31 = load <4 x float>, ptr %30, align 8
  %32 = getelementptr inbounds i8, ptr %0, i64 48
  %33 = getelementptr inbounds i8, ptr %1, i64 12
  %34 = load <4 x float>, ptr %33, align 4
  %35 = load <4 x float>, ptr %0, align 16, !tbaa !5
  %36 = shufflevector <4 x float> %25, <4 x float> poison, <4 x i32> zeroinitializer
  %37 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %35, <4 x float> %36, <4 x float> zeroinitializer)
  %38 = load <4 x float>, ptr %26, align 16, !tbaa !5
  %39 = shufflevector <4 x float> %28, <4 x float> poison, <4 x i32> zeroinitializer
  %40 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %38, <4 x float> %39, <4 x float> %37)
  %41 = load <4 x float>, ptr %29, align 16, !tbaa !5
  %42 = shufflevector <4 x float> %31, <4 x float> poison, <4 x i32> zeroinitializer
  %43 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %41, <4 x float> %42, <4 x float> %40)
  %44 = load <4 x float>, ptr %32, align 16, !tbaa !5
  %45 = shufflevector <4 x float> %34, <4 x float> poison, <4 x i32> zeroinitializer
  %46 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %44, <4 x float> %45, <4 x float> %43)
  store <4 x float> %46, ptr %3, align 16, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %3, i64 16
  %48 = getelementptr inbounds i8, ptr %1, i64 16
  %49 = load <4 x float>, ptr %48, align 16
  %50 = load <4 x float>, ptr %9, align 4
  %51 = getelementptr inbounds i8, ptr %1, i64 24
  %52 = load <4 x float>, ptr %51, align 8
  %53 = getelementptr inbounds i8, ptr %1, i64 28
  %54 = load <4 x float>, ptr %53, align 4
  %55 = getelementptr inbounds i8, ptr %3, i64 24
  %56 = load <4 x float>, ptr %55, align 8
  %57 = shufflevector <4 x float> %49, <4 x float> poison, <4 x i32> zeroinitializer
  %58 = shufflevector <4 x float> <float 0.000000e+00, float 0.000000e+00, float poison, float poison>, <4 x float> %56, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
  %59 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %35, <4 x float> %57, <4 x float> %58)
  %60 = shufflevector <4 x float> %50, <4 x float> poison, <4 x i32> zeroinitializer
  %61 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %38, <4 x float> %60, <4 x float> %59)
  %62 = shufflevector <4 x float> %52, <4 x float> poison, <4 x i32> zeroinitializer
  %63 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %41, <4 x float> %62, <4 x float> %61)
  %64 = shufflevector <4 x float> %54, <4 x float> poison, <4 x i32> zeroinitializer
  %65 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %44, <4 x float> %64, <4 x float> %63)
  store <4 x float> %65, ptr %47, align 16, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %3, i64 32
  %67 = getelementptr inbounds i8, ptr %1, i64 32
  %68 = load <4 x float>, ptr %67, align 16
  %69 = getelementptr inbounds i8, ptr %1, i64 36
  %70 = load <4 x float>, ptr %69, align 4
  %71 = load <4 x float>, ptr %10, align 8
  %72 = getelementptr inbounds i8, ptr %1, i64 44
  %73 = load <4 x float>, ptr %72, align 4
  %74 = load <4 x float>, ptr %66, align 16, !tbaa !5
  %75 = shufflevector <4 x float> %68, <4 x float> poison, <4 x i32> zeroinitializer
  %76 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %35, <4 x float> %75, <4 x float> %74)
  %77 = shufflevector <4 x float> %70, <4 x float> poison, <4 x i32> zeroinitializer
  %78 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %38, <4 x float> %77, <4 x float> %76)
  %79 = shufflevector <4 x float> %71, <4 x float> poison, <4 x i32> zeroinitializer
  %80 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %41, <4 x float> %79, <4 x float> %78)
  %81 = shufflevector <4 x float> %73, <4 x float> poison, <4 x i32> zeroinitializer
  %82 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %44, <4 x float> %81, <4 x float> %80)
  store <4 x float> %82, ptr %66, align 16, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %3, i64 48
  %84 = getelementptr inbounds i8, ptr %1, i64 48
  %85 = load <4 x float>, ptr %84, align 16
  %86 = getelementptr inbounds i8, ptr %1, i64 52
  %87 = load float, ptr %86, align 4, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %1, i64 56
  %89 = load float, ptr %88, align 8, !tbaa !5
  %90 = load float, ptr %11, align 4, !tbaa !5
  %91 = load <4 x float>, ptr %83, align 16, !tbaa !5
  %92 = load <4 x float>, ptr %0, align 16, !tbaa !5
  %93 = shufflevector <4 x float> %85, <4 x float> poison, <4 x i32> zeroinitializer
  %94 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %92, <4 x float> %93, <4 x float> %91)
  %95 = load <4 x float>, ptr %26, align 16, !tbaa !5
  %96 = insertelement <4 x float> poison, float %87, i64 0
  %97 = shufflevector <4 x float> %96, <4 x float> poison, <4 x i32> zeroinitializer
  %98 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %95, <4 x float> %97, <4 x float> %94)
  %99 = load <4 x float>, ptr %29, align 16, !tbaa !5
  %100 = insertelement <4 x float> poison, float %89, i64 0
  %101 = shufflevector <4 x float> %100, <4 x float> poison, <4 x i32> zeroinitializer
  %102 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %99, <4 x float> %101, <4 x float> %98)
  %103 = load <4 x float>, ptr %32, align 16, !tbaa !5
  %104 = insertelement <4 x float> poison, float %90, i64 0
  %105 = shufflevector <4 x float> %104, <4 x float> poison, <4 x i32> zeroinitializer
  %106 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %103, <4 x float> %105, <4 x float> %102)
  store <4 x float> %106, ptr %83, align 16, !tbaa !5
  %107 = call { ptr, i32 } @test_assert_mat4_eq(ptr noundef nonnull %2, ptr noundef nonnull %3) #7
  %108 = extractvalue { ptr, i32 } %107, 1
  %.not = icmp eq i32 %108, 1
  br i1 %.not, label %.critedge, label %109

109:                                              ; preds = %.preheader30
  %110 = extractvalue { ptr, i32 } %107, 0
  %111 = load ptr, ptr @stderr, align 8, !tbaa !9
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.949, i32 noundef 76, ptr noundef nonnull @.str.669) #8
  br label %120

.critedge:                                        ; preds = %.preheader30
  call void @glm_mul_rot(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %113 = call { ptr, i32 } @test_assert_mat4_eq(ptr noundef nonnull %2, ptr noundef nonnull %3) #7
  %114 = extractvalue { ptr, i32 } %113, 1
  %.not28 = icmp eq i32 %114, 1
  br i1 %.not28, label %119, label %115

115:                                              ; preds = %.critedge
  %116 = extractvalue { ptr, i32 } %113, 0
  %117 = load ptr, ptr @stderr, align 8, !tbaa !9
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.949, i32 noundef 80, ptr noundef nonnull @.str.669) #8
  br label %119

119:                                              ; preds = %.critedge, %115
  %spec.select = phi ptr [ %116, %115 ], [ null, %.critedge ]
  %spec.select29 = zext i1 %.not28 to i32
  br label %120

120:                                              ; preds = %119, %109
  %.sroa.023.2 = phi ptr [ %110, %109 ], [ %spec.select, %119 ]
  %.sroa.424.2 = phi i32 [ 0, %109 ], [ %spec.select29, %119 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %0) #7
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.023.2, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.424.2, 1
  ret { ptr, i32 } %.fca.1.insert
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @frand48() local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { 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,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass