; LLVM IR from jpvt/Computer_Graphics :: Assignment #3/third_party/glm/test/gtx/gtx_range.ll (Z8test_matv)

; 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.glm::vec.10" = type { %union.anon.11, %union.anon.12, %union.anon.13, %union.anon.14 }
%union.anon.11 = type { float }
%union.anon.12 = type { float }
%union.anon.13 = type { float }
%union.anon.14 = type { float }
%"struct.glm::mat" = type { [4 x %"struct.glm::vec.6"] }
%"struct.glm::vec.6" = type { %union.anon.7, %union.anon.8, %union.anon.9 }
%union.anon.7 = type { float }
%union.anon.8 = type { float }
%union.anon.9 = type { float }
%"struct.glm::vec.2" = type { %union.anon.3, %union.anon.4, %union.anon.5 }
%union.anon.3 = type { i8 }
%union.anon.4 = type { i8 }
%union.anon.5 = type { i8 }

@__const._Z8test_matv.v = external hidden unnamed_addr constant %"struct.glm::vec.10", align 4

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3glm3allILi3ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(3)) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8test_matv() #4 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.glm::mat", align 4
  %3 = alloca i32, align 4
  %4 = alloca float, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %"struct.glm::mat", align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"struct.glm::vec.10", align 4
  %17 = alloca %"struct.glm::vec.2", align 1
  %18 = alloca %"struct.glm::vec.6", align 4
  %19 = alloca { <2 x float>, float }, align 8
  %20 = alloca %"struct.glm::vec.6", align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %2) #6
  call void @llvm.memset.p0.i64(ptr align 4 %2, i8 0, i64 48, i1 false)
  %21 = getelementptr inbounds %"struct.glm::mat", ptr %2, i32 0, i32 0
  %22 = getelementptr inbounds [4 x %"struct.glm::vec.6"], ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds %"struct.glm::vec.6", ptr %22, i32 0, i32 0
  %24 = getelementptr inbounds %union.anon.7, ptr %23, i32 0, i32 0
  store float 1.000000e+00, ptr %24, align 4
  %25 = getelementptr inbounds [4 x %"struct.glm::vec.6"], ptr %21, i32 0, i32 1
  %26 = getelementptr inbounds %"struct.glm::vec.6", ptr %25, i32 0, i32 1
  %27 = getelementptr inbounds %union.anon.8, ptr %26, i32 0, i32 0
  store float 1.000000e+00, ptr %27, align 4
  %28 = getelementptr inbounds [4 x %"struct.glm::vec.6"], ptr %21, i32 0, i32 2
  %29 = getelementptr inbounds %"struct.glm::vec.6", ptr %28, i32 0, i32 2
  %30 = getelementptr inbounds %union.anon.9, ptr %29, i32 0, i32 0
  store float 1.000000e+00, ptr %30, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store float 0.000000e+00, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store ptr %2, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %31 = load ptr, ptr %5, align 8, !tbaa !11
  %32 = call noundef ptr @_ZN3glm5beginINS_3matILi4ELi3EfLNS_9qualifierE0EEEEEPNT_10value_typeERS4_(ptr noundef nonnull align 4 dereferenceable(48) %31)
  store ptr %32, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %33 = load ptr, ptr %5, align 8, !tbaa !11
  %34 = call noundef ptr @_ZN3glm3endINS_3matILi4ELi3EfLNS_9qualifierE0EEEEEPNT_10value_typeERS4_(ptr noundef nonnull align 4 dereferenceable(48) %33)
  store ptr %34, ptr %7, align 8, !tbaa !11
  br label %35

35:                                               ; preds = %48, %0
  %36 = load ptr, ptr %6, align 8, !tbaa !11
  %37 = load ptr, ptr %7, align 8, !tbaa !11
  %38 = icmp ne ptr %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %51

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %41 = load ptr, ptr %6, align 8, !tbaa !11
  %42 = load float, ptr %41, align 4, !tbaa !9
  store float %42, ptr %8, align 4, !tbaa !9
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %3, align 4, !tbaa !5
  %45 = load float, ptr %8, align 4, !tbaa !9
  %46 = load float, ptr %4, align 4, !tbaa !9
  %47 = fadd float %46, %45
  store float %47, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %48

48:                                               ; preds = %40
  %49 = load ptr, ptr %6, align 8, !tbaa !11
  %50 = getelementptr inbounds float, ptr %49, i32 1
  store ptr %50, ptr %6, align 8, !tbaa !11
  br label %35

51:                                               ; preds = %39
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = icmp eq i32 %52, 12
  %54 = zext i1 %53 to i64
  %55 = select i1 %53, i32 0, i32 1
  %56 = load i32, ptr %1, align 4, !tbaa !5
  %57 = add nsw i32 %56, %55
  store i32 %57, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store float 3.000000e+00, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store float 0x3F50624DE0000000, ptr %10, align 4, !tbaa !9
  %58 = call noundef zeroext i1 @_ZN3glm5equalIfEEbRKT_S3_S3_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %59 = zext i1 %58 to i64
  %60 = select i1 %58, i32 0, i32 1
  %61 = load i32, ptr %1, align 4, !tbaa !5
  %62 = add nsw i32 %61, %60
  store i32 %62, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #6
  call void @llvm.memset.p0.i64(ptr align 4 %11, i8 0, i64 48, i1 false)
  %63 = getelementptr inbounds %"struct.glm::mat", ptr %11, i32 0, i32 0
  %64 = getelementptr inbounds [4 x %"struct.glm::vec.6"], ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds %"struct.glm::vec.6", ptr %64, i32 0, i32 0
  %66 = getelementptr inbounds %union.anon.7, ptr %65, i32 0, i32 0
  store float 1.000000e+00, ptr %66, align 4
  %67 = getelementptr inbounds [4 x %"struct.glm::vec.6"], ptr %63, i32 0, i32 1
  %68 = getelementptr inbounds %"struct.glm::vec.6", ptr %67, i32 0, i32 1
  %69 = getelementptr inbounds %union.anon.8, ptr %68, i32 0, i32 0
  store float 1.000000e+00, ptr %69, align 4
  %70 = getelementptr inbounds [4 x %"struct.glm::vec.6"], ptr %63, i32 0, i32 2
  %71 = getelementptr inbounds %"struct.glm::vec.6", ptr %70, i32 0, i32 2
  %72 = getelementptr inbounds %union.anon.9, ptr %71, i32 0, i32 0
  store float 1.000000e+00, ptr %72, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store ptr %11, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %73 = load ptr, ptr %12, align 8, !tbaa !11
  %74 = call noundef ptr @_ZN3glm5beginINS_3matILi4ELi3EfLNS_9qualifierE0EEEEEPNT_10value_typeERS4_(ptr noundef nonnull align 4 dereferenceable(48) %73)
  store ptr %74, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %75 = load ptr, ptr %12, align 8, !tbaa !11
  %76 = call noundef ptr @_ZN3glm3endINS_3matILi4ELi3EfLNS_9qualifierE0EEEEEPNT_10value_typeERS4_(ptr noundef nonnull align 4 dereferenceable(48) %75)
  store ptr %76, ptr %14, align 8, !tbaa !11
  br label %77

77:                                               ; preds = %85, %51
  %78 = load ptr, ptr %13, align 8, !tbaa !11
  %79 = load ptr, ptr %14, align 8, !tbaa !11
  %80 = icmp ne ptr %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %88

82:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %83 = load ptr, ptr %13, align 8, !tbaa !11
  store ptr %83, ptr %15, align 8, !tbaa !11
  %84 = load ptr, ptr %15, align 8, !tbaa !11
  store float 0.000000e+00, ptr %84, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %85

85:                                               ; preds = %82
  %86 = load ptr, ptr %13, align 8, !tbaa !11
  %87 = getelementptr inbounds float, ptr %86, i32 1
  store ptr %87, ptr %13, align 8, !tbaa !11
  br label %77

88:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 @__const._Z8test_matv.v, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 3, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #6
  %89 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi4ELi3ET_XT0_EE8col_typeERKS4_RKNS4_8row_typeE(ptr noundef nonnull align 4 dereferenceable(48) %11, ptr noundef nonnull align 4 dereferenceable(16) %16)
  store { <2 x float>, float } %89, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %19, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #6
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %20, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %90 = call noundef float @_ZN3glm7epsilonIfEET_v()
  %91 = call i24 @_ZN3glm5equalILi3EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S4_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %20, float noundef %90)
  store i24 %91, ptr %17, align 1
  %92 = call noundef zeroext i1 @_ZN3glm3allILi3ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(3) %17)
  %93 = zext i1 %92 to i64
  %94 = select i1 %92, i32 0, i32 1
  %95 = load i32, ptr %1, align 4, !tbaa !5
  %96 = add nsw i32 %95, %94
  store i32 %96, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #6
  %97 = load i32, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret i32 %97
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3glm5beginINS_3matILi4ELi3EfLNS_9qualifierE0EEEEEPNT_10value_typeERS4_(ptr noundef nonnull align 4 dereferenceable(48)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3glm3endINS_3matILi4ELi3EfLNS_9qualifierE0EEEEEPNT_10value_typeERS4_(ptr noundef nonnull align 4 dereferenceable(48)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3glm5equalIfEEbRKT_S3_S3_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i24 @_ZN3glm5equalILi3EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), float noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi4ELi3ET_XT0_EE8col_typeERKS4_RKNS4_8row_typeE(ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3glm7epsilonIfEET_v() #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint mustprogress 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 #4 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { inlinehint mustprogress 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, 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"

%"struct.glm::vec.10" = type { %union.anon.11, %union.anon.12, %union.anon.13, %union.anon.14 }
%union.anon.11 = type { float }
%union.anon.12 = type { float }
%union.anon.13 = type { float }
%union.anon.14 = type { float }
%"struct.glm::mat" = type { [4 x %"struct.glm::vec.6"] }
%"struct.glm::vec.6" = type { %union.anon.7, %union.anon.8, %union.anon.9 }
%union.anon.7 = type { float }
%union.anon.8 = type { float }
%union.anon.9 = type { float }
%"struct.glm::vec.2" = type { %union.anon.3, %union.anon.4, %union.anon.5 }
%union.anon.3 = type { i8 }
%union.anon.4 = type { i8 }
%union.anon.5 = type { i8 }

@__const._Z8test_matv.v = external hidden unnamed_addr constant %"struct.glm::vec.10", align 4

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3glm3allILi3ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(3)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 4) i32 @_Z8test_matv() local_unnamed_addr #4 {
  %1 = alloca %"struct.glm::mat", align 4
  %2 = alloca float, align 4
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca %"struct.glm::mat", align 4
  %6 = alloca %"struct.glm::vec.10", align 4
  %7 = alloca %"struct.glm::vec.2", align 4
  %8 = alloca %"struct.glm::vec.6", align 8
  %9 = alloca %"struct.glm::vec.6", align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #6
  %10 = getelementptr inbounds i8, ptr %1, i64 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(48) %10, i8 0, i64 44, i1 false)
  store float 1.000000e+00, ptr %1, align 4
  %11 = getelementptr inbounds i8, ptr %1, i64 16
  store float 1.000000e+00, ptr %11, align 4
  %12 = getelementptr inbounds i8, ptr %1, i64 32
  store float 1.000000e+00, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  store float 0.000000e+00, ptr %2, align 4, !tbaa !5
  %13 = call noundef ptr @_ZN3glm5beginINS_3matILi4ELi3EfLNS_9qualifierE0EEEEEPNT_10value_typeERS4_(ptr noundef nonnull align 4 dereferenceable(48) %1)
  %14 = call noundef ptr @_ZN3glm3endINS_3matILi4ELi3EfLNS_9qualifierE0EEEEEPNT_10value_typeERS4_(ptr noundef nonnull align 4 dereferenceable(48) %1)
  %.not23 = icmp eq ptr %13, %14
  br i1 %.not23, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %15 = icmp ne i32 %31, 12
  %16 = zext i1 %15 to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %0
  %.0.lcssa = phi i32 [ 1, %0 ], [ %16, %._crit_edge.loopexit ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store float 3.000000e+00, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store float 0x3F50624DE0000000, ptr %4, align 4, !tbaa !5
  %17 = call noundef zeroext i1 @_ZN3glm5equalIfEEbRKT_S3_S3_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #6
  %18 = getelementptr inbounds i8, ptr %5, i64 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(48) %18, i8 0, i64 44, i1 false)
  store float 1.000000e+00, ptr %5, align 4
  %19 = getelementptr inbounds i8, ptr %5, i64 16
  store float 1.000000e+00, ptr %19, align 4
  %20 = getelementptr inbounds i8, ptr %5, i64 32
  store float 1.000000e+00, ptr %20, align 4
  %21 = call noundef ptr @_ZN3glm5beginINS_3matILi4ELi3EfLNS_9qualifierE0EEEEEPNT_10value_typeERS4_(ptr noundef nonnull align 4 dereferenceable(48) %5)
  %22 = call noundef ptr @_ZN3glm3endINS_3matILi4ELi3EfLNS_9qualifierE0EEEEEPNT_10value_typeERS4_(ptr noundef nonnull align 4 dereferenceable(48) %5)
  %.not2126 = icmp eq ptr %21, %22
  br i1 %.not2126, label %._crit_edge30, label %.lr.ph29.preheader

.lr.ph29.preheader:                               ; preds = %._crit_edge
  %23 = ptrtoint ptr %22 to i64
  %24 = ptrtoint ptr %21 to i64
  %25 = add i64 %23, -4
  %26 = sub i64 %25, %24
  %27 = and i64 %26, -4
  %28 = add i64 %27, 4
  call void @llvm.memset.p0.i64(ptr align 4 %21, i8 0, i64 %28, i1 false), !tbaa !5
  br label %._crit_edge30

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.025 = phi i32 [ %31, %.lr.ph ], [ 0, %0 ]
  %.01924 = phi ptr [ %33, %.lr.ph ], [ %13, %0 ]
  %29 = phi float [ %32, %.lr.ph ], [ 0.000000e+00, %0 ]
  %30 = load float, ptr %.01924, align 4, !tbaa !5
  %31 = add nuw nsw i32 %.025, 1
  %32 = fadd float %30, %29
  store float %32, ptr %2, align 4, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %.01924, i64 4
  %.not = icmp eq ptr %33, %14
  br i1 %.not, label %._crit_edge.loopexit, label %.lr.ph

._crit_edge30:                                    ; preds = %.lr.ph29.preheader, %._crit_edge
  %not. = xor i1 %17, true
  %34 = zext i1 %not. to i32
  %35 = add nuw nsw i32 %.0.lcssa, %34
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) @__const._Z8test_matv.v, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #6
  %36 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi4ELi3ET_XT0_EE8col_typeERKS4_RKNS4_8row_typeE(ptr noundef nonnull align 4 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(16) %6)
  %.fca.0.extract = extractvalue { <2 x float>, float } %36, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %36, 1
  store <2 x float> %.fca.0.extract, ptr %8, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #6
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %37 = call noundef float @_ZN3glm7epsilonIfEET_v()
  %38 = call i24 @_ZN3glm5equalILi3EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S4_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef %37)
  store i24 %38, ptr %7, align 4
  %39 = call noundef zeroext i1 @_ZN3glm3allILi3ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(3) %7)
  %not.22 = xor i1 %39, true
  %40 = zext i1 %not.22 to i32
  %41 = add nuw nsw i32 %35, %40
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  ret i32 %41
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3glm5beginINS_3matILi4ELi3EfLNS_9qualifierE0EEEEEPNT_10value_typeERS4_(ptr noundef nonnull align 4 dereferenceable(48)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3glm3endINS_3matILi4ELi3EfLNS_9qualifierE0EEEEEPNT_10value_typeERS4_(ptr noundef nonnull align 4 dereferenceable(48)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3glm5equalIfEEbRKT_S3_S3_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i24 @_ZN3glm5equalILi3EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi4ELi3ET_XT0_EE8col_typeERKS4_RKNS4_8row_typeE(ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3glm7epsilonIfEET_v() local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint mustprogress 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 #4 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { inlinehint mustprogress 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++ TBAA"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass